VirtualBox

Changeset 28110 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Apr 8, 2010 6:07:13 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59826
Message:

Main: more Machine::init() work to get OVF vbox:Machine import running; works now for machines without media attachments

Location:
trunk/src/VBox/Main/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/ApplianceImpl.h

    r28098 r28110  
    148148    HRESULT importFS(const LocationInfo &locInfo, ComObjPtr<Progress> &aProgress);
    149149    struct ImportStack;
    150     void importVBoxMachine(const settings::MachineConfigFile &config,
     150    void importVBoxMachine(ComObjPtr<VirtualSystemDescription> &vsdescThis,
    151151                           ComPtr<IMachine> &pNewMachine,
    152152                           ImportStack &stack);
  • trunk/src/VBox/Main/include/MachineImpl.h

    r28091 r28110  
    364364                 const Guid *aId);
    365365
     366    // initializer for machine config in memory (OVF import)
     367    HRESULT init(VirtualBox *aParent,
     368                 const Utf8Str &strName,
     369                 const settings::MachineConfigFile &config);
     370
    366371    void uninit();
    367372
     
    370375                     const Utf8Str &strConfigFile);
    371376    HRESULT initDataAndChildObjects();
     377    HRESULT registeredInit();
     378    HRESULT tryCreateMachineConfigFile(BOOL aOverride);
    372379    void uninitDataAndChildObjects();
    373380
     
    703710protected:
    704711
    705     HRESULT registeredInit();
    706 
    707712    HRESULT checkStateDependency(StateDependency aDepType);
    708713
     
    718723
    719724    HRESULT loadSettings(bool aRegistered);
     725    HRESULT loadMachineDataFromSettings(const settings::MachineConfigFile &config);
    720726    HRESULT loadSnapshot(const settings::Snapshot &data,
    721727                         const Guid &aCurSnapshotId,
     
    723729    HRESULT loadHardware(const settings::Hardware &data);
    724730    HRESULT loadStorageControllers(const settings::Storage &data,
    725                                    bool aRegistered,
    726731                                   const Guid *aSnapshotId = NULL);
    727732    HRESULT loadStorageDevices(StorageController *aStorageController,
    728733                               const settings::StorageController &data,
    729                                bool aRegistered,
    730734                               const Guid *aSnapshotId = NULL);
    731735
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