VirtualBox

Changeset 65680 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Feb 8, 2017 2:15:16 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: Global preferences: Network page: Some reordering to prevent horrific diffs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.h

    r65678 r65680  
    3232struct UIDataSettingsGlobalNetworkNAT
    3333{
     34    /** Returns whether the @a other passed data is equal to this one. */
     35    bool operator==(const UIDataSettingsGlobalNetworkNAT &other) const
     36    {
     37        return true
     38               && (m_fEnabled == other.m_fEnabled)
     39               && (m_strName == other.m_strName)
     40               && (m_strNewName == other.m_strNewName)
     41               && (m_strCIDR == other.m_strCIDR)
     42               && (m_fSupportsDHCP == other.m_fSupportsDHCP)
     43               && (m_fSupportsIPv6 == other.m_fSupportsIPv6)
     44               && (m_fAdvertiseDefaultIPv6Route == other.m_fAdvertiseDefaultIPv6Route)
     45               && (m_ipv4rules == other.m_ipv4rules)
     46               && (m_ipv6rules == other.m_ipv6rules)
     47               ;
     48    }
     49
    3450    /** Holds whether this network enabled. */
    3551    bool m_fEnabled;
     
    5066    /** Holds IPv6 port forwarding rules. */
    5167    UIPortForwardingDataList m_ipv6rules;
    52 
    53     /** Returns whether the @a other passed data is equal to this one. */
    54     bool operator==(const UIDataSettingsGlobalNetworkNAT &other) const
    55     {
    56         return true
    57                && (m_fEnabled == other.m_fEnabled)
    58                && (m_strName == other.m_strName)
    59                && (m_strNewName == other.m_strNewName)
    60                && (m_strCIDR == other.m_strCIDR)
    61                && (m_fSupportsDHCP == other.m_fSupportsDHCP)
    62                && (m_fSupportsIPv6 == other.m_fSupportsIPv6)
    63                && (m_fAdvertiseDefaultIPv6Route == other.m_fAdvertiseDefaultIPv6Route)
    64                && (m_ipv4rules == other.m_ipv4rules)
    65                && (m_ipv6rules == other.m_ipv6rules)
    66                ;
    67     }
    6868};
    6969
     
    7272struct UIDataSettingsGlobalNetworkHostInterface
    7373{
     74    /** Returns whether the @a other passed data is equal to this one. */
     75    bool operator==(const UIDataSettingsGlobalNetworkHostInterface &other) const
     76    {
     77        return true
     78               && (m_strName == other.m_strName)
     79               && (m_fDhcpClientEnabled == other.m_fDhcpClientEnabled)
     80               && (m_strInterfaceAddress == other.m_strInterfaceAddress)
     81               && (m_strInterfaceMask == other.m_strInterfaceMask)
     82               && (m_fIpv6Supported == other.m_fIpv6Supported)
     83               && (m_strInterfaceAddress6 == other.m_strInterfaceAddress6)
     84               && (m_strInterfaceMaskLength6 == other.m_strInterfaceMaskLength6)
     85               ;
     86    }
     87
    7488    /** Holds host interface name. */
    7589    QString m_strName;
     
    86100    /** Holds IPv6 interface mask length. */
    87101    QString m_strInterfaceMaskLength6;
    88 
    89     /** Returns whether the @a other passed data is equal to this one. */
    90     bool operator==(const UIDataSettingsGlobalNetworkHostInterface &other) const
    91     {
    92         return true
    93                && (m_strName == other.m_strName)
    94                && (m_fDhcpClientEnabled == other.m_fDhcpClientEnabled)
    95                && (m_strInterfaceAddress == other.m_strInterfaceAddress)
    96                && (m_strInterfaceMask == other.m_strInterfaceMask)
    97                && (m_fIpv6Supported == other.m_fIpv6Supported)
    98                && (m_strInterfaceAddress6 == other.m_strInterfaceAddress6)
    99                && (m_strInterfaceMaskLength6 == other.m_strInterfaceMaskLength6)
    100                ;
    101     }
    102102};
    103103
     
    106106struct UIDataSettingsGlobalNetworkDHCPServer
    107107{
     108    /** Returns whether the @a other passed data is equal to this one. */
     109    bool operator==(const UIDataSettingsGlobalNetworkDHCPServer &other) const
     110    {
     111        return true
     112               && (m_fDhcpServerEnabled == other.m_fDhcpServerEnabled)
     113               && (m_strDhcpServerAddress == other.m_strDhcpServerAddress)
     114               && (m_strDhcpServerMask == other.m_strDhcpServerMask)
     115               && (m_strDhcpLowerAddress == other.m_strDhcpLowerAddress)
     116               && (m_strDhcpUpperAddress == other.m_strDhcpUpperAddress)
     117               ;
     118    }
     119
    108120    /** Holds whether DHCP server enabled. */
    109121    bool m_fDhcpServerEnabled;
     
    116128    /** Holds DHCP server upper address. */
    117129    QString m_strDhcpUpperAddress;
    118 
    119     /** Returns whether the @a other passed data is equal to this one. */
    120     bool operator==(const UIDataSettingsGlobalNetworkDHCPServer &other) const
    121     {
    122         return true
    123                && (m_fDhcpServerEnabled == other.m_fDhcpServerEnabled)
    124                && (m_strDhcpServerAddress == other.m_strDhcpServerAddress)
    125                && (m_strDhcpServerMask == other.m_strDhcpServerMask)
    126                && (m_strDhcpLowerAddress == other.m_strDhcpLowerAddress)
    127                && (m_strDhcpUpperAddress == other.m_strDhcpUpperAddress)
    128                ;
    129     }
    130130};
    131131
     
    134134struct UIDataSettingsGlobalNetworkHost
    135135{
     136    /** Returns whether the @a other passed data is equal to this one. */
     137    bool operator==(const UIDataSettingsGlobalNetworkHost &other) const
     138    {
     139        return true
     140               && (m_interface == other.m_interface)
     141               && (m_dhcpserver == other.m_dhcpserver)
     142               ;
     143    }
     144
    136145    /** Holds the host interface data. */
    137146    UIDataSettingsGlobalNetworkHostInterface m_interface;
    138147    /** Holds the DHCP server data. */
    139148    UIDataSettingsGlobalNetworkDHCPServer m_dhcpserver;
    140 
    141     /** Returns whether the @a other passed data is equal to this one. */
    142     bool operator==(const UIDataSettingsGlobalNetworkHost &other) const
    143     {
    144         return true
    145                && (m_interface == other.m_interface)
    146                && (m_dhcpserver == other.m_dhcpserver)
    147                ;
    148     }
    149149};
    150150
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