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