Main Page | Class List | File List | Class Members | File Members

ConfigDialog.h

Go to the documentation of this file.
00001 /*
00002 pGina ldapAuth code - based upon skeleton code for pGina plugin development
00003 Copyright (C) 2002 Micah Cooper
00004 
00005 This program is free software; you can redistribute it and/or
00006 modify it under the terms of the GNU General Public License
00007 as published by the Free Software Foundation; either version 2
00008 of the License, or (at your option) any later version.
00009 
00010 This program is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 GNU General Public License for more details.
00014 
00015 You should have received a copy of the GNU General Public License
00016 along with this program; if not, write to the Free Software
00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00018 
00019 Email: coopermj@muohio.edu
00020 Snail Mail:
00021         Micah Cooper
00022         212A Kreger Hall
00023         Miami University
00024         Oxford OH  45056
00025 */
00026 #pragma once
00027 
00028 #include "Resource.h"
00029 #include "afxwin.h"
00030 
00031 // CConfigDialog dialog
00032 
00033 class CConfigDialog : public CDialog
00034 {
00035         DECLARE_DYNAMIC(CConfigDialog)
00036 
00037 public:
00038         CConfigDialog(CWnd* pParent = NULL);   // standard constructor
00039         virtual ~CConfigDialog();
00040         void loadListsFromReg(void); // load the lists from the registry
00041         void saveListsToReg(void); // save the lists to the registry
00042         // Dialog Data
00043         enum { IDD = IDD_CONFIGURE_DIALOG };
00044 
00045 protected:
00046         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00047 
00048         DECLARE_MESSAGE_MAP()
00049 public:
00050         // Used to display the LDAPAuth Version
00051         CString m_version;
00052         afx_msg void OnSave();
00053         CString m_server;
00054         CString m_ldapPrePend;
00055         CString m_ldapAppend;
00056         CString m_ldapAdminUsername;
00057         CString m_ldapAdminPassword;
00058         BOOL m_useSSL;
00059         CString m_port;
00060         CString m_ldapFilter;
00061         CString m_ldapGroupAttr;
00062         BOOL m_searchMode;
00063         afx_msg void OnChangeSearch();
00064         BOOL m_multiMap;
00065         afx_msg void OnChangeMultimap();
00066         BOOL m_mapMode;
00067         afx_msg void OnChangeMapMode();
00068         CListBox m_ContextList;
00069         CString m_newContext;
00070         afx_msg void OnAddContext();
00071         afx_msg void OnMoveContextUp();
00072         afx_msg void OnMoveContextDown();
00073         CListBox m_AdminList;
00074         CString m_NewAdmin;
00075         afx_msg void OnAddAdmin();
00076         CListBox m_UserList;
00077         CString m_newUser;
00078         afx_msg void OnAddNewUser();
00079         
00080         afx_msg void OnRemoveContext();
00081         afx_msg void OnRemoveAdmin();
00082         afx_msg void OnRemoveUser();
00083         bool hasLoaded;
00084         void CConfigDialog::swapItem(CListBox *,int, int);
00085         afx_msg void OnLbnSelchangeContextlist2();
00086         //afx_msg void OnBnClickedCancel2();
00087         afx_msg void OnBnClickedHelp();
00088 protected:
00089         // Control display of ldapPrePend field
00090         CEdit c_ldapPrePend;
00091 public:
00092         CEdit c_ldapAppend;
00093         CEdit c_newcontext;
00094         CButton c_usessl;
00095 };

Generated on Fri Feb 20 12:03:37 2004 for ldapauth plugin for pGina by doxygen 1.3.5