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

Diff of /smsdaemon/GsmModem.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 53 by torben, Wed Jun 11 12:41:10 2008 UTC revision 59 by torben, Wed Jun 11 19:42:24 2008 UTC
# Line 25  public: Line 25  public:
25          GsmModem(SerialPort& serialport);          GsmModem(SerialPort& serialport);
26          virtual ~GsmModem() {}          virtual ~GsmModem() {}
27    
28            void Init();
29    
30          virtual void SendSms(std::string to, std::string message);          virtual void SendSms(std::string to, std::string message);
31            void SendSmsPdu(std::string pdu, int len);
32    
33          std::vector<SMS> ReadSms(bool readAll=false);          std::vector<SMS> ReadSms(bool readAll=false);
34          void DeleteSms(std::string smsIndex);          void DeleteSms(std::string smsIndex);
35          int DeleteAllSms();          int DeleteAllSms();
36  private:  private:
         void Init();  
37          std::string GetResponse();          std::string GetResponse();
38          std::string Command(std::string command, std::string term = "OK\r\n");          std::string Command(std::string command, std::string term = "OK\r\n");
39    
40            bool _timeout;
41          SerialPort& m_port;          SerialPort& m_port;
42  };  };
43    

Legend:
Removed from v.53  
changed lines
  Added in v.59

  ViewVC Help
Powered by ViewVC 1.1.20