DirectoryEntryDlg.h

Go to the documentation of this file.
00001 
00010 #ifndef __DirectoryEntryDlg_H__
00011 #define __DirectoryEntryDlg_H__
00012 
00013 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) && defined(PKIFRESOURCES_ALLOW_GCC_PRAGMA)
00014     #pragma interface "DirectoryEntryDlg.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 "LdapAndOcspPanel.h"
00024 #include <vector>
00025 
00026 // WDR: class declarations
00027 
00028 //----------------------------------------------------------------------------
00029 // CPKIFDirectoryEntryDlg
00030 //----------------------------------------------------------------------------
00037 class PKIFRESOURCES_API CPKIFDirectoryEntryDlg: public wxDialog
00038 {
00039 public:
00040     // constructors and destructors
00041     CPKIFDirectoryEntryDlg( 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     // WDR: method declarations for CPKIFDirectoryEntryDlg
00047     wxTextCtrl* GetTextPort()  { return (wxTextCtrl*) FindWindow( ID_TEXT_PORT ); }
00048     wxTextCtrl* GetTextAddress()  { return (wxTextCtrl*) FindWindow( ID_TEXT_ADDRESS ); }
00049 
00050     
00051     wxListBox* GetNamespaceList()  { return (wxListBox*) FindWindow( ID_LISTBOX_DIR_NAMESPACES ); }
00052   
00053     void OnInitDialog(wxInitDialogEvent& event);
00054 
00055     void GetAddress(wxString& address) const;
00056     int GetPort() const;
00057     void SetAddress(const wxString& address);
00058     void SetPort(int port);
00059     CPKIFGeneralSubtreeList GetNamespaces() const;
00060     void SetNamespaces(CPKIFGeneralSubtreeList &rdnList);
00061 
00062     static wxChar m_intIncludes[];
00063     static wxString m_longLiveThisString;
00064 
00065 private:
00066     // WDR: member variable declarations for CPKIFDirectoryEntryDlg
00067 
00068     CPKIFGeneralSubtreeList m_rndList;
00069     
00070 private:
00071     // WDR: handler declarations for CPKIFDirectoryEntryDlg
00072     void OnOk( wxCommandEvent &event );
00073     void OnCancel( wxCommandEvent &event );
00074     void AddNamespace( wxCommandEvent &event );
00075     void RemoveNamespace( wxCommandEvent &event );
00076 
00077     wxString m_address;
00078     int m_port;
00079     wxTextValidator m_intValidator;
00080 
00081 private:
00082     DECLARE_EVENT_TABLE()
00083 };
00084 
00085 
00086 
00087 
00088 #endif

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