Applets
systemmodel.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
00021 #ifndef SYSTEMMODEL_H
00022 #define SYSTEMMODEL_H
00023
00024 #include "core/kickoffproxymodel.h"
00025
00026 namespace Kickoff
00027 {
00028
00033 class SystemModel : public KickoffProxyModel
00034 {
00035 Q_OBJECT
00036
00037 public:
00039 SystemModel(QObject *parent = 0);
00040 virtual ~SystemModel();
00041
00042 virtual QModelIndex mapFromSource (const QModelIndex &sourceIndex) const;
00043 virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const;
00044 virtual QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
00045 virtual QModelIndex parent(const QModelIndex &item) const;
00046 virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
00047 virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
00048 virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
00049
00050 private Q_SLOTS:
00051 void startRefreshingUsageInfo();
00052 void reloadApplications();
00053 void freeSpaceInfoAvailable(const QString& mountPoint, quint64 kbSize,
00054 quint64 kbUsed, quint64 kbAvailable);
00055
00056 void sourceDataChanged(const QModelIndex &start, const QModelIndex &end);
00057 void sourceRowsAboutToBeInserted(const QModelIndex &parent, int start, int end);
00058 void sourceRowsInserted(const QModelIndex &parent, int start, int end);
00059 void sourceRowsAboutToBeRemoved(const QModelIndex &parent, int start, int end);
00060 void sourceRowsRemoved(const QModelIndex &parent, int start, int end);
00061
00062 private:
00063 class Private;
00064 Private * const d;
00065 };
00066
00067 }
00068
00069 #endif // SYSTEMMODEL_H
00070