summaryrefslogtreecommitdiff
path: root/rockworkd/libpebble/musicendpoint.h
blob: 1978e46a2c33e9468b5589572ff718ad0b5ce2c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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