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 |
|
|
|
virtual void DeleteSms(std::string smsIndex) {} |
|
|
virtual int DeleteAllSms() { return 0;} |
|
23 |
|
|
24 |
|
|
25 |
|
std::string GetTo() |
26 |
std::string GetTo() {return _to;} |
{ |
27 |
std::string GetMessage() {return _message;} |
return _to; |
28 |
bool GetMultipart() {return _multipart;} |
} |
29 |
|
std::string GetMessage() |
30 |
|
{ |
31 |
|
return _message; |
32 |
|
} |
33 |
|
bool GetMultipart() |
34 |
|
{ |
35 |
|
return _multipart; |
36 |
|
} |
37 |
private: |
private: |
38 |
std::string _to; |
std::string _to; |
39 |
std::string _message; |
std::string _message; |