VirtualBox

source: vbox/trunk/src/VBox/Main/include/VFSExplorerImpl.h@ 69500

Last change on this file since 69500 was 69500, checked in by vboxsync, 7 years ago

*: scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
1/* $Id: VFSExplorerImpl.h 69500 2017-10-28 15:14:05Z vboxsync $ */
2/** @file
3 * VirtualBox COM class implementation
4 */
5
6/*
7 * Copyright (C) 2009-2017 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_VFSEXPLORERIMPL
19#define ____H_VFSEXPLORERIMPL
20
21#include "VFSExplorerWrap.h"
22
23class ATL_NO_VTABLE VFSExplorer :
24 public VFSExplorerWrap
25{
26public:
27
28 DECLARE_EMPTY_CTOR_DTOR(VFSExplorer)
29
30 // public initializer/uninitializer for internal purposes only
31 HRESULT FinalConstruct() { return BaseFinalConstruct(); }
32 void FinalRelease() { uninit(); BaseFinalRelease(); }
33
34 HRESULT init(VFSType_T aType, Utf8Str aFilePath, Utf8Str aHostname, Utf8Str aUsername, Utf8Str aPassword, VirtualBox *aVirtualBox);
35 void uninit();
36
37 /* public methods only for internal purposes */
38 static HRESULT setErrorStatic(HRESULT aResultCode,
39 const Utf8Str &aText)
40 {
41 return setErrorInternal(aResultCode, getStaticClassIID(), getStaticComponentName(), aText, false, true);
42 }
43
44private:
45
46 // wrapped IVFSExplorer properties
47 HRESULT getPath(com::Utf8Str &aPath);
48 HRESULT getType(VFSType_T *aType);
49
50 // wrapped IVFSExplorer methods
51 HRESULT update(ComPtr<IProgress> &aProgress);
52 HRESULT cd(const com::Utf8Str &aDir, ComPtr<IProgress> &aProgress);
53 HRESULT cdUp(ComPtr<IProgress> &aProgress);
54 HRESULT entryList(std::vector<com::Utf8Str> &aNames,
55 std::vector<ULONG> &aTypes,
56 std::vector<LONG64> &aSizes,
57 std::vector<ULONG> &aModes);
58 HRESULT exists(const std::vector<com::Utf8Str> &aNames,
59 std::vector<com::Utf8Str> &aExists);
60 HRESULT remove(const std::vector<com::Utf8Str> &aNames,
61 ComPtr<IProgress> &aProgress);
62
63 /* Private member vars */
64 VirtualBox * const mVirtualBox;
65
66 ////////////////////////////////////////////////////////////////////////////////
67 ////
68 //// VFSExplorer definitions
69 ////
70 //////////////////////////////////////////////////////////////////////////////////
71 //
72 class TaskVFSExplorer; /* Worker thread helper */
73 struct Data;
74 Data *m;
75
76 /* Private member methods */
77 FsObjType_T i_iprtToVfsObjType(RTFMODE aType) const;
78
79 HRESULT i_updateFS(TaskVFSExplorer *aTask);
80 HRESULT i_deleteFS(TaskVFSExplorer *aTask);
81
82};
83
84#endif /* !____H_VFSEXPLORERIMPL */
85
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