LINUX: afs_create infinite fetchStatus loop
[pkg-k5-afs_openafs.git] / src / WINNT / client_exp / add_acl_entry_dlg.h
blob4f48ca935ef33b5ed466db6816636c1e332ed981
1 /*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
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__
12 class CSetACLInterface
14 public:
15 virtual BOOL IsNameInUse(BOOL bNormal, const CString& strName) = 0;
18 /////////////////////////////////////////////////////////////////////////////
19 // CAddAclEntryDlg dialog
21 class CAddAclEntryDlg : public CDialog
23 BOOL m_bNormal;
24 CString m_Rights;
25 CString m_strName;
26 CSetACLInterface *m_pAclSetDlg;
28 CString MakePermString();
30 // Construction
31 public:
32 CAddAclEntryDlg(CWnd* pParent = NULL); // standard constructor
34 void SetAclDlg(CSetACLInterface *pAclSetDlg) { m_pAclSetDlg = pAclSetDlg; }
36 CString GetName() { return m_strName; }
37 CString GetRights() { return m_Rights; }
38 BOOL IsNormal() { return m_bNormal; }
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
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
62 // Implementation
63 protected:
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()
77 #endif