--- smsdaemon/GsmModem.h 2008/06/12 15:23:11 67 +++ smsdaemon/GsmModem.h 2008/06/17 17:47:37 105 @@ -4,6 +4,7 @@ /* using http://sourceforge.net/projects/libserial/ */ +#include "IGsmModem.h" #include #include @@ -12,12 +13,6 @@ class SerialPort; -class IGsmModem -{ -public: - virtual void SendSms(std::string to, std::string message, bool allowMultipart) = 0; - virtual ~IGsmModem() {} -}; class GsmModem : public IGsmModem { @@ -37,6 +32,9 @@ std::string GetResponse(); std::string Command(std::string command, std::string term = "OK\r\n"); + void HandlePincode(); + void WaitForSimcard(); + bool _timeout; SerialPort& m_port; };