VirtualBox

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

Last change on this file since 55437 was 50174, checked in by vboxsync, 11 years ago

Main/src-server: unify {p,m}VBox => {p,m}VirtualBox

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1/* $Id: VFSExplorerImpl.h 50174 2014-01-23 09:22:22Z vboxsync $ */
2
3/** @file
4 *
5 * VirtualBox COM class implementation
6 */
7
8/*
9 * Copyright (C) 2009-2013 Oracle Corporation
10 *
11 * This file is part of VirtualBox Open Source Edition (OSE), as
12 * available from http://www.virtualbox.org. This file is free software;
13 * you can redistribute it and/or modify it under the terms of the GNU
14 * General Public License (GPL) as published by the Free Software
15 * Foundation, in version 2 as it comes in the "COPYING" file of the
16 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18 */
19
20#ifndef ____H_VFSEXPLORERIMPL
21#define ____H_VFSEXPLORERIMPL
22
23#include "VFSExplorerWrap.h"
24
25class ATL_NO_VTABLE VFSExplorer :
26 public VFSExplorerWrap
27{
28public:
29
30 DECLARE_EMPTY_CTOR_DTOR(VFSExplorer)
31
32 // public initializer/uninitializer for internal purposes only
33 HRESULT FinalConstruct() { return BaseFinalConstruct(); }
34 void FinalRelease() { uninit(); BaseFinalRelease(); }
35
36 HRESULT init(VFSType_T aType, Utf8Str aFilePath, Utf8Str aHostname, Utf8Str aUsername, Utf8Str aPassword, VirtualBox *aVirtualBox);
37 void uninit();
38
39 /* public methods only for internal purposes */
40 static HRESULT setErrorStatic(HRESULT aResultCode,
41 const Utf8Str &aText)
42 {
43 return setErrorInternal(aResultCode, getStaticClassIID(), getStaticComponentName(), aText, false, true);
44 }
45
46private:
47
48 // wrapped IVFSExplorer properties
49 HRESULT getPath(com::Utf8Str &aPath);
50 HRESULT getType(VFSType_T *aType);
51
52 // wrapped IVFSExplorer methods
53 HRESULT update(ComPtr<IProgress> &aProgress);
54 HRESULT cd(const com::Utf8Str &aDir, ComPtr<IProgress> &aProgress);
55 HRESULT cdUp(ComPtr<IProgress> &aProgress);
56 HRESULT entryList(std::vector<com::Utf8Str> &aNames,
57 std::vector<ULONG> &aTypes,
58 std::vector<LONG64> &aSizes,
59 std::vector<ULONG> &aModes);
60 HRESULT exists(const std::vector<com::Utf8Str> &aNames,
61 std::vector<com::Utf8Str> &aExists);
62 HRESULT remove(const std::vector<com::Utf8Str> &aNames,
63 ComPtr<IProgress> &aProgress);
64
65 /* Private member vars */
66 VirtualBox * const mVirtualBox;
67
68 ////////////////////////////////////////////////////////////////////////////////
69 ////
70 //// VFSExplorer definitions
71 ////
72 //////////////////////////////////////////////////////////////////////////////////
73 //
74 struct TaskVFSExplorer; /* Worker thread helper */
75 struct Data;
76 Data *m;
77
78 /* Private member methods */
79 VFSFileType_T i_RTToVFSFileType(int aType) const;
80
81 HRESULT i_updateFS(TaskVFSExplorer *aTask);
82 HRESULT i_deleteFS(TaskVFSExplorer *aTask);
83 HRESULT i_updateS3(TaskVFSExplorer *aTask);
84 HRESULT i_deleteS3(TaskVFSExplorer *aTask);
85
86};
87
88#endif /* ____H_VFSEXPLORERIMPL */
89
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