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.h>
00023
00024 #include <QtCore/QMap>
00025 #include <QtCore/QString>
00026 #include <QtCore/QStringList>
00027
00028 #include <kfileplacesmodel.h>
00029
00030 class PlacesEngine : public Plasma::DataEngine
00031 {
00032 Q_OBJECT
00033
00034 public:
00035 PlacesEngine(QObject* parent, const QVariantList& args);
00036 ~PlacesEngine();
00037
00038 private Q_SLOTS:
00039
00040 void modelReset();
00041 void placesAdded(const QModelIndex &parent, int start, int end);
00042
00043
00044 void diskFreeSpaceFound(const QString &mountPoint,
00045 quint64 kBSize,
00046 quint64 kBUsed,
00047 quint64 kBAvailable);
00048
00049 private:
00050 void tryGetFreeSpace(const KUrl &url);
00051
00052 void sendData();
00053
00054 KFilePlacesModel m_placesModel;
00055 };
00056
00057
00058 #endif // PLACESENGINE_H