windows-updates-20021104
[openafs.git] / src / WINNT / client_exp / set_afs_acl.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 : public CDialog
11 {
12         CString m_strDir;
13         CString m_strCellName;
14         BOOL m_bShowingNormal;
15         CStringArray m_Normal, m_Negative;
16         BOOL m_bChanges;
17         int m_nCurSel;
18
19         void ShowRights(const CString& strRights);
20         CString MakeRightsString();
21         void EnablePermChanges(BOOL bEnable);
22
23         void OnNothingSelected();
24         void OnSelection();
25
26         // Construction
27 public:
28         CSetAfsAcl(CWnd* pParent = NULL);   // standard constructor
29
30         void SetDir(const CString strDir)               { m_strDir = strDir; }
31
32         BOOL IsNameInUse(BOOL bNormal, const CString& strName);
33
34 // Dialog Data
35         //{{AFX_DATA(CSetAfsAcl)
36         enum { IDD = IDD_SET_AFS_ACL };
37         CButton m_Remove;
38         CButton m_AdminPerm;
39         CButton m_LockPerm;
40         CButton m_InsertPerm;
41         CButton m_DeletePerm;
42         CButton m_LookupPerm;
43         CButton m_WritePerm;
44         CButton m_ReadPerm;
45         CStatic m_DirName;
46         CListBox        m_NegativeRights;
47         CListBox        m_NormalRights;
48         //}}AFX_DATA
49
50
51 // Overrides
52         // ClassWizard generated virtual function overrides
53         //{{AFX_VIRTUAL(CSetAfsAcl)
54         protected:
55         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
56         //}}AFX_VIRTUAL
57
58 // Implementation
59 protected:
60
61         // Generated message map functions
62         //{{AFX_MSG(CSetAfsAcl)
63         afx_msg void OnClear();
64         afx_msg void OnAdd();
65         afx_msg void OnCopy();
66         virtual BOOL OnInitDialog();
67         afx_msg void OnSelChangeNormalRights();
68         afx_msg void OnSelChangeNegativeEntries();
69         afx_msg void OnPermChange();
70         afx_msg void OnRemove();
71         virtual void OnOK();
72         afx_msg void OnClean();
73         afx_msg void OnHelp();
74         //}}AFX_MSG
75         DECLARE_MESSAGE_MAP()
76 };