• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Applets

systemmodel.h

Go to the documentation of this file.
00001 /*
00002     Copyright 2007 Robert Knight <robertknight@gmail.com>
00003     Copyright 2007 Kevin Ottens <ervin@kde.org>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
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 

Applets

Skip menu "Applets"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal