--- smsdaemon/ModemTransceiver.h 2008/12/07 20:58:41 149 +++ smsdaemon/ModemTransceiver.h 2008/12/18 06:53:29 196 @@ -22,7 +22,7 @@ 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); @@ -32,6 +32,10 @@ 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();