CertificateDetailsPanel.h

Go to the documentation of this file.
00001 
00010 #ifndef __CertificateDetailsPanel_H__
00011 #define __CertificateDetailsPanel_H__
00012 
00013 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) && defined(PKIFRESOURCES_ALLOW_GCC_PRAGMA)
00014     #pragma interface "CertificateDetailsPanel.cpp"
00015 #endif
00016 
00017 #ifndef WX_PRECOMP
00018     #include "wx/wx.h"
00019 #endif
00020 
00021 #include "PKIFResources_wdr.h"
00022 #include "PKIFResources.h"
00023 #include "PolicyInformation.h"
00024 #include "PKIFPathSettings.h"
00025 
00026 // WDR: class declarations
00027 
00028 //----------------------------------------------------------------------------
00029 // CPKIFCertificateDetailsPanel
00030 //----------------------------------------------------------------------------
00037 class PKIFRESOURCES_API CPKIFCertificateDetailsPanel: public wxPanel
00038 {
00039 public:
00040     // constructors and destructors
00041     CPKIFCertificateDetailsPanel( wxWindow *parent, wxWindowID id = -1,
00042         const wxPoint& pos = wxDefaultPosition,
00043         const wxSize& size = wxDefaultSize,
00044         long style = wxTAB_TRAVERSAL | wxNO_BORDER );
00045     
00046     // WDR: method declarations for CPKIFCertificateDetailsPanel
00047     wxListCtrl* GetCertDetailsList()  { return (wxListCtrl*) FindWindow( PKIFR_ID_CERT_DETAILS_LIST ); }
00048     wxTextCtrl* GetCertDetails()  { return (wxTextCtrl*) FindWindow( PKIFR_ID_CERT_FIELD_DETAILS ); }
00049     wxButton* GetSaveCerts()  { return (wxButton*) FindWindow( PKIFR_ID_COPY_TO_FILE ); }
00050     wxChoice* GetFieldSelection()  { return (wxChoice*) FindWindow( PKIFR_ID_FIELDS_CHOICE ); }
00051 
00052     void SetCertificate(CPKIFCertificatePtr& cert);
00053     void OnInitDialog(wxInitDialogEvent& event);
00054 
00055 private:
00056     CPKIFCertificatePtr m_cert;
00057     int m_fieldCount;
00058     void PopulateList();
00059     void PopulateListThumbprint();
00060     void PopulateListExtensions(bool criticalOnly);
00061     // WDR: member variable declarations for CPKIFCertificateDetailsPanel
00062     
00063 private:
00064     // WDR: handler declarations for CPKIFCertificateDetailsPanel
00065     void OnSelectItem(wxListEvent& event);
00066     void OnSaveCert(wxCommandEvent& event);
00067     void OnSelectFields(wxCommandEvent& event);
00068 
00069 private:
00070     DECLARE_EVENT_TABLE()
00071 };
00072 
00073 
00074 
00075 
00076 #endif

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