Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
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. More...
 
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 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. More...
 
virtual bool OnSettingsSaving () const
 Settings saving has been initiated. More...
 
virtual void OnSettingsSaved () const
 Settings have been saved. More...
 
virtual void OnSettingsUnloaded ()
 Setting values have been unloaded. More...
 
virtual void OnSettingsCleared ()
 Settings have been cleared. More...
 

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()

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

◆ 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: