NameConstraintsPanel.h

Go to the documentation of this file.
00001 
00010 #ifndef __NameConstraintsPanel_H__
00011 #define __NameConstraintsPanel_H__
00012 
00013 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) && defined(PKIFRESOURCES_ALLOW_GCC_PRAGMA)
00014     #pragma interface "NameConstraintsPanel.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 // CPKIFNameConstraintsPanel
00030 //----------------------------------------------------------------------------
00037 class PKIFRESOURCES_API CPKIFNameConstraintsPanel: public wxPanel
00038 {
00039 public:
00040     // constructors and destructors
00041     CPKIFNameConstraintsPanel( 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 CPKIFNameConstraintsPanel
00047      wxListBox* GetListboxPermNC()  { return (wxListBox*) FindWindow( ID_LISTBOX_PERM_NC ); }
00048      wxListBox* GetListboxExclNC()  { return (wxListBox*) FindWindow( ID_LISTBOX_EXCL_NC ); }
00049 
00050 
00051      CPKIFGeneralSubtreeListPtr GetExcludedNameConstraints();
00052      CPKIFGeneralSubtreeListPtr GetPermittedNameConstraints();
00053 
00054     void SetInitialPathSettings(CPKIFPathSettingsPtr& ps);
00055     void OnInitDialog(wxInitDialogEvent& event);
00056 
00057 private:
00058     CPKIFPathSettingsPtr m_initialPathSettings; 
00059     CPKIFGeneralSubtreeList m_permNCList;
00060     CPKIFGeneralSubtreeList m_exclNCList;
00061     // WDR: member variable declarations for CPKIFNameConstraintsPanel
00062     
00063 private:
00064     // WDR: handler declarations for CPKIFNameConstraintsPanel
00065     void OnRemovePermNC( wxCommandEvent &event );
00066     //void OnEditPermNC( wxCommandEvent &event );
00067     void OnAddPermNC( wxCommandEvent &event );
00068     void OnRemoveExclNC( wxCommandEvent &event );
00069     //void OnEditExclNC( wxCommandEvent &event );
00070     void OnAddExclNC( wxCommandEvent &event );
00071 
00072 private:
00073     DECLARE_EVENT_TABLE()
00074 };
00075 
00076 
00077 
00078 
00079 #endif

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