[66681] | 1 | /* $Id: UIDetailsWidgetHostNetwork.h 104223 2024-04-08 10:30:04Z vboxsync $ */
|
---|
[25177] | 2 | /** @file
|
---|
[87219] | 3 | * VBox Qt GUI - UIDetailsWidgetHostNetwork class declaration.
|
---|
[25177] | 4 | */
|
---|
| 5 |
|
---|
| 6 | /*
|
---|
[98103] | 7 | * Copyright (C) 2009-2023 Oracle and/or its affiliates.
|
---|
[25177] | 8 | *
|
---|
[96407] | 9 | * This file is part of VirtualBox base platform packages, as
|
---|
| 10 | * available from https://www.virtualbox.org.
|
---|
| 11 | *
|
---|
| 12 | * This program is free software; you can redistribute it and/or
|
---|
| 13 | * modify it under the terms of the GNU General Public License
|
---|
| 14 | * as published by the Free Software Foundation, in version 3 of the
|
---|
| 15 | * License.
|
---|
| 16 | *
|
---|
| 17 | * This program is distributed in the hope that it will be useful, but
|
---|
| 18 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
| 20 | * General Public License for more details.
|
---|
| 21 | *
|
---|
| 22 | * You should have received a copy of the GNU General Public License
|
---|
| 23 | * along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
| 24 | *
|
---|
| 25 | * SPDX-License-Identifier: GPL-3.0-only
|
---|
[25177] | 26 | */
|
---|
| 27 |
|
---|
[87219] | 28 | #ifndef FEQT_INCLUDED_SRC_networkmanager_UIDetailsWidgetHostNetwork_h
|
---|
| 29 | #define FEQT_INCLUDED_SRC_networkmanager_UIDetailsWidgetHostNetwork_h
|
---|
[76532] | 30 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
| 31 | # pragma once
|
---|
| 32 | #endif
|
---|
[25177] | 33 |
|
---|
[66726] | 34 | /* Qt includes: */
|
---|
| 35 | #include <QWidget>
|
---|
| 36 |
|
---|
[66169] | 37 | /* GUI includes: */
|
---|
[67575] | 38 | #include "QIManagerDialog.h"
|
---|
[25177] | 39 |
|
---|
[66681] | 40 | /* Forward declarations: */
|
---|
[67575] | 41 | class QAbstractButton;
|
---|
[66681] | 42 | class QCheckBox;
|
---|
| 43 | class QLabel;
|
---|
[66781] | 44 | class QRadioButton;
|
---|
[67575] | 45 | class QIDialogButtonBox;
|
---|
[66681] | 46 | class QILineEdit;
|
---|
| 47 | class QITabWidget;
|
---|
[25177] | 48 |
|
---|
[66681] | 49 |
|
---|
[92821] | 50 | #ifdef VBOX_WS_MAC
|
---|
| 51 | /** Network Manager: Host network data structure. */
|
---|
| 52 | struct UIDataHostNetwork
|
---|
| 53 | {
|
---|
| 54 | /** Constructs data. */
|
---|
| 55 | UIDataHostNetwork()
|
---|
| 56 | : m_fExists(false)
|
---|
| 57 | , m_strName(QString())
|
---|
| 58 | , m_strMask(QString())
|
---|
| 59 | , m_strLBnd(QString())
|
---|
| 60 | , m_strUBnd(QString())
|
---|
| 61 | {}
|
---|
| 62 |
|
---|
| 63 | /** Returns whether the @a other passed data is equal to this one. */
|
---|
| 64 | bool equal(const UIDataHostNetwork &other) const
|
---|
| 65 | {
|
---|
| 66 | return true
|
---|
| 67 | && (m_fExists == other.m_fExists)
|
---|
| 68 | && (m_strName == other.m_strName)
|
---|
| 69 | && (m_strMask == other.m_strMask)
|
---|
| 70 | && (m_strLBnd == other.m_strLBnd)
|
---|
| 71 | && (m_strUBnd == other.m_strUBnd)
|
---|
| 72 | ;
|
---|
| 73 | }
|
---|
| 74 |
|
---|
| 75 | /** Returns whether the @a other passed data is equal to this one. */
|
---|
| 76 | bool operator==(const UIDataHostNetwork &other) const { return equal(other); }
|
---|
| 77 | /** Returns whether the @a other passed data is different from this one. */
|
---|
| 78 | bool operator!=(const UIDataHostNetwork &other) const { return !equal(other); }
|
---|
| 79 |
|
---|
| 80 | /** Holds this interface is not NULL. */
|
---|
| 81 | bool m_fExists;
|
---|
| 82 | /** Holds network name. */
|
---|
| 83 | QString m_strName;
|
---|
| 84 | /** Holds network mask. */
|
---|
| 85 | QString m_strMask;
|
---|
| 86 | /** Holds lower bound. */
|
---|
| 87 | QString m_strLBnd;
|
---|
| 88 | /** Holds upper bound. */
|
---|
| 89 | QString m_strUBnd;
|
---|
| 90 | };
|
---|
| 91 |
|
---|
| 92 | #else /* !VBOX_WS_MAC */
|
---|
| 93 |
|
---|
[87232] | 94 | /** Network Manager: Host Network Interface data structure. */
|
---|
[66681] | 95 | struct UIDataHostNetworkInterface
|
---|
[66169] | 96 | {
|
---|
| 97 | /** Constructs data. */
|
---|
[66681] | 98 | UIDataHostNetworkInterface()
|
---|
[87275] | 99 | : m_fExists(false)
|
---|
| 100 | , m_strName(QString())
|
---|
[66781] | 101 | , m_fDHCPEnabled(false)
|
---|
[66697] | 102 | , m_strAddress(QString())
|
---|
| 103 | , m_strMask(QString())
|
---|
| 104 | , m_fSupportedIPv6(false)
|
---|
| 105 | , m_strAddress6(QString())
|
---|
[67452] | 106 | , m_strPrefixLength6(QString())
|
---|
[66169] | 107 | {}
|
---|
| 108 |
|
---|
| 109 | /** Returns whether the @a other passed data is equal to this one. */
|
---|
[66681] | 110 | bool equal(const UIDataHostNetworkInterface &other) const
|
---|
[66169] | 111 | {
|
---|
| 112 | return true
|
---|
[87275] | 113 | && (m_fExists == other.m_fExists)
|
---|
[66169] | 114 | && (m_strName == other.m_strName)
|
---|
[66781] | 115 | && (m_fDHCPEnabled == other.m_fDHCPEnabled)
|
---|
[66697] | 116 | && (m_strAddress == other.m_strAddress)
|
---|
| 117 | && (m_strMask == other.m_strMask)
|
---|
| 118 | && (m_fSupportedIPv6 == other.m_fSupportedIPv6)
|
---|
| 119 | && (m_strAddress6 == other.m_strAddress6)
|
---|
[67452] | 120 | && (m_strPrefixLength6 == other.m_strPrefixLength6)
|
---|
[66169] | 121 | ;
|
---|
| 122 | }
|
---|
| 123 |
|
---|
| 124 | /** Returns whether the @a other passed data is equal to this one. */
|
---|
[66681] | 125 | bool operator==(const UIDataHostNetworkInterface &other) const { return equal(other); }
|
---|
[66169] | 126 | /** Returns whether the @a other passed data is different from this one. */
|
---|
[66681] | 127 | bool operator!=(const UIDataHostNetworkInterface &other) const { return !equal(other); }
|
---|
[66169] | 128 |
|
---|
[87275] | 129 | /** Holds this interface is not NULL. */
|
---|
| 130 | bool m_fExists;
|
---|
[66697] | 131 | /** Holds interface name. */
|
---|
[87219] | 132 | QString m_strName;
|
---|
[66781] | 133 | /** Holds whether DHCP is enabled for that interface. */
|
---|
[87219] | 134 | bool m_fDHCPEnabled;
|
---|
[66169] | 135 | /** Holds IPv4 interface address. */
|
---|
[87219] | 136 | QString m_strAddress;
|
---|
[66169] | 137 | /** Holds IPv4 interface mask. */
|
---|
[87219] | 138 | QString m_strMask;
|
---|
[66169] | 139 | /** Holds whether IPv6 protocol supported. */
|
---|
[87219] | 140 | bool m_fSupportedIPv6;
|
---|
[66169] | 141 | /** Holds IPv6 interface address. */
|
---|
[87219] | 142 | QString m_strAddress6;
|
---|
[67452] | 143 | /** Holds IPv6 interface prefix length. */
|
---|
[87219] | 144 | QString m_strPrefixLength6;
|
---|
[66169] | 145 | };
|
---|
| 146 |
|
---|
[87232] | 147 | /** Network Manager: DHCP Server data structure. */
|
---|
[66681] | 148 | struct UIDataDHCPServer
|
---|
[66169] | 149 | {
|
---|
| 150 | /** Constructs data. */
|
---|
[66681] | 151 | UIDataDHCPServer()
|
---|
[66697] | 152 | : m_fEnabled(false)
|
---|
| 153 | , m_strAddress(QString())
|
---|
| 154 | , m_strMask(QString())
|
---|
| 155 | , m_strLowerAddress(QString())
|
---|
| 156 | , m_strUpperAddress(QString())
|
---|
[66169] | 157 | {}
|
---|
| 158 |
|
---|
| 159 | /** Returns whether the @a other passed data is equal to this one. */
|
---|
[66681] | 160 | bool equal(const UIDataDHCPServer &other) const
|
---|
[66169] | 161 | {
|
---|
| 162 | return true
|
---|
[66697] | 163 | && (m_fEnabled == other.m_fEnabled)
|
---|
| 164 | && (m_strAddress == other.m_strAddress)
|
---|
| 165 | && (m_strMask == other.m_strMask)
|
---|
| 166 | && (m_strLowerAddress == other.m_strLowerAddress)
|
---|
| 167 | && (m_strUpperAddress == other.m_strUpperAddress)
|
---|
[66169] | 168 | ;
|
---|
| 169 | }
|
---|
| 170 |
|
---|
| 171 | /** Returns whether the @a other passed data is equal to this one. */
|
---|
[66681] | 172 | bool operator==(const UIDataDHCPServer &other) const { return equal(other); }
|
---|
[66169] | 173 | /** Returns whether the @a other passed data is different from this one. */
|
---|
[66681] | 174 | bool operator!=(const UIDataDHCPServer &other) const { return !equal(other); }
|
---|
[66169] | 175 |
|
---|
| 176 | /** Holds whether DHCP server enabled. */
|
---|
[87219] | 177 | bool m_fEnabled;
|
---|
[66169] | 178 | /** Holds DHCP server address. */
|
---|
[87219] | 179 | QString m_strAddress;
|
---|
[66169] | 180 | /** Holds DHCP server mask. */
|
---|
[87219] | 181 | QString m_strMask;
|
---|
[66169] | 182 | /** Holds DHCP server lower address. */
|
---|
[87219] | 183 | QString m_strLowerAddress;
|
---|
[66169] | 184 | /** Holds DHCP server upper address. */
|
---|
[87219] | 185 | QString m_strUpperAddress;
|
---|
[66169] | 186 | };
|
---|
| 187 |
|
---|
[87232] | 188 | /** Network Manager: Host network data structure. */
|
---|
[66681] | 189 | struct UIDataHostNetwork
|
---|
[66169] | 190 | {
|
---|
| 191 | /** Constructs data. */
|
---|
[66681] | 192 | UIDataHostNetwork()
|
---|
| 193 | : m_interface(UIDataHostNetworkInterface())
|
---|
| 194 | , m_dhcpserver(UIDataDHCPServer())
|
---|
[66169] | 195 | {}
|
---|
| 196 |
|
---|
| 197 | /** Returns whether the @a other passed data is equal to this one. */
|
---|
[66681] | 198 | bool equal(const UIDataHostNetwork &other) const
|
---|
[66169] | 199 | {
|
---|
| 200 | return true
|
---|
| 201 | && (m_interface == other.m_interface)
|
---|
| 202 | && (m_dhcpserver == other.m_dhcpserver)
|
---|
| 203 | ;
|
---|
| 204 | }
|
---|
| 205 |
|
---|
| 206 | /** Returns whether the @a other passed data is equal to this one. */
|
---|
[66681] | 207 | bool operator==(const UIDataHostNetwork &other) const { return equal(other); }
|
---|
[66169] | 208 | /** Returns whether the @a other passed data is different from this one. */
|
---|
[66681] | 209 | bool operator!=(const UIDataHostNetwork &other) const { return !equal(other); }
|
---|
[66169] | 210 |
|
---|
[66681] | 211 | /** Holds the interface data. */
|
---|
[87219] | 212 | UIDataHostNetworkInterface m_interface;
|
---|
[66169] | 213 | /** Holds the DHCP server data. */
|
---|
[87219] | 214 | UIDataDHCPServer m_dhcpserver;
|
---|
[66169] | 215 | };
|
---|
[92821] | 216 | #endif /* !VBOX_WS_MAC */
|
---|
[66169] | 217 |
|
---|
| 218 |
|
---|
[87232] | 219 | /** Network Manager: Host network details-widget. */
|
---|
[104223] | 220 | class UIDetailsWidgetHostNetwork : public QWidget
|
---|
[25177] | 221 | {
|
---|
| 222 | Q_OBJECT;
|
---|
| 223 |
|
---|
[66726] | 224 | signals:
|
---|
| 225 |
|
---|
| 226 | /** Notifies listeners about data changed and whether it @a fDiffers. */
|
---|
| 227 | void sigDataChanged(bool fDiffers);
|
---|
| 228 |
|
---|
[67575] | 229 | /** Notifies listeners about data change rejected and should be reseted. */
|
---|
| 230 | void sigDataChangeRejected();
|
---|
| 231 | /** Notifies listeners about data change accepted and should be applied. */
|
---|
| 232 | void sigDataChangeAccepted();
|
---|
| 233 |
|
---|
[25177] | 234 | public:
|
---|
| 235 |
|
---|
[67811] | 236 | /** Constructs medium details dialog passing @a pParent to the base-class.
|
---|
| 237 | * @param enmEmbedding Brings embedding type. */
|
---|
[87219] | 238 | UIDetailsWidgetHostNetwork(EmbedTo enmEmbedding, QWidget *pParent = 0);
|
---|
[25177] | 239 |
|
---|
[66726] | 240 | /** Returns the host network data. */
|
---|
| 241 | const UIDataHostNetwork &data() const { return m_newData; }
|
---|
[92821] | 242 | #ifdef VBOX_WS_MAC
|
---|
| 243 | /** Defines the host network @a data.
|
---|
| 244 | * @param busyNames Holds the list of names busy by other networks. */
|
---|
| 245 | void setData(const UIDataHostNetwork &data,
|
---|
| 246 | const QStringList &busyNames = QStringList());
|
---|
| 247 | #else /* !VBOX_WS_MAC */
|
---|
[66726] | 248 | /** Defines the host network @a data. */
|
---|
| 249 | void setData(const UIDataHostNetwork &data);
|
---|
[92821] | 250 | #endif /* !VBOX_WS_MAC */
|
---|
[66726] | 251 |
|
---|
[87306] | 252 | /** @name Change handling stuff.
|
---|
| 253 | * @{ */
|
---|
| 254 | /** Revalidates changes for passed @a pWidget. */
|
---|
| 255 | bool revalidate() const;
|
---|
| 256 |
|
---|
| 257 | /** Updates button states. */
|
---|
| 258 | void updateButtonStates();
|
---|
| 259 | /** @} */
|
---|
| 260 |
|
---|
[25177] | 261 | private slots:
|
---|
| 262 |
|
---|
[66726] | 263 | /** @name Change handling stuff.
|
---|
[66915] | 264 | * @{ */
|
---|
[92821] | 265 | #ifdef VBOX_WS_MAC
|
---|
| 266 | /** Handles network name text change. */
|
---|
| 267 | void sltTextChangedName(const QString &strText);
|
---|
| 268 | /** Handles network mask text change. */
|
---|
| 269 | void sltTextChangedMask(const QString &strText);
|
---|
| 270 | /** Handles network lower bound text change. */
|
---|
| 271 | void sltTextChangedLBnd(const QString &strText);
|
---|
| 272 | /** Handles network upper bound text change. */
|
---|
| 273 | void sltTextChangedUBnd(const QString &strText);
|
---|
| 274 |
|
---|
| 275 | #else /* !VBOX_WS_MAC */
|
---|
| 276 |
|
---|
[66781] | 277 | /** Handles interface automatic configuration choice change. */
|
---|
[66809] | 278 | void sltToggledButtonAutomatic(bool fChecked);
|
---|
[66781] | 279 | /** Handles interface manual configuration choice change. */
|
---|
[66809] | 280 | void sltToggledButtonManual(bool fChecked);
|
---|
[66726] | 281 | /** Handles interface IPv4 text change. */
|
---|
[66809] | 282 | void sltTextChangedIPv4(const QString &strText);
|
---|
[66726] | 283 | /** Handles interface NMv4 text change. */
|
---|
[66809] | 284 | void sltTextChangedNMv4(const QString &strText);
|
---|
[66726] | 285 | /** Handles interface IPv6 text change. */
|
---|
[66809] | 286 | void sltTextChangedIPv6(const QString &strText);
|
---|
[66726] | 287 | /** Handles interface NMv6 text change. */
|
---|
[66809] | 288 | void sltTextChangedNMv6(const QString &strText);
|
---|
[25177] | 289 |
|
---|
[66726] | 290 | /** Handles DHCP server status change. */
|
---|
[66809] | 291 | void sltStatusChangedServer(int iChecked);
|
---|
[66726] | 292 | /** Handles DHCP server address text change. */
|
---|
[66809] | 293 | void sltTextChangedAddress(const QString &strText);
|
---|
[66726] | 294 | /** Handles DHCP server mask text change. */
|
---|
[66809] | 295 | void sltTextChangedMask(const QString &strText);
|
---|
[66726] | 296 | /** Handles DHCP server lower address text change. */
|
---|
[66809] | 297 | void sltTextChangedLowerAddress(const QString &strText);
|
---|
[66726] | 298 | /** Handles DHCP server upper address text change. */
|
---|
[66809] | 299 | void sltTextChangedUpperAddress(const QString &strText);
|
---|
[92821] | 300 | #endif /* !VBOX_WS_MAC */
|
---|
[67575] | 301 |
|
---|
| 302 | /** Handles button-box button click. */
|
---|
| 303 | void sltHandleButtonBoxClick(QAbstractButton *pButton);
|
---|
[66726] | 304 | /** @} */
|
---|
[48458] | 305 |
|
---|
[104223] | 306 | /** Handles translation event. */
|
---|
| 307 | void sltRetranslateUI();
|
---|
| 308 |
|
---|
[25177] | 309 | private:
|
---|
| 310 |
|
---|
[66681] | 311 | /** @name Prepare/cleanup cascade.
|
---|
[66915] | 312 | * @{ */
|
---|
[66681] | 313 | /** Prepares all. */
|
---|
| 314 | void prepare();
|
---|
| 315 | /** Prepares this. */
|
---|
| 316 | void prepareThis();
|
---|
[92821] | 317 | #ifdef VBOX_WS_MAC
|
---|
| 318 | /** Prepares options. */
|
---|
| 319 | void prepareOptions();
|
---|
| 320 | #else /* !VBOX_WS_MAC */
|
---|
[66681] | 321 | /** Prepares tab-widget. */
|
---|
| 322 | void prepareTabWidget();
|
---|
| 323 | /** Prepares 'Interface' tab. */
|
---|
| 324 | void prepareTabInterface();
|
---|
| 325 | /** Prepares 'DHCP server' tab. */
|
---|
| 326 | void prepareTabDHCPServer();
|
---|
[92821] | 327 | #endif /* !VBOX_WS_MAC */
|
---|
[66681] | 328 | /** @} */
|
---|
[48458] | 329 |
|
---|
[66726] | 330 | /** @name Loading stuff.
|
---|
[66915] | 331 | * @{ */
|
---|
[92821] | 332 | #ifdef VBOX_WS_MAC
|
---|
| 333 | /** Loads data. */
|
---|
| 334 | void loadData();
|
---|
| 335 | #else /* !VBOX_WS_MAC */
|
---|
[66681] | 336 | /** Loads interface data. */
|
---|
| 337 | void loadDataForInterface();
|
---|
| 338 | /** Loads server data. */
|
---|
| 339 | void loadDataForDHCPServer();
|
---|
[92821] | 340 | #endif /* !VBOX_WS_MAC */
|
---|
[66681] | 341 | /** @} */
|
---|
[65603] | 342 |
|
---|
[66681] | 343 | /** @name General variables.
|
---|
[66915] | 344 | * @{ */
|
---|
[67575] | 345 | /** Holds the parent widget embedding type. */
|
---|
| 346 | const EmbedTo m_enmEmbedding;
|
---|
| 347 |
|
---|
[66726] | 348 | /** Holds the old data copy. */
|
---|
| 349 | UIDataHostNetwork m_oldData;
|
---|
| 350 | /** Holds the new data copy. */
|
---|
| 351 | UIDataHostNetwork m_newData;
|
---|
[67811] | 352 |
|
---|
[92821] | 353 | #ifndef VBOX_WS_MAC
|
---|
[66681] | 354 | /** Holds the tab-widget. */
|
---|
[67811] | 355 | QITabWidget *m_pTabWidget;
|
---|
[92821] | 356 | #endif /* !VBOX_WS_MAC */
|
---|
[66681] | 357 | /** @} */
|
---|
| 358 |
|
---|
[92821] | 359 | #ifdef VBOX_WS_MAC
|
---|
| 360 | /** @name Network variables.
|
---|
| 361 | * @{ */
|
---|
| 362 | /** Holds the name label. */
|
---|
| 363 | QLabel *m_pLabelName;
|
---|
| 364 | /** Holds the name editor. */
|
---|
| 365 | QILineEdit *m_pEditorName;
|
---|
| 366 |
|
---|
| 367 | /** Holds the mask label. */
|
---|
| 368 | QLabel *m_pLabelMask;
|
---|
| 369 | /** Holds the mask editor. */
|
---|
| 370 | QILineEdit *m_pEditorMask;
|
---|
| 371 |
|
---|
| 372 | /** Holds the lower bound label. */
|
---|
| 373 | QLabel *m_pLabelLBnd;
|
---|
| 374 | /** Holds the lower bound editor. */
|
---|
| 375 | QILineEdit *m_pEditorLBnd;
|
---|
| 376 |
|
---|
| 377 | /** Holds the upper bound label. */
|
---|
| 378 | QLabel *m_pLabelUBnd;
|
---|
| 379 | /** Holds the upper bound editor. */
|
---|
| 380 | QILineEdit *m_pEditorUBnd;
|
---|
| 381 |
|
---|
| 382 | /** Holds the button-box instance. */
|
---|
| 383 | QIDialogButtonBox *m_pButtonBox;
|
---|
| 384 |
|
---|
| 385 | /** Holds the list of names busy by other networks. */
|
---|
| 386 | QStringList m_busyNames;
|
---|
| 387 | /** @} */
|
---|
| 388 |
|
---|
| 389 | #else /* !VBOX_WS_MAC */
|
---|
| 390 |
|
---|
[66681] | 391 | /** @name Interface variables.
|
---|
[66915] | 392 | * @{ */
|
---|
[66781] | 393 | /** Holds the automatic interface configuration button. */
|
---|
| 394 | QRadioButton *m_pButtonAutomatic;
|
---|
[66809] | 395 |
|
---|
[66781] | 396 | /** Holds the manual interface configuration button. */
|
---|
| 397 | QRadioButton *m_pButtonManual;
|
---|
[66809] | 398 |
|
---|
[66681] | 399 | /** Holds the IPv4 address label. */
|
---|
[66781] | 400 | QLabel *m_pLabelIPv4;
|
---|
[66681] | 401 | /** Holds the IPv4 address editor. */
|
---|
[66781] | 402 | QILineEdit *m_pEditorIPv4;
|
---|
[66809] | 403 |
|
---|
[66681] | 404 | /** Holds the IPv4 network mask label. */
|
---|
[66781] | 405 | QLabel *m_pLabelNMv4;
|
---|
[66681] | 406 | /** Holds the IPv4 network mask editor. */
|
---|
[66781] | 407 | QILineEdit *m_pEditorNMv4;
|
---|
[66809] | 408 |
|
---|
[66681] | 409 | /** Holds the IPv6 address label. */
|
---|
[66781] | 410 | QLabel *m_pLabelIPv6;
|
---|
[66681] | 411 | /** Holds the IPv6 address editor. */
|
---|
[66781] | 412 | QILineEdit *m_pEditorIPv6;
|
---|
[66809] | 413 |
|
---|
[66681] | 414 | /** Holds the IPv6 network mask label. */
|
---|
[66781] | 415 | QLabel *m_pLabelNMv6;
|
---|
[66681] | 416 | /** Holds the IPv6 network mask editor. */
|
---|
[66781] | 417 | QILineEdit *m_pEditorNMv6;
|
---|
[67575] | 418 |
|
---|
| 419 | /** Holds the interface button-box instance. */
|
---|
| 420 | QIDialogButtonBox *m_pButtonBoxInterface;
|
---|
[66681] | 421 | /** @} */
|
---|
| 422 |
|
---|
| 423 | /** @name DHCP server variables.
|
---|
[66915] | 424 | * @{ */
|
---|
[66681] | 425 | /** Holds the DHCP server status chack-box. */
|
---|
[66723] | 426 | QCheckBox *m_pCheckBoxDHCP;
|
---|
[66809] | 427 |
|
---|
[66681] | 428 | /** Holds the DHCP address label. */
|
---|
[66723] | 429 | QLabel *m_pLabelDHCPAddress;
|
---|
[66681] | 430 | /** Holds the DHCP address editor. */
|
---|
[66723] | 431 | QILineEdit *m_pEditorDHCPAddress;
|
---|
[66809] | 432 |
|
---|
[66681] | 433 | /** Holds the DHCP network mask label. */
|
---|
[66723] | 434 | QLabel *m_pLabelDHCPMask;
|
---|
[66681] | 435 | /** Holds the DHCP network mask editor. */
|
---|
[66723] | 436 | QILineEdit *m_pEditorDHCPMask;
|
---|
[66809] | 437 |
|
---|
[66681] | 438 | /** Holds the DHCP lower address label. */
|
---|
[66723] | 439 | QLabel *m_pLabelDHCPLowerAddress;
|
---|
[66681] | 440 | /** Holds the DHCP lower address editor. */
|
---|
[66723] | 441 | QILineEdit *m_pEditorDHCPLowerAddress;
|
---|
[66809] | 442 |
|
---|
[66681] | 443 | /** Holds the DHCP upper address label. */
|
---|
[66723] | 444 | QLabel *m_pLabelDHCPUpperAddress;
|
---|
[66681] | 445 | /** Holds the DHCP upper address editor. */
|
---|
[66723] | 446 | QILineEdit *m_pEditorDHCPUpperAddress;
|
---|
[67575] | 447 |
|
---|
| 448 | /** Holds the server button-box instance. */
|
---|
| 449 | QIDialogButtonBox *m_pButtonBoxServer;
|
---|
[66681] | 450 | /** @} */
|
---|
[92821] | 451 | #endif /* !VBOX_WS_MAC */
|
---|
[25177] | 452 | };
|
---|
| 453 |
|
---|
[87219] | 454 | #endif /* !FEQT_INCLUDED_SRC_networkmanager_UIDetailsWidgetHostNetwork_h */
|
---|