VirtualBox

Changeset 92730 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 3, 2021 10:46:28 AM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10163: UINetworkManager: A bit of cleanup first of all.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UIDetailsWidgetNATNetwork.h

    r87622 r92730  
    235235        /** Holds the 'Options' button-box instance. */
    236236        QIDialogButtonBox *m_pButtonBoxOptions;
     237        /** Holds the list of names busy by other
     238          * NAT networks. */
     239        QStringList        m_busyNames;
    237240    /** @} */
    238241
     
    247250        /** Holds the 'Forwarding' button-box instance. */
    248251        QIDialogButtonBox     *m_pButtonBoxForwarding;
    249         /** Holds the list of names busy by other
    250           * NAT networks. */
    251         QStringList            m_busyNames;
    252252        /** Holds whether we should try to keep
    253253          * port forwarding rule position intact. */
  • trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UINetworkManager.cpp

    r91142 r92730  
    970970    if (pItem)
    971971    {
    972         QStringList busyNamesForItem = busyNames();
     972        QStringList busyNamesForItem = busyNamesNAT();
    973973        busyNamesForItem.removeAll(pItem->name());
    974974        m_pDetailsWidgetNATNetwork->setData(*pItem, busyNamesForItem, fHoldPosition);
     
    16391639}
    16401640
    1641 QStringList UINetworkManagerWidget::busyNames() const
     1641QStringList UINetworkManagerWidget::busyNamesNAT() const
    16421642{
    16431643    QStringList names;
  • trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UINetworkManager.h

    r90483 r92730  
    6060    /** Notifies listeners about host network details data @a fDiffers. */
    6161    void sigDetailsDataChangedHostNetwork(bool fDiffers);
    62 
    6362    /** Notifies listeners about NAT network details data @a fDiffers. */
    6463    void sigDetailsDataChangedNATNetwork(bool fDiffers);
     
    210209
    211210        /** Returns a list of busy NAT network names. */
    212         QStringList busyNames() const;
     211        QStringList busyNamesNAT() const;
    213212    /** @} */
    214213
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.h

    r92477 r92730  
    441441        static void cannotCreateNATNetwork(const CVirtualBox &comVBox);
    442442        /** Notifies about inability to remove NAT network.
    443           * @param  comVBox         Brings common VBox object trying to remove DHCP server.
     443          * @param  comVBox         Brings common VBox object trying to remove NAT network.
    444444          * @param  strNetworkName  Brings the network name. */
    445445        static void cannotRemoveNATNetwork(const CVirtualBox &comVBox, const QString &strNetworkName);
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