11 #include "MediaSource.h" 12 #include "settings/lib/ISettingsHandler.h" 24 static std::string GetSourcesFile();
30 bool Load(
const std::string &file);
32 bool Save(
const std::string &file)
const;
35 VECSOURCES* GetSources(
const std::string &type);
36 const std::string& GetDefaultSource(
const std::string &type)
const;
37 void SetDefaultSource(
const std::string &type,
const std::string &source);
39 bool UpdateSource(
const std::string &strType,
const std::string &strOldName,
const std::string &strUpdateChild,
const std::string &strUpdateValue);
40 bool DeleteSource(
const std::string &strType,
const std::string &strName,
const std::string &strPath,
bool virtualSource =
false);
41 bool AddShare(
const std::string &type,
const CMediaSource &share);
42 bool UpdateShare(
const std::string &type,
const std::string &oldName,
const CMediaSource &share);
51 bool GetSource(
const std::string &category,
const TiXmlNode *source,
CMediaSource &share);
52 void GetSources(
const TiXmlNode* pRootElement,
const std::string& strTagName, VECSOURCES& items, std::string& strDefault);
53 bool SetSources(TiXmlNode *root,
const char *section,
const VECSOURCES &shares,
const std::string &defaultPath)
const;
55 VECSOURCES m_programSources;
56 VECSOURCES m_pictureSources;
57 VECSOURCES m_fileSources;
58 VECSOURCES m_musicSources;
59 VECSOURCES m_videoSources;
60 VECSOURCES m_gameSources;
62 std::string m_defaultProgramSource;
63 std::string m_defaultMusicSource;
64 std::string m_defaultPictureSource;
65 std::string m_defaultFileSource;
Definition: ProfileManager.h:25
Interface defining methods being called by the settings system if an action is performed on multiple/...
Definition: ISettingsHandler.h:16