--- smsdaemon/GsmModem.h 2008/12/07 16:27:34 144 +++ smsdaemon/ModemTransceiver.h 2008/12/07 20:58:41 149 @@ -1,10 +1,9 @@ -#ifndef __GSMMODEM_H__ -#define __GSMMODEM_H__ +#ifndef __MODEMTRANSCEIVER_H__ +#define __MODEMTRANSCEIVER_H__ -/* using http://sourceforge.net/projects/libserial/ - */ -#include "IGsmModem.h" + +#include "ISmsTransceiver.h" #include #include @@ -14,11 +13,11 @@ class SerialPort; -class GsmModem : public IGsmModem +class ModemTransceiver : public ISmsTransceiver { public: - GsmModem(SerialPort& serialport); - virtual ~GsmModem() {} + ModemTransceiver(SerialPort& serialport); + virtual ~ModemTransceiver() {} void Init(); @@ -40,29 +39,5 @@ SerialPort& m_port; }; -class DebugGsmModem : public IGsmModem -{ -public: - DebugGsmModem() : _print(false) {} - DebugGsmModem(bool print) : _print(print) {} - - - virtual std::vector ReadSms(bool readAll=false); - virtual void SendSms(std::string to, std::string message, bool allowMultipart); - - virtual void DeleteSms(std::string smsIndex) {} - virtual int DeleteAllSms() { return 0;} - - - - std::string GetTo() {return _to;} - std::string GetMessage() {return _message;} - bool GetMultipart() {return _multipart;} -private: - std::string _to; - std::string _message; - bool _multipart; - bool _print; -}; -#endif // __GSMMODEM_H__ +#endif // __MODEMTRANSCEIVER_H__