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

Diff of /smsdaemon/ModemTransceiver.h

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

smsdaemon/GsmModem.h revision 144 by torben, Sun Dec 7 16:27:34 2008 UTC smsdaemon/ModemTransceiver.h revision 149 by torben, Sun Dec 7 20:58:41 2008 UTC
# Line 1  Line 1 
1  #ifndef __GSMMODEM_H__  #ifndef __MODEMTRANSCEIVER_H__
2  #define __GSMMODEM_H__  #define __MODEMTRANSCEIVER_H__
3    
 /* using http://sourceforge.net/projects/libserial/  
  */  
4    
5  #include "IGsmModem.h"  
6    #include "ISmsTransceiver.h"
7    
8  #include <string>  #include <string>
9  #include <vector>  #include <vector>
# Line 14  Line 13 
13  class SerialPort;  class SerialPort;
14    
15    
16  class GsmModem : public IGsmModem  class ModemTransceiver : public ISmsTransceiver
17  {  {
18  public:  public:
19          GsmModem(SerialPort& serialport);          ModemTransceiver(SerialPort& serialport);
20          virtual ~GsmModem() {}          virtual ~ModemTransceiver() {}
21    
22          void Init();          void Init();
23    
# Line 40  private: Line 39  private:
39          SerialPort& m_port;          SerialPort& m_port;
40  };  };
41    
 class DebugGsmModem : public IGsmModem  
 {  
 public:  
         DebugGsmModem() : _print(false) {}  
         DebugGsmModem(bool print) : _print(print) {}  
   
   
         virtual std::vector<SMS> ReadSms(bool readAll=false);  
         virtual void SendSms(std::string to, std::string message, bool allowMultipart);  
   
     virtual void DeleteSms(std::string smsIndex) {}  
     virtual int DeleteAllSms() { return 0;}  
   
   
   
         std::string GetTo() {return _to;}  
         std::string GetMessage() {return _message;}  
         bool GetMultipart() {return _multipart;}  
 private:  
         std::string _to;  
         std::string _message;  
         bool _multipart;  
         bool _print;  
 };  
42    
43  #endif // __GSMMODEM_H__  #endif // __MODEMTRANSCEIVER_H__

Legend:
Removed from v.144  
changed lines
  Added in v.149

  ViewVC Help
Powered by ViewVC 1.1.20