--- smsdaemon/plugins/EchoPlugin.cpp 2008/06/09 18:15:53 26 +++ smsdaemon/plugins/EchoPlugin.cpp 2008/12/18 06:53:29 196 @@ -1,8 +1,13 @@ #include "EchoPlugin.h" -#include "GsmModem.h" +#include "ISmsTransceiver.h" +#include "Sms.h" +EchoPlugin::EchoPlugin() + : Plugin("echo", "Echoes all extra text back to the sender") +{ +} -void EchoPlugin::Execute(GsmModem& modem, SMS& sms) +void EchoPlugin::Execute(ISmsTransceiver& modem, SMS& sms) { - modem.SendSms(sms.sender, GetSmsData(sms) ); + modem.SendSms(sms.GetSender(), sms.ExtractParameters(), false ); }