rx: Remove RX_CALL_BUSY
[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 #ifndef __ADD_ACL_ENTRY_DLG_H__
10 #define __ADD_ACL_ENTRY_DLG_H__
11
12 class CSetACLInterface
13 {
14 public:
15     virtual BOOL IsNameInUse(BOOL bNormal, const CString& strName) = 0;
16 };
17
18 /////////////////////////////////////////////////////////////////////////////
19 // CAddAclEntryDlg dialog
20
21 class CAddAclEntryDlg : public CDialog
22 {
23         BOOL m_bNormal;
24         CString m_Rights;
25         CString m_strName;
26         CSetACLInterface *m_pAclSetDlg;
27
28         CString MakePermString();
29
30 // Construction
31 public:
32         CAddAclEntryDlg(CWnd* pParent = NULL);   // standard constructor
33
34         void SetAclDlg(CSetACLInterface *pAclSetDlg)    { m_pAclSetDlg = pAclSetDlg; }
35
36         CString GetName()               { return m_strName; }
37         CString GetRights()             { return m_Rights; }
38         BOOL IsNormal()                 { return m_bNormal; }
39
40 // Dialog Data
41         //{{AFX_DATA(CAddAclEntryDlg)
42         enum { IDD = IDD_ADD_ACL };
43         CButton m_Ok;
44         CEdit   m_Name;
45         CButton m_NormalEntry;
46         CButton m_LookupPerm;
47         CButton m_LockPerm;
48         CButton m_WritePerm;
49         CButton m_AdminPerm;
50         CButton m_ReadPerm;
51         CButton m_InsertPerm;
52         CButton m_DeletePerm;
53         //}}AFX_DATA
54
55 // Overrides
56         // ClassWizard generated virtual function overrides
57         //{{AFX_VIRTUAL(CAddAclEntryDlg)
58         protected:
59         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
60         //}}AFX_VIRTUAL
61
62 // Implementation
63 protected:
64
65         // Generated message map functions
66         //{{AFX_MSG(CAddAclEntryDlg)
67         afx_msg void OnAddNegativeEntry();
68         afx_msg void OnAddNormalEntry();
69         virtual BOOL OnInitDialog();
70         virtual void OnOK();
71         afx_msg void OnChangeName();
72         afx_msg void OnHelp();
73         //}}AFX_MSG
74         DECLARE_MESSAGE_MAP()
75 };
76
77 #endif