Imported Upstream version 1.15.2
[platform/upstream/krb5.git] / src / windows / leash / Krb5Properties.h
1 //      **************************************************************************************
2 //      File:                   Krb5Properties.h
3 //      By:                             Arthur David Leather
4 //      Created:                12/02/98
5 //      Copyright               @1998 Massachusetts Institute of Technology - All rights reserved.
6 //      Description:    H file for Krb5Properties.cpp. Contains variables and functions
7 //                                      for Kerberos Five Properties
8 //
9 //      History:
10 //
11 //      MM/DD/YY        Inits   Description of Change
12 //      12/02/98        ADL             Original
13 //      **************************************************************************************
14
15
16 #if !defined(AFX_KRB5PROPERTIES_H__9011A0B3_6E92_11D2_9454_0000861B8A3C__INCLUDED_)
17 #define AFX_KRB5PROPERTIES_H__9011A0B3_6E92_11D2_9454_0000861B8A3C__INCLUDED_
18
19 #if _MSC_VER > 1000
20 #pragma once
21 #endif // _MSC_VER > 1000
22 // Krb5Properties.h : header file
23 //
24
25 /////////////////////////////////////////////////////////////////////////////
26 // CKrb5ConfigOptions dialog
27
28 class CKrb5ConfigFileLocation : public CPropertyPage
29 {
30 // Construction
31 private:
32         DECLARE_DYNCREATE(CKrb5ConfigFileLocation)
33         CString m_initConfigFile;
34         CString m_initTicketFile;
35         CString m_newConfigFile;
36         CString m_newTicketFile;
37         BOOL m_startupPage1;
38
39 public:
40         CKrb5ConfigFileLocation();   // standard constructor
41
42 // Dialog Data
43         //{{AFX_DATA(CKrb5ConfigFileLocation)
44         enum { IDD = IDD_KRB5_PROP_LOCATION };
45         CEdit   m_ticketEditBox;
46         //}}AFX_DATA
47
48
49 // Overrides
50         // ClassWizard generated virtual function overrides
51         //{{AFX_VIRTUAL(CKrb5ConfigFileLocation)
52         public:
53         protected:
54         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
55         //}}AFX_VIRTUAL
56
57         virtual BOOL OnApply();
58
59  // Implementation
60 protected:
61
62         // Generated message map functions
63         //{{AFX_MSG(CKrb5ConfigFileLocation)
64         virtual BOOL OnInitDialog();
65         afx_msg void OnButtonKrb5iniBrowse();
66         afx_msg void OnButtonKrb5TicketfileBrowse();
67         afx_msg void OnChangeEditKrb5TxtFile();
68         afx_msg void OnChangeEditKrb5iniLocation();
69         afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
70         //}}AFX_MSG
71         DECLARE_MESSAGE_MAP()
72 };
73
74
75 /////////////////////////////////////////////////////////////////////////////
76 // CKrb5ConfigOptions dialog
77
78 class CKrb5ConfigOptions : public CPropertyPage
79 {
80 // Construction
81 private:
82         DECLARE_DYNCREATE(CKrb5ConfigOptions)
83         INT m_initForwardable;
84         INT m_newForwardable;
85         INT m_initProxiable;
86         INT m_newProxiable;
87         INT m_initRenewable;
88         INT m_newRenewable;
89         INT m_initNoAddress;
90         INT m_newNoAddress;
91     DWORD m_initIPAddress;
92 #ifdef SET_PUBLIC_IP
93     DWORD m_newIPAddress;
94 #endif /* SET_PUBLIC_IP */
95
96 public:
97         CKrb5ConfigOptions();   // standard constructor
98
99 // Dialog Data
100         //{{AFX_DATA(CKrb5ConfigOptions)
101         enum { IDD = IDD_KRB5_PROP_CONTENT };
102         //}}AFX_DATA
103
104
105 // Overrides
106         // ClassWizard generated virtual function overrides
107         //{{AFX_VIRTUAL(CKrb5ConfigOptions)
108         protected:
109         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
110         //}}AFX_VIRTUAL
111
112         virtual BOOL OnApply();
113
114 // Implementation
115 protected:
116
117         // Generated message map functions
118         //{{AFX_MSG(CKrb5ConfigOptions)
119         virtual BOOL OnInitDialog();
120         afx_msg void OnCheckForwardable();
121         afx_msg void OnCheckProxiable();
122         afx_msg void OnCheckRenewable();
123         afx_msg void OnCheckNoAddress();
124         //}}AFX_MSG
125         DECLARE_MESSAGE_MAP()
126 };
127
128 class CKrb5Properties : public CPropertySheet
129 {
130 private:
131         DECLARE_DYNAMIC(CKrb5Properties)
132
133 public:
134         CKrb5ConfigFileLocation m_fileLocation;
135         CKrb5ConfigOptions m_configOptions;
136
137 // Construction
138 public:
139         CKrb5Properties(UINT nIDCaption, CWnd* pParentWnd = NULL,
140                    UINT iSelectPage = 0);
141         CKrb5Properties(LPCTSTR pszCaption, CWnd* pParentWnd = NULL,
142                    UINT iSelectPage = 0);
143
144 // Attributes
145 public:
146
147 // Operations
148 public:
149
150 // Overrides
151         // ClassWizard generated virtual function overrides
152         //{{AFX_VIRTUAL(CKrb5Properties)
153         //}}AFX_VIRTUAL
154
155 // Implementation
156 public:
157         virtual ~CKrb5Properties();
158
159         // Generated message map functions
160 protected:
161         //{{AFX_MSG(CKrb5Properties)
162                 // NOTE - the ClassWizard will add and remove member functions here.
163     afx_msg void OnHelp();
164     //}}AFX_MSG
165         DECLARE_MESSAGE_MAP()
166 };
167
168
169 //{{AFX_INSERT_LOCATION}}
170 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
171
172 #endif // !defined(AFX_KRB5PROPERTIES_H__9011A0B3_6E92_11D2_9454_0000861B8A3C__INCLUDED_)