--- smsdaemon/plugins/ShellExecPlugin.cpp 2008/12/07 15:51:02 142 +++ smsdaemon/plugins/ShellExecPlugin.cpp 2008/12/18 06:53:29 196 @@ -1,18 +1,18 @@ #include "ShellExecPlugin.h" -#include "IGsmModem.h" +#include "ISmsTransceiver.h" #include "Sms.h" -#include "util.h" +#include "Util.h" ShellExecPlugin::ShellExecPlugin(std::string pluginCommand, std::string exeCommand, bool allowParameters, bool returnOutput) - : Plugin(pluginCommand, std::string("ShellExec: ")+exeCommand ), - _exeCommand(exeCommand), - _allowParameters(allowParameters), - _returnOutput(returnOutput) + : Plugin(pluginCommand, std::string("ShellExec: ")+exeCommand ), + _exeCommand(exeCommand), + _allowParameters(allowParameters), + _returnOutput(returnOutput) { } -void ShellExecPlugin::Execute(IGsmModem& modem, SMS& sms) +void ShellExecPlugin::Execute(ISmsTransceiver& modem, SMS& sms) { std::string command = _exeCommand; @@ -47,6 +47,6 @@ else message = "OK"; } - + modem.SendSms(sms.GetSender(), message, false ); }