Changeset 65680 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Feb 8, 2017 2:15:16 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.h
r65678 r65680 32 32 struct UIDataSettingsGlobalNetworkNAT 33 33 { 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 34 50 /** Holds whether this network enabled. */ 35 51 bool m_fEnabled; … … 50 66 /** Holds IPv6 port forwarding rules. */ 51 67 UIPortForwardingDataList m_ipv6rules; 52 53 /** Returns whether the @a other passed data is equal to this one. */54 bool operator==(const UIDataSettingsGlobalNetworkNAT &other) const55 {56 return true57 && (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 }68 68 }; 69 69 … … 72 72 struct UIDataSettingsGlobalNetworkHostInterface 73 73 { 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 74 88 /** Holds host interface name. */ 75 89 QString m_strName; … … 86 100 /** Holds IPv6 interface mask length. */ 87 101 QString m_strInterfaceMaskLength6; 88 89 /** Returns whether the @a other passed data is equal to this one. */90 bool operator==(const UIDataSettingsGlobalNetworkHostInterface &other) const91 {92 return true93 && (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 }102 102 }; 103 103 … … 106 106 struct UIDataSettingsGlobalNetworkDHCPServer 107 107 { 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 108 120 /** Holds whether DHCP server enabled. */ 109 121 bool m_fDhcpServerEnabled; … … 116 128 /** Holds DHCP server upper address. */ 117 129 QString m_strDhcpUpperAddress; 118 119 /** Returns whether the @a other passed data is equal to this one. */120 bool operator==(const UIDataSettingsGlobalNetworkDHCPServer &other) const121 {122 return true123 && (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 }130 130 }; 131 131 … … 134 134 struct UIDataSettingsGlobalNetworkHost 135 135 { 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 136 145 /** Holds the host interface data. */ 137 146 UIDataSettingsGlobalNetworkHostInterface m_interface; 138 147 /** Holds the DHCP server data. */ 139 148 UIDataSettingsGlobalNetworkDHCPServer m_dhcpserver; 140 141 /** Returns whether the @a other passed data is equal to this one. */142 bool operator==(const UIDataSettingsGlobalNetworkHost &other) const143 {144 return true145 && (m_interface == other.m_interface)146 && (m_dhcpserver == other.m_dhcpserver)147 ;148 }149 149 }; 150 150
Note:
See TracChangeset
for help on using the changeset viewer.