#ifndef __GSMMODEM_H__ #define __GSMMODEM_H__ /* using http://sourceforge.net/projects/libserial/ */ #include #include #include "SerialPort.h" #include "Sms.h" class GsmModem { public: GsmModem(SerialPort& serialport); virtual ~GsmModem() {} void SendSms(std::string to, std::string message); 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"); SerialPort& m_port; }; #endif // __GSMMODEM_H__