diff options
author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-09-12 14:47:26 -0300 |
---|---|---|
committer | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-09-12 14:47:26 -0300 |
commit | a3aa532c698c5eab037b17870275d8e27e77a498 (patch) | |
tree | 01e918b9adc2557a0e67f05221e2c36f4e65ee29 /src/common/qdbusactiongroup.h | |
parent | 638bcc947afe2b941d934fc3f87513f0c8565f7f (diff) | |
download | qmenumodel-a3aa532c698c5eab037b17870275d8e27e77a498.tar.gz qmenumodel-a3aa532c698c5eab037b17870275d8e27e77a498.tar.bz2 qmenumodel-a3aa532c698c5eab037b17870275d8e27e77a498.zip |
Added QML documentation.
Diffstat (limited to 'src/common/qdbusactiongroup.h')
-rw-r--r-- | src/common/qdbusactiongroup.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/common/qdbusactiongroup.h b/src/common/qdbusactiongroup.h index 4ae0074..3ff7927 100644 --- a/src/common/qdbusactiongroup.h +++ b/src/common/qdbusactiongroup.h @@ -33,36 +33,41 @@ class QDBusActionGroup : public QObject, public QDBusObject Q_PROPERTY(QString busName READ busName WRITE setBusName NOTIFY busNameChanged) Q_PROPERTY(QString objectPath READ objectPath WRITE setObjectPath NOTIFY objectPathChanged) Q_PROPERTY(int status READ status NOTIFY statusChanged) + Q_PROPERTY(int count READ count NOTIFY countChanged) public: QDBusActionGroup(QObject *parent=0); ~QDBusActionGroup(); + int count() const; + Q_SIGNALS: - void busTypeChanged(); - void busNameChanged(); - void objectPathChanged(); - void statusChanged(); + void busTypeChanged(BusType type); + void busNameChanged(const QString &busNameChanged); + void objectPathChanged(const QString &objectPath); + void statusChanged(ConnectionStatus status); + void actionStateChanged(const QString &name, QVariant value); + void countChanged(int count); public Q_SLOTS: void start(); void stop(); - QAction *getAction(const QString &actionName); + QAction *action(const QString &actionName); protected: virtual void serviceAppear(GDBusConnection *connection); virtual void serviceVanish(GDBusConnection *connection); - virtual void busTypeChanged(BusType type); - virtual void busNameChanged(const QString &busNameChanged); - virtual void objectPathChanged(const QString &objectPath); - virtual void statusChanged(ConnectionStatus status); + +private Q_SLOTS: + void onActionTriggered(); private: GActionGroup *m_actionGroup; QSet<QAction*> m_actions; int m_signalActionAddId; int m_signalActionRemovedId; + int m_signalStateChangedId; // workaround to support int as bustType void setIntBusType(int busType); |