Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CPlayerCoreFactory Class Reference

#include <PlayerCoreFactory.h>

Inheritance diagram for CPlayerCoreFactory:
ISettingsHandler

Public Member Functions

 CPlayerCoreFactory (const CProfileManager &profileManager)
 
 CPlayerCoreFactory (const CPlayerCoreFactory &)=delete
 
CPlayerCoreFactoryoperator= (CPlayerCoreFactory const &)=delete
 
 ~CPlayerCoreFactory () override
 
void OnSettingsLoaded () override
 Settings have been loaded.
 
std::shared_ptr< IPlayerCreatePlayer (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.
 

Constructor & Destructor Documentation

◆ CPlayerCoreFactory() [1/2]

CPlayerCoreFactory::CPlayerCoreFactory ( const CProfileManager & profileManager)

◆ CPlayerCoreFactory() [2/2]

CPlayerCoreFactory::CPlayerCoreFactory ( const CPlayerCoreFactory & )
delete

◆ ~CPlayerCoreFactory()

CPlayerCoreFactory::~CPlayerCoreFactory ( )
override

Member Function Documentation

◆ CreatePlayer()

std::shared_ptr< IPlayer > CPlayerCoreFactory::CreatePlayer ( const std::string & nameId,
IPlayerCallback & callback ) const

◆ GetDefaultPlayer()

std::string CPlayerCoreFactory::GetDefaultPlayer ( const CFileItem & item) const

◆ GetPlayers() [1/4]

void CPlayerCoreFactory::GetPlayers ( const CFileItem & item,
std::vector< std::string > & players ) const

◆ GetPlayers() [2/4]

void CPlayerCoreFactory::GetPlayers ( std::vector< std::string > & players) const

◆ GetPlayers() [3/4]

void CPlayerCoreFactory::GetPlayers ( std::vector< std::string > & players,
bool audio,
bool video ) const

◆ GetPlayers() [4/4]

void CPlayerCoreFactory::GetPlayers ( std::vector< std::string > & players,
std::string & type ) const

◆ GetPlayerType()

std::string CPlayerCoreFactory::GetPlayerType ( const std::string & player) const

◆ GetRemotePlayers()

void CPlayerCoreFactory::GetRemotePlayers ( std::vector< std::string > & players) const

◆ IsExternalPlayer()

bool CPlayerCoreFactory::IsExternalPlayer ( const std::string & player) const

◆ IsRemotePlayer()

bool CPlayerCoreFactory::IsRemotePlayer ( const std::string & player) const

◆ OnPlayerDiscovered()

void CPlayerCoreFactory::OnPlayerDiscovered ( const std::string & id,
const std::string & name )

◆ OnPlayerRemoved()

void CPlayerCoreFactory::OnPlayerRemoved ( const std::string & id)

◆ OnSettingsLoaded()

void CPlayerCoreFactory::OnSettingsLoaded ( )
overridevirtual

Settings have been loaded.

This callback can be used to trigger loading other settings.

Reimplemented from ISettingsHandler.

◆ operator=()

CPlayerCoreFactory & CPlayerCoreFactory::operator= ( CPlayerCoreFactory const & )
delete

◆ PlaysAudio()

bool CPlayerCoreFactory::PlaysAudio ( const std::string & player) const

◆ PlaysVideo()

bool CPlayerCoreFactory::PlaysVideo ( const std::string & player) const

◆ SelectPlayerDialog() [1/2]

std::string CPlayerCoreFactory::SelectPlayerDialog ( const std::vector< std::string > & players,
float posX = 0,
float posY = 0 ) const

◆ SelectPlayerDialog() [2/2]

std::string CPlayerCoreFactory::SelectPlayerDialog ( float posX,
float posY ) const

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