/[projects]/smsdaemon/Plugin.h
ViewVC logotype

Diff of /smsdaemon/Plugin.h

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

revision 28 by torben, Mon Jun 9 20:56:03 2008 UTC revision 44 by torben, Wed Jun 11 08:25:34 2008 UTC
# Line 9  Line 9 
9    
10  #include "Sms.h"  #include "Sms.h"
11    
12  class GsmModem;  class IGsmModem;
13    
14  class Plugin  class Plugin
15  {  {
# Line 21  public: Line 21  public:
21           * Note: the plugin is responsible for parsing and validating the arguments,           * Note: the plugin is responsible for parsing and validating the arguments,
22           * and if necessary write a error message back to the user.           * and if necessary write a error message back to the user.
23           */           */
24          virtual void Execute(GsmModem& modem, SMS& sms) = 0;          virtual void Execute(IGsmModem& modem, SMS& sms) = 0;
25    
26          /*          /*
27           * returns the command that triggers this plugin, for example:  "myplugin"           * returns the command that triggers this plugin, for example:  "myplugin"
# Line 35  public: Line 35  public:
35    
36          virtual ~Plugin() {}          virtual ~Plugin() {}
37  protected:  protected:
38          std::string _description;  
39          std::string _command;          std::string _command;
40            std::string _description;
41  };  };
42    
43    

Legend:
Removed from v.28  
changed lines
  Added in v.44

  ViewVC Help
Powered by ViewVC 1.1.20