
Go to the source code of this file.
Data Structures | |
| class | CmdGeneric |
| Base class for skins commands. More... | |
Defines | |
| #define | DEFINE_COMMAND(name, type) |
| Macro to define the prototype of simple commands. | |
| #define | DEFINE_CALLBACK(parent, action) |
| Macro to define a "callback" command inside a class. | |
Typedefs | |
| typedef CountedPtr< CmdGeneric > | CmdGenericPtr |
| #define DEFINE_CALLBACK | ( | parent, | |||
| action | ) |
Value:
class Cmd##action: public CmdGeneric \ { \ public: \ Cmd##action( parent *pParent ): \ CmdGeneric( pParent->getIntf() ), m_pParent( pParent ) { } \ virtual ~Cmd##action() { } \ virtual void execute(); \ virtual string getType() const { return "Cmd" #parent #action; } \ private: \ parent *m_pParent; \ } m_cmd##action; \ friend class Cmd##action;
| #define DEFINE_COMMAND | ( | name, | |||
| type | ) |
Value:
class Cmd##name: public CmdGeneric \ { public: \ Cmd##name( intf_thread_t *pIntf ): CmdGeneric( pIntf ) { } \ virtual ~Cmd##name() { } \ virtual void execute(); \ virtual string getType() const { return type; } \ };
| typedef CountedPtr<CmdGeneric> CmdGenericPtr |
1.5.6