/[projects]/smsdaemon/plugins/ListPlugin.cpp
ViewVC logotype

Diff of /smsdaemon/plugins/ListPlugin.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 118 by torben, Mon Dec 1 12:08:23 2008 UTC revision 149 by torben, Sun Dec 7 20:58:41 2008 UTC
# Line 1  Line 1 
1  #include "ListPlugin.h"  #include "ListPlugin.h"
2  #include "IGsmModem.h"  #include "ISmsTransceiver.h"
3  #include "Sms.h"  #include "Sms.h"
4  #include "common.h"  #include "common.h"
5  #include "PluginManager.h"  #include "PluginManager.h"
# Line 9  ListPlugin::ListPlugin() Line 9  ListPlugin::ListPlugin()
9  {  {
10  }  }
11    
12  void ListPlugin::Execute(IGsmModem& modem, SMS& sms)  void ListPlugin::Execute(ISmsTransceiver& modem, SMS& sms)
13  {  {
14    
15          std::vector<Plugin*> plugins = Common::instance()->GetPluginManager()->GetPluginList();          std::vector<Plugin*> plugins = Common::instance()->GetPluginManager()->GetPluginList();
# Line 20  void ListPlugin::Execute(IGsmModem& mode Line 20  void ListPlugin::Execute(IGsmModem& mode
20          std::string reply = "Loaded plugins:\n";          std::string reply = "Loaded plugins:\n";
21          for (it = plugins.begin(); it != plugins.end(); ++it)          for (it = plugins.begin(); it != plugins.end(); ++it)
22          {          {
23                  reply += (*it)->GetCommand() + " - " + (*it)->GetDescription() + "\n";                  reply += (*it)->GetCommand() + "\n";
24          }          }
25    
26          modem.SendSms(sms.sender, reply, true);          modem.SendSms(sms.GetSender(), reply, true);
27  }  }

Legend:
Removed from v.118  
changed lines
  Added in v.149

  ViewVC Help
Powered by ViewVC 1.1.20