2 * Copyright 2000, International Business Machines Corporation and others.
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
10 #ifndef _SUBMOUNTINFO_H_
11 #define _SUBMOUNTINFO_H_
15 enum SUBMT_INFO_STATUS { SIS_NULL, SIS_ADDED, SIS_CHANGED, SIS_DELETED };
18 class CSubmountInfo : public CObject
20 SUBMT_INFO_STATUS m_Status;
22 CString m_strShareName;
23 CString m_strPathName;
27 CSubmountInfo(const CString& strShareName, const CString& strPathName, SUBMT_INFO_STATUS status = SIS_NULL);
28 CSubmountInfo(const CSubmountInfo& info);
31 CString GetShareName() const { return m_strShareName; }
32 CString GetPathName() const { return m_strPathName; }
33 SUBMT_INFO_STATUS GetStatus() const { return m_Status; }
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; }
40 typedef CArray<CSubmountInfo*, CSubmountInfo*> SUBMT_INFO_ARRAY;