Applets
recentlyusedmodel.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef RECENTLYUSEDMODEL_H
00021 #define RECENTLYUSEDMODEL_H
00022
00023
00024 #include "core/kickoffmodel.h"
00025
00026
00027 #include <KService>
00028
00029 namespace Kickoff
00030 {
00031
00036 class RecentlyUsedModel : public KickoffModel
00037 {
00038 Q_OBJECT
00039
00040 public:
00042 RecentlyUsedModel(QObject *parent = 0);
00043 virtual ~RecentlyUsedModel();
00044
00045 public Q_SLOTS:
00046 void clearRecentApplications();
00047 void clearRecentDocuments();
00048 void clearRecentDocumentsAndApplications();
00049 private Q_SLOTS:
00050 void recentDocumentAdded(const QString& path);
00051 void recentDocumentRemoved(const QString& path);
00052 void recentApplicationAdded(KService::Ptr,int startCount);
00053 void recentApplicationRemoved(KService::Ptr);
00054 void recentApplicationsCleared();
00055
00056 private:
00057 class Private;
00058 Private * const d;
00059 };
00060
00061 }
00062
00063 #endif // RECENTLYUSEDMODEL_H