diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-03-18 11:17:32 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-03-18 11:17:32 +0000 |
| commit | 625b2712c1c9fa46ba43684a24a477aa60d88089 (patch) | |
| tree | e1f0d7a6239bb48b079d7c067a16d9ac6fd729b8 /src/plugins/General/dbuscontrol/dbusadaptor.h | |
| parent | 3626269d655501b4d973e29060a9e96893e5af98 (diff) | |
| download | qmmp-625b2712c1c9fa46ba43684a24a477aa60d88089.tar.gz qmmp-625b2712c1c9fa46ba43684a24a477aa60d88089.tar.bz2 qmmp-625b2712c1c9fa46ba43684a24a477aa60d88089.zip | |
dbus plugin: more properties and signals
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@277 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/dbuscontrol/dbusadaptor.h')
| -rw-r--r-- | src/plugins/General/dbuscontrol/dbusadaptor.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/plugins/General/dbuscontrol/dbusadaptor.h b/src/plugins/General/dbuscontrol/dbusadaptor.h index 942e0b9ec..e02142b9b 100644 --- a/src/plugins/General/dbuscontrol/dbusadaptor.h +++ b/src/plugins/General/dbuscontrol/dbusadaptor.h @@ -33,6 +33,16 @@ Q_OBJECT Q_CLASSINFO("D-Bus Interface", "org.qmmp.dbus") Q_PROPERTY(int volume READ volume WRITE setVolume) Q_PROPERTY(int balance READ balance WRITE setBalance) +Q_PROPERTY(int length READ length) +Q_PROPERTY(int year READ year) +Q_PROPERTY(QString title READ title) +Q_PROPERTY(QString artist READ artist) +Q_PROPERTY(QString album READ album) +Q_PROPERTY(QString comment READ comment) +Q_PROPERTY(QString genre READ genre) +Q_PROPERTY(bool isPlaying READ isPlaying) +Q_PROPERTY(bool isPaused READ isPaused) +Q_PROPERTY(bool isStopped READ isStopped) public: DBUSAdaptor(Control *ctrl, QObject *parent = 0); @@ -43,6 +53,21 @@ public: void setVolume(int); int balance(); void setBalance(int); + int length(); + int year(); + QString title(); + QString artist(); + QString album(); + QString comment(); + QString genre(); + bool isPlaying(); + bool isPaused(); + bool isStopped(); + +signals: + void started(); + void paused(); + void stopped(); public slots: void play(); @@ -50,8 +75,12 @@ public slots: void next(); void previous(); void pause(); + void toggleVisibility(); void exit(); +private slots: + void processState(); + private: Control *m_control; }; |
