VirtualBox

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


Ignore:
Timestamp:
May 31, 2010 6:33:15 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
62192
Message:

OVF: respect override of import parameters (setFinalValues) also when vbox:Machine is present, first batch (everything except storage)

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

Legend:

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

    r29875 r29925  
    185185    Utf8Str strRef;                         // reference number (hard disk controllers only)
    186186    Utf8Str strOvf;                         // original OVF value (type-dependent)
    187     Utf8Str strVbox;                        // configuration value (type-dependent)
    188     Utf8Str strExtraConfig;                 // extra configuration key=value strings (type-dependent)
     187    Utf8Str strVboxSuggested;               // configuration value (type-dependent); original value suggested by interpret()
     188    Utf8Str strVboxCurrent;                 // configuration value (type-dependent); current value, either from interpret() or setFinalValue()
     189    Utf8Str strExtraConfigSuggested;        // extra configuration key=value strings (type-dependent); original value suggested by interpret()
     190    Utf8Str strExtraConfigCurrent;          // extra configuration key=value strings (type-dependent); current value, either from interpret() or setFinalValue()
    189191
    190192    uint32_t ulSizeMB;                      // hard disk images only: a copy of ovf::DiskImage::ulSuggestedSizeMB
  • trunk/src/VBox/Main/include/ApplianceImplPrivate.h

    r29875 r29925  
    132132};
    133133
     134/**
     135 * Used by Appliance::importMachineGeneric() to store
     136 * input parameters and rollback information.
     137 */
     138struct Appliance::ImportStack
     139{
     140    // input pointers
     141    const LocationInfo              &locInfo;           // ptr to location info from Appliance::importFS()
     142    Utf8Str                         strSourceDir;       // directory where source files reside
     143    const ovf::DiskImagesMap        &mapDisks;          // ptr to disks map in OVF
     144    ComObjPtr<Progress>             &pProgress;         // progress object passed into Appliance::importFS()
     145
     146    // input parameters from VirtualSystemDescriptions
     147    Utf8Str                         strNameVBox;        // VM name
     148    Utf8Str                         strOsTypeVBox;      // VirtualBox guest OS type as string
     149    uint32_t                        cCPUs;              // CPU count
     150    bool                            fForceHWVirt;       // if true, we force enabling hardware virtualization
     151    bool                            fForceIOAPIC;       // if true, we force enabling the IOAPIC
     152    uint32_t                        ulMemorySizeMB;     // virtual machien RAM in megabytes
     153#ifdef VBOX_WITH_USB
     154    bool                            fUSBEnabled;
     155#endif
     156    Utf8Str                         strAudioAdapter;    // if not empty, then the guest has audio enabled, and this is the decimal
     157                                                        // representation of the audio adapter (should always be "0" for AC97 presently)
     158
     159    // session (not initially created)
     160    ComPtr<ISession>                pSession;           // session opened in Appliance::importFS() for machine manipulation
     161    bool                            fSessionOpen;       // true if the pSession is currently open and needs closing
     162
     163    // a list of images that we created/imported; this is initially empty
     164    // and will be cleaned up on errors
     165    std::list<MyHardDiskAttachment> llHardDiskAttachments;      // disks that were attached
     166    std::list< ComPtr<IMedium> >    llHardDisksCreated;         // media that were created
     167    std::list<Bstr>                 llMachinesRegistered;       // machines that were registered; list of string UUIDs
     168
     169    ImportStack(const LocationInfo &aLocInfo,
     170                const ovf::DiskImagesMap &aMapDisks,
     171                ComObjPtr<Progress> &aProgress)
     172        : locInfo(aLocInfo),
     173          mapDisks(aMapDisks),
     174          pProgress(aProgress),
     175          cCPUs(1),
     176          fForceHWVirt(false),
     177          fForceIOAPIC(false),
     178          ulMemorySizeMB(0),
     179          fSessionOpen(false)
     180    {
     181        // disk images have to be on the same place as the OVF file. So
     182        // strip the filename out of the full file path
     183        strSourceDir = aLocInfo.strPath;
     184        strSourceDir.stripFilename();
     185    }
     186};
     187
    134188////////////////////////////////////////////////////////////////////////////////
    135189//
  • trunk/src/VBox/Main/include/VirtualBoxImpl.h

    r29849 r29925  
    8989        COM_INTERFACE_ENTRY(ISupportErrorInfo)
    9090        COM_INTERFACE_ENTRY(IVirtualBox)
    91         COM_INTERFACE_ENTRY(IConnectionPointContainer) 
     91        COM_INTERFACE_ENTRY(IConnectionPointContainer)
    9292    END_COM_MAP()
    9393
  • trunk/src/VBox/Main/include/ovfreader.h

    r29422 r29925  
    311311    iprt::MiniString    strName;                // copy of VirtualSystem/@id
    312312
    313     iprt::MiniString    strDescription;         // copy of VirtualSystem/Info content
     313    iprt::MiniString    strDescription;         // copy of VirtualSystem/AnnotationSection content, if any
    314314
    315315    CIMOSType_T         cimos;
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