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 |
196 |
virtual void SendSms(std::string to, std::string message, bool allowMultipart); |
12 |
|
|
virtual std::vector<SMS> ReadSms(bool readAll = false); |
13 |
torben |
151 |
|
14 |
torben |
196 |
virtual ~SmsToolTransceiver() {} |
15 |
torben |
151 |
|
16 |
|
|
private: |
17 |
|
|
SMS ParseFile(std::string path); |
18 |
|
|
void ParseHeaders(std::string& headerstring, SMS& sms); |
19 |
|
|
std::string CreateFilename(); |
20 |
|
|
|
21 |
torben |
168 |
std::string inboxdir; |
22 |
|
|
std::string outgoingdir; |
23 |
torben |
151 |
|
24 |
|
|
}; |
25 |
|
|
|
26 |
|
|
|
27 |
|
|
#endif // __SMSTOOLTRANSCEIVER_H__ |