Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/systemtray.h
Context not available. | |||||
29 | class QDBusPendingCallWatcher; | 29 | class QDBusPendingCallWatcher; | ||
---|---|---|---|---|---|
30 | class QDBusConnection; | 30 | class QDBusConnection; | ||
31 | class QQuickItem; | 31 | class QQuickItem; | ||
32 | namespace Plasma { | ||||
33 | class Service; | ||||
34 | } | ||||
32 | class PlasmoidModel; | 35 | class PlasmoidModel; | ||
36 | class StatusNotifierModel; | ||||
37 | class SystemTrayModel; | ||||
33 | 38 | | |||
34 | class SystemTray : public Plasma::Containment | 39 | class SystemTray : public Plasma::Containment | ||
35 | { | 40 | { | ||
36 | Q_OBJECT | 41 | Q_OBJECT | ||
42 | Q_PROPERTY(QAbstractItemModel* systemTrayModel READ systemTrayModel CONSTANT) | ||||
37 | Q_PROPERTY(QAbstractItemModel* availablePlasmoids READ availablePlasmoids CONSTANT) | 43 | Q_PROPERTY(QAbstractItemModel* availablePlasmoids READ availablePlasmoids CONSTANT) | ||
38 | Q_PROPERTY(QStringList allowedPlasmoids READ allowedPlasmoids WRITE setAllowedPlasmoids NOTIFY allowedPlasmoidsChanged) | 44 | Q_PROPERTY(QStringList allowedPlasmoids READ allowedPlasmoids WRITE setAllowedPlasmoids NOTIFY allowedPlasmoidsChanged) | ||
39 | Q_PROPERTY(QStringList defaultPlasmoids READ defaultPlasmoids CONSTANT) | | |||
40 | 45 | | |||
41 | public: | 46 | public: | ||
42 | SystemTray( QObject *parent, const QVariantList &args ); | 47 | SystemTray( QObject *parent, const QVariantList &args ); | ||
Context not available. | |||||
47 | void restoreContents(KConfigGroup &group) override; | 52 | void restoreContents(KConfigGroup &group) override; | ||
48 | void restorePlasmoids(); | 53 | void restorePlasmoids(); | ||
49 | 54 | | |||
50 | QStringList defaultPlasmoids() const; | 55 | QAbstractItemModel* systemTrayModel(); | ||
51 | 56 | | |||
52 | QAbstractItemModel* availablePlasmoids(); | 57 | QAbstractItemModel* availablePlasmoids(); | ||
53 | 58 | | |||
Context not available. | |||||
101 | 106 | | |||
102 | Q_INVOKABLE bool isSystemTrayApplet(const QString &appletId); | 107 | Q_INVOKABLE bool isSystemTrayApplet(const QString &appletId); | ||
103 | 108 | | |||
109 | /** | ||||
110 | * @returns a Plasma::Service given a source name | ||||
111 | * @param source source name we want a service of | ||||
112 | */ | ||||
113 | Q_INVOKABLE Plasma::Service *serviceForSource(const QString &source); | ||||
114 | | ||||
104 | private Q_SLOTS: | 115 | private Q_SLOTS: | ||
105 | void serviceNameFetchFinished(QDBusPendingCallWatcher* watcher, const QDBusConnection &connection); | 116 | void serviceNameFetchFinished(QDBusPendingCallWatcher* watcher, const QDBusConnection &connection); | ||
106 | void serviceOwnerChanged(const QString &serviceName, const QString &oldOwner, const QString &newOwner); | 117 | void serviceOwnerChanged(const QString &serviceName, const QString &oldOwner, const QString &newOwner); | ||
Context not available. | |||||
120 | 131 | | |||
121 | QStringList m_allowedPlasmoids; | 132 | QStringList m_allowedPlasmoids; | ||
122 | PlasmoidModel *m_availablePlasmoidsModel; | 133 | PlasmoidModel *m_availablePlasmoidsModel; | ||
134 | StatusNotifierModel *m_statusNotifierModel; | ||||
135 | SystemTrayModel *m_systemTrayModel; | ||||
123 | QHash<QString, int> m_knownPlugins; | 136 | QHash<QString, int> m_knownPlugins; | ||
124 | QHash<QString, int> m_dbusServiceCounts; | 137 | QHash<QString, int> m_dbusServiceCounts; | ||
125 | }; | 138 | }; | ||
Context not available. |