19 #ifndef _PREFERENCEINFOBASE_
20 #define _PREFERENCEINFOBASE_
30 typedef std::vector<Preference*> PreferenceVector;
31 typedef std::map<PreferenceId, unsigned int> PreferencePositionMap;
32 typedef std::map<PreferenceId, Preference*> PreferencePointerMap;
34 typedef std::pair<Preference *, unsigned int> PrefWithDepth;
35 typedef std::list<PrefWithDepth> PrefWithDepthList;
49 unsigned int countPreferences()
const;
53 const PreferenceVector& getListPreferences()
const;
55 PreferenceVector getAllPreferences()
const;
57 void getAllPreferencesSorted(OUT PrefWithDepthList &outSortedPrefs)
const;
63 bool addNewPreference(
const tstring& name,
65 ApiStringMap& attributes,
66 const tstring& parent = EmptyString);
67 bool movePreference(
Preference* pPreference,
unsigned int& position);
69 bool removeAndDeletePreference(
const PreferenceId& preferenceId,
bool bDontRemoveFromParent =
false);
70 void removeAllPreferences();
72 void setPreferenceHeading(
const tstring& preferenceHeading);
73 const tstring getPreferenceHeading()
const;
83 PreferenceVector m_ParentPreferenceVector;
84 PreferencePositionMap mem_PreferencePositionMap;
85 PreferencePointerMap mem_PreferencePointerMap;
94 #endif // _PREFERENCEINFOBASE_
Definition: PreferenceInfo.h:27
#define tstring
Definition: api.h:35
PreferenceScope
Definition: api.h:504
PreferenceId
Definition: api.h:274
Definition: PreferenceInfoBase.h:38
Definition: Preference.h:28