1 |
#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() |
24 |
{ |
25 |
return 0; |
26 |
} |
27 |
|
28 |
|
29 |
|
30 |
std::string GetTo() |
31 |
{ |
32 |
return _to; |
33 |
} |
34 |
std::string GetMessage() |
35 |
{ |
36 |
return _message; |
37 |
} |
38 |
bool GetMultipart() |
39 |
{ |
40 |
return _multipart; |
41 |
} |
42 |
private: |
43 |
std::string _to; |
44 |
std::string _message; |
45 |
bool _multipart; |
46 |
bool _print; |
47 |
}; |
48 |
|
49 |
|
50 |
#endif // __DEBUGTRANSCEIVER_H__ |