VirtualBox

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

Last change on this file since 78043 was 76562, checked in by vboxsync, 6 years ago

Main: Use MAIN_INCLUDED_ and MAIN_INCLUDED_SRC_ as header guard prefixes with scm.

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