1 |
|
---|
2 | /* $Id: GuestDirectoryImpl.h 42084 2012-07-10 10:17:20Z vboxsync $ */
|
---|
3 | /** @file
|
---|
4 | * VirtualBox Main - XXX.
|
---|
5 | */
|
---|
6 |
|
---|
7 | /*
|
---|
8 | * Copyright (C) 2012 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_GUESTDIRECTORYIMPL
|
---|
20 | #define ____H_GUESTDIRECTORYIMPL
|
---|
21 |
|
---|
22 | #include "VirtualBoxBase.h"
|
---|
23 |
|
---|
24 | /**
|
---|
25 | * TODO
|
---|
26 | */
|
---|
27 | class ATL_NO_VTABLE GuestDirectory :
|
---|
28 | public VirtualBoxBase,
|
---|
29 | VBOX_SCRIPTABLE_IMPL(IGuestDirectory)
|
---|
30 | {
|
---|
31 | public:
|
---|
32 | /** @name COM and internal init/term/mapping cruft.
|
---|
33 | * @{ */
|
---|
34 | VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(GuestDirectory, IGuestDirectory)
|
---|
35 | DECLARE_NOT_AGGREGATABLE(GuestDirectory)
|
---|
36 | DECLARE_PROTECT_FINAL_CONSTRUCT()
|
---|
37 | BEGIN_COM_MAP(GuestDirectory)
|
---|
38 | VBOX_DEFAULT_INTERFACE_ENTRIES(IGuestDirectory)
|
---|
39 | COM_INTERFACE_ENTRY(IDirectory)
|
---|
40 | END_COM_MAP()
|
---|
41 | DECLARE_EMPTY_CTOR_DTOR(GuestDirectory)
|
---|
42 |
|
---|
43 | HRESULT init(void);
|
---|
44 | void uninit(void);
|
---|
45 | HRESULT FinalConstruct(void);
|
---|
46 | void FinalRelease(void);
|
---|
47 | /** @} */
|
---|
48 |
|
---|
49 | /** @name IDirectory interface.
|
---|
50 | * @{ */
|
---|
51 | STDMETHOD(COMGETTER(DirectoryName))(BSTR *aName);
|
---|
52 |
|
---|
53 | STDMETHOD(Read)(IGuestFsObjInfo **aInfo);
|
---|
54 | /** @} */
|
---|
55 |
|
---|
56 | public:
|
---|
57 | /** @name Public internal methods.
|
---|
58 | * @{ */
|
---|
59 | /** @} */
|
---|
60 |
|
---|
61 | private:
|
---|
62 |
|
---|
63 | struct Data
|
---|
64 | {
|
---|
65 | Utf8Str mName;
|
---|
66 | ComPtr<IGuestFsObjInfo> mFsObjInfo;
|
---|
67 | } mData;
|
---|
68 | };
|
---|
69 |
|
---|
70 | #endif /* !____H_GUESTDIRECTORYIMPL */
|
---|
71 |
|
---|