Home · All Namespaces · All Classes · Main Classes |
00001 /*************************************************************************** 00002 ** 00003 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 00004 ** All rights reserved. 00005 ** Contact: Karoliina T. Salminen <karoliina.t.salminen@nokia.com> 00006 ** 00007 ** This file is part of duicontrolpanel. 00008 ** 00009 ** 00010 ** This library is free software; you can redistribute it and/or 00011 ** modify it under the terms of the GNU Lesser General Public 00012 ** License version 2.1 as published by the Free Software Foundation 00013 ** and appearing in the file LICENSE.LGPL included in the packaging 00014 ** of this file. 00015 ** 00016 ****************************************************************************/ 00017 00018 /* -*- Mode: C; indent-tabs-mode: s; c-basic-offset: 4; tab-width: 4 -*- */ 00019 /* vim:set et ai sw=4 ts=4 sts=4: tw=80 cino="(0,W2s,i2s,t0,l1,:0" */ 00020 #ifndef MOSTUSEDCOUNTER_H 00021 #define MOSTUSEDCOUNTER_H 00022 00023 #include <QString> 00024 class MostUsedCounterPrivate; 00025 00026 class MostUsedCounter 00027 { 00028 public: 00029 ~MostUsedCounter(); 00030 00031 static MostUsedCounter *instance (); 00032 static void destroy (); 00033 00034 int incrementUsageCount (const QString &name); 00035 int getUsageCount (const QString &key); 00036 void dropKey (const QString &key); 00037 00038 protected: 00039 MostUsedCounter (); 00040 private: 00041 MostUsedCounterPrivate *const d_ptr; 00042 Q_DISABLE_COPY(MostUsedCounter); 00043 }; 00044 #endif 00045
Copyright © 2009 Nokia Corporation | Generated on Tue Jul 5 2011 15:01:31 Doxygen 1.7.1 |
Meego control panel |