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 //FD_SMART_PTR(IPKIFMediator);
00028 
00029 // WDR: class declarations
00030 
00031 //----------------------------------------------------------------------------
00032 // CPKIFCredentialSelectorDlg
00033 //----------------------------------------------------------------------------
00034 
00035 
00057 class PKIFRESOURCES_API CPKIFCredentialSelectorDlg : public wxDialog
00058 {
00059 public:
00060     // constructors and destructors
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     // WDR: method declarations for CPKIFCredentialSelectorDlg
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     // WDR: member variable declarations for CPKIFCredentialSelectorDlg
00079 
00080     //Points to the mediator passed to SetMediator.  The caller is responsible for freeing this pointer.
00081     IPKIFMediatorPtr m_mediator;
00082 //    bool m_bFreeMediator;
00083 
00084     //Bitset specified by call to SetKeyUsages.  
00085     std::bitset<9> m_ku;
00086     CPKIFCredentialPtr m_selCred;   
00087     CPKIFCredentialList m_creds;
00088 
00089 #ifdef WIN32
00090     char m_tmpName[MAX_PATH];   //name of temp file used to display cert info
00091 #endif
00092 
00093 private:
00094     // WDR: handler declarations for CPKIFCredentialSelectorDlg
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

Generated on Mon Nov 15 11:15:50 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6