Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <CallbackFunction.h>
Public Member Functions | |
virtual void | executeCallback ()=0 |
~Callback () override | |
AddonClass * | getObject () |
Public Member Functions inherited from XBMCAddon::AddonClass | |
AddonClass () | |
virtual | ~AddonClass () |
const char * | GetClassname () const |
LanguageHook * | GetLanguageHook () |
bool | isDeallocating () |
void | Release () const |
void | Acquire () const |
Protected Member Functions | |
Callback (AddonClass *_object) | |
Protected Member Functions inherited from XBMCAddon::AddonClass | |
virtual void | deallocating () |
Protected Attributes | |
AddonClass * | addonClassObject |
Protected Attributes inherited from XBMCAddon::AddonClass | |
LanguageHook * | languageHook |
Additional Inherited Members | |
Static Public Member Functions inherited from XBMCAddon::AddonClass | |
static short | getNumAddonClasses () |
Static Protected Member Functions inherited from XBMCAddon::AddonClass | |
static short | getNextClassIndex () |
This is the parent class for the class templates that hold a callback. A callback is essentially a templatized functor (functoid?) for a call to a member function.
This class combined with the attending CallbackHandlers should make sure that the AddonClass isn't in the midst of deallocating when the callback executes. In this way the Callback class acts as a weak reference.
|
inlineexplicitprotected |
|
override |
|
pure virtual |
Implemented in XBMCAddon::CallbackFunction< M, AddonClass::Ref< P1 >, cb_null_type, cb_null_type, cb_null_type, cb_null_type >, XBMCAddon::CallbackFunction< M, cb_null_type, cb_null_type, cb_null_type, cb_null_type, cb_null_type >, XBMCAddon::CallbackFunction< M, P1, cb_null_type, cb_null_type, cb_null_type, cb_null_type >, XBMCAddon::CallbackFunction< M, P1, P2, cb_null_type, cb_null_type, cb_null_type >, and XBMCAddon::CallbackFunction< M, P1, P2, P3, cb_null_type, cb_null_type >.
|
inline |
|
protected |