windows-file-versioning-20030619
[openafs.git] / src / WINNT / client_exp / add_submount_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 #include "resource.h"
11
12 class CSubmountInfo;
13
14 /////////////////////////////////////////////////////////////////////////////
15 // CAddSubmtDlg dialog
16
17 class CAddSubmtDlg : public CDialog
18 {
19         BOOL m_bAdd;
20         BOOL m_bSave;
21         
22         void CheckEnableOk();
23         
24 // Construction
25 public:
26         CAddSubmtDlg(CWnd* pParent = NULL);   // standard constructor
27
28         void SetAddMode(BOOL bAddMode)  { m_bAdd = bAddMode; }
29
30         void SetSubmtInfo(CSubmountInfo *pInfo);
31         CSubmountInfo *GetSubmtInfo();
32
33 // Dialog Data
34         //{{AFX_DATA(CAddSubmtDlg)
35         enum { IDD = IDD_ADD_SUBMOUNT };
36         CButton m_Ok;
37         CString m_strShareName;
38         CString m_strPathName;
39         //}}AFX_DATA
40
41
42 // Overrides
43         // ClassWizard generated virtual function overrides
44         //{{AFX_VIRTUAL(CAddSubmtDlg)
45         protected:
46         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
47         //}}AFX_VIRTUAL
48
49 // Implementation
50 protected:
51
52         // Generated message map functions
53         //{{AFX_MSG(CAddSubmtDlg)
54         virtual BOOL OnInitDialog();
55         afx_msg void OnChangeShareName();
56         afx_msg void OnChangePathName();
57         virtual void OnOK();
58         afx_msg void OnHelp();
59         //}}AFX_MSG
60         DECLARE_MESSAGE_MAP()
61 };