xbmc
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
XBMCAddon::AddonClass Class Reference

This class is the superclass for all reference counted classes in the api. More...

#include <AddonClass.h>

Inheritance diagram for XBMCAddon::AddonClass:
Inheritance graph
[legend]
Collaboration diagram for XBMCAddon::AddonClass:
Collaboration graph
[legend]

Classes

class  Ref
 This class is a smart pointer for a Referenced class. More...
 

Public Member Functions

const char * GetClassname () const
 
LanguageHookGetLanguageHook ()
 
bool isDeallocating ()
 This method should be called while holding a Synchronize on the object. More...
 
void Release () const
 
void Acquire () const
 

Static Public Member Functions

static short getNumAddonClasses ()
 

Protected Member Functions

virtual void deallocating ()
 This method is meant to be called from the destructor of the lowest level class. More...
 

Static Protected Member Functions

static short getNextClassIndex ()
 This is meant to be called during static initialization and so isn't synchronized.
 

Protected Attributes

LanguageHooklanguageHook
 

Detailed Description

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.

Member Function Documentation

◆ deallocating()

virtual void XBMCAddon::AddonClass::deallocating ( )
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::DialogProgressBG, XBMCAddon::xbmcgui::DialogProgress, and XBMCAddon::xbmcgui::Window.

◆ isDeallocating()

bool XBMCAddon::AddonClass::isDeallocating ( )
inline

This method should be called while holding a Synchronize on the object.

It will prevent the deallocation during the time it's held.


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