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