Changeset 17275 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Mar 3, 2009 1:28:12 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 43635
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r17160 r17275 2399 2399 * an additional symbolic network/interface name field, use 2400 2400 * this name instead */ 2401 if (type == KNetworkAttachmentType_ HostInterface)2401 if (type == KNetworkAttachmentType_Bridged) 2402 2402 attType = attType.arg (tr ("host interface, %1", 2403 2403 "details report (network)").arg (adapter.GetHostInterface())); … … 3418 3418 mNetworkAttachmentTypes [KNetworkAttachmentType_NAT] = 3419 3419 tr ("NAT", "NetworkAttachmentType"); 3420 mNetworkAttachmentTypes [KNetworkAttachmentType_ HostInterface] =3421 tr (" HostInterface", "NetworkAttachmentType");3420 mNetworkAttachmentTypes [KNetworkAttachmentType_Bridged] = 3421 tr ("Bridged Interface", "NetworkAttachmentType"); 3422 3422 mNetworkAttachmentTypes [KNetworkAttachmentType_Internal] = 3423 3423 tr ("Internal Network", "NetworkAttachmentType"); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsNetwork.cpp
r17217 r17275 130 130 mAdapter.AttachToNAT(); 131 131 break; 132 case KNetworkAttachmentType_ HostInterface:133 mAdapter.AttachTo HostInterface();132 case KNetworkAttachmentType_Bridged: 133 mAdapter.AttachToBridgedNetwork(); 134 134 break; 135 135 case KNetworkAttachmentType_Internal: … … 148 148 mAdapter.SetCableConnected (mCbCable->isChecked()); 149 149 150 if (type == KNetworkAttachmentType_ HostInterface150 if (type == KNetworkAttachmentType_Bridged 151 151 #if defined (Q_WS_WIN) && defined (VBOX_WITH_NETFLT) 152 152 || type == KNetworkAttachmentType_HostOnly … … 257 257 #if defined (Q_WS_X11) && !defined (VBOX_WITH_NETFLT) 258 258 bool enableHostIf = vboxGlobal().toNetworkAttachmentType (aString) == 259 KNetworkAttachmentType_ HostInterface;259 KNetworkAttachmentType_Bridged; 260 260 setTapEnabled (enableHostIf); 261 261 #endif … … 312 312 mCbNAType->itemText(1), Qt::ToolTipRole); 313 313 mCbNAType->insertItem (2, 314 vboxGlobal().toString (KNetworkAttachmentType_ HostInterface));314 vboxGlobal().toString (KNetworkAttachmentType_Bridged)); 315 315 mCbNAType->setItemData (2, 316 316 mCbNAType->itemText(2), Qt::ToolTipRole); … … 555 555 CHost host = vboxGlobal().virtualBox().GetHost(); 556 556 CHostNetworkInterface iFace; 557 CProgress progress = host.CreateHost NetworkInterface (iName, iFace);557 CProgress progress = host.CreateHostOnlyNetworkInterface (iName, iFace); 558 558 if (host.isOk()) 559 559 { … … 614 614 { 615 615 /* Delete interface */ 616 CProgress progress = host.RemoveHost NetworkInterface (iFace.GetId(), iFace);616 CProgress progress = host.RemoveHostOnlyNetworkInterface (iFace.GetId(), iFace); 617 617 if (host.isOk()) 618 618 { … … 673 673 #if defined(Q_WS_WIN) && defined(VBOX_WITH_NETFLT) 674 674 /* display real for not host-only and viceversa */ 675 if((enmAttachmentType == KNetworkAttachmentType_HostOnly) != it->GetReal()) 675 if((enmAttachmentType == KNetworkAttachmentType_HostOnly) 676 == (it->GetInterfaceType() == KHostNetworkInterfaceType_HostOnly)) 676 677 #endif 677 678 itemsList << new VBoxNIListItem (it->GetName()); … … 807 808 808 809 #if defined (Q_WS_WIN) || defined (VBOX_WITH_NETFLT) 809 if ((type == KNetworkAttachmentType_ HostInterface810 if ((type == KNetworkAttachmentType_Bridged 810 811 #if defined (Q_WS_WIN) && defined (VBOX_WITH_NETFLT) 811 812 || type == KNetworkAttachmentType_HostOnly … … 885 886 KNetworkAttachmentType enmType = vboxGlobal().toNetworkAttachmentType (page->mCbNAType->currentText()); 886 887 887 bool isHostInterfaceAttached = enmType == KNetworkAttachmentType_ HostInterface;888 bool isHostInterfaceAttached = enmType == KNetworkAttachmentType_Bridged; 888 889 889 890 mNIList->setEnabled (isHostInterfaceAttached);
Note:
See TracChangeset
for help on using the changeset viewer.