summaryrefslogtreecommitdiff
path: root/ui/qt5/horizonwizard.hh
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-02-09 05:49:25 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-02-09 05:49:25 -0600
commitabc0d2c1d6c187ca89e3a747c1471134ee1fd581 (patch)
treee91cf810a1856f9ebf6a447e684c32fffe681eb6 /ui/qt5/horizonwizard.hh
parentd9f31ced521be5fd0b0116315069ef87053abfaa (diff)
downloadhorizon-abc0d2c1d6c187ca89e3a747c1471134ee1fd581.tar.gz
horizon-abc0d2c1d6c187ca89e3a747c1471134ee1fd581.tar.bz2
horizon-abc0d2c1d6c187ca89e3a747c1471134ee1fd581.tar.xz
horizon-abc0d2c1d6c187ca89e3a747c1471134ee1fd581.zip
Qt UI: Initial work for backend support of manual net config
Diffstat (limited to 'ui/qt5/horizonwizard.hh')
-rw-r--r--ui/qt5/horizonwizard.hh17
1 files changed, 17 insertions, 0 deletions
diff --git a/ui/qt5/horizonwizard.hh b/ui/qt5/horizonwizard.hh
index 04facda..6c6d781 100644
--- a/ui/qt5/horizonwizard.hh
+++ b/ui/qt5/horizonwizard.hh
@@ -78,6 +78,19 @@ public:
QString mac;
};
+ struct NetworkConfig {
+ /*! Whether to use this configuration or not. */
+ bool use;
+ /*! The IP address. */
+ QString address;
+ /*! The subnet mask (v4) / prefix length (v6). */
+ QString mask;
+ /*! The default gateway to use. */
+ QString gateway;
+ /*! The DNS server to use. */
+ QString dns;
+ };
+
enum Arch {
aarch64,
armv7,
@@ -142,6 +155,10 @@ public:
bool network;
/*! Determines whether to use DHCP. */
bool net_dhcp;
+ /*! If not DHCP, possibly contains IPv4 info. */
+ NetworkConfig ipv4;
+ /*! If not DHCP, possibly contains IPv6 info. */
+ NetworkConfig ipv6;
/*! Determines whether to install GRUB. */
bool grub;
/*! Determines whether to install eudev. */