VirtualBox

Changeset 16208 in vbox for trunk/src


Ignore:
Timestamp:
Jan 23, 2009 6:21:18 PM (16 years ago)
Author:
vboxsync
Message:

OVF: parse EulaSection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ApplianceImpl.cpp

    r16205 r16208  
    160160            // (one for each VirtualSystem/Item[@ResourceType=17] element with accumulated data from children)
    161161
     162    string              strLicenceInfo;     // license info if any; receives contents of VirtualSystem/EulaSection/Info
     163    string              strLicenceText;     // license info if any; receives contents of VirtualSystem/EulaSection/License
     164
    162165    VirtualSystem()
    163166        : ullMemorySize(0), cCPUs(1)
     
    333336                const xml::Node *pFileElem;
    334337                if (    pReferencesElem
    335                     && ((pFileElem = pReferencesElem->findChildElementFromId(strFileRef.c_str())))
    336                 )
     338                     && ((pFileElem = pReferencesElem->findChildElementFromId(strFileRef.c_str())))
     339                   )
    337340                {
    338341                    // copy remaining values from file node then
     
    425428        if (!strcmp(pcszElemName, "EulaSection"))
    426429        {
    427             // TODO
     430         /* <EulaSection>
     431                <Info ovf:msgid="6">License agreement for the Virtual System.</Info>
     432                <License ovf:msgid="1">License terms can go in here.</License>
     433            </EulaSection> */
     434
     435            const xml::Node *pelmInfo, *pelmLicense;
     436            if (    ((pelmInfo = pelmThis->findChildElement("Info")))
     437                 && ((pelmLicense = pelmThis->findChildElement("License")))
     438               )
     439            {
     440                d.strLicenceInfo = pelmInfo->getValue();
     441                d.strLicenceText = pelmLicense->getValue();
     442            }
    428443        }
    429444        else if (    (!strcmp(pcszElemName, "VirtualHardwareSection"))
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