Initial IBM OpenAFS 1.0 tree
[openafs.git] / src / WINNT / client_exp / add_acl_entry_dlg.h
1 /*
2  * Copyright (C) 1997  Transarc Corporation.
3  * All rights reserved.
4  *
5  */
6
7 // add_acl_entry_dlg.h : header file
8 //
9 class CSetAfsAcl;
10
11 /////////////////////////////////////////////////////////////////////////////
12 // CAddAclEntryDlg dialog
13
14 class CAddAclEntryDlg : public CDialog
15 {
16         BOOL m_bNormal;
17         CString m_Rights;
18         CString m_strName;
19         CSetAfsAcl *m_pAclSetDlg;
20
21         CString MakePermString();
22
23 // Construction
24 public:
25         CAddAclEntryDlg(CWnd* pParent = NULL);   // standard constructor
26
27         void SetAclDlg(CSetAfsAcl *pAclSetDlg)  { m_pAclSetDlg = pAclSetDlg; }
28
29         CString GetName()               { return m_strName; }
30         CString GetRights()             { return m_Rights; }
31         BOOL IsNormal()                 { return m_bNormal; }
32
33 // Dialog Data
34         //{{AFX_DATA(CAddAclEntryDlg)
35         enum { IDD = IDD_ADD_ACL };
36         CButton m_Ok;
37         CEdit   m_Name;
38         CButton m_NormalEntry;
39         CButton m_LookupPerm;
40         CButton m_LockPerm;
41         CButton m_WritePerm;
42         CButton m_AdminPerm;
43         CButton m_ReadPerm;
44         CButton m_InsertPerm;
45         CButton m_DeletePerm;
46         //}}AFX_DATA
47
48 // Overrides
49         // ClassWizard generated virtual function overrides
50         //{{AFX_VIRTUAL(CAddAclEntryDlg)
51         protected:
52         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
53         //}}AFX_VIRTUAL
54
55 // Implementation
56 protected:
57
58         // Generated message map functions
59         //{{AFX_MSG(CAddAclEntryDlg)
60         afx_msg void OnAddNegativeEntry();
61         afx_msg void OnAddNormalEntry();
62         virtual BOOL OnInitDialog();
63         virtual void OnOK();
64         afx_msg void OnChangeName();
65         afx_msg void OnHelp();
66         //}}AFX_MSG
67         DECLARE_MESSAGE_MAP()
68 };