wxInitializerPeer: Move upstream and make reusable
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
@@ -46,6 +46,7 @@ template <class _Tcred, class _Tbase> class wxEAPCredentialsPanel;
|
||||
template <class _Tcred, class _Tbase> class wxIdentityCredentialsPanel;
|
||||
template <class _Tcred, class _Tbase> class wxPasswordCredentialsPanel;
|
||||
class wxEAPProviderSelectDialog;
|
||||
class wxInitializerPeer;
|
||||
|
||||
///
|
||||
/// \defgroup EAPBaseGUI GUI
|
||||
@@ -121,7 +122,9 @@ inline void wxInitializeConfig();
|
||||
#include <WinStd/Win.h>
|
||||
|
||||
#include <wx/config.h>
|
||||
#include <wx/intl.h>
|
||||
#include <wx/log.h>
|
||||
#include <wx/thread.h>
|
||||
|
||||
#include <CommCtrl.h>
|
||||
|
||||
@@ -409,6 +412,32 @@ protected:
|
||||
};
|
||||
|
||||
|
||||
///
|
||||
/// Peer initializer
|
||||
///
|
||||
class wxInitializerPeer
|
||||
{
|
||||
public:
|
||||
///
|
||||
/// Initialize peer
|
||||
///
|
||||
wxInitializerPeer(_In_ HINSTANCE instance, _In_ const wxString &domain, _In_opt_ HWND hwndParent);
|
||||
|
||||
///
|
||||
/// Uninitialize peer
|
||||
///
|
||||
virtual ~wxInitializerPeer();
|
||||
|
||||
public:
|
||||
wxWindow* m_parent; ///< Parent window
|
||||
|
||||
protected:
|
||||
static wxCriticalSection s_lock; ///< Initialization lock
|
||||
static unsigned long s_init_ref_count; ///< Initialization reference counter
|
||||
static wxLocale *s_locale; ///< Locale
|
||||
};
|
||||
|
||||
|
||||
///
|
||||
/// EAP general note
|
||||
///
|
||||
@@ -1028,8 +1057,6 @@ protected:
|
||||
/// \endcond
|
||||
};
|
||||
|
||||
/// @}
|
||||
|
||||
|
||||
///
|
||||
/// Generic password credential entry panel
|
||||
|
Reference in New Issue
Block a user