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

#include <CallbackFunction.h>

Inheritance diagram for XBMCAddon::CallbackFunction< M, P1, P2, P3, cb_null_type, cb_null_type >:
Collaboration diagram for XBMCAddon::CallbackFunction< M, P1, P2, P3, cb_null_type, cb_null_type >:

Public Types

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

Public Member Functions

 CallbackFunction (M *object, MemberFunction method, P1 parameter, P2 parameter2, P3 parameter3)
 
 ~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
 
- Public Member Functions inherited from XbmcThreads::CountingLockable< XbmcThreads::CRecursiveMutex >
 CountingLockable ()=default
 
void lock ()
 
bool try_lock ()
 
void unlock ()
 
unsigned int exit (unsigned int leave=0)
 
void restore (unsigned int restoreCount)
 
XbmcThreads::CRecursiveMutex & get_underlying ()
 

Protected Attributes

MemberFunction meth
 
M * obj
 
P1 param1
 
P2 param2
 
P3 param3
 
- Protected Attributes inherited from XBMCAddon::Callback
AddonClassaddonClassObject
 
- Protected Attributes inherited from XBMCAddon::AddonClass
LanguageHooklanguageHook
 
- Protected Attributes inherited from XbmcThreads::CountingLockable< XbmcThreads::CRecursiveMutex >
XbmcThreads::CRecursiveMutex mutex
 
unsigned int count
 

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, typename P3>
class XBMCAddon::CallbackFunction< M, P1, P2, P3, 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 three parameters.

Member Typedef Documentation

◆ MemberFunction

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

Constructor & Destructor Documentation

◆ CallbackFunction()

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

◆ ~CallbackFunction()

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

Member Function Documentation

◆ executeCallback()

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

Implements XBMCAddon::Callback.

Member Data Documentation

◆ meth

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

◆ obj

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

◆ param1

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

◆ param2

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

◆ param3

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

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