diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2016-02-11 23:55:16 +0100 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2016-02-11 23:55:16 +0100 |
| commit | 29aaea2d80a9eb1715b6cddfac2d2aacf76358bd (patch) | |
| tree | 012795b6bec16c72f38d33cff46324c9a0225868 /rockworkd/libpebble/musicendpoint.h | |
launchpad ~mzanetti/rockwork/trunk r87
Diffstat (limited to 'rockworkd/libpebble/musicendpoint.h')
| -rw-r--r-- | rockworkd/libpebble/musicendpoint.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/rockworkd/libpebble/musicendpoint.h b/rockworkd/libpebble/musicendpoint.h new file mode 100644 index 0000000..1978e46 --- /dev/null +++ b/rockworkd/libpebble/musicendpoint.h @@ -0,0 +1,37 @@ +#ifndef MUSICENDPOINT_H +#define MUSICENDPOINT_H + +#include "musicmetadata.h" +#include "enums.h" + +#include <QObject> + +class Pebble; +class WatchConnection; + +class MusicEndpoint : public QObject +{ + Q_OBJECT +public: + explicit MusicEndpoint(Pebble *pebble, WatchConnection *connection); + +public slots: + void setMusicMetadata(const MusicMetaData &metaData); + +private slots: + void handleMessage(const QByteArray &data); + +signals: + void musicControlPressed(MusicControlButton button); + +private: + void writeMetadata(); + +private: + Pebble *m_pebble; + WatchConnection *m_watchConnection; + + MusicMetaData m_metaData; +}; + +#endif // MUSICENDPOINT_H |
