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

Diff of /smsdaemon/plugins/ShellExecPlugin.cpp

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

revision 142 by torben, Sun Dec 7 15:51:02 2008 UTC revision 196 by torben, Thu Dec 18 06:53:29 2008 UTC
# Line 1  Line 1 
1  #include "ShellExecPlugin.h"  #include "ShellExecPlugin.h"
2  #include "IGsmModem.h"  #include "ISmsTransceiver.h"
3  #include "Sms.h"  #include "Sms.h"
4    
5  #include "util.h"  #include "Util.h"
6    
7  ShellExecPlugin::ShellExecPlugin(std::string pluginCommand, std::string exeCommand, bool allowParameters, bool returnOutput)  ShellExecPlugin::ShellExecPlugin(std::string pluginCommand, std::string exeCommand, bool allowParameters, bool returnOutput)
8    : Plugin(pluginCommand, std::string("ShellExec: ")+exeCommand ),                  : Plugin(pluginCommand, std::string("ShellExec: ")+exeCommand ),
9    _exeCommand(exeCommand),                  _exeCommand(exeCommand),
10    _allowParameters(allowParameters),                  _allowParameters(allowParameters),
11    _returnOutput(returnOutput)                  _returnOutput(returnOutput)
12  {  {
13  }  }
14    
15  void ShellExecPlugin::Execute(IGsmModem& modem, SMS& sms)  void ShellExecPlugin::Execute(ISmsTransceiver& modem, SMS& sms)
16  {  {
17          std::string command = _exeCommand;          std::string command = _exeCommand;
18    
# Line 47  void ShellExecPlugin::Execute(IGsmModem& Line 47  void ShellExecPlugin::Execute(IGsmModem&
47                  else                  else
48                          message = "OK";                          message = "OK";
49          }          }
50            
51          modem.SendSms(sms.GetSender(), message, false );          modem.SendSms(sms.GetSender(), message, false );
52  }  }

Legend:
Removed from v.142  
changed lines
  Added in v.196

  ViewVC Help
Powered by ViewVC 1.1.20