wxEAPCredentialsPanel >> wxEAPCredentialsPromptPanel
This commit is contained in:
parent
c6c72bf9f2
commit
d92578150a
@ -95,7 +95,7 @@ template <class _Tcred, class _wxT> class wxEAPCredentialsConfigPanel;
|
|||||||
///
|
///
|
||||||
/// Helper template for all credential entry panels
|
/// Helper template for all credential entry panels
|
||||||
///
|
///
|
||||||
template <class _Tcred, class _Tbase> class wxEAPCredentialsPanel;
|
template <class _Tcred, class _Tbase> class wxEAPCredentialsPromptPanel;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Generic password credential entry panel
|
/// Generic password credential entry panel
|
||||||
@ -776,11 +776,11 @@ private:
|
|||||||
|
|
||||||
|
|
||||||
template <class _Tcred, class _Tbase>
|
template <class _Tcred, class _Tbase>
|
||||||
class wxEAPCredentialsPanel : public _Tbase
|
class wxEAPCredentialsPromptPanel : public _Tbase
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
/// \cond internal
|
/// \cond internal
|
||||||
typedef wxEAPCredentialsPanel<_Tcred, _Tbase> _Tthis;
|
typedef wxEAPCredentialsPromptPanel<_Tcred, _Tbase> _Tthis;
|
||||||
/// \endcond
|
/// \endcond
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -793,7 +793,7 @@ public:
|
|||||||
/// \param[in] parent Parent window
|
/// \param[in] parent Parent window
|
||||||
/// \param[in] is_config Is this panel used to pre-enter credentials? When \c true, the "Remember" checkbox is always selected and disabled.
|
/// \param[in] is_config Is this panel used to pre-enter credentials? When \c true, the "Remember" checkbox is always selected and disabled.
|
||||||
///
|
///
|
||||||
wxEAPCredentialsPanel(const eap::config_provider &prov, const eap::config_method_with_cred &cfg, _Tcred &cred, wxWindow* parent, bool is_config = false) :
|
wxEAPCredentialsPromptPanel(const eap::config_provider &prov, const eap::config_method_with_cred &cfg, _Tcred &cred, wxWindow* parent, bool is_config = false) :
|
||||||
m_prov(prov),
|
m_prov(prov),
|
||||||
m_cfg(cfg),
|
m_cfg(cfg),
|
||||||
m_cred(cred),
|
m_cred(cred),
|
||||||
@ -846,7 +846,7 @@ protected:
|
|||||||
|
|
||||||
|
|
||||||
template <class _Tcred, class _Tbase>
|
template <class _Tcred, class _Tbase>
|
||||||
class wxPasswordCredentialsPanel : public wxEAPCredentialsPanel<_Tcred, _Tbase>
|
class wxPasswordCredentialsPanel : public wxEAPCredentialsPromptPanel<_Tcred, _Tbase>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
///
|
///
|
||||||
@ -859,7 +859,7 @@ public:
|
|||||||
/// \param[in] is_config Is this panel used to pre-enter credentials? When \c true, the "Remember" checkbox is always selected and disabled.
|
/// \param[in] is_config Is this panel used to pre-enter credentials? When \c true, the "Remember" checkbox is always selected and disabled.
|
||||||
///
|
///
|
||||||
wxPasswordCredentialsPanel(const eap::config_provider &prov, const eap::config_method_with_cred &cfg, _Tcred &cred, wxWindow* parent, bool is_config = false) :
|
wxPasswordCredentialsPanel(const eap::config_provider &prov, const eap::config_method_with_cred &cfg, _Tcred &cred, wxWindow* parent, bool is_config = false) :
|
||||||
wxEAPCredentialsPanel<_Tcred, _Tbase>(prov, cfg, cred, parent, is_config)
|
wxEAPCredentialsPromptPanel<_Tcred, _Tbase>(prov, cfg, cred, parent, is_config)
|
||||||
{
|
{
|
||||||
// Load and set icon.
|
// Load and set icon.
|
||||||
winstd::library lib_shell32;
|
winstd::library lib_shell32;
|
||||||
@ -904,12 +904,12 @@ protected:
|
|||||||
m_password ->Enable(false);
|
m_password ->Enable(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
return wxEAPCredentialsPanel<_Tcred, wxEAPCredentialsPromptPassPanelBase>::TransferDataToWindow();
|
return wxEAPCredentialsPromptPanel<_Tcred, wxEAPCredentialsPromptPassPanelBase>::TransferDataToWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool TransferDataFromWindow()
|
virtual bool TransferDataFromWindow()
|
||||||
{
|
{
|
||||||
if (!wxEAPCredentialsPanel<_Tcred, wxEAPCredentialsPromptPassPanelBase>::TransferDataFromWindow())
|
if (!wxEAPCredentialsPromptPanel<_Tcred, wxEAPCredentialsPromptPassPanelBase>::TransferDataFromWindow())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
m_cred.m_identity = m_identity->GetValue();
|
m_cred.m_identity = m_identity->GetValue();
|
||||||
|
@ -248,7 +248,7 @@ protected:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class wxEAPCredentialsPromptTLSPanel : public wxEAPCredentialsPanel<eap::credentials_tls, wxEAPCredentialsPromptTLSPanelBase>
|
class wxEAPCredentialsConfigTLSPanel : public wxEAPCredentialsPromptPanel<eap::credentials_tls, wxEAPCredentialsConfigTLSPanelBase>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
///
|
///
|
||||||
|
@ -312,7 +312,7 @@ bool wxFQDNListValidator::Parse(const wxString &val_in, size_t i_start, size_t i
|
|||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
wxEAPCredentialsPromptTLSPanel::wxEAPCredentialsPromptTLSPanel(const eap::config_provider &prov, const eap::config_method_with_cred &cfg, eap::credentials_tls &cred, wxWindow* parent, bool is_config) :
|
wxEAPCredentialsPromptTLSPanel::wxEAPCredentialsPromptTLSPanel(const eap::config_provider &prov, const eap::config_method_with_cred &cfg, eap::credentials_tls &cred, wxWindow* parent, bool is_config) :
|
||||||
wxEAPCredentialsPanel<eap::credentials_tls, wxEAPCredentialsPromptTLSPanelBase>(prov, cfg, cred, parent, is_config)
|
wxEAPCredentialsPromptPanel<eap::credentials_tls, wxEAPCredentialsPromptTLSPanelBase>(prov, cfg, cred, parent, is_config)
|
||||||
{
|
{
|
||||||
// Load and set icon.
|
// Load and set icon.
|
||||||
winstd::library lib_shell32;
|
winstd::library lib_shell32;
|
||||||
@ -361,7 +361,7 @@ bool wxEAPCredentialsPromptTLSPanel::TransferDataToWindow()
|
|||||||
|
|
||||||
m_identity->SetValue(m_cred.m_identity);
|
m_identity->SetValue(m_cred.m_identity);
|
||||||
|
|
||||||
return wxEAPCredentialsPanel<eap::credentials_tls, wxEAPCredentialsPromptTLSPanelBase>::TransferDataToWindow();
|
return wxEAPCredentialsPromptPanel<eap::credentials_tls, wxEAPCredentialsPromptTLSPanelBase>::TransferDataToWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -381,7 +381,7 @@ bool wxEAPCredentialsPromptTLSPanel::TransferDataFromWindow()
|
|||||||
|
|
||||||
// Inherited TransferDataFromWindow() calls m_cred.store().
|
// Inherited TransferDataFromWindow() calls m_cred.store().
|
||||||
// Therefore, call it only now, that m_cred is set.
|
// Therefore, call it only now, that m_cred is set.
|
||||||
return wxEAPCredentialsPanel<eap::credentials_tls, wxEAPCredentialsPromptTLSPanelBase>::TransferDataFromWindow();
|
return wxEAPCredentialsPromptPanel<eap::credentials_tls, wxEAPCredentialsPromptTLSPanelBase>::TransferDataFromWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user