• Skip to content
  • Skip to link menu
KDE 4.2 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/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 

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
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
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