CredentialSelectorDlg.h
Go to the documentation of this file.00001
00010 #ifndef __CredentialSelector_H__
00011 #define __CredentialSelector_H__
00012
00013
00014 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) && defined(PKIFRESOURCES_ALLOW_GCC_PRAGMA)
00015 #pragma interface "CredentialSelector.cpp"
00016 #endif
00017
00018 #ifndef WX_PRECOMP
00019 #include "wx/wx.h"
00020 #endif
00021
00022 #include "PKIFResources_wdr.h"
00023 #include "PKIFResources.h"
00024 #include "pkif.h"
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00057 class PKIFRESOURCES_API CPKIFCredentialSelectorDlg : public wxDialog
00058 {
00059 public:
00060
00061 CPKIFCredentialSelectorDlg( wxWindow *parent, wxWindowID id, const wxString &title,
00062 const wxPoint& pos = wxDefaultPosition,
00063 const wxSize& size = wxDefaultSize,
00064 long style = wxDEFAULT_DIALOG_STYLE );
00065 ~CPKIFCredentialSelectorDlg();
00066
00067
00068 wxButton* GetMoInfo() { return (wxButton*) FindWindow( ID_MOINFO ); }
00069 wxListBox* GetListOfCredentials() { return (wxListBox*) FindWindow( ID_LIST_OF_CREDENTIALS ); }
00070
00071 bool SetMediator(IPKIFMediatorPtr& m);
00072 void SetKeyUsages(std::bitset<9>& ku);
00073 CPKIFCredentialPtr GetSelectedCredential() const;
00074
00075 void OnInitDialog(wxInitDialogEvent& event);
00076
00077 private:
00078
00079
00080
00081 IPKIFMediatorPtr m_mediator;
00082
00083
00084
00085 std::bitset<9> m_ku;
00086 CPKIFCredentialPtr m_selCred;
00087 CPKIFCredentialList m_creds;
00088
00089 #ifdef WIN32
00090 char m_tmpName[MAX_PATH];
00091 #endif
00092
00093 private:
00094
00095 void OnCredListDoubleClick( wxCommandEvent &event );
00096 void OnClose( wxCommandEvent &event );
00097 void OnViewCertificate( wxCommandEvent &event );
00098 void OnOK( wxCommandEvent &event );
00099
00100 private:
00101 DECLARE_EVENT_TABLE()
00102 };
00103
00104 #endif