--- smsdaemon/ModemTransceiver.h 2008/12/07 20:58:41 149 +++ smsdaemon/ModemTransceiver.h 2008/12/21 21:14:40 210 @@ -22,16 +22,19 @@ void Init(); virtual void SendSms(std::string to, std::string message, bool allowMultipart); - void SendSmsPdu(std::string pdu, int len); + void SendSmsPdu(std::string pdu, int len); virtual std::vector ReadSms(bool readAll=false); - virtual void DeleteSms(std::string smsIndex); - virtual int DeleteAllSms(); + void DeleteSms(std::string smsIndex); private: std::string GetResponse(); std::string Command(std::string command, std::string term = "OK\r\n"); + //decode an CMGF=1 text string + SMS FromRawString(const std::string& input); + SMS FromPduString(const std::string& input); + void HandlePincode(); void WaitForSimcard();