VirtualBox

source: vbox/trunk/src/VBox/Main/include/GuestDirectoryImpl.h@ 42525

Last change on this file since 42525 was 42525, checked in by vboxsync, 13 years ago

Guest Control 2.0: Update.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1
2/* $Id: GuestDirectoryImpl.h 42525 2012-08-02 10:24:28Z 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
24class GuestSession;
25
26/**
27 * TODO
28 */
29class ATL_NO_VTABLE GuestDirectory :
30 public VirtualBoxBase,
31 VBOX_SCRIPTABLE_IMPL(IGuestDirectory)
32{
33public:
34 /** @name COM and internal init/term/mapping cruft.
35 * @{ */
36 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(GuestDirectory, IGuestDirectory)
37 DECLARE_NOT_AGGREGATABLE(GuestDirectory)
38 DECLARE_PROTECT_FINAL_CONSTRUCT()
39 BEGIN_COM_MAP(GuestDirectory)
40 VBOX_DEFAULT_INTERFACE_ENTRIES(IGuestDirectory)
41 COM_INTERFACE_ENTRY(IDirectory)
42 END_COM_MAP()
43 DECLARE_EMPTY_CTOR_DTOR(GuestDirectory)
44
45 int init(GuestSession *aSession, const Utf8Str &strPath);
46 void uninit(void);
47 HRESULT FinalConstruct(void);
48 void FinalRelease(void);
49 /** @} */
50
51 /** @name IDirectory interface.
52 * @{ */
53 STDMETHOD(COMGETTER(DirectoryName))(BSTR *aName);
54
55 STDMETHOD(Read)(IFsObjInfo **aInfo);
56 /** @} */
57
58public:
59 /** @name Public internal methods.
60 * @{ */
61 /** @} */
62
63private:
64
65 struct Data
66 {
67 GuestSession *mParent;
68 Utf8Str mName;
69 ComPtr<IGuestFsObjInfo> mFsObjInfo;
70 } mData;
71};
72
73#endif /* !____H_GUESTDIRECTORYIMPL */
74
Note: See TracBrowser for help on using the repository browser.

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