37class VPN_VPNAPI PreferenceInfoBase
48 unsigned int countPreferences()
const;
52 const PreferenceVector& getListPreferences()
const;
54 PreferenceVector getAllPreferences()
const;
56 void getAllPreferencesSorted(OUT PrefWithDepthList &outSortedPrefs)
const;
62 bool addNewPreference(
const tstring& name,
64 ApiStringMap& attributes,
65 const tstring& parent = EmptyString);
66 bool movePreference(
Preference* pPreference,
unsigned int& position);
68 bool removeAndDeletePreference(
const PreferenceId& preferenceId,
bool bDontRemoveFromParent =
false);
69 void removeAllPreferences();
71 void setPreferenceHeading(
const tstring& preferenceHeading);
72 const tstring getPreferenceHeading()
const;
74 PreferenceInfoBase& operator=(
const PreferenceInfoBase& existingPrefInfo)
76 return deepCopy(existingPrefInfo);
78 explicit PreferenceInfoBase(
const PreferenceInfoBase& existingPrefInfo)
80 deepCopy(existingPrefInfo);
82 virtual ~PreferenceInfoBase();
87 PreferenceInfoBase& deepCopy(
const PreferenceInfoBase& existingPrefInfo);
89 PreferenceVector m_ParentPrefPtrVector;
90 PrefIdToPrefPositionMap m_ParentPrefIdToPositionMap;
91 PrefIdToPrefPtrMap m_PrefIdToPrefPtrMap;