Changeset View
Changeset View
Standalone View
Standalone View
applets/appmenu/plugin/appmenumodel.h
Show All 21 Lines | |||||
22 | #include <QAbstractListModel> | 22 | #include <QAbstractListModel> | ||
23 | #include <QStringList> | 23 | #include <QStringList> | ||
24 | #include <KWindowSystem> | 24 | #include <KWindowSystem> | ||
25 | #include <QPointer> | 25 | #include <QPointer> | ||
26 | 26 | | |||
27 | class QMenu; | 27 | class QMenu; | ||
28 | class QAction; | 28 | class QAction; | ||
29 | class QModelIndex; | 29 | class QModelIndex; | ||
30 | class QDBusServiceWatcher; | ||||
30 | class KDBusMenuImporter; | 31 | class KDBusMenuImporter; | ||
31 | 32 | | |||
32 | class AppMenuModel : public QAbstractListModel | 33 | class AppMenuModel : public QAbstractListModel | ||
33 | { | 34 | { | ||
34 | Q_OBJECT | 35 | Q_OBJECT | ||
35 | 36 | | |||
36 | Q_PROPERTY(bool menuAvailable READ menuAvailable WRITE setMenuAvailable NOTIFY menuAvailableChanged) | 37 | Q_PROPERTY(bool menuAvailable READ menuAvailable WRITE setMenuAvailable NOTIFY menuAvailableChanged) | ||
37 | 38 | | |||
Show All 28 Lines | |||||
66 | 67 | | |||
67 | private: | 68 | private: | ||
68 | bool m_menuAvailable; | 69 | bool m_menuAvailable; | ||
69 | 70 | | |||
70 | QPointer<QMenu> m_menu; | 71 | QPointer<QMenu> m_menu; | ||
71 | QStringList m_activeMenu; | 72 | QStringList m_activeMenu; | ||
72 | QList<QAction *> m_activeActions; | 73 | QList<QAction *> m_activeActions; | ||
73 | 74 | | |||
75 | QDBusServiceWatcher *m_serviceWatcher; | ||||
74 | QString m_serviceName; | 76 | QString m_serviceName; | ||
75 | QString m_menuObjectPath; | 77 | QString m_menuObjectPath; | ||
76 | 78 | | |||
77 | QPointer<KDBusMenuImporter> m_importer; | 79 | QPointer<KDBusMenuImporter> m_importer; | ||
78 | }; | 80 | }; | ||
79 | 81 | |