14 #ifndef _PROMPTENTRYBASE_
15 #define _PROMPTENTRYBASE_
22 #define PROMPT_ENTRY_VALUE_TRUE _T("true")
23 #define PROMPT_ENTRY_VALUE_FALSE _T("false")
29 bool setValue(
const tstring& value);
32 const tstring &getPromptName()
const;
34 const tstring &getPromptLabel()
const;
36 bool isEnabled()
const;
38 void setEnabled(
bool bIsEnabled);
40 bool isVisible()
const;
42 void setVisible(
bool bIsVisible);
48 void setEntryGroup(
bool bIsEntryGroup);
54 const tstring& DefaultValue = EmptyString,
55 ApiStringMap LabelValues = EmptyLabelValues);
58 void setPromptLabel(
tstring label);
62 const tstring &getValue()
const;
65 const tstring &getTrueValue()
const;
67 const std::list<tstring> &getValueOptions()
const;
69 bool isEntryGroup()
const;
71 bool isReadOnly()
const;
75 size_t GetGroupAttributesCount();
80 static const tstring EmptyString;
82 static const std::list<tstring> EmptyList;
84 static const ApiStringMap EmptyLabelValues;
101 ApiStringMap msm_LabelValueMap;
103 std::list<tstring> mls_ValueOptions;
105 bool mb_IsEntryGroup;
119 UsernameEditable(
true),
121 SecondaryUsernameEditable(
true),
123 UsesSecondaryAuth(
false) {}
127 bool UsernameEditable;
129 bool SecondaryUsernameEditable;
131 bool UsesSecondaryAuth;
138 SecondaryAuthEntry(
false),
139 SSOTimeoutSeconds(0),
140 SSOIsExternalBrowser(
false) {}
142 bool SecondaryAuthEntry;
147 unsigned int SSOTimeoutSeconds;
149 bool SSOIsExternalBrowser;
152 typedef std::map<tstring, GroupAttributes> GroupAttributeMap;
155 void setGroupAttributeMap(
const GroupAttributeMap& groupAttributeMap);
162 void copyGroupAttributeMap (
const GroupAttributeMap &source,
163 GroupAttributeMap &destination);
165 GroupAttributeMap m_GroupAttributeMap;
171 #endif // _PROMPTENTRYBASE_
#define tstring
Definition: api.h:35
Definition: PromptEntryBase.h:25
Definition: PromptEntryBase.h:113
Definition: PromptEntryBase.h:134
PromptType
Definition: api.h:249