11 #include "MediaSource.h" 12 #include "settings/lib/ISettingsHandler.h" 28 static std::string GetSourcesFile();
30 void OnSettingsLoaded()
override;
31 void OnSettingsUnloaded()
override;
34 bool Load(
const std::string &file);
36 bool Save(
const std::string &file)
const;
39 VECSOURCES* GetSources(
const std::string &type);
40 const std::string& GetDefaultSource(
const std::string &type)
const;
41 void SetDefaultSource(
const std::string &type,
const std::string &source);
43 bool UpdateSource(
const std::string &strType,
const std::string &strOldName,
const std::string &strUpdateChild,
const std::string &strUpdateValue);
44 bool DeleteSource(
const std::string &strType,
const std::string &strName,
const std::string &strPath,
bool virtualSource =
false);
45 bool AddShare(
const std::string &type,
const CMediaSource &share);
46 bool UpdateShare(
const std::string &type,
const std::string &oldName,
const CMediaSource &share);
55 bool GetSource(
const std::string& category,
const tinyxml2::XMLNode* source,
CMediaSource& share);
56 void GetSources(
const tinyxml2::XMLNode* rootElement,
57 const std::string& tagName,
59 std::string& defaultString);
60 bool SetSources(tinyxml2::XMLNode* rootNode,
62 const VECSOURCES& shares,
63 const std::string& defaultPath)
const;
65 VECSOURCES m_programSources;
66 VECSOURCES m_pictureSources;
67 VECSOURCES m_fileSources;
68 VECSOURCES m_musicSources;
69 VECSOURCES m_videoSources;
70 VECSOURCES m_gameSources;
72 std::string m_defaultProgramSource;
73 std::string m_defaultMusicSource;
74 std::string m_defaultPictureSource;
75 std::string m_defaultFileSource;
Definition: SkinTimerManager.h:18
Definition: ProfileManager.h:25
Interface defining methods being called by the settings system if an action is performed on multiple/...
Definition: ISettingsHandler.h:16