--- smsdaemon/plugins/EchoPlugin.cpp 2008/06/09 20:56:03 28 +++ smsdaemon/plugins/EchoPlugin.cpp 2008/12/18 06:53:29 196 @@ -1,12 +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") + : 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 ); }