summaryrefslogtreecommitdiff
path: root/src/metawatchtransport.h
blob: 305f30ef87bc7fbf50e8bcb842866e547fdb3051 (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
#ifndef METAWATCHTRANSPORT_H
#define METAWATCHTRANSPORT_H

#include <QObject>

class MetaWatchTransport : public QObject
{
	Q_OBJECT
public:
	explicit MetaWatchTransport(QObject *parent = 0);

public:
	virtual bool isDeviceConnected() const = 0;
	virtual void sendMessage(quint8 type, quint8 options, const QByteArray &payload) = 0;

public slots:
	virtual void connectDevice() = 0;
	virtual void disconnectDevice() = 0;

signals:
	void connected();
	void disconnected();
	void messageReceived(quint8 type, quint8 options, const QByteArray &payload);
};

#endif // METAWATCHTRANSPORT_H