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 00030 // CConfigHooks dialog 00031 00032 class CConfigHooks : public CDialog 00033 { 00034 DECLARE_DYNAMIC(CConfigHooks) 00035 00036 public: 00037 CConfigHooks(CWnd* pParent = NULL); // standard constructor 00038 virtual ~CConfigHooks(); 00039 void loadListsFromReg(void); // load the lists from the registry 00040 void saveListsToReg(void); // save the lists to the registry 00041 00042 // Dialog Data 00043 enum { IDD = IDD_HOOK_TAB }; 00044 00045 protected: 00046 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00047 00048 DECLARE_MESSAGE_MAP() 00049 public: 00050 CListBox m_LoginHookList; 00051 CListBox m_LogoutHookList; 00052 CString m_newLoginHook; 00053 CString m_newLogoutHook; 00054 bool hasLoaded; 00055 00056 afx_msg void OnOK(); 00057 afx_msg void OnAddLoginHook(); 00058 afx_msg void OnRemoveLoginHook(); 00059 afx_msg void OnAddLogoutHook(); 00060 afx_msg void OnRemoveLogoutHook(); 00061 afx_msg void OnSave(); 00062 afx_msg void OnBrowseLogin(); 00063 afx_msg void OnBrowseLogout(); 00064 afx_msg void OnMoveLoginUp(); 00065 afx_msg void OnMoveLoginDown(); 00066 afx_msg void OnMoveLogoutUp(); 00067 afx_msg void OnMoveLogoutDown(); 00068 void swapItem(CListBox *,int, int); 00069 };