VirtualBox

Changeset 22214 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Aug 12, 2009 6:17:31 PM (15 years ago)
Author:
vboxsync
Message:

Main: documentation.

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

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

    r22173 r22214  
    19141914    if (FAILED(hrc = virtualBox->GetExtraDataKeys(ComSafeArrayAsOutParam(aGlobalExtraDataKeys))))
    19151915        AssertMsgFailed(("VirtualBox::GetExtraDataKeys failed with %Rrc\n", hrc));
     1916
     1917    // remember the no. of global values so we can call the correct method below
    19161918    size_t cGlobalValues = aGlobalExtraDataKeys.size();
     1919
    19171920    if (FAILED(hrc = pMachine->GetExtraDataKeys(ComSafeArrayAsOutParam(aMachineExtraDataKeys))))
    19181921        AssertMsgFailed(("IMachine::GetExtraDataKeys failed with %Rrc\n", hrc));
    19191922
    1920     // build a combined list, prefix global keys with "G:"...
     1923    // build a combined list from global keys...
    19211924    std::list<Utf8Str> llExtraDataKeys;
    19221925    size_t i;
    19231926    for (i = 0; i < aGlobalExtraDataKeys.size(); ++i)
    19241927        llExtraDataKeys.push_back(Utf8Str(aGlobalExtraDataKeys[i]));
    1925     // ... and machine keys with "M:" (so we know below which method to call)
     1928    // ... and machine keys
    19261929    for (i = 0; i < aMachineExtraDataKeys.size(); ++i)
    19271930        llExtraDataKeys.push_back(Utf8Str(aMachineExtraDataKeys[i]));
     1931
    19281932    i = 0;
    19291933    for (std::list<Utf8Str>::const_iterator it = llExtraDataKeys.begin();
     
    28132817}
    28142818
    2815 /* vi: set tabstop=4 shiftwidth=4 expandtab: */
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r22213 r22214  
    376376    </const>
    377377    <const name="v1_5"     value="7">
    378       <desc>Settings version "1.5", written by VirtualBox 2.1.x.</desc>
     378      <desc>Legacy settings version, not currently supported.</desc>
    379379      <!-- 2008-09-04: 2.0.0 released
    380380           2008-11-20: settings version 1.5 introduced
  • trunk/src/VBox/Main/xml/Settings.cpp

    r22213 r22214  
    272272}
    273273
     274/**
     275 * Helper to create a string for a GUID.
     276 * @param guid
     277 * @return
     278 */
    274279com::Utf8Str ConfigFileBase::makeString(const Guid &guid)
    275280{
     
    398403
    399404/**
     405 * Creates an <ExtraData> node under the given parent element with
     406 * <ExtraDataItem> childern according to the contents of the given
     407 * map.
     408 * This is in ConfigFileBase because it's used in both MainConfigFile
     409 * MachineConfigFile, which both can have extradata.
    400410 *
    401411 * @param elmParent
     
    423433/**
    424434 * Creates <DeviceFilter> nodes under the given parent element according to
    425  * the contents of the given USBDeviceFiltersList. If fHostMode is true,
    426  * this means that we're supposed to write filters for the IHost interface
    427  * (respect "action", omit "strRemote" and "ulMaskedInterfaces" in
    428  * struct USBDeviceFilter).
     435 * the contents of the given USBDeviceFiltersList. This is in ConfigFileBase
     436 * because it's used in both MainConfigFile (for host filters) and
     437 * MachineConfigFile (for machine filters).
     438 *
     439 * If fHostMode is true, this means that we're supposed to write filters
     440 * for the IHost interface (respect "action", omit "strRemote" and
     441 * "ulMaskedInterfaces" in struct USBDeviceFilter).
     442 *
    429443 * @param elmParent
    430444 * @param ll
     
    681695 *
    682696 * Throws variants of xml::Error for I/O, XML and logical content errors, which
    683  * the caller should catch; if this constructor does not throw, then the file has
    684  * been successfully read.
     697 * the caller should catch; if this constructor does not throw, then the member
     698 * variables contain meaningful values (either from the file or defaults).
    685699 *
    686700 * @param strFilename
     
    767781
    768782/**
    769  * Writes out a single <HardDisk> element for the given Medium structure
     783 * Creates a single <HardDisk> element for the given Medium structure
    770784 * and recurses to write the child hard disks underneath. Called from
    771785 * MainConfigFile::write().
     786 *
    772787 * @param elmMedium
    773788 * @param m
     
    818833
    819834/**
    820  * Called from the IMachine interface to write out a machine config file. This
     835 * Called from the IVirtualBox interface to write out VirtualBox.xml. This
    821836 * builds an XML DOM tree and writes it out to disk.
    822837 */
     
    921936
    922937/**
     938 * Called from MachineConfigFile::readHardware() to network information.
    923939 * @param elmNetwork
    924940 * @param ll
     
    14841500 * have their own storage controllers sections.
    14851501 *
    1486  * This is only called for settings version 1.7 and above; see readHardDiskAttachments_pre1_7
     1502 * This is only called for settings version 1.7 and above; see readHardDiskAttachments_pre1_7()
    14871503 * for earlier versions.
    14881504 *
     
    16451661
    16461662/**
    1647  * Called from the constructor to actually read in the Machine element
     1663 * Called from the constructor to actually read in the <Machine> element
    16481664 * of a machine config file.
    16491665 * @param elmMachine
     
    17221738 *
    17231739 * Throws variants of xml::Error for I/O, XML and logical content errors, which
    1724  * the caller should catch; if this constructor does not throw, then the file has
    1725  * been successfully read and parsed.
     1740 * the caller should catch; if this constructor does not throw, then the member
     1741 * variables contain meaningful values (either from the file or defaults).
    17261742 *
    17271743 * @param strFilename
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