1 |
|
---|
2 | /* $Id: GuestFsObjInfoImpl.h 50528 2014-02-20 19:13:18Z vboxsync $ */
|
---|
3 | /** @file
|
---|
4 | * VirtualBox Main - XXX.
|
---|
5 | */
|
---|
6 |
|
---|
7 | /*
|
---|
8 | * Copyright (C) 2012-2014 Oracle Corporation
|
---|
9 | *
|
---|
10 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
11 | * available from http://www.virtualbox.org. This file is free software;
|
---|
12 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
13 | * General Public License (GPL) as published by the Free Software
|
---|
14 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
15 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
16 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
17 | */
|
---|
18 |
|
---|
19 | #ifndef ____H_GUESTFSOBJINFOIMPL
|
---|
20 | #define ____H_GUESTFSOBJINFOIMPL
|
---|
21 |
|
---|
22 | #include "GuestFsObjInfoWrap.h"
|
---|
23 | #include "GuestCtrlImplPrivate.h"
|
---|
24 |
|
---|
25 | /**
|
---|
26 | * TODO
|
---|
27 | */
|
---|
28 | class ATL_NO_VTABLE GuestFsObjInfo :
|
---|
29 | public GuestFsObjInfoWrap
|
---|
30 | {
|
---|
31 | public:
|
---|
32 | /** @name COM and internal init/term/mapping cruft.
|
---|
33 | * @{ */
|
---|
34 | DECLARE_EMPTY_CTOR_DTOR(GuestFsObjInfo)
|
---|
35 |
|
---|
36 | int init(const GuestFsObjData &objData);
|
---|
37 | void uninit(void);
|
---|
38 |
|
---|
39 | HRESULT FinalConstruct(void);
|
---|
40 | void FinalRelease(void);
|
---|
41 |
|
---|
42 | private:
|
---|
43 |
|
---|
44 | // Wrapped GuestFsObjInfo properties.
|
---|
45 | HRESULT getAccessTime(LONG64 *aAccessTime);
|
---|
46 | HRESULT getAllocatedSize(LONG64 *aAllocatedSize);
|
---|
47 | HRESULT getBirthTime(LONG64 *aBirthTime);
|
---|
48 | HRESULT getChangeTime(LONG64 *aChangeTime);
|
---|
49 | HRESULT getDeviceNumber(ULONG *aDeviceNumber);
|
---|
50 | HRESULT getFileAttributes(com::Utf8Str &aFileAttributes);
|
---|
51 | HRESULT getGenerationId(ULONG *aGenerationId);
|
---|
52 | HRESULT getGID(ULONG *aGID);
|
---|
53 | HRESULT getGroupName(com::Utf8Str &aGroupName);
|
---|
54 | HRESULT getHardLinks(ULONG *aHardLinks);
|
---|
55 | HRESULT getModificationTime(LONG64 *aModificationTime);
|
---|
56 | HRESULT getName(com::Utf8Str &aName);
|
---|
57 | HRESULT getNodeId(LONG64 *aNodeId);
|
---|
58 | HRESULT getNodeIdDevice(ULONG *aNodeIdDevice);
|
---|
59 | HRESULT getObjectSize(LONG64 *aObjectSize);
|
---|
60 | HRESULT getType(FsObjType_T *aType);
|
---|
61 | HRESULT getUID(ULONG *aUID);
|
---|
62 | HRESULT getUserFlags(ULONG *aUserFlags);
|
---|
63 | HRESULT getUserName(com::Utf8Str &aUserName);
|
---|
64 |
|
---|
65 | GuestFsObjData mData;
|
---|
66 | };
|
---|
67 |
|
---|
68 | #endif /* !____H_GUESTFSOBJINFOIMPL */
|
---|
69 |
|
---|