13 #ifndef _PROMPTENTRYBASE_
14 #define _PROMPTENTRYBASE_
21 #define PROMPT_ENTRY_VALUE_TRUE _T("true")
22 #define PROMPT_ENTRY_VALUE_FALSE _T("false")
28 bool setValue(
const tstring& value);
31 const tstring &getPromptName()
const;
33 const tstring &getPromptLabel()
const;
35 bool isEnabled()
const;
37 void setEnabled(
bool bIsEnabled);
39 bool isVisible()
const;
41 void setVisible(
bool bIsVisible);
47 void setEntryGroup(
bool bIsEntryGroup);
53 const tstring& DefaultValue = EmptyString,
54 ApiStringMap LabelValues = EmptyLabelValues);
57 void setPromptLabel(
tstring label);
61 const tstring &getValue()
const;
64 const tstring &getTrueValue()
const;
66 const std::list<tstring> &getValueOptions()
const;
68 bool isEntryGroup()
const;
70 bool isReadOnly()
const;
74 size_t GetGroupAttributesCount();
79 static const tstring EmptyString;
81 static const std::list<tstring> EmptyList;
83 static const ApiStringMap EmptyLabelValues;
89 return deepCopy(existingEntry);
96 deepCopy(existingEntry);
108 ApiStringMap msm_LabelValueMap;
109 std::list<tstring> mls_ValueOptions;
110 bool mb_IsEntryGroup;
122 UsernameEditable(
true),
123 SecondaryUsernameEditable(
true),
124 UsesSecondaryAuth(
false)
133 deepCopy(existingGroupAttr);
141 return deepCopy(existingGroupAttr);
146 bool UsernameEditable;
148 bool SecondaryUsernameEditable;
150 bool UsesSecondaryAuth;
155 if (std::addressof(existingGroupAttr) !=
this)
157 CredRequired = existingGroupAttr.CredRequired;
158 UsesSDIAuth = existingGroupAttr.UsesSDIAuth;
159 UsernameEditable = existingGroupAttr.UsernameEditable;
160 Username = existingGroupAttr.Username.c_str();
161 SecondaryUsernameEditable = existingGroupAttr.SecondaryUsernameEditable;
162 SecondaryUsername = existingGroupAttr.SecondaryUsername.c_str();
163 UsesSecondaryAuth = existingGroupAttr.UsesSecondaryAuth;
173 SecondaryAuthEntry(
false),
174 SSOTimeoutSeconds(0),
175 SSOIsExternalBrowser(
false)
184 deepCopy(existingSingleAttr);
192 return deepCopy(existingSingleAttr);
195 bool SecondaryAuthEntry;
200 unsigned int SSOTimeoutSeconds;
202 bool SSOIsExternalBrowser;
207 if (std::addressof(existingSingleAttr) !=
this)
209 SecondaryAuthEntry = existingSingleAttr.SecondaryAuthEntry;
210 SSOURL = existingSingleAttr.SSOURL.c_str();
211 SSOFinalURL = existingSingleAttr.SSOFinalURL.c_str();
212 SSOTokenCookieName = existingSingleAttr.SSOTokenCookieName.c_str();
213 SSOErrorCookieName = existingSingleAttr.SSOErrorCookieName.c_str();
214 SSOTimeoutSeconds = existingSingleAttr.SSOTimeoutSeconds;
215 SSOUserAgent = existingSingleAttr.SSOUserAgent.c_str();
216 SSOIsExternalBrowser = existingSingleAttr.SSOIsExternalBrowser;
222 typedef std::map<tstring, GroupAttributes> GroupAttributesMap;
225 void setGroupAttributesMap(
const GroupAttributesMap& groupAttributesMap);
232 void copyGroupAttributesMap (
const GroupAttributesMap &srcMap,
233 GroupAttributesMap &dstMap);
236 GroupAttributesMap m_GroupAttributesMap;
241 #endif // _PROMPTENTRYBASE_
#define tstring
Definition: api.h:35
Definition: PromptEntryBase.h:24
Definition: PromptEntryBase.h:116
Definition: PromptEntryBase.h:169
PromptType
Definition: api.h:258