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

Diff of /smsdaemon/ModemTransceiver.h

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

revision 67 by torben, Thu Jun 12 15:23:11 2008 UTC revision 105 by torben, Tue Jun 17 17:47:37 2008 UTC
# Line 4  Line 4 
4  /* using http://sourceforge.net/projects/libserial/  /* using http://sourceforge.net/projects/libserial/
5   */   */
6    
7    #include "IGsmModem.h"
8    
9  #include <string>  #include <string>
10  #include <vector>  #include <vector>
# Line 12  Line 13 
13    
14  class SerialPort;  class SerialPort;
15    
 class IGsmModem  
 {  
 public:  
         virtual void SendSms(std::string to, std::string message, bool allowMultipart) = 0;  
         virtual ~IGsmModem() {}  
 };  
16    
17  class GsmModem : public IGsmModem  class GsmModem : public IGsmModem
18  {  {
# Line 37  private: Line 32  private:
32          std::string GetResponse();          std::string GetResponse();
33          std::string Command(std::string command, std::string term = "OK\r\n");          std::string Command(std::string command, std::string term = "OK\r\n");
34    
35            void HandlePincode();
36            void WaitForSimcard();
37    
38          bool _timeout;          bool _timeout;
39          SerialPort& m_port;          SerialPort& m_port;
40  };  };

Legend:
Removed from v.67  
changed lines
  Added in v.105

  ViewVC Help
Powered by ViewVC 1.1.20