VirtualBox

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

Last change on this file since 49409 was 49349, checked in by vboxsync, 11 years ago

Guest Control:

  • Implemented IGuestSession::DirectoryRemove, IGuestSession::DirectoryRemoveRecursive, IGuestSession::DirectoryRename + IGuestSession::FileRename.
  • Added appropriate commands to VBoxManage (basic support for now).
  • Implemented support for proper guest session process termination via SCM.
  • Implemented support for internal anonymous wait events which are not relying on the public API's VBoxEventType_T.
  • Various bugfixes.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1
2/* $Id: GuestDirectoryImpl.h 49349 2013-10-31 16:40:46Z 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 public GuestObject,
33 VBOX_SCRIPTABLE_IMPL(IGuestDirectory)
34{
35public:
36 /** @name COM and internal init/term/mapping cruft.
37 * @{ */
38 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(GuestDirectory, IGuestDirectory)
39 DECLARE_NOT_AGGREGATABLE(GuestDirectory)
40 DECLARE_PROTECT_FINAL_CONSTRUCT()
41 BEGIN_COM_MAP(GuestDirectory)
42 VBOX_DEFAULT_INTERFACE_ENTRIES(IGuestDirectory)
43 COM_INTERFACE_ENTRY(IDirectory)
44 END_COM_MAP()
45 DECLARE_EMPTY_CTOR_DTOR(GuestDirectory)
46
47 int init(Console *pConsole, GuestSession *pSession, ULONG uDirID, const GuestDirectoryOpenInfo &openInfo);
48 void uninit(void);
49 HRESULT FinalConstruct(void);
50 void FinalRelease(void);
51 /** @} */
52
53 /** @name IDirectory interface.
54 * @{ */
55 STDMETHOD(COMGETTER(DirectoryName))(BSTR *aName);
56 STDMETHOD(COMGETTER(Filter))(BSTR *aFilter);
57 STDMETHOD(Close)(void);
58 STDMETHOD(Read)(IFsObjInfo **aInfo);
59 /** @} */
60
61public:
62 /** @name Public internal methods.
63 * @{ */
64 int callbackDispatcher(PVBOXGUESTCTRLHOSTCBCTX pCbCtx, PVBOXGUESTCTRLHOSTCALLBACK pSvcCb);
65 static Utf8Str guestErrorToString(int guestRc);
66 static HRESULT setErrorExternal(VirtualBoxBase *pInterface, int guestRc);
67 /** @} */
68
69private:
70
71 /** @name Private internal methods.
72 * @{ */
73 /** @} */
74
75 struct Data
76 {
77 /** The directory's open info. */
78 GuestDirectoryOpenInfo mOpenInfo;
79 /** The directory's ID. */
80 uint32_t mID;
81 GuestProcessTool mProcessTool;
82 } mData;
83};
84
85#endif /* !____H_GUESTDIRECTORYIMPL */
86
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