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

Diff of /smsdaemon/Plugin.h

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

revision 27 by torben, Mon Jun 9 18:15:53 2008 UTC revision 28 by torben, Mon Jun 9 20:56:03 2008 UTC
# Line 14  class GsmModem; Line 14  class GsmModem;
14  class Plugin  class Plugin
15  {  {
16  public:  public:
17            Plugin(std::string cmd, std::string desc);
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.
# Line 25  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() = 0;          virtual std::string GetCommand() {return _command;}
30    
31          /*          /*
32           * Returns a desciption of this plugin - displayed when somebody calls "help"           * Returns a desciption of this plugin - displayed when somebody calls "help"
33           */           */
34          virtual std::string GetDescription() =  0;          virtual std::string GetDescription() {return _description;}
35    
36          virtual ~Plugin() {}          virtual ~Plugin() {}
37    protected:
38            std::string _description;
39            std::string _command;
40  };  };
41    
42    

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

  ViewVC Help
Powered by ViewVC 1.1.20