forked from hoffmannjoern/IoT-Shield-App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TalkBack.h
49 lines (38 loc) · 964 Bytes
/
TalkBack.h
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
43
44
45
46
47
48
49
#ifndef TALKBACK_H
#define TALKBACK_H
#include <QString>
#include "ApiManager.h"
#include "ApiCommon.h"
namespace ThingSpeak {
class TalkBack
{
public:
TalkBack(ApiManager &manager);
tsid_t addCommand(const QString &commandString, quint64 position = 0);
/**
* @brief executeNextCommand Executes the next TalkBack command in the queue.
* @return Returns the command string.
*/
QString executeNextCommand();
/**
* @brief The TalkBack ID.
* @return Returns the ID of this TalkBack.
*/
tsid_t getId() const;
/**
* @brief Sets the TalkBack id.
* @param value The TalkBack id for HTTP requests
*/
void setId(const tsid_t &value);
/**
* @brief The API key for this TalkBack.
* @param value The API key to for HTTP requests.
*/
void setApiKey(const QString &value);
private:
tsid_t id;
QString apiKey;
ApiManager &manager;
};
}
#endif // TALKBACK_H