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

Diff of /smsdaemon/ModemTransceiver.h

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

revision 59 by torben, Wed Jun 11 19:42:24 2008 UTC revision 63 by torben, Thu Jun 12 12:43:29 2008 UTC
# Line 15  class SerialPort; Line 15  class SerialPort;
15  class IGsmModem  class IGsmModem
16  {  {
17  public:  public:
18          virtual void SendSms(std::string to, std::string message) = 0;          virtual void SendSms(std::string to, std::string message, bool allowMultipart) = 0;
19          virtual ~IGsmModem() {}          virtual ~IGsmModem() {}
20  };  };
21    
# Line 27  public: Line 27  public:
27    
28          void Init();          void Init();
29    
30          virtual void SendSms(std::string to, std::string message);          virtual void SendSms(std::string to, std::string message, bool allowMultipart);
31          void SendSmsPdu(std::string pdu, int len);          void SendSmsPdu(std::string pdu, int len);
32    
33          std::vector<SMS> ReadSms(bool readAll=false);          std::vector<SMS> ReadSms(bool readAll=false);
# Line 44  private: Line 44  private:
44  class DebugGsmModem : public IGsmModem  class DebugGsmModem : public IGsmModem
45  {  {
46  public:  public:
47          virtual void SendSms(std::string to, std::string message)          virtual void SendSms(std::string to, std::string message, bool allowMultipart)
48                  {_to=to; _message = message;}                  {_to=to; _message = message; _multipart = allowMultipart;}
49    
50          std::string GetTo() {return _to;}          std::string GetTo() {return _to;}
51          std::string GetMessage() {return _message;}          std::string GetMessage() {return _message;}
52            bool GetMultipart() {return _multipart;}
53  private:  private:
54          std::string _to;          std::string _to;
55          std::string _message;          std::string _message;
56            bool _multipart;
57  };  };
58    
59  #endif // __GSMMODEM_H__  #endif // __GSMMODEM_H__

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

  ViewVC Help
Powered by ViewVC 1.1.20