nt-makefile-clean-targets-20010917
[openafs.git] / src / WINNT / client_exp / add_acl_entry_dlg.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 class CSetAfsAcl;
11
12 /////////////////////////////////////////////////////////////////////////////
13 // CAddAclEntryDlg dialog
14
15 class CAddAclEntryDlg : public CDialog
16 {
17         BOOL m_bNormal;
18         CString m_Rights;
19         CString m_strName;
20         CSetAfsAcl *m_pAclSetDlg;
21
22         CString MakePermString();
23
24 // Construction
25 public:
26         CAddAclEntryDlg(CWnd* pParent = NULL);   // standard constructor
27
28         void SetAclDlg(CSetAfsAcl *pAclSetDlg)  { m_pAclSetDlg = pAclSetDlg; }
29
30         CString GetName()               { return m_strName; }
31         CString GetRights()             { return m_Rights; }
32         BOOL IsNormal()                 { return m_bNormal; }
33
34 // Dialog Data
35         //{{AFX_DATA(CAddAclEntryDlg)
36         enum { IDD = IDD_ADD_ACL };
37         CButton m_Ok;
38         CEdit   m_Name;
39         CButton m_NormalEntry;
40         CButton m_LookupPerm;
41         CButton m_LockPerm;
42         CButton m_WritePerm;
43         CButton m_AdminPerm;
44         CButton m_ReadPerm;
45         CButton m_InsertPerm;
46         CButton m_DeletePerm;
47         //}}AFX_DATA
48
49 // Overrides
50         // ClassWizard generated virtual function overrides
51         //{{AFX_VIRTUAL(CAddAclEntryDlg)
52         protected:
53         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
54         //}}AFX_VIRTUAL
55
56 // Implementation
57 protected:
58
59         // Generated message map functions
60         //{{AFX_MSG(CAddAclEntryDlg)
61         afx_msg void OnAddNegativeEntry();
62         afx_msg void OnAddNormalEntry();
63         virtual BOOL OnInitDialog();
64         virtual void OnOK();
65         afx_msg void OnChangeName();
66         afx_msg void OnHelp();
67         //}}AFX_MSG
68         DECLARE_MESSAGE_MAP()
69 };