windows-file-versioning-20030619
[openafs.git] / src / WINNT / client_exp / submount_info.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 _SUBMOUNTINFO_H_
11 #define _SUBMOUNTINFO_H_
12
13 #include <afxtempl.h>
14
15 enum SUBMT_INFO_STATUS { SIS_NULL, SIS_ADDED, SIS_CHANGED, SIS_DELETED };
16
17
18 class CSubmountInfo : public CObject
19 {
20         SUBMT_INFO_STATUS m_Status;
21
22         CString m_strShareName;
23         CString m_strPathName;
24
25 public:
26         CSubmountInfo();
27         CSubmountInfo(const CString& strShareName, const CString& strPathName, SUBMT_INFO_STATUS status = SIS_NULL);
28         CSubmountInfo(const CSubmountInfo& info);
29         ~CSubmountInfo();
30
31         CString GetShareName() const                    { return m_strShareName; }
32         CString GetPathName() const                     { return m_strPathName; }
33         SUBMT_INFO_STATUS GetStatus() const             { return m_Status; }
34
35         void SetShareName(const CString& strShareName)  { m_strShareName = strShareName; }
36         void SetPathName(const CString& strPathName)    { m_strPathName = strPathName; }
37         void SetStatus(SUBMT_INFO_STATUS status)        { m_Status = status; }
38 };
39
40 typedef CArray<CSubmountInfo*, CSubmountInfo*> SUBMT_INFO_ARRAY;
41
42 #endif
43