11 #include "AddonClass.h" 12 #include "CallbackHandler.h" 13 #include "threads/Event.h" 63 virtual void MakePendingCalls() {}
100 virtual String GetAddonVersion() {
return emptyString; }
101 virtual long GetInvokerId() {
return -1; }
107 virtual bool WaitForEvent(
CEvent& hEvent,
unsigned int milliseconds) = 0;
109 static void SetLanguageHook(
LanguageHook* languageHook);
111 static void ClearLanguageHook();
125 bool clearOnExit =
false;
136 if (clearOnExit) LanguageHook::ClearLanguageHook();
140 inline LanguageHook* getLanguageHook() {
return languageHook; }
This is an Event class built from a ConditionVariable.
Definition: Event.h:35
virtual void Constructing(AddonClass *beingConstructed)
This is a callback method that can be overridden to receive a callback when an AddonClass that has th...
Definition: LanguageHook.h:78
virtual String GetAddonId()
This method should be done a different way but since the only other way I can think to do it requires...
Definition: LanguageHook.h:99
This is the abstraction representing different ways to handle the execution of callbacks.
Definition: CallbackHandler.h:21
virtual void DelayedCallClose()
If the scripting language needs special handling for calls that block or are delayed in any other mea...
Definition: LanguageHook.h:61
virtual void DelayedCallOpen()
If the scripting language needs special handling for calls that block or are delayed in any other mea...
Definition: LanguageHook.h:47
Defining LOG_LIFECYCLE_EVENTS will log all instantiations, deletions and also reference countings (in...
Definition: Addon.cpp:25
Definition: IPlayerCallback.h:18
Definition: LanguageHook.h:143
Definition: LanguageHook.h:29
virtual CallbackHandler * GetCallbackHandler()
For scripting languages that need a global callback handler, this method should be overloaded to supp...
Definition: LanguageHook.h:69
This class can be used to access the language hook's DelayedCallOpen and DelayedCallClose.
Definition: LanguageHook.h:122
virtual void Destructing(AddonClass *beingDestructed)
This is a callback method that can be overridden to receive a callback when an AddonClass that has th...
Definition: LanguageHook.h:87
This class is the superclass for all reference counted classes in the api.
Definition: AddonClass.h:57