NameConstraintsEntryDlg.h
Go to the documentation of this file.00001
00010 #ifndef __NameConstraintsEntryDlg_H__
00011 #define __NameConstraintsEntryDlg_H__
00012
00013
00014 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) && defined(PKIFRESOURCES_ALLOW_GCC_PRAGMA)
00015 #pragma interface "NameConstraintsEntryDlg.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
00037 class PKIFRESOURCES_API CPKIFNameConstraintsEntryDlg: public wxDialog
00038 {
00039 public:
00040
00041 CPKIFNameConstraintsEntryDlg( wxWindow *parent, wxWindowID id, const wxString &title,
00042 const wxPoint& pos = wxDefaultPosition,
00043 const wxSize& size = wxDefaultSize,
00044 long style = wxDEFAULT_DIALOG_STYLE );
00045
00046
00047 virtual bool TransferDataToWindow();
00048 virtual bool TransferDataFromWindow();
00049
00050
00051 wxTextCtrl* GetTextDirName() { return (wxTextCtrl*) FindWindow( ID_TEXT_DIR_NAME ); }
00052 wxTextCtrl* GetTextRFC822Name() { return (wxTextCtrl*) FindWindow( ID_TEXT_RFC822_NAME ); }
00053 wxTextCtrl* GetTextDNSName() { return (wxTextCtrl*) FindWindow( ID_TEXT_DNS_NAME ); }
00054 wxTextCtrl* GetTextURI() { return (wxTextCtrl*) FindWindow( ID_TEXT_URI ); }
00055 wxTextCtrl* GetTextIPAddress() { return (wxTextCtrl*) FindWindow( ID_TEXT_IP_ADDR ); }
00056 wxTextCtrl* GetTextSubnetMask() { return (wxTextCtrl*) FindWindow( ID_TEXT_IP_MASK ); }
00057 wxButton* GetExportFromCert() { return (wxButton*) FindWindow( ID_BUTTON_EXPORT_INFO_FROM_CERT ); }
00058 wxChoice* GetGenNameType() { return (wxChoice*) FindWindow( ID_CHOICE_NAME_TYPE ); }
00059
00060 CPKIFGeneralSubtreePtr GetNameConstraint();
00061 void SetInitialNC(CPKIFGeneralSubtreePtr& nc);
00062 static wxChar m_IPIncludes[];
00063 static wxString m_longLiveThisString;
00064 private:
00065
00066
00067 wxTextValidator m_oidValidator;
00068 wxTextValidator m_IPValidator;
00069 wxSizer *m_sizer;
00070 CPKIFGeneralSubtreePtr m_nc;
00071 private:
00072
00073 void OnOk( wxCommandEvent &event );
00074 void OnCancel( wxCommandEvent &event );
00075 void OnExportFromCert( wxCommandEvent &event );
00076 void OnNameSelection( wxCommandEvent &event );
00077
00078 private:
00079 DECLARE_EVENT_TABLE()
00080 };
00081
00082
00083
00084
00085 #endif