VirtualBox

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


Ignore:
Timestamp:
Feb 11, 2009 2:12:11 PM (16 years ago)
Author:
vboxsync
Message:

OVF: create new IAppliance::read() method instead of reading in constructor; IVirtualBox::openAppliance -> createAppliance; IAppliance->importAppliance -> importMachines

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

Legend:

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

    r16662 r16668  
    428428                    CHECK_ERROR_BREAK(aVirtualSystemDescriptions[i],
    429429                                      SetFinalValues(ComSafeArrayAsInParam(aEnabled),
    430                                                      ComSafeArrayAsInParam(aFinalValues)));
     430                                                     ComSafeArrayAsInParam(aFinalValues),
     431                                                     ComSafeArrayAsInParam(aExtraConfigValues)));
    431432
    432433            } // for (unsigned i = 0; i < cVirtualSystemDescriptions; ++i)
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxImportAppliance.cpp

    r16662 r16668  
    128128
    129129    virtual void restoreDefaults() {}
    130     virtual void putBack (QVector<QString>& aFinalValues, QVector<BOOL>& aFinalStates)
     130    virtual void putBack (QVector<BOOL>& aFinalStates, QVector<QString>& aFinalValues, QVector<QString>& aFinalExtraValues)
    131131    {
    132132        for (int i = 0; i < childCount(); ++i)
    133             child (i)->putBack (aFinalValues, aFinalStates);
     133            child (i)->putBack (aFinalStates, aFinalValues, aFinalExtraValues);
    134134    }
    135135
     
    162162    }
    163163
    164     virtual void putBack (QVector<QString>& aFinalValues, QVector<BOOL>& aFinalStates)
     164    virtual void putBack (QVector<BOOL>& aFinalStates, QVector<QString>& aFinalValues, QVector<QString>& aFinalExtraValues)
    165165    {
    166166        /* Resize the vectors */
    167167        unsigned long count = mDesc.GetCount();
     168        aFinalStates.resize (count);
    168169        aFinalValues.resize (count);
    169         aFinalStates.resize (count);
     170        aFinalExtraValues.resize (count);
    170171        /* Recursively fill the vectors */
    171         ModelItem::putBack (aFinalValues, aFinalStates);
     172        ModelItem::putBack (aFinalStates, aFinalValues, aFinalExtraValues);
    172173        /* Set all final values at once */
    173         mDesc.SetFinalValues (aFinalStates, aFinalValues);
     174        mDesc.SetFinalValues (aFinalStates, aFinalValues, aFinalExtraValues);
    174175    }
    175176
     
    202203    {}
    203204
    204     virtual void putBack (QVector<QString>& aFinalValues, QVector<BOOL>& aFinalStates)
    205     {
     205    virtual void putBack (QVector<BOOL>& aFinalStates, QVector<QString>& aFinalValues, QVector<QString>& aFinalExtraValues)
     206    {
     207        aFinalStates[mNumber] = mCheckState == Qt::Checked;
    206208        aFinalValues[mNumber] = mConfigValue;
    207         aFinalStates[mNumber] = mCheckState == Qt::Checked;
    208         ModelItem::putBack (aFinalValues, aFinalStates);
     209        aFinalExtraValues[mNumber] = mExtraConfigValue;
     210        ModelItem::putBack (aFinalStates, aFinalValues, aFinalExtraValues);
    209211    }
    210212
     
    927929void VirtualSystemModel::putBack()
    928930{
    929     QVector<QString> v1;
    930     QVector<BOOL> v2;
    931     mRootItem->putBack (v1, v2);
     931    QVector<BOOL> v1;
     932    QVector<QString> v2;
     933    QVector<QString> v3;
     934    mRootItem->putBack (v1, v2, v3);
    932935}
    933936
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