VirtualBox

Ignore:
Timestamp:
Feb 11, 2008 8:00:12 PM (17 years ago)
Author:
vboxsync
Message:

Main: Added IMachine::machines2 that returns the array instead of the collection (will supercede IMachine::machines after web services are fixed).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h

    r6784 r6909  
    10281028    /* clear inner list */
    10291029    mNetworksList.clear();
    1030     /* loading internal networks list */
     1030
     1031    /* load internal network list */
    10311032    CVirtualBox vbox = vboxGlobal().virtualBox();
    10321033    ulong count = vbox.GetSystemProperties().GetNetworkAdapterCount();
    1033     CMachineEnumerator en = vbox.GetMachines().Enumerate();
    1034     while (en.HasMore())
    1035     {
    1036         CMachine machine = en.GetNext();
     1034    CMachineVector vec =  vbox.GetMachines2();
     1035    for (CMachineVector::ConstIterator m = vec.begin();
     1036         m != vec.end(); ++ m)
     1037    {
    10371038        for (ulong slot = 0; slot < count; ++ slot)
    10381039        {
    1039             CNetworkAdapter adapter = machine.GetNetworkAdapter (slot);
     1040            CNetworkAdapter adapter = m->GetNetworkAdapter (slot);
    10401041            if (adapter.GetAttachmentType() == CEnums::InternalNetworkAttachment &&
    10411042                !mNetworksList.contains (adapter.GetInternalNetwork()))
     
    10431044        }
    10441045    }
     1046
    10451047    mLockNetworkListUpdate = false;
    10461048}
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