11 #include "AddonClass.h" 32 virtual void executeCallback() = 0;
35 AddonClass* getObject() { XBMC_TRACE;
return addonClassObject; }
53 typedef void (M::*MemberFunction)();
61 Callback(
object), meth(method), obj(
object) { XBMC_TRACE; }
65 void executeCallback()
override { XBMC_TRACE; ((*obj).*(meth))(); }
75 typedef void (M::*MemberFunction)(P1);
84 Callback(
object), meth(method), obj(
object),
85 param(parameter) { XBMC_TRACE; }
89 void executeCallback()
override { XBMC_TRACE; ((*obj).*(meth))(param); }
100 typedef void (M::*MemberFunction)(P1*);
109 Callback(
object), meth(method), obj(
object),
110 param(parameter) { XBMC_TRACE; }
114 void executeCallback()
override { XBMC_TRACE; ((*obj).*(meth))(param); }
125 typedef void (M::*MemberFunction)(P1,P2);
134 CallbackFunction(M*
object, MemberFunction method, P1 parameter, P2 parameter2) :
135 Callback(
object), meth(method), obj(
object),
136 param1(parameter), param2(parameter2) { XBMC_TRACE; }
140 void executeCallback()
override { XBMC_TRACE; ((*obj).*(meth))(param1,param2); }
151 typedef void (M::*MemberFunction)(P1,P2,P3);
161 CallbackFunction(M*
object, MemberFunction method, P1 parameter, P2 parameter2, P3 parameter3) :
162 Callback(
object), meth(method), obj(
object),
163 param1(parameter), param2(parameter2), param3(parameter3) { XBMC_TRACE; }
167 void executeCallback()
override { XBMC_TRACE; ((*obj).*(meth))(param1,param2,param3); }
This class is a smart pointer for a Referenced class.
Definition: AddonClass.h:154
Definition: CallbackFunction.h:44
Definition: CallbackFunction.h:38
Definition: ThreadsTest1.cpp:132
Defining LOG_LIFECYCLE_EVENTS will log all instantiations, deletions and also reference countings (in...
Definition: Addon.cpp:25
virtual void deallocating()
This method is meant to be called from the destructor of the lowest level class.
Definition: AddonClass.h:82
Definition: CallbackFunction.h:25
This class is the superclass for all reference counted classes in the api.
Definition: AddonClass.h:57