12 |
|
|
13 |
class DebugTransceiver : public ISmsTransceiver |
class DebugTransceiver : public ISmsTransceiver |
14 |
{ |
{ |
15 |
public: |
public: |
16 |
DebugTransceiver() : _print(false) {} |
DebugTransceiver() : _print(false) {} |
17 |
DebugTransceiver(bool print) : _print(print) {} |
DebugTransceiver(bool print) : _print(print) {} |
18 |
virtual ~DebugTransceiver() {} |
virtual ~DebugTransceiver() {} |
20 |
virtual std::vector<SMS> ReadSms(bool readAll=false); |
virtual std::vector<SMS> ReadSms(bool readAll=false); |
21 |
virtual void SendSms(std::string to, std::string message, bool allowMultipart); |
virtual void SendSms(std::string to, std::string message, bool allowMultipart); |
22 |
|
|
23 |
virtual int DeleteAllSms() { return 0;} |
virtual int DeleteAllSms() |
24 |
|
{ |
25 |
|
return 0; |
26 |
|
} |
27 |
|
|
28 |
|
|
29 |
|
|
30 |
std::string GetTo() {return _to;} |
std::string GetTo() |
31 |
std::string GetMessage() {return _message;} |
{ |
32 |
bool GetMultipart() {return _multipart;} |
return _to; |
33 |
|
} |
34 |
|
std::string GetMessage() |
35 |
|
{ |
36 |
|
return _message; |
37 |
|
} |
38 |
|
bool GetMultipart() |
39 |
|
{ |
40 |
|
return _multipart; |
41 |
|
} |
42 |
private: |
private: |
43 |
std::string _to; |
std::string _to; |
44 |
std::string _message; |
std::string _message; |