Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <AddonClass.h>
Classes | |
class | Ref |
Public Member Functions | |
AddonClass () | |
virtual | ~AddonClass () |
const char * | GetClassname () const |
LanguageHook * | GetLanguageHook () |
bool | isDeallocating () |
void | Release () const |
void | Acquire () const |
Static Public Member Functions | |
static short | getNumAddonClasses () |
Protected Member Functions | |
virtual void | deallocating () |
Static Protected Member Functions | |
static short | getNextClassIndex () |
Protected Attributes | |
LanguageHook * | languageHook |
This class is the superclass for all reference counted classes in the api. It provides a means for the bindings to handle all api objects generically.
It also provides some means for debugging "lifecycle" events (see the above description of LOG_LIFECYCLE_EVENTS).
If a scripting language bindings require specific handling there is a hook to add in these language specifics that can be set here.
XBMCAddon::AddonClass::AddonClass | ( | ) |
|
virtual |
|
inline |
|
inlineprotectedvirtual |
This method is meant to be called from the destructor of the lowest level class.
It's virtual because it's a convenient place to receive messages that we're about to go be deleted but prior to any real tear-down.
Any overloading classes need to remember to pass the call up the chain.
Reimplemented in XBMCAddon::xbmcgui::DialogProgress, XBMCAddon::xbmcgui::DialogProgressBG, and XBMCAddon::xbmcgui::Window.
|
inline |
|
inline |
|
staticprotected |
This is meant to be called during static initialization and so isn't synchronized.
|
static |
|
inline |
This method should be called while holding a Synchronize on the object. It will prevent the deallocation during the time it's held.
|
inline |
|
protected |