Imported Upstream version 1.15.2
[platform/upstream/krb5.git] / src / windows / leash / KrbRealmHostMaintenance.h
1 //      **************************************************************************************
2 //      File:                   KrbRealmHostMaintenance.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 KrbRealmHostMaintenance.cpp. Contains variables and functions
7 //                                      for Kerberos Four and 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_KRBREALMNAMEMAINTENANCE_H__2FE711C3_8E9A_11D2_94C5_0000861B8A3C__INCLUDED_)
17 #define AFX_KRBREALMNAMEMAINTENANCE_H__2FE711C3_8E9A_11D2_94C5_0000861B8A3C__INCLUDED_
18
19 #if _MSC_VER > 1000
20 #pragma once
21 #endif // _MSC_VER > 1000
22
23
24 /////////////////////////////////////////////////////////////////////////////
25 // CKrbRealmHostMaintenance dialog
26
27 #include "resource.h"
28 #include "CLeashDragListBox.h"
29
30 #define MAXLINE 256
31
32 class CKrbRealmHostMaintenance : public CPropertyPage
33 {
34 // Construction
35 private:
36         DECLARE_DYNCREATE(CKrbRealmHostMaintenance)
37         CHAR lineBuf[MAXLINE];
38         CString m_theAdminServerMarked;
39         CString m_theAdminServer;
40         BOOL m_isRealmListBoxInFocus;
41         BOOL m_isStart;
42     BOOL m_initDnsKdcLookup;
43     BOOL m_newDnsKdcLookup;
44
45         bool OnButtonKdchostAddInternal();
46
47         //void ResetDefaultRealmComboBox();
48
49 public:
50         //CKrbRealmHostMaintenance(CWnd* pParent = NULL);   // standard constructor
51         CKrbRealmHostMaintenance();
52         virtual ~CKrbRealmHostMaintenance();
53
54 // Dialog Data
55         //{{AFX_DATA(CKrbRealmHostMaintenance)
56         enum { IDD = IDD_KRB_REALMHOST_MAINT };
57         CListBox        m_KDCRealmList;
58         CLeashDragListBox m_KDCHostList;
59         //}}AFX_DATA
60
61
62 // Overrides
63         // ClassWizard generated virtual function overrides
64         //{{AFX_VIRTUAL(CKrbRealmHostMaintenance)
65         public:
66         virtual BOOL PreTranslateMessage(MSG* pMsg);
67         protected:
68         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
69         //}}AFX_VIRTUAL
70
71
72 // Implementation
73 protected:
74
75         // Generated message map functions
76         //{{AFX_MSG(CKrbRealmHostMaintenance)
77         virtual BOOL OnInitDialog();
78         virtual BOOL OnApply();
79         virtual void OnCancel();
80         afx_msg void OnButtonRealmHostAdd();
81         afx_msg void OnButtonRealmHostEdit();
82         afx_msg void OnButtonRealmHostRemove();
83         afx_msg void OnSelchangeListKdcRealm();
84         afx_msg void OnButtonAdminserver();
85         afx_msg void OnSetfocusListKdcRealm();
86         afx_msg void OnButtonKdchostAdd();
87         afx_msg void OnButtonKdchostRemove();
88         afx_msg void OnButtonRemoveAdminserver();
89         afx_msg void OnSelchangeListKdcHost();
90         afx_msg void OnButtonKdchostEdit();
91         afx_msg void OnDblclkListKdcRealm();
92         afx_msg void OnDblclkListKdcHost();
93         afx_msg void OnButtonRealmhostMaintHelp();
94     afx_msg void OnCheckDnsKdcLookup();
95         //}}AFX_MSG
96         DECLARE_MESSAGE_MAP()
97 };
98
99 //{{AFX_INSERT_LOCATION}}
100 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
101
102 #endif // !defined(AFX_KRBREALMNAMEMAINTENANCE_H__2FE711C3_8E9A_11D2_94C5_0000861B8A3C__INCLUDED_)