skyrope-mit-merge-hell-20040226
[openafs.git] / src / WINNT / client_exp / submounts_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
10 #ifndef _SUBMOUNTSDLG_H_
11 #define _SUBMOUNTSDLG_H_
12
13 #include "resource.h"
14
15 #include "submount_info.h"
16
17 /////////////////////////////////////////////////////////////////////////////
18 // CSubmountsDlg dialog
19
20 class CSubmountsDlg : public CDialog
21 {
22         DECLARE_DYNCREATE(CSubmountsDlg)
23
24         BOOL m_bAddOnlyMode;
25         CString m_strAddOnlyPath;
26
27         SUBMT_INFO_ARRAY m_ToDo;
28
29         BOOL FillSubmtList();
30         BOOL FixSubmts();
31         void AddWork(CSubmountInfo *pInfo);
32         CSubmountInfo *FindWork(const CString& strShareName);
33
34 // Construction
35 public:
36         CSubmountsDlg();
37         ~CSubmountsDlg();
38
39         void SetAddOnlyMode(const CString& strAddOnlyPath);
40
41 // Dialog Data
42         //{{AFX_DATA(CSubmountsDlg)
43         enum { IDD = IDD_SUBMTINFO };
44         CButton m_Delete;
45         CButton m_Change;
46         CListBox        m_SubmtList;
47         //}}AFX_DATA
48
49
50 // Overrides
51         // ClassWizard generate virtual function overrides
52         //{{AFX_VIRTUAL(CSubmountsDlg)
53         public:
54         virtual void WinHelp(DWORD dwData, UINT nCmd = HELP_CONTEXT);
55         protected:
56         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
57         //}}AFX_VIRTUAL
58
59 // Implementation
60 protected:
61         // Generated message map functions
62         //{{AFX_MSG(CSubmountsDlg)
63         afx_msg void OnAdd();
64         afx_msg void OnChange();
65         virtual BOOL OnInitDialog();
66         afx_msg void OnDelete();
67         afx_msg void OnSelChangeList();
68         afx_msg void OnOk();
69         //}}AFX_MSG
70         DECLARE_MESSAGE_MAP()
71
72 };
73
74 #endif  // _SUBMOUNTSDLG_H_
75