VirtualBox

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

Last change on this file since 48009 was 43162, checked in by vboxsync, 12 years ago

Main/Guest Control 2.0: Cleanup, separated guest error handling.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1
2/* $Id: GuestDirectoryImpl.h 43162 2012-09-04 13:53:59Z 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#include "GuestProcessImpl.h"
24
25class GuestSession;
26
27/**
28 * TODO
29 */
30class ATL_NO_VTABLE GuestDirectory :
31 public VirtualBoxBase,
32 VBOX_SCRIPTABLE_IMPL(IGuestDirectory)
33{
34public:
35 /** @name COM and internal init/term/mapping cruft.
36 * @{ */
37 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(GuestDirectory, IGuestDirectory)
38 DECLARE_NOT_AGGREGATABLE(GuestDirectory)
39 DECLARE_PROTECT_FINAL_CONSTRUCT()
40 BEGIN_COM_MAP(GuestDirectory)
41 VBOX_DEFAULT_INTERFACE_ENTRIES(IGuestDirectory)
42 COM_INTERFACE_ENTRY(IDirectory)
43 END_COM_MAP()
44 DECLARE_EMPTY_CTOR_DTOR(GuestDirectory)
45
46 int init(GuestSession *aSession, const Utf8Str &strPath, const Utf8Str &strFilter, uint32_t uFlags);
47 void uninit(void);
48 HRESULT FinalConstruct(void);
49 void FinalRelease(void);
50 /** @} */
51
52 /** @name IDirectory interface.
53 * @{ */
54 STDMETHOD(COMGETTER(DirectoryName))(BSTR *aName);
55 STDMETHOD(COMGETTER(Filter))(BSTR *aFilter);
56 STDMETHOD(Close)(void);
57 STDMETHOD(Read)(IFsObjInfo **aInfo);
58 /** @} */
59
60public:
61 /** @name Public internal methods.
62 * @{ */
63 /** @} */
64
65private:
66
67 /** @name Private internal methods.
68 * @{ */
69 /** @} */
70
71 struct Data
72 {
73 GuestSession *mSession;
74 Utf8Str mName;
75 Utf8Str mFilter;
76 uint32_t mFlags;
77 GuestProcessTool mProcessTool;
78 } mData;
79};
80
81#endif /* !____H_GUESTDIRECTORYIMPL */
82
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