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

Annotation of /smsdaemon/ModemTransceiver.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 210 - (hide annotations) (download)
Sun Dec 21 21:14:40 2008 UTC (15 years, 5 months ago) by torben
File MIME type: text/plain
File size: 898 byte(s)
No usage for DeleteAllSms(), since all incoming messages should be serviced

1 torben 149 #ifndef __MODEMTRANSCEIVER_H__
2     #define __MODEMTRANSCEIVER_H__
3 torben 26
4    
5    
6 torben 149 #include "ISmsTransceiver.h"
7    
8 torben 26 #include <string>
9     #include <vector>
10    
11     #include "Sms.h"
12    
13 torben 53 class SerialPort;
14 torben 44
15    
16 torben 149 class ModemTransceiver : public ISmsTransceiver
17 torben 44 {
18     public:
19 torben 149 ModemTransceiver(SerialPort& serialport);
20     virtual ~ModemTransceiver() {}
21 torben 26
22 torben 57 void Init();
23 torben 26
24 torben 63 virtual void SendSms(std::string to, std::string message, bool allowMultipart);
25 torben 196 void SendSmsPdu(std::string pdu, int len);
26 torben 59
27 torben 144 virtual std::vector<SMS> ReadSms(bool readAll=false);
28    
29 torben 210 void DeleteSms(std::string smsIndex);
30 torben 26 private:
31     std::string GetResponse();
32     std::string Command(std::string command, std::string term = "OK\r\n");
33    
34 torben 180 //decode an CMGF=1 text string
35     SMS FromRawString(const std::string& input);
36     SMS FromPduString(const std::string& input);
37    
38 torben 105 void HandlePincode();
39     void WaitForSimcard();
40    
41 torben 57 bool _timeout;
42 torben 26 SerialPort& m_port;
43     };
44    
45    
46 torben 149 #endif // __MODEMTRANSCEIVER_H__

Properties

Name Value
svn:mergeinfo

  ViewVC Help
Powered by ViewVC 1.1.20