VirtualBox

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


Ignore:
Timestamp:
Feb 11, 2009 1:01:48 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
42654
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

    r16606 r16662  
    155155        Bstr bstrOvfFilename(strOvfFilename);
    156156        ComPtr<IAppliance> appliance;
    157         CHECK_ERROR_BREAK(a->virtualBox, OpenAppliance(bstrOvfFilename, appliance.asOutParam()));
     157        CHECK_ERROR_BREAK(a->virtualBox, CreateAppliance(appliance.asOutParam()));
     158
     159        CHECK_ERROR_BREAK(appliance, Read(bstrOvfFilename));
    158160
    159161        RTPrintf("Interpreting %s... ", strOvfFilename.c_str());
     
    434436                ComPtr<IProgress> progress;
    435437                CHECK_ERROR_BREAK(appliance,
    436                                   ImportAppliance(progress.asOutParam()));
     438                                  ImportMachines(progress.asOutParam()));
    437439
    438440                showProgress(progress);
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxImportAppliance.cpp

    r16618 r16662  
    954954        CVirtualBox vbox = vboxGlobal().virtualBox();
    955955        /* Open the appliance */
    956         CAppliance appliance = vbox.OpenAppliance (file);
     956        CAppliance appliance = vbox.CreateAppliance();
    957957        if (appliance.isOk())
    958958        {
     959            appliance.Read(file); // @todo error handling
    959960            /* Now we have to interpret that stuff */
    960961            appliance.Interpret();
     
    967968                    /* Start the import asynchronously */
    968969                    CProgress progress;
    969                     progress = appliance.ImportAppliance();
     970                    progress = appliance.ImportMachines();
    970971                    if (!appliance.isOk())
    971972                    {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette