/[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 137 by torben, Sun Dec 7 11:08:31 2008 UTC revision 158 by torben, Mon Dec 8 21:49:49 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"
6    
7  ListPlugin::ListPlugin()  ListPlugin::ListPlugin()
# 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 23  void ListPlugin::Execute(IGsmModem& mode Line 23  void ListPlugin::Execute(IGsmModem& mode
23                  reply += (*it)->GetCommand() + "\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.137  
changed lines
  Added in v.158

  ViewVC Help
Powered by ViewVC 1.1.20