/[projects]/smsdaemon/SmsToolTransceiver.h
ViewVC logotype

Contents of /smsdaemon/SmsToolTransceiver.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 168 - (show annotations) (download)
Tue Dec 9 21:44:15 2008 UTC (15 years, 5 months ago) by torben
File MIME type: text/plain
File size: 669 byte(s)
1) SmsTool, outgoingdir - use .LOCK files
2) SmsTool: make it possible to configure inbox and outgoing directories
3) Value: make some extra data accessor functions


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

  ViewVC Help
Powered by ViewVC 1.1.20