ExtractInfoFromCertDlg.h
Go to the documentation of this file.00001
00009
00010 #ifndef __EXTRACTINFOFROMCERTDLG_H__
00011 #define __EXTRACTINFOFROMCERTDLG_H__
00012
00013 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) && defined(PKIFRESOURCES_ALLOW_GCC_PRAGMA)
00014 #pragma interface "ExtractInfoFromCertDialog.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 "DirectoryEntryDlg.h"
00024 #include "pkif.h"
00025
00026
00027
00034 class PKIFRESOURCES_API CExtractInfoFromCertDialog: public wxDialog
00035 {
00036 public:
00037
00038 CExtractInfoFromCertDialog( wxWindow *parent, wxWindowID id, const wxString &title,
00039 const wxPoint& pos = wxDefaultPosition,
00040 const wxSize& size = wxDefaultSize,
00041 long style = wxDEFAULT_DIALOG_STYLE,
00042 const wxString& certificatePath = wxT(""),
00043 bool subject = true);
00044
00045
00046 virtual bool TransferDataToWindow();
00047 virtual bool TransferDataFromWindow();
00048
00049 CPKIFGeneralSubtreePtr GetNamespace();
00050
00051 private:
00052
00053 wxString m_certLocation;
00054 std::string m_subjectName;
00055 std::vector<wxCheckBox*> m_rdnList;
00056 wxSizer *m_sizer;
00057 CPKIFCertificatePtr m_cert;
00058 bool m_subject;
00059
00060 private:
00061
00062 void OnOk( wxCommandEvent &event );
00063 void OnCancel( wxCommandEvent &event );
00064 void OnRDNChecked(wxCommandEvent &event);
00065
00066 private:
00067 DECLARE_EVENT_TABLE()
00068 };
00069
00070 #endif //__EXTRACTINFOFROMCERTDLG_H__