summaryrefslogtreecommitdiff
path: root/ui/qt5/horizonwizard.hh
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-02-12 12:05:23 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-02-12 12:05:23 -0600
commit3e05b6d0691ba0b709e6b41eae90b6b76eb92a7c (patch)
tree2d1d997ec931750b21dd5e952d1d91d7bc5e5207 /ui/qt5/horizonwizard.hh
parent0e8c19b115797ff934e84c105ef4357a899bc973 (diff)
downloadhorizon-3e05b6d0691ba0b709e6b41eae90b6b76eb92a7c.tar.gz
horizon-3e05b6d0691ba0b709e6b41eae90b6b76eb92a7c.tar.bz2
horizon-3e05b6d0691ba0b709e6b41eae90b6b76eb92a7c.tar.xz
horizon-3e05b6d0691ba0b709e6b41eae90b6b76eb92a7c.zip
Qt UI: Initial pass at collecting disks for UI.Partition.Install*
Diffstat (limited to 'ui/qt5/horizonwizard.hh')
-rw-r--r--ui/qt5/horizonwizard.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/qt5/horizonwizard.hh b/ui/qt5/horizonwizard.hh
index 6c6d781..3252d5b 100644
--- a/ui/qt5/horizonwizard.hh
+++ b/ui/qt5/horizonwizard.hh
@@ -13,10 +13,12 @@
#ifndef HORIZONWIZARD_HH
#define HORIZONWIZARD_HH
+#include <diskman/disk.hh>
#include <QShortcut>
#include <QWizard>
#include <map>
#include <string>
+#include <vector>
inline QString fromMacAddress(char address[6]) {
char buf[18];
@@ -134,12 +136,16 @@ public:
std::string version;
/*! The architecture being installed. */
Arch arch;
+#ifdef HAS_INSTALL_ENV
+ /*! The disks present on this computer. */
+ std::vector<Horizon::DiskMan::Disk> disks;
+#endif
/*! Whether to erase the disk when automatically partitioning. */
bool erase;
/*! The disk to partition automatically. */
std::string auto_disk;
/*! The HorizonScript lines describing what to do about partitioning.
- * If auto_erase_disk is set, this is not used.
+ * If auto_disk is set, this is not used.
* Otherwise, this should have any relevant disklabel/partition/fs etc. */
QStringList part_lines;
#ifdef NON_LIBRE_FIRMWARE