Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <PlayerCoreFactory.h>
Public Member Functions | |
CPlayerCoreFactory (const CProfileManager &profileManager) | |
CPlayerCoreFactory (const CPlayerCoreFactory &)=delete | |
CPlayerCoreFactory & | operator= (CPlayerCoreFactory const &)=delete |
~CPlayerCoreFactory () override | |
void | OnSettingsLoaded () override |
Settings have been loaded. | |
std::shared_ptr< IPlayer > | CreatePlayer (const std::string &nameId, IPlayerCallback &callback) const |
void | GetPlayers (const CFileItem &item, std::vector< std::string > &players) const |
void | GetPlayers (std::vector< std::string > &players, bool audio, bool video) const |
void | GetPlayers (std::vector< std::string > &players) const |
void | GetPlayers (std::vector< std::string > &players, std::string &type) const |
void | GetRemotePlayers (std::vector< std::string > &players) const |
std::string | GetPlayerType (const std::string &player) const |
bool | IsExternalPlayer (const std::string &player) const |
bool | IsRemotePlayer (const std::string &player) const |
bool | PlaysAudio (const std::string &player) const |
bool | PlaysVideo (const std::string &player) const |
std::string | GetDefaultPlayer (const CFileItem &item) const |
std::string | SelectPlayerDialog (const std::vector< std::string > &players, float posX=0, float posY=0) const |
std::string | SelectPlayerDialog (float posX, float posY) const |
void | OnPlayerDiscovered (const std::string &id, const std::string &name) |
void | OnPlayerRemoved (const std::string &id) |
Public Member Functions inherited from ISettingsHandler | |
virtual | ~ISettingsHandler ()=default |
virtual bool | OnSettingsLoading () |
Settings loading has been initiated. | |
virtual bool | OnSettingsSaving () const |
Settings saving has been initiated. | |
virtual void | OnSettingsSaved () const |
Settings have been saved. | |
virtual void | OnSettingsUnloaded () |
Setting values have been unloaded. | |
virtual void | OnSettingsCleared () |
Settings have been cleared. | |
CPlayerCoreFactory::CPlayerCoreFactory | ( | const CProfileManager & | profileManager | ) |
|
delete |
|
override |
std::shared_ptr< IPlayer > CPlayerCoreFactory::CreatePlayer | ( | const std::string & | nameId, |
IPlayerCallback & | callback ) const |
std::string CPlayerCoreFactory::GetDefaultPlayer | ( | const CFileItem & | item | ) | const |
void CPlayerCoreFactory::GetPlayers | ( | const CFileItem & | item, |
std::vector< std::string > & | players ) const |
void CPlayerCoreFactory::GetPlayers | ( | std::vector< std::string > & | players | ) | const |
void CPlayerCoreFactory::GetPlayers | ( | std::vector< std::string > & | players, |
bool | audio, | ||
bool | video ) const |
void CPlayerCoreFactory::GetPlayers | ( | std::vector< std::string > & | players, |
std::string & | type ) const |
std::string CPlayerCoreFactory::GetPlayerType | ( | const std::string & | player | ) | const |
void CPlayerCoreFactory::GetRemotePlayers | ( | std::vector< std::string > & | players | ) | const |
bool CPlayerCoreFactory::IsExternalPlayer | ( | const std::string & | player | ) | const |
bool CPlayerCoreFactory::IsRemotePlayer | ( | const std::string & | player | ) | const |
void CPlayerCoreFactory::OnPlayerDiscovered | ( | const std::string & | id, |
const std::string & | name ) |
void CPlayerCoreFactory::OnPlayerRemoved | ( | const std::string & | id | ) |
|
overridevirtual |
Settings have been loaded.
This callback can be used to trigger loading other settings.
Reimplemented from ISettingsHandler.
|
delete |
bool CPlayerCoreFactory::PlaysAudio | ( | const std::string & | player | ) | const |
bool CPlayerCoreFactory::PlaysVideo | ( | const std::string & | player | ) | const |
std::string CPlayerCoreFactory::SelectPlayerDialog | ( | const std::vector< std::string > & | players, |
float | posX = 0, | ||
float | posY = 0 ) const |
std::string CPlayerCoreFactory::SelectPlayerDialog | ( | float | posX, |
float | posY ) const |