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

Annotation of /smsdaemon/ModemTransceiver.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 149 - (hide annotations) (download)
Sun Dec 7 20:58:41 2008 UTC (15 years, 5 months ago) by torben
File MIME type: text/plain
File size: 811 byte(s)
Refactoring / rename:
        IGsmModem -> ISmsTransceiver
        GsmModem -> ModemTransceiver
        DebugGsmModem -> DebugTransceiver

Move DebugTransceiver to its own files.


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 59 void SendSmsPdu(std::string pdu, int len);
26    
27 torben 144 virtual std::vector<SMS> ReadSms(bool readAll=false);
28    
29     virtual void DeleteSms(std::string smsIndex);
30     virtual int DeleteAllSms();
31 torben 26 private:
32     std::string GetResponse();
33     std::string Command(std::string command, std::string term = "OK\r\n");
34    
35 torben 105 void HandlePincode();
36     void WaitForSimcard();
37    
38 torben 57 bool _timeout;
39 torben 26 SerialPort& m_port;
40     };
41    
42    
43 torben 149 #endif // __MODEMTRANSCEIVER_H__

Properties

Name Value
svn:mergeinfo

  ViewVC Help
Powered by ViewVC 1.1.20