~ubuntu-branches/ubuntu/raring/virtualbox-ose/raring

« back to all changes in this revision

Viewing changes to src/VBox/Main/include/VFSExplorerImpl.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-01-30 23:27:25 UTC
  • mfrom: (0.3.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20110130232725-2ouajjd2ggdet0zd
Tags: 4.0.2-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Drop ubuntu-01-fix-build-gcc45.patch, fixed upstream.
* Drop ubuntu-02-as-needed.patch, added to the Debian package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: VFSExplorerImpl.h $ */
 
1
/* $Id: VFSExplorerImpl.h 33461 2010-10-26 11:55:27Z vboxsync $ */
2
2
 
3
3
/** @file
4
4
 *
24
24
 
25
25
class ATL_NO_VTABLE VFSExplorer :
26
26
    public VirtualBoxBase,
27
 
    public VirtualBoxSupportErrorInfoImpl<VFSExplorer, IVFSExplorer>,
28
 
    public VirtualBoxSupportTranslation<VFSExplorer>,
29
27
    VBOX_SCRIPTABLE_IMPL(IVFSExplorer)
30
28
{
31
 
    VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT (VFSExplorer)
 
29
    VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(VFSExplorer, IVFSExplorer)
32
30
 
33
31
    DECLARE_NOT_AGGREGATABLE(VFSExplorer)
34
32
 
49
47
    HRESULT init(VFSType_T aType, Utf8Str aFilePath, Utf8Str aHostname, Utf8Str aUsername, Utf8Str aPassword, VirtualBox *aVirtualBox);
50
48
    void uninit();
51
49
 
52
 
    // for VirtualBoxSupportErrorInfoImpl
53
 
    static const wchar_t *getComponentName() { return L"VFSExplorer"; }
54
 
 
55
50
    /* IVFSExplorer properties */
56
51
    STDMETHOD(COMGETTER(Path))(BSTR *aPath);
57
52
    STDMETHOD(COMGETTER(Type))(VFSType_T *aType);
62
57
    STDMETHOD(Cd)(IN_BSTR aDir, IProgress **aProgress);
63
58
    STDMETHOD(CdUp)(IProgress **aProgress);
64
59
 
65
 
    STDMETHOD(EntryList)(ComSafeArrayOut(BSTR, aNames), ComSafeArrayOut(VFSFileType_T, aTypes));
 
60
    STDMETHOD(EntryList)(ComSafeArrayOut(BSTR, aNames), ComSafeArrayOut(VFSFileType_T, aTypes), ComSafeArrayOut(ULONG, aSizes), ComSafeArrayOut(ULONG, aModes));
66
61
 
67
62
    STDMETHOD(Exists)(ComSafeArrayIn(IN_BSTR, aNames), ComSafeArrayOut(BSTR, aExists));
68
63
 
69
64
    STDMETHOD(Remove)(ComSafeArrayIn(IN_BSTR, aNames), IProgress **aProgress);
70
65
 
 
66
    /* public methods only for internal purposes */
 
67
 
 
68
    static HRESULT setErrorStatic(HRESULT aResultCode,
 
69
                                  const Utf8Str &aText)
 
70
    {
 
71
        return setErrorInternal(aResultCode, getStaticClassIID(), getStaticComponentName(), aText, false, true);
 
72
    }
 
73
 
71
74
private:
72
75
    /* Private member vars */
73
76
    VirtualBox * const  mVirtualBox;