blob: 7af976a67aa5e80cbd95b360eaeac34a4f0198e6 (
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
38
39
40
41
42
|
#ifndef GATOSERVICE_H
#define GATOSERVICE_H
#include <QtCore/QSharedDataPointer>
#include "gatouuid.h"
class GatoServicePrivate;
class GatoCharacteristic;
class LIBGATO_EXPORT GatoService
{
Q_GADGET
public:
GatoService();
GatoService(const GatoService &o);
~GatoService();
GatoUUID uuid() const;
void setUuid(const GatoUUID &uuid);
GatoHandle startHandle() const;
void setStartHandle(GatoHandle handle);
GatoHandle endHandle() const;
void setEndHandle(GatoHandle handle);
QList<GatoCharacteristic> characteristics() const;
bool containsCharacteristic(const GatoCharacteristic& characteristic) const;
bool containsCharacteristic(GatoHandle handle) const;
GatoCharacteristic getCharacteristic(GatoHandle handle) const;
void addCharacteristic(const GatoCharacteristic& characteristic);
void removeCharacteristic(const GatoCharacteristic& characteristic);
void clearCharacteristics();
GatoService & operator=(const GatoService &o);
private:
QSharedDataPointer<GatoServicePrivate> d;
};
#endif // GATOSERVICE_H
|