VirtualBox

source: vbox/trunk/src/VBox/Main/include/GuestDirEntryImpl.h@ 39333

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

xpcom build fix.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1/* $Id: GuestDirEntryImpl.h 38296 2011-08-03 11:16:08Z vboxsync $ */
2/** @file
3 * VirtualBox Main - interface for guest directory entries, VBoxC.
4 */
5
6/*
7 * Copyright (C) 2011 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.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_GUESTDIRENTRYIMPL
19#define ____H_GUESTDIRENTRYIMPL
20
21#include "VirtualBoxBase.h"
22
23class Guest;
24class GuestProcessStreamBlock;
25
26/**
27 * A directory entry.
28 */
29class ATL_NO_VTABLE GuestDirEntry :
30 public VirtualBoxBase,
31 VBOX_SCRIPTABLE_IMPL(IGuestDirEntry)
32{
33public:
34 /** @name COM and internal init/term/mapping cruft.
35 * @{ */
36 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(GuestDirEntry, IGuestDirEntry)
37 DECLARE_NOT_AGGREGATABLE(GuestDirEntry)
38 DECLARE_PROTECT_FINAL_CONSTRUCT()
39 BEGIN_COM_MAP(GuestDirEntry)
40 VBOX_DEFAULT_INTERFACE_ENTRIES(IGuestDirEntry)
41 END_COM_MAP()
42 DECLARE_EMPTY_CTOR_DTOR(GuestDirEntry)
43
44 HRESULT init(Guest *aParent, GuestProcessStreamBlock &streamBlock);
45 void uninit();
46 HRESULT FinalConstruct();
47 void FinalRelease();
48 /** @} */
49
50 /** @name IGuestDirEntry properties
51 * @{ */
52 STDMETHOD(COMGETTER(NodeId))(LONG64 *aNodeId);
53 STDMETHOD(COMGETTER(Name))(BSTR *aName);
54 STDMETHOD(COMGETTER(Type))(GuestDirEntryType_T *aType);
55 /** @} */
56
57public:
58 /** @name Public internal methods
59 * @{ */
60 static GuestDirEntryType_T fileTypeToEntryType(const char *pszFileType);
61 /** @} */
62
63private:
64 struct Data
65 {
66 /** The entry's node ID. */
67 LONG64 mNodeId;
68 /** The entry's name. */
69 Bstr mName;
70 /** The entry's type. */
71 GuestDirEntryType_T mType;
72 } mData;
73};
74
75#endif /* !____H_GUESTDIRENTRYIMPL */
76
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