--- smsdaemon/Plugin.h 2008/06/09 19:22:59 27 +++ smsdaemon/Plugin.h 2008/06/09 20:56:03 28 @@ -14,6 +14,7 @@ class Plugin { public: + Plugin(std::string cmd, std::string desc); /* Called when a incomming sms triggers this plugin. * Use the conversation object to write the response. @@ -25,15 +26,17 @@ /* * returns the command that triggers this plugin, for example: "myplugin" */ - virtual std::string GetCommand() = 0; + virtual std::string GetCommand() {return _command;} /* * Returns a desciption of this plugin - displayed when somebody calls "help" */ - virtual std::string GetDescription() = 0; + virtual std::string GetDescription() {return _description;} virtual ~Plugin() {} - +protected: + std::string _description; + std::string _command; };