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