Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
XBMCAddon::CallbackFunction< M, P1, P2, cb_null_type, cb_null_type, cb_null_type > Class Template Reference

#include <CallbackFunction.h>

Inheritance diagram for XBMCAddon::CallbackFunction< M, P1, P2, cb_null_type, cb_null_type, cb_null_type >:
XBMCAddon::Callback XBMCAddon::AddonClass

Public Types

typedef void(M::* MemberFunction) (P1, P2)
 

Public Member Functions

 CallbackFunction (M *object, MemberFunction method, P1 parameter, P2 parameter2)
 
 ~CallbackFunction () override
 
void executeCallback () override
 
- Public Member Functions inherited from XBMCAddon::Callback
 ~Callback () override
 
AddonClassgetObject ()
 
- Public Member Functions inherited from XBMCAddon::AddonClass
 AddonClass ()
 
virtual ~AddonClass ()
 
const char * GetClassname () const
 
LanguageHookGetLanguageHook ()
 
bool isDeallocating ()
 
void Release () const
 
void Acquire () const
 

Protected Attributes

MemberFunction meth
 
M * obj
 
P1 param1
 
P2 param2
 
- Protected Attributes inherited from XBMCAddon::Callback
AddonClassaddonClassObject
 
- Protected Attributes inherited from XBMCAddon::AddonClass
LanguageHooklanguageHook
 

Additional Inherited Members

- Static Public Member Functions inherited from XBMCAddon::AddonClass
static short getNumAddonClasses ()
 
- Protected Member Functions inherited from XBMCAddon::Callback
 Callback (AddonClass *_object)
 
- Protected Member Functions inherited from XBMCAddon::AddonClass
virtual void deallocating ()
 
- Static Protected Member Functions inherited from XBMCAddon::AddonClass
static short getNextClassIndex ()
 

Detailed Description

template<class M, typename P1, typename P2>
class XBMCAddon::CallbackFunction< M, P1, P2, cb_null_type, cb_null_type, cb_null_type >

This is the template to carry a callback to a member function that returns 'void' (has no return) and takes two parameters.

Member Typedef Documentation

◆ MemberFunction

template<class M , typename P1 , typename P2 >
typedef void(M::* XBMCAddon::CallbackFunction< M, P1, P2, cb_null_type, cb_null_type, cb_null_type >::MemberFunction) (P1, P2)

Constructor & Destructor Documentation

◆ CallbackFunction()

template<class M , typename P1 , typename P2 >
XBMCAddon::CallbackFunction< M, P1, P2, cb_null_type, cb_null_type, cb_null_type >::CallbackFunction ( M * object,
MemberFunction method,
P1 parameter,
P2 parameter2 )
inline

◆ ~CallbackFunction()

template<class M , typename P1 , typename P2 >
XBMCAddon::CallbackFunction< M, P1, P2, cb_null_type, cb_null_type, cb_null_type >::~CallbackFunction ( )
inlineoverride

Member Function Documentation

◆ executeCallback()

template<class M , typename P1 , typename P2 >
void XBMCAddon::CallbackFunction< M, P1, P2, cb_null_type, cb_null_type, cb_null_type >::executeCallback ( )
inlineoverridevirtual

Implements XBMCAddon::Callback.

Member Data Documentation

◆ meth

template<class M , typename P1 , typename P2 >
MemberFunction XBMCAddon::CallbackFunction< M, P1, P2, cb_null_type, cb_null_type, cb_null_type >::meth
protected

◆ obj

template<class M , typename P1 , typename P2 >
M* XBMCAddon::CallbackFunction< M, P1, P2, cb_null_type, cb_null_type, cb_null_type >::obj
protected

◆ param1

template<class M , typename P1 , typename P2 >
P1 XBMCAddon::CallbackFunction< M, P1, P2, cb_null_type, cb_null_type, cb_null_type >::param1
protected

◆ param2

template<class M , typename P1 , typename P2 >
P2 XBMCAddon::CallbackFunction< M, P1, P2, cb_null_type, cb_null_type, cb_null_type >::param2
protected

The documentation for this class was generated from the following file: