--- smsdaemon/GsmModem.h 2008/06/11 08:25:34 44 +++ smsdaemon/GsmModem.h 2008/06/11 19:42:24 59 @@ -8,9 +8,9 @@ #include #include -#include "SerialPort.h" #include "Sms.h" +class SerialPort; class IGsmModem { @@ -25,17 +25,19 @@ GsmModem(SerialPort& serialport); virtual ~GsmModem() {} + void Init(); virtual void SendSms(std::string to, std::string message); + void SendSmsPdu(std::string pdu, int len); + std::vector ReadSms(bool readAll=false); void DeleteSms(std::string smsIndex); int DeleteAllSms(); private: - void Init(); std::string GetResponse(); std::string Command(std::string command, std::string term = "OK\r\n"); - + bool _timeout; SerialPort& m_port; };