--- smsdaemon/plugins/ListPlugin.cpp 2008/12/01 12:08:23 118 +++ smsdaemon/plugins/ListPlugin.cpp 2008/12/18 06:53:29 196 @@ -1,15 +1,15 @@ #include "ListPlugin.h" -#include "IGsmModem.h" +#include "ISmsTransceiver.h" #include "Sms.h" -#include "common.h" +#include "Common.h" #include "PluginManager.h" ListPlugin::ListPlugin() - : Plugin("list", "return a list of all loaded plugins") + : Plugin("list", "return a list of all loaded plugins") { } -void ListPlugin::Execute(IGsmModem& modem, SMS& sms) +void ListPlugin::Execute(ISmsTransceiver& modem, SMS& sms) { std::vector plugins = Common::instance()->GetPluginManager()->GetPluginList(); @@ -20,8 +20,8 @@ std::string reply = "Loaded plugins:\n"; for (it = plugins.begin(); it != plugins.end(); ++it) { - reply += (*it)->GetCommand() + " - " + (*it)->GetDescription() + "\n"; + reply += (*it)->GetCommand() + "\n"; } - modem.SendSms(sms.sender, reply, true); + modem.SendSms(sms.GetSender(), reply, true); }