1 |
torben |
151 |
#ifndef __SMSTOOLTRANSCEIVER_H__ |
2 |
|
|
#define __SMSTOOLTRANSCEIVER_H__ |
3 |
|
|
|
4 |
|
|
#include "ISmsTransceiver.h" |
5 |
|
|
|
6 |
|
|
class SmsToolTransceiver : public ISmsTransceiver |
7 |
|
|
{ |
8 |
|
|
public: |
9 |
torben |
168 |
SmsToolTransceiver(); |
10 |
|
|
|
11 |
torben |
151 |
virtual void SendSms(std::string to, std::string message, bool allowMultipart); |
12 |
|
|
virtual std::vector<SMS> ReadSms(bool readAll = false); |
13 |
|
|
|
14 |
|
|
virtual int DeleteAllSms(); |
15 |
|
|
virtual ~SmsToolTransceiver() {} |
16 |
|
|
|
17 |
|
|
private: |
18 |
|
|
SMS ParseFile(std::string path); |
19 |
|
|
void ParseHeaders(std::string& headerstring, SMS& sms); |
20 |
|
|
std::string CreateFilename(); |
21 |
|
|
|
22 |
torben |
168 |
std::string inboxdir; |
23 |
|
|
std::string outgoingdir; |
24 |
torben |
151 |
|
25 |
|
|
}; |
26 |
|
|
|
27 |
|
|
|
28 |
|
|
#endif // __SMSTOOLTRANSCEIVER_H__ |