![]() |
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <PlatformLinux.h>
Public Member Functions | |
CPlatformLinux ()=default | |
~CPlatformLinux () override=default | |
bool | InitStageOne () override |
Called at an early stage of application startup. | |
void | DeinitStageOne () override |
Called at a late stage of application shutdown. | |
bool | IsConfigureAddonsAtStartupEnabled () override |
Flag whether disabled add-ons - installed via packagemanager or manually - should be offered for configuration and activation on kodi startup for this platform. | |
![]() | |
bool | InitStageOne () override |
Called at an early stage of application startup. | |
![]() | |
CPlatform ()=default | |
C'tor. | |
virtual | ~CPlatform ()=default |
D'tor. | |
virtual bool | InitStageTwo () |
Called at a middle stage of application startup. | |
virtual bool | InitStageThree () |
Called at a late stage of application startup. | |
virtual void | DeinitStageTwo () |
Called at a middle stage of application shutdown. | |
virtual void | DeinitStageThree () |
Called at an early stage of application shutdown. | |
virtual bool | SupportsUserInstalledBinaryAddons () |
Flag whether this platform supports user installation of binary add-ons. | |
virtual void | PlatformSyslog () |
Print platform specific info to log. | |
template<class T> | |
std::shared_ptr< T > | GetService () |
Get a platform service instance. | |
![]() | |
std::shared_ptr< T > | GetComponent () |
Obtain a component. | |
std::shared_ptr< const T > | GetComponent () const |
Obtain a component. | |
std::size_t | size () const |
Returns number of registered components. | |
Protected Member Functions | |
virtual void | RegisterPowerManagement () |
![]() | |
void | RegisterComponent (const std::shared_ptr< IPlatformService > &component) |
Register a new component instance. | |
void | DeregisterComponent (const std::type_info &typeInfo) |
Deregister a component. | |
Additional Inherited Members | |
![]() | |
static bool | TestQuitFlag () |
static void | RequestQuit () |
![]() | |
static CPlatform * | CreateInstance () |
Creates the Platform object. | |
|
default |
|
overridedefault |
|
overridevirtual |
Called at a late stage of application shutdown.
This method should be used to cleanup resources allocated in InitStageOne
Reimplemented from CPlatform.
|
overridevirtual |
Called at an early stage of application startup.
This method can be used to do platform specific environment preparation or initialisation (like setting environment variables for example)
Reimplemented from CPlatform.
Reimplemented in CPlatformWebOS.
|
overridevirtual |
Flag whether disabled add-ons - installed via packagemanager or manually - should be offered for configuration and activation on kodi startup for this platform.
Reimplemented from CPlatform.
|
protectedvirtual |
Reimplemented in CPlatformWebOS.