-rw-r--r-- | PropsACL.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/PropsACL.h b/PropsACL.h new file mode 100644 index 0000000..c8773e7 --- a/dev/null +++ b/PropsACL.h | |||
@@ -0,0 +1,71 @@ | |||
1 | // PropsACL.h : header file | ||
2 | // | ||
3 | |||
4 | ///////////////////////////////////////////////////////////////////////////// | ||
5 | // CPropsACL dialog | ||
6 | |||
7 | class CPropsACL : public CPropertyPage | ||
8 | { | ||
9 | DECLARE_DYNCREATE(CPropsACL) | ||
10 | |||
11 | // Construction | ||
12 | public: | ||
13 | void SetListFocusSelection(int i); | ||
14 | UINT GetRule(acl_rule& r); | ||
15 | void GetListRule(int i,acl_rule& r); | ||
16 | void SetOp(int op); | ||
17 | void SetRule(acl_rule& r); | ||
18 | void SetListRule(int i,acl_rule& r); | ||
19 | int m_iWRQ; | ||
20 | int m_iRRQ; | ||
21 | CImageList m_Images; | ||
22 | int GetOp(); | ||
23 | acl_rules_t m_rulist; | ||
24 | int m_FocusedRule; | ||
25 | void UpdateControls(); | ||
26 | enum { | ||
27 | subitemIP=0, subitemNM, subitemAction | ||
28 | }; | ||
29 | |||
30 | CPropsACL(); | ||
31 | ~CPropsACL(); | ||
32 | |||
33 | // Dialog Data | ||
34 | //{{AFX_DATA(CPropsACL) | ||
35 | enum { IDD = IDD_PROPS_ACL }; | ||
36 | CButtonm_ReplaceCtl; | ||
37 | CEditm_NetmaskCtl; | ||
38 | CComboBoxm_XferCtl; | ||
39 | CButtonm_UpCtl; | ||
40 | CACLTargetCombom_RuleCtl; | ||
41 | CButtonm_RemoveCtl; | ||
42 | CListCtrlm_ListCtl; | ||
43 | CButtonm_DownCtl; | ||
44 | CEditm_AddrCtl; | ||
45 | CButtonm_AddCtl; | ||
46 | //}}AFX_DATA | ||
47 | |||
48 | |||
49 | // Overrides | ||
50 | // ClassWizard generate virtual function overrides | ||
51 | //{{AFX_VIRTUAL(CPropsACL) | ||
52 | protected: | ||
53 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support | ||
54 | //}}AFX_VIRTUAL | ||
55 | |||
56 | // Implementation | ||
57 | protected: | ||
58 | // Generated message map functions | ||
59 | //{{AFX_MSG(CPropsACL) | ||
60 | virtual BOOL OnInitDialog(); | ||
61 | afx_msg void OnSelchangeAclXfer(); | ||
62 | afx_msg void OnItemchangedAclList(NMHDR* pNMHDR, LRESULT* pResult); | ||
63 | afx_msg void OnAclAdd(); | ||
64 | afx_msg void OnAclReplace(); | ||
65 | afx_msg void OnAclRemove(); | ||
66 | afx_msg void OnAclUp(); | ||
67 | afx_msg void OnAclDown(); | ||
68 | //}}AFX_MSG | ||
69 | DECLARE_MESSAGE_MAP() | ||
70 | |||
71 | }; | ||