11 #include "settings/lib/ISettingsHandler.h" 12 #include "threads/CriticalSection.h" 40 std::shared_ptr<IPlayer> CreatePlayer(
const std::string& nameId,
IPlayerCallback& callback)
const;
41 void GetPlayers(
const CFileItem& item, std::vector<std::string>&players)
const;
42 void GetPlayers(std::vector<std::string>&players,
bool audio,
bool video)
const;
43 void GetPlayers(std::vector<std::string>&players)
const;
44 void GetPlayers(std::vector<std::string>&players, std::string &type)
const;
45 void GetRemotePlayers(std::vector<std::string>&players)
const;
46 std::string GetPlayerType(
const std::string &player)
const;
47 bool IsExternalPlayer(
const std::string& player)
const;
48 bool IsRemotePlayer(
const std::string& player)
const;
49 bool PlaysAudio(
const std::string &player)
const;
50 bool PlaysVideo(
const std::string &player)
const;
52 std::string GetDefaultPlayer(
const CFileItem& item)
const;
53 std::string SelectPlayerDialog(
const std::vector<std::string>&players,
float posX = 0,
float posY = 0)
const;
54 std::string SelectPlayerDialog(
float posX,
float posY)
const;
55 void OnPlayerDiscovered(
const std::string&
id,
const std::string& name);
56 void OnPlayerRemoved(
const std::string&
id);
60 std::shared_ptr<CSettings> m_settings;
63 int GetPlayerIndex(
const std::string& strCoreName)
const;
64 std::string GetPlayerName(
size_t idx)
const;
66 bool LoadConfiguration(
const std::string &file,
bool clear);
68 std::vector<std::unique_ptr<CPlayerCoreConfig>> m_vecPlayerConfigs;
69 std::list<std::unique_ptr<CPlayerSelectionRule>> m_vecCoreSelectionRules;
70 mutable CCriticalSection m_section;
Wrapper around CSettingsManager responsible for properly setting up the settings manager and register...
Definition: Settings.h:27
Definition: PlayerCoreFactory.h:30
void OnSettingsLoaded() override
Settings have been loaded.
Definition: PlayerCoreFactory.cpp:52
Definition: PlayerSelectionRule.h:20
Definition: IPlayerCallback.h:18
Definition: ProfileManager.h:25
Definition: PlayerCoreConfig.h:18
Interface defining methods being called by the settings system if an action is performed on multiple/...
Definition: ISettingsHandler.h:16
Represents a file on a share.
Definition: FileItem.h:102