6 |
class SmsToolTransceiver : public ISmsTransceiver |
class SmsToolTransceiver : public ISmsTransceiver |
7 |
{ |
{ |
8 |
public: |
public: |
9 |
virtual void SendSms(std::string to, std::string message, bool allowMultipart); |
SmsToolTransceiver(); |
|
virtual std::vector<SMS> ReadSms(bool readAll = false); |
|
10 |
|
|
11 |
virtual void DeleteSms(std::string smsIndex); |
virtual void SendSms(std::string to, std::string message, bool allowMultipart); |
12 |
virtual int DeleteAllSms(); |
virtual std::vector<SMS> ReadSms(bool readAll = false); |
13 |
virtual ~SmsToolTransceiver() {} |
|
14 |
|
virtual ~SmsToolTransceiver() {} |
15 |
|
|
16 |
private: |
private: |
17 |
SMS ParseFile(std::string path); |
SMS ParseFile(std::string path); |
18 |
void ParseHeaders(std::string& headerstring, SMS& sms); |
void ParseHeaders(std::string& headerstring, SMS& sms); |
19 |
std::string CreateFilename(); |
std::string CreateFilename(); |
20 |
|
|
21 |
|
std::string inboxdir; |
22 |
|
std::string outgoingdir; |
23 |
|
|
24 |
}; |
}; |
25 |
|
|