VirtualBox

Changeset 75458 in vbox for trunk/src/VBox/Main/src-all


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

Main: Stubbed three ISharedFolder attribute setters. bugref:9295

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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