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

Diff of /smsdaemon/Plugin.h

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

revision 184 by torben, Fri Dec 12 14:06:11 2008 UTC revision 196 by torben, Thu Dec 18 06:53:29 2008 UTC
# Line 18  public: Line 18  public:
18    
19          /* Called when a incomming sms triggers this plugin.          /* Called when a incomming sms triggers this plugin.
20           * Use the conversation object to write the response.           * Use the conversation object to write the response.
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(ISmsTransceiver& modem, SMS& sms) = 0;          virtual void Execute(ISmsTransceiver& modem, SMS& sms) = 0;
# Line 26  public: Line 26  public:
26          /*          /*
27           * returns the command that triggers this plugin, for example:  "myplugin"           * returns the command that triggers this plugin, for example:  "myplugin"
28           */           */
29          virtual std::string GetCommand() {return _command;}          virtual std::string GetCommand()
30            {
31                    return _command;
32            }
33    
34          /*          /*
35           * Returns a desciption of this plugin - displayed when somebody calls "help"           * Returns a desciption of this plugin - displayed when somebody calls "help"
36           */           */
37          virtual std::string GetDescription() {return _description;}          virtual std::string GetDescription()
38            {
39                    return _description;
40            }
41    
42    
43          /*          /*
44       *  A helper plugin is not accessible to the client but can be used to build a proxy / decorater plugin           *  A helper plugin is not accessible to the client but can be used to build a proxy / decorater plugin
45       */           */
46          virtual bool IsHelper() {return false;}          virtual bool IsHelper()
47            {
48                    return false;
49            }
50    
51          virtual ~Plugin() {}          virtual ~Plugin() {}
52  protected:  protected:

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

  ViewVC Help
Powered by ViewVC 1.1.20