--- smsdaemon/Plugin.h 2008/06/09 20:56:03 28 +++ smsdaemon/Plugin.h 2008/12/12 14:06:11 184 @@ -7,9 +7,9 @@ * Abstract parent class for a sms-daemon plugin. */ -#include "Sms.h" -class GsmModem; +class ISmsTransceiver; +class SMS; class Plugin { @@ -21,7 +21,7 @@ * Note: the plugin is responsible for parsing and validating the arguments, * and if necessary write a error message back to the user. */ - virtual void Execute(GsmModem& modem, SMS& sms) = 0; + virtual void Execute(ISmsTransceiver& modem, SMS& sms) = 0; /* * returns the command that triggers this plugin, for example: "myplugin" @@ -33,10 +33,17 @@ */ virtual std::string GetDescription() {return _description;} + + /* + * A helper plugin is not accessible to the client but can be used to build a proxy / decorater plugin + */ + virtual bool IsHelper() {return false;} + virtual ~Plugin() {} protected: - std::string _description; + std::string _command; + std::string _description; };