25 |
virtual void SendSms(std::string to, std::string message, bool allowMultipart); |
virtual void SendSms(std::string to, std::string message, bool allowMultipart); |
26 |
void SendSmsPdu(std::string pdu, int len); |
void SendSmsPdu(std::string pdu, int len); |
27 |
|
|
28 |
std::vector<SMS> ReadSms(bool readAll=false); |
virtual std::vector<SMS> ReadSms(bool readAll=false); |
29 |
void DeleteSms(std::string smsIndex); |
|
30 |
int DeleteAllSms(); |
virtual void DeleteSms(std::string smsIndex); |
31 |
|
virtual int DeleteAllSms(); |
32 |
private: |
private: |
33 |
std::string GetResponse(); |
std::string GetResponse(); |
34 |
std::string Command(std::string command, std::string term = "OK\r\n"); |
std::string Command(std::string command, std::string term = "OK\r\n"); |
47 |
DebugGsmModem(bool print) : _print(print) {} |
DebugGsmModem(bool print) : _print(print) {} |
48 |
|
|
49 |
|
|
50 |
|
virtual std::vector<SMS> ReadSms(bool readAll=false); |
51 |
virtual void SendSms(std::string to, std::string message, bool allowMultipart); |
virtual void SendSms(std::string to, std::string message, bool allowMultipart); |
52 |
|
|
53 |
|
virtual void DeleteSms(std::string smsIndex) {} |
54 |
|
virtual int DeleteAllSms() { return 0;} |
55 |
|
|
56 |
|
|
57 |
|
|
58 |
std::string GetTo() {return _to;} |
std::string GetTo() {return _to;} |
59 |
std::string GetMessage() {return _message;} |
std::string GetMessage() {return _message;} |
60 |
bool GetMultipart() {return _multipart;} |
bool GetMultipart() {return _multipart;} |