diff options
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; }; |
