1 |
torben |
149 |
#ifndef __DEBUGTRANSCEIVER_H__ |
2 |
|
|
#define __DEBUGTRANSCEIVER_H__ |
3 |
|
|
|
4 |
|
|
|
5 |
|
|
#include "ISmsTransceiver.h" |
6 |
|
|
|
7 |
|
|
#include <string> |
8 |
|
|
#include <vector> |
9 |
|
|
|
10 |
|
|
#include "Sms.h" |
11 |
|
|
|
12 |
|
|
|
13 |
|
|
class DebugTransceiver : public ISmsTransceiver |
14 |
|
|
{ |
15 |
|
|
public: |
16 |
|
|
DebugTransceiver() : _print(false) {} |
17 |
|
|
DebugTransceiver(bool print) : _print(print) {} |
18 |
|
|
virtual ~DebugTransceiver() {} |
19 |
|
|
|
20 |
|
|
virtual std::vector<SMS> ReadSms(bool readAll=false); |
21 |
|
|
virtual void SendSms(std::string to, std::string message, bool allowMultipart); |
22 |
|
|
|
23 |
|
|
virtual int DeleteAllSms() { return 0;} |
24 |
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
std::string GetTo() {return _to;} |
28 |
|
|
std::string GetMessage() {return _message;} |
29 |
|
|
bool GetMultipart() {return _multipart;} |
30 |
|
|
private: |
31 |
|
|
std::string _to; |
32 |
|
|
std::string _message; |
33 |
|
|
bool _multipart; |
34 |
|
|
bool _print; |
35 |
|
|
}; |
36 |
|
|
|
37 |
|
|
|
38 |
|
|
#endif // __DEBUGTRANSCEIVER_H__ |