VirtualBox

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

Last change on this file since 42973 was 42897, checked in by vboxsync, 12 years ago

Guest Control 2.0: Bugfixes.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1
2/* $Id: GuestDirectoryImpl.h 42897 2012-08-21 10:03:52Z 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 "GuestCtrlImplPrivate.h"
24
25class GuestProcess;
26class GuestSession;
27
28/**
29 * TODO
30 */
31class ATL_NO_VTABLE GuestDirectory :
32 public VirtualBoxBase,
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(GuestSession *aSession, const Utf8Str &strPath, const Utf8Str &strFilter = "", uint32_t uFlags = 0);
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 /** @} */
65
66private:
67
68 /** @name Private internal methods.
69 * @{ */
70 int parseData(GuestProcessStreamBlock &streamBlock);
71 /** @} */
72
73 struct Data
74 {
75 GuestSession *mSession;
76 Utf8Str mName;
77 Utf8Str mFilter;
78 uint32_t mFlags;
79 /** The stdout stream object which contains all
80 * read out data for parsing. Must be persisent
81 * between several read() calls. */
82 GuestProcessStream mStream;
83 /** The guest process which is responsible for
84 * getting the stdout stream. */
85 GuestProcess *mProcess;
86 } mData;
87};
88
89#endif /* !____H_GUESTDIRECTORYIMPL */
90
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