Engines
placesengine.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 #ifndef PLACESENGINE_H
00020 #define PLACESENGINE_H
00021
00022 #include <Plasma/DataEngine>
00023
00024 #include <kfileplacesmodel.h>
00025
00026 class PlacesEngine : public Plasma::DataEngine
00027 {
00028 Q_OBJECT
00029
00030 public:
00031 PlacesEngine(QObject* parent, const QVariantList& args);
00032 ~PlacesEngine();
00033
00034 private Q_SLOTS:
00035
00036 void modelReset();
00037 void placesAdded(const QModelIndex& parent, int start, int end);
00038 void placesRemoved(const QModelIndex& parent, int start, int end);
00039 void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight);
00040
00041 private:
00042 void sendData(int start, int end);
00043 void sendAllData();
00044
00045 KFilePlacesModel m_placesModel;
00046 };
00047
00048
00049 #endif // PLACESENGINE_H