VirtualBox

Ignore:
Timestamp:
Apr 11, 2010 7:15:06 PM (15 years ago)
Author:
vboxsync
Message:

Main/OVF: import vbox:machine with disks, the rest. Todo some bugfixing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ApplianceImpl.cpp

    r28162 r28165  
    564564
    565565/**
     566 * Little shortcut to SystemProperties::DefaultHardDiskFolder.
     567 * @param str
     568 * @return
     569 */
     570HRESULT Appliance::getDefaultHardDiskFolder(Utf8Str &str) const
     571{
     572    /* We need the default path for storing disk images */
     573    ComPtr<ISystemProperties> systemProps;
     574    HRESULT rc = mVirtualBox->COMGETTER(SystemProperties)(systemProps.asOutParam());
     575    if (FAILED(rc)) return rc;
     576    Bstr bstrDefaultHardDiskFolder;
     577    rc = systemProps->COMGETTER(DefaultHardDiskFolder)(bstrDefaultHardDiskFolder.asOutParam());
     578    if (FAILED(rc)) return rc;
     579    str = bstrDefaultHardDiskFolder;
     580
     581    return S_OK;
     582}
     583
     584/**
    566585 * Called from the import and export background threads to synchronize the second
    567586 * background disk thread's progress object with the current progress object so
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