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/kickoff_export.h"
00025 #include "core/kickoffmodel.h"
00026
00027
00028 #include <KService>
00029
00030 namespace Kickoff
00031 {
00032
00037 class KICKOFF_EXPORT RecentlyUsedModel : public KickoffModel
00038 {
00039 Q_OBJECT
00040
00041 public:
00042
00044 enum RecentType {
00045 DocumentsAndApplications,
00046 DocumentsOnly,
00047 ApplicationsOnly
00048 };
00049
00051 explicit RecentlyUsedModel(QObject *parent = 0, RecentType recenttype = DocumentsAndApplications, int maxRecentApps = -1);
00052 virtual ~RecentlyUsedModel();
00053
00054 public Q_SLOTS:
00055 void clearRecentApplications();
00056 void clearRecentDocuments();
00057 void clearRecentDocumentsAndApplications();
00058
00059 private Q_SLOTS:
00060 void recentDocumentAdded(const QString& path);
00061 void recentDocumentRemoved(const QString& path);
00062 void recentApplicationAdded(KService::Ptr, int startCount);
00063 void recentApplicationRemoved(KService::Ptr);
00064 void recentApplicationsCleared();
00065
00066 private:
00067 class Private;
00068 Private * const d;
00069 };
00070
00071 }
00072
00073 #endif // RECENTLYUSEDMODEL_H