VirtualBox

Ignore:
Timestamp:
Mar 3, 2009 1:28:12 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
43635
Message:

networking API renaming

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r17160 r17275  
    23992399                     * an additional symbolic network/interface name field, use
    24002400                     * this name instead */
    2401                     if (type == KNetworkAttachmentType_HostInterface)
     2401                    if (type == KNetworkAttachmentType_Bridged)
    24022402                        attType = attType.arg (tr ("host interface, %1",
    24032403                            "details report (network)").arg (adapter.GetHostInterface()));
     
    34183418    mNetworkAttachmentTypes [KNetworkAttachmentType_NAT] =
    34193419        tr ("NAT", "NetworkAttachmentType");
    3420     mNetworkAttachmentTypes [KNetworkAttachmentType_HostInterface] =
    3421         tr ("Host Interface", "NetworkAttachmentType");
     3420    mNetworkAttachmentTypes [KNetworkAttachmentType_Bridged] =
     3421        tr ("Bridged Interface", "NetworkAttachmentType");
    34223422    mNetworkAttachmentTypes [KNetworkAttachmentType_Internal] =
    34233423        tr ("Internal Network", "NetworkAttachmentType");
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsNetwork.cpp

    r17217 r17275  
    130130            mAdapter.AttachToNAT();
    131131            break;
    132         case KNetworkAttachmentType_HostInterface:
    133             mAdapter.AttachToHostInterface();
     132        case KNetworkAttachmentType_Bridged:
     133            mAdapter.AttachToBridgedNetwork();
    134134            break;
    135135        case KNetworkAttachmentType_Internal:
     
    148148    mAdapter.SetCableConnected (mCbCable->isChecked());
    149149
    150     if (type == KNetworkAttachmentType_HostInterface
     150    if (type == KNetworkAttachmentType_Bridged
    151151#if defined (Q_WS_WIN) && defined (VBOX_WITH_NETFLT)
    152152            || type == KNetworkAttachmentType_HostOnly
     
    257257#if defined (Q_WS_X11) && !defined (VBOX_WITH_NETFLT)
    258258    bool enableHostIf = vboxGlobal().toNetworkAttachmentType (aString) ==
    259                         KNetworkAttachmentType_HostInterface;
     259                        KNetworkAttachmentType_Bridged;
    260260    setTapEnabled (enableHostIf);
    261261#endif
     
    312312        mCbNAType->itemText(1), Qt::ToolTipRole);
    313313    mCbNAType->insertItem (2,
    314         vboxGlobal().toString (KNetworkAttachmentType_HostInterface));
     314        vboxGlobal().toString (KNetworkAttachmentType_Bridged));
    315315    mCbNAType->setItemData (2,
    316316        mCbNAType->itemText(2), Qt::ToolTipRole);
     
    555555    CHost host = vboxGlobal().virtualBox().GetHost();
    556556    CHostNetworkInterface iFace;
    557     CProgress progress = host.CreateHostNetworkInterface (iName, iFace);
     557    CProgress progress = host.CreateHostOnlyNetworkInterface (iName, iFace);
    558558    if (host.isOk())
    559559    {
     
    614614    {
    615615        /* Delete interface */
    616         CProgress progress = host.RemoveHostNetworkInterface (iFace.GetId(), iFace);
     616        CProgress progress = host.RemoveHostOnlyNetworkInterface (iFace.GetId(), iFace);
    617617        if (host.isOk())
    618618        {
     
    673673#if defined(Q_WS_WIN) && defined(VBOX_WITH_NETFLT)
    674674        /* 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))
    676677#endif
    677678            itemsList << new VBoxNIListItem (it->GetName());
     
    807808
    808809#if defined (Q_WS_WIN) || defined (VBOX_WITH_NETFLT)
    809         if ((type == KNetworkAttachmentType_HostInterface
     810        if ((type == KNetworkAttachmentType_Bridged
    810811#if defined (Q_WS_WIN) && defined (VBOX_WITH_NETFLT)
    811812                || type == KNetworkAttachmentType_HostOnly
     
    885886    KNetworkAttachmentType enmType = vboxGlobal().toNetworkAttachmentType (page->mCbNAType->currentText());
    886887
    887     bool isHostInterfaceAttached = enmType == KNetworkAttachmentType_HostInterface;
     888    bool isHostInterfaceAttached = enmType == KNetworkAttachmentType_Bridged;
    888889
    889890    mNIList->setEnabled (isHostInterfaceAttached);
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