diff options
author | Sam Hartman <hartmans@mit.edu> | 2011-09-28 21:02:14 +0000 |
---|---|---|
committer | Sam Hartman <hartmans@mit.edu> | 2011-09-28 21:02:14 +0000 |
commit | caef99b21536d9e8c2f9c637fcf020b4e082db5d (patch) | |
tree | b360ec8449876ea170691685cde758d9849fc8ef /src/windows/leash/Krb5Properties.h | |
parent | 8481c14298a1886f63bec0d7cdfd800a86b4c127 (diff) | |
download | krb5-caef99b21536d9e8c2f9c637fcf020b4e082db5d.tar.gz krb5-caef99b21536d9e8c2f9c637fcf020b4e082db5d.tar.xz krb5-caef99b21536d9e8c2f9c637fcf020b4e082db5d.zip |
Initial import of KFW 3.2.2 Leash32 code
Signed-off-by: Alexey Melnikov <aamelnikov@gmail.com>
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25278 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/windows/leash/Krb5Properties.h')
-rw-r--r-- | src/windows/leash/Krb5Properties.h | 172 |
1 files changed, 172 insertions, 0 deletions
diff --git a/src/windows/leash/Krb5Properties.h b/src/windows/leash/Krb5Properties.h new file mode 100644 index 0000000000..c091ddd55b --- /dev/null +++ b/src/windows/leash/Krb5Properties.h @@ -0,0 +1,172 @@ +// ************************************************************************************** +// File: Krb5Properties.h +// By: Arthur David Leather +// Created: 12/02/98 +// Copyright @1998 Massachusetts Institute of Technology - All rights reserved. +// Description: H file for Krb5Properties.cpp. Contains variables and functions +// for Kerberos Five Properties +// +// History: +// +// MM/DD/YY Inits Description of Change +// 12/02/98 ADL Original +// ************************************************************************************** + + +#if !defined(AFX_KRB5PROPERTIES_H__9011A0B3_6E92_11D2_9454_0000861B8A3C__INCLUDED_) +#define AFX_KRB5PROPERTIES_H__9011A0B3_6E92_11D2_9454_0000861B8A3C__INCLUDED_ + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 +// Krb5Properties.h : header file +// + +///////////////////////////////////////////////////////////////////////////// +// CKrb5ConfigOptions dialog + +class CKrb5ConfigFileLocation : public CPropertyPage +{ +// Construction +private: + DECLARE_DYNCREATE(CKrb5ConfigFileLocation) + CString m_initConfigFile; + CString m_initTicketFile; + CString m_newConfigFile; + CString m_newTicketFile; + BOOL m_startupPage1; + +public: + CKrb5ConfigFileLocation(); // standard constructor + +// Dialog Data + //{{AFX_DATA(CKrb5ConfigFileLocation) + enum { IDD = IDD_KRB5_PROP_LOCATION }; + CEdit m_ticketEditBox; + //}}AFX_DATA + + +// Overrides + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CKrb5ConfigFileLocation) + public: + protected: + virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support + //}}AFX_VIRTUAL + + virtual BOOL OnApply(); + + // Implementation +protected: + + // Generated message map functions + //{{AFX_MSG(CKrb5ConfigFileLocation) + virtual BOOL OnInitDialog(); + afx_msg void OnButtonKrb5iniBrowse(); + afx_msg void OnButtonKrb5TicketfileBrowse(); + afx_msg void OnChangeEditKrb5TxtFile(); + afx_msg void OnChangeEditKrb5iniLocation(); + afx_msg void OnShowWindow(BOOL bShow, UINT nStatus); + //}}AFX_MSG + DECLARE_MESSAGE_MAP() +}; + + +///////////////////////////////////////////////////////////////////////////// +// CKrb5ConfigOptions dialog + +class CKrb5ConfigOptions : public CPropertyPage +{ +// Construction +private: + DECLARE_DYNCREATE(CKrb5ConfigOptions) + INT m_initForwardable; + INT m_newForwardable; + INT m_initProxiable; + INT m_newProxiable; + INT m_initRenewable; + INT m_newRenewable; + INT m_initNoAddress; + INT m_newNoAddress; + DWORD m_initIPAddress; +#ifdef SET_PUBLIC_IP + DWORD m_newIPAddress; +#endif /* SET_PUBLIC_IP */ + +public: + CKrb5ConfigOptions(); // standard constructor + +// Dialog Data + //{{AFX_DATA(CKrb5ConfigOptions) + enum { IDD = IDD_KRB5_PROP_CONTENT }; + //}}AFX_DATA + + +// Overrides + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CKrb5ConfigOptions) + protected: + virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support + //}}AFX_VIRTUAL + + virtual BOOL OnApply(); + +// Implementation +protected: + + // Generated message map functions + //{{AFX_MSG(CKrb5ConfigOptions) + virtual BOOL OnInitDialog(); + afx_msg void OnCheckForwardable(); + afx_msg void OnCheckProxiable(); + afx_msg void OnCheckRenewable(); + afx_msg void OnCheckNoAddress(); + //}}AFX_MSG + DECLARE_MESSAGE_MAP() +}; + +class CKrb5Properties : public CPropertySheet +{ +private: + DECLARE_DYNAMIC(CKrb5Properties) + +public: + CKrb5ConfigFileLocation m_fileLocation; + CKrb5ConfigOptions m_configOptions; + +// Construction +public: + CKrb5Properties(UINT nIDCaption, CWnd* pParentWnd = NULL, + UINT iSelectPage = 0); + CKrb5Properties(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, + UINT iSelectPage = 0); + +// Attributes +public: + +// Operations +public: + +// Overrides + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CKrb5Properties) + //}}AFX_VIRTUAL + +// Implementation +public: + virtual ~CKrb5Properties(); + + // Generated message map functions +protected: + //{{AFX_MSG(CKrb5Properties) + // NOTE - the ClassWizard will add and remove member functions here. + afx_msg void OnHelp(); + //}}AFX_MSG + DECLARE_MESSAGE_MAP() +}; + + +//{{AFX_INSERT_LOCATION}} +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. + +#endif // !defined(AFX_KRB5PROPERTIES_H__9011A0B3_6E92_11D2_9454_0000861B8A3C__INCLUDED_) |