• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • workspace API Reference
  • KDE Home
  • Contact Us
 

liblancelot

  • sources
  • kde-4.14
  • workspace
  • kdeplasma-addons
  • libs
  • lancelot
  • models
PlasmaServiceListModel.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser/Library General Public License version 2,
6  * or (at your option) any later version, as published by the Free
7  * Software Foundation
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser/Library General Public License for more details
13  *
14  * You should have received a copy of the GNU Lesser/Library General Public
15  * License along with this program; if not, write to the
16  * Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19 
20 #ifndef LANCELOT_PLASMA_SERVICE_LIST_MODEL_H
21 #define LANCELOT_PLASMA_SERVICE_LIST_MODEL_H
22 
23 #include <QtCore/QVariant>
24 
25 #include <Plasma/DataEngine>
26 
27 #include <lancelot/lancelot_export.h>
28 #include <lancelot/models/ActionListModel.h>
29 
30 namespace Lancelot
31 {
32 
33 class LANCELOT_EXPORT PlasmaServiceListModel: public ActionListModel {
34  Q_OBJECT
35 
36 public:
40  PlasmaServiceListModel(QString dataEngine);
41 
45  virtual ~PlasmaServiceListModel();
46 
47  L_Override QString title(int index) const;
48  L_Override QString description(int index) const;
49  L_Override QIcon icon(int index) const;
50  L_Override bool isCategory(int index) const;
51 
52  L_Override int size() const;
53 
54  L_Override QString selfTitle() const;
55  L_Override QIcon selfIcon() const;
56  L_Override void activate(int index);
57 
58 public Q_SLOTS:
59  void dataUpdated(const QString & name,
60  const Plasma::DataEngine::Data & data);
61 
62 private:
63  class Private;
64  Private * const d;
65 };
66 
67 } // namespace Lancelot
68 
69 #endif /* LANCELOT_PLASMA_SERVICE_LIST_MODEL_H */
70 
Lancelot::ActionListModel
This class represents a list data model.
Definition: ActionListModel.h:37
L_Override
#define L_Override
Definition: lancelot_export.h:41
lancelot_export.h
LANCELOT_EXPORT
#define LANCELOT_EXPORT
Definition: lancelot_export.h:32
ActionListModel.h
Lancelot::PlasmaServiceListModel
Definition: PlasmaServiceListModel.h:33
QString
QIcon
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:43:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

liblancelot

Skip menu "liblancelot"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

workspace API Reference

Skip menu "workspace API Reference"
  • kdeplasma-addons
  •       GroupingDesktop
  •     liblancelot

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal