Changeset 75458 in vbox for trunk/src/VBox
- Timestamp:
- Nov 14, 2018 6:20:05 PM (6 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r75434 r75458 20538 20538 <interface 20539 20539 name="ISharedFolder" extends="$unknown" 20540 uuid=" e02c0f1e-15f4-440e-3814-bbf613f8448b"20540 uuid="cc98ec47-9555-42d6-671f-bb0093c052a7" 20541 20541 wsmap="struct" 20542 20542 reservedAttributes="4" … … 20604 20604 Whether the folder defined by the host path is currently 20605 20605 accessible or not. 20606 20606 20607 For example, the folder can be inaccessible if it is placed 20607 20608 on the network share that is not available by the time … … 20610 20611 </attribute> 20611 20612 20612 <attribute name="writable" type="boolean" readonly="yes">20613 <attribute name="writable" type="boolean"> 20613 20614 <desc> 20614 20615 Whether the folder defined by the host path is writable or … … 20617 20618 </attribute> 20618 20619 20619 <attribute name="autoMount" type="boolean" readonly="yes">20620 <attribute name="autoMount" type="boolean"> 20620 20621 <desc> 20621 20622 Whether the folder gets automatically mounted by the guest or not. … … 20623 20624 </attribute> 20624 20625 20625 <attribute name="autoMountPoint" type="wstring" readonly="yes">20626 <attribute name="autoMountPoint" type="wstring"> 20626 20627 <desc> 20627 20628 Desired mount point in the guest for automatically mounting the folder 20628 20629 when <link to="ISharedFolder::autoMount"/> is set. For Windows and 20629 20630 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". 20631 20634 20632 20635 When empty the guest will choose a mount point. The guest may do so -
trunk/src/VBox/Main/include/SharedFolderImpl.h
r75380 r75458 92 92 HRESULT getAccessible(BOOL *aAccessible); 93 93 HRESULT getWritable(BOOL *aWritable); 94 HRESULT setWritable(BOOL aWritable); 94 95 HRESULT getAutoMount(BOOL *aAutoMount); 96 HRESULT setAutoMount(BOOL aAutoMount); 95 97 HRESULT getAutoMountPoint(com::Utf8Str &aAutoMountPoint); 98 HRESULT setAutoMountPoint(com::Utf8Str const &aAutoMountPoint); 96 99 HRESULT getLastAccessError(com::Utf8Str &aLastAccessError); 97 100 -
trunk/src/VBox/Main/src-all/SharedFolderImpl.cpp
r75380 r75458 335 335 /* mName is constant during life time, no need to lock */ 336 336 aName = m->strName; 337 338 337 return S_OK; 339 338 } … … 343 342 /* mHostPath is constant during life time, no need to lock */ 344 343 aHostPath = m->strHostPath; 345 346 344 return S_OK; 347 345 } … … 380 378 { 381 379 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 384 HRESULT SharedFolder::setWritable(BOOL aWritable) 385 { 386 RT_NOREF(aWritable); 387 return E_NOTIMPL; 386 388 } 387 389 … … 389 391 { 390 392 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 397 HRESULT SharedFolder::setAutoMount(BOOL aAutoMount) 398 { 399 RT_NOREF(aAutoMount); 400 return E_NOTIMPL; 395 401 } 396 402 397 403 HRESULT SharedFolder::getAutoMountPoint(com::Utf8Str &aAutoMountPoint) 398 404 { 399 /* strAutoMountPoint is constant during life time, no need to lock. */405 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 400 406 aAutoMountPoint = m->strAutoMountPoint; 401 407 return S_OK; 402 408 } 403 409 410 HRESULT SharedFolder::setAutoMountPoint(com::Utf8Str const &aAutoMountPoint) 411 { 412 RT_NOREF(aAutoMountPoint); 413 return E_NOTIMPL; 414 } 404 415 405 416 HRESULT SharedFolder::getLastAccessError(com::Utf8Str &aLastAccessError) 406 417 { 407 418 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 408 409 419 aLastAccessError = m->strLastAccessError; 410 411 420 return S_OK; 412 421 }
Note:
See TracChangeset
for help on using the changeset viewer.