VirtualBox

Changeset 49038 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Oct 10, 2013 6:21:26 PM (11 years ago)
Author:
vboxsync
Message:

Main/Appliance: change API of IAppliance::write, allowing easy handling of multiple options, needed for making the DVD image export optional
Frontends/VirtualBox+VBoxManage: corresponding adaptions
doc/SDKRef: mention incompatible API change

Location:
trunk/src/VBox/Frontends
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageAppliance.cpp

    r46658 r49038  
    10511051            break;
    10521052
     1053        com::SafeArray<ExportOptions_T> options;
     1054        if (fManifest)
     1055            options.push_back(ExportOptions_CreateManifest);
     1056
    10531057        ComPtr<IProgress> progress;
    10541058        CHECK_ERROR_BREAK(pAppliance, Write(Bstr(strOvfFormat).raw(),
    1055                                             fManifest,
     1059                                            ComSafeArrayAsInParam(options),
    10561060                                            Bstr(pszAbsFilePath).raw(),
    10571061                                            progress.asOutParam()));
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportApp.cpp

    r45424 r49038  
    77
    88/*
    9  * Copyright (C) 2009-2012 Oracle Corporation
     9 * Copyright (C) 2009-2013 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    139139{
    140140    /* Write the appliance: */
    141     CProgress progress = appliance.Write(field("format").toString(), field("manifestSelected").toBool() /* fManifest */, uri());
     141    QVector<KExportOptions> options;
     142    if (field("manifestSelected").toBool())
     143        options.append(KExportOptions_CreateManifest);
     144    CProgress progress = appliance.Write(field("format").toString(), options, uri());
    142145    bool fResult = appliance.isOk();
    143146    if (fResult)
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