VirtualBox

source: vbox/trunk/src/VBox/Main/include/GuestFsObjInfoImpl.h@ 75926

最後變更 在這個檔案從75926是 75926,由 vboxsync 提交於 6 年 前

Main,Frontends: s/FileName/Filename/g (API); Took a shot a completing the code for populating IGuestFsObjInfo. bugref:9320

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.2 KB
 
1/* $Id: GuestFsObjInfoImpl.h 75926 2018-12-03 21:52:50Z vboxsync $ */
2/** @file
3 * VirtualBox Main - Guest file system object information implementation.
4 */
5
6/*
7 * Copyright (C) 2012-2018 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.alldomusa.eu.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef ____H_GUESTFSOBJINFOIMPL
19#define ____H_GUESTFSOBJINFOIMPL
20
21#include "GuestFsObjInfoWrap.h"
22#include "GuestCtrlImplPrivate.h"
23
24class ATL_NO_VTABLE GuestFsObjInfo
25 : public GuestFsObjInfoWrap
26{
27public:
28 /** @name COM and internal init/term/mapping cruft.
29 * @{ */
30 DECLARE_EMPTY_CTOR_DTOR(GuestFsObjInfo)
31
32 int init(const GuestFsObjData &objData);
33 void uninit(void);
34
35 HRESULT FinalConstruct(void);
36 void FinalRelease(void);
37 /** @} */
38
39 /** @name Internal access helpers. */
40 const GuestFsObjData &i_getData() const { return mData; }
41 /** @} */
42
43private:
44
45 /** Wrapped @name IGuestFsObjInfo properties.
46 * @{ */
47 HRESULT getName(com::Utf8Str &aName);
48 HRESULT getType(FsObjType_T *aType);
49 HRESULT getFileAttributes(com::Utf8Str &aFileAttributes);
50 HRESULT getObjectSize(LONG64 *aObjectSize);
51 HRESULT getAllocatedSize(LONG64 *aAllocatedSize);
52 HRESULT getAccessTime(LONG64 *aAccessTime);
53 HRESULT getBirthTime(LONG64 *aBirthTime);
54 HRESULT getChangeTime(LONG64 *aChangeTime);
55 HRESULT getModificationTime(LONG64 *aModificationTime);
56 HRESULT getUID(LONG *aUID);
57 HRESULT getUserName(com::Utf8Str &aUserName);
58 HRESULT getGID(LONG *aGID);
59 HRESULT getGroupName(com::Utf8Str &aGroupName);
60 HRESULT getNodeId(LONG64 *aNodeId);
61 HRESULT getNodeIdDevice(ULONG *aNodeIdDevice);
62 HRESULT getHardLinks(ULONG *aHardLinks);
63 HRESULT getDeviceNumber(ULONG *aDeviceNumber);
64 HRESULT getGenerationId(ULONG *aGenerationId);
65 HRESULT getUserFlags(ULONG *aUserFlags);
66 /** @} */
67
68 GuestFsObjData mData;
69};
70
71#endif /* !____H_GUESTFSOBJINFOIMPL */
72
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette