From 625b2712c1c9fa46ba43684a24a477aa60d88089 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 18 Mar 2008 11:17:32 +0000 Subject: 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 --- src/plugins/General/dbuscontrol/dbusadaptor.h | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'src/plugins/General/dbuscontrol/dbusadaptor.h') 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; }; -- cgit v1.2.3-13-gbd6f