VirtualBox

Changeset 75458 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 14, 2018 6:20:05 PM (6 years ago)
Author:
vboxsync
Message:

Main: Stubbed three ISharedFolder attribute setters. bugref:9295

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r75434 r75458  
    2053820538  <interface
    2053920539    name="ISharedFolder" extends="$unknown"
    20540     uuid="e02c0f1e-15f4-440e-3814-bbf613f8448b"
     20540    uuid="cc98ec47-9555-42d6-671f-bb0093c052a7"
    2054120541    wsmap="struct"
    2054220542    reservedAttributes="4"
     
    2060420604        Whether the folder defined by the host path is currently
    2060520605        accessible or not.
     20606
    2060620607        For example, the folder can be inaccessible if it is placed
    2060720608        on the network share that is not available by the time
     
    2061020611    </attribute>
    2061120612
    20612     <attribute name="writable" type="boolean" readonly="yes">
     20613    <attribute name="writable" type="boolean">
    2061320614      <desc>
    2061420615        Whether the folder defined by the host path is writable or
     
    2061720618    </attribute>
    2061820619
    20619     <attribute name="autoMount" type="boolean" readonly="yes">
     20620    <attribute name="autoMount" type="boolean">
    2062020621      <desc>
    2062120622        Whether the folder gets automatically mounted by the guest or not.
     
    2062320624    </attribute>
    2062420625
    20625     <attribute name="autoMountPoint" type="wstring" readonly="yes">
     20626    <attribute name="autoMountPoint" type="wstring">
    2062620627      <desc>
    2062720628        Desired mount point in the guest for automatically mounting the folder
    2062820629        when <link to="ISharedFolder::autoMount"/> is set.  For Windows and
    2062920630        OS/2 guests this should be a drive letter, while other guests it should
    20630         be a absolute directory.
     20631        be a absolute directory.  It is possible to combine the two, e.g.
     20632        "T:/mnt/testrsrc" will be attached to "T:" by windows and OS/2 while
     20633        the unixy guests will mount it at "/mnt/testrsrc".
    2063120634
    2063220635        When empty the guest will choose a mount point.  The guest may do so
  • trunk/src/VBox/Main/include/SharedFolderImpl.h

    r75380 r75458  
    9292    HRESULT getAccessible(BOOL *aAccessible);
    9393    HRESULT getWritable(BOOL *aWritable);
     94    HRESULT setWritable(BOOL aWritable);
    9495    HRESULT getAutoMount(BOOL *aAutoMount);
     96    HRESULT setAutoMount(BOOL aAutoMount);
    9597    HRESULT getAutoMountPoint(com::Utf8Str &aAutoMountPoint);
     98    HRESULT setAutoMountPoint(com::Utf8Str const &aAutoMountPoint);
    9699    HRESULT getLastAccessError(com::Utf8Str &aLastAccessError);
    97100
  • trunk/src/VBox/Main/src-all/SharedFolderImpl.cpp

    r75380 r75458  
    335335    /* mName is constant during life time, no need to lock */
    336336    aName = m->strName;
    337 
    338337    return S_OK;
    339338}
     
    343342    /* mHostPath is constant during life time, no need to lock */
    344343    aHostPath = m->strHostPath;
    345 
    346344    return S_OK;
    347345}
     
    380378{
    381379    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    382 
    383     *aWritable = !!m->fWritable;
    384 
    385     return S_OK;
     380    *aWritable = m->fWritable;
     381    return S_OK;
     382}
     383
     384HRESULT SharedFolder::setWritable(BOOL aWritable)
     385{
     386    RT_NOREF(aWritable);
     387    return E_NOTIMPL;
    386388}
    387389
     
    389391{
    390392    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    391 
    392     *aAutoMount = !!m->fAutoMount;
    393 
    394     return S_OK;
     393    *aAutoMount = m->fAutoMount;
     394    return S_OK;
     395}
     396
     397HRESULT SharedFolder::setAutoMount(BOOL aAutoMount)
     398{
     399    RT_NOREF(aAutoMount);
     400    return E_NOTIMPL;
    395401}
    396402
    397403HRESULT SharedFolder::getAutoMountPoint(com::Utf8Str &aAutoMountPoint)
    398404{
    399     /* strAutoMountPoint is constant during life time, no need to lock. */
     405    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    400406    aAutoMountPoint = m->strAutoMountPoint;
    401407    return S_OK;
    402408}
    403409
     410HRESULT SharedFolder::setAutoMountPoint(com::Utf8Str const &aAutoMountPoint)
     411{
     412    RT_NOREF(aAutoMountPoint);
     413    return E_NOTIMPL;
     414}
    404415
    405416HRESULT SharedFolder::getLastAccessError(com::Utf8Str &aLastAccessError)
    406417{
    407418    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    408 
    409419    aLastAccessError = m->strLastAccessError;
    410 
    411420    return S_OK;
    412421}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette