source: src-qt4/pc-installgui/installer.h @ da7c222

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since da7c222 was da7c222, checked in by Kris Moore <kris@…>, 20 months ago

Remove the FreeBSD option from install, since its not on the disk media anymore

  • Property mode set to 100644
File size: 4.5 KB
RevLine 
[1620346]1#ifndef INSTALLER_H
2#define INSTALLER_H
3
4#include <QtGui/QWidget>
5#include <QMessageBox>
6#include <QFile>
7#include <QMenu>
8#include <QProcess>
9#include <QGraphicsScene>
10#include <QTranslator>
11
12#include "ui_installer.h"
13#include "dialogHelp.h"
14#include "dialogKeyboard.h"
15#include "dialogDesktopSelection.h"
16#include "dialogCheckHardware.h"
17#include "wizardFreeBSD.h"
18#include "wizardDisk.h"
19
20#define wPCSERVER 2
21#define wKDE 3
22#define wLXDE 4
23#define wGNOME 5
24#define wXFCE 6
25
26#include "backend.h"
27
28class Installer : public QMainWindow, private Ui::Installer
29{
30    Q_OBJECT
31
32public:
33    Installer(QWidget *parent = 0);
34    ~Installer();
35    void changeLang(QString code);
36    void initInstall();
37
38private slots:
39    void slotAbort();
40    void slotBack();
41    void slotHelp();
42    void slotNext();
43    void slotFinished();
44    void slotChangeLanguage();
45    void slotCheckHardware();
46
47    // Disk slots
48    void slotDiskCustomizeClicked();
49    void slotSaveDiskChanges(QList<QStringList>, bool, bool);
50
51    // Slots for the installation
52    void slotInstallProcFinished( int exitCode, QProcess::ExitStatus status);
53    void slotReadInstallerOutput();
54
55    // Start xvkbd
56    void slotPushVirtKeyboard();
57
58    // Keyboard selector
59    void slotPushKeyLayout();
60
61    // Desktop selector slots
62    void slotDesktopLeftClicked();
63    void slotDesktopRightClicked();
64    void slotDesktopCustomizeClicked();
65    void slotSaveMetaChanges(QStringList);
66    void slotSaveFBSDSettings(QString, QString, QString, QString, QString, QString, bool, bool, bool, QStringList);
67
68
69private:
70
71    void setArch();
72    void startInstall(); // Function which begins the install process
73    void installFailed(); // Function which does post-install failure stuff
74
75    // Disk functions
76    void loadDiskInfo();
77    bool autoGenPartitionLayout(QString target, bool isDisk);
78    QStringList getDiskSummary();
79
80    // Functions which return parts of the config file
81    QStringList getGlobalCfgSettings();
82    QStringList getDiskCfgSettings();
83    QStringList getComponentCfgSettings();
84
85    void startConfigGen(); // Function which takes pieces of cfg, and assembles
86    void checkSpaceWarning(); // Function to check space of disk drive
87
88    void proceed(bool);
89    bool isInstalled();
90    bool checkDiskRequirements();
91
92    // Desktop packages
93    void initDesktopSelector();
94    void moveDesktopWheel(bool direction);
95    void changeMetaPkgSelection();
96    QStringList getDeskPkgCfg();
97    QStringList wheelIcons;
98    QStringList wheelName;
99    QStringList wheelDesc;
100    int wheelCurItem;
101    bool availDesktopPackageData;
102    bool availServerPackageData;
103    QList<QStringList> listDeskPkgs; // QStringList for our available desktop pkgs
104    QList<QStringList> listServerPkgs; // QStringList for our available server pkgs
105    QStringList selectedPkgs; // QStringList for selected packages
106    desktopSelection *desks;
107    QGraphicsScene *defaultScene;
108    QGraphicsScene *customScene;
109   
110    // Encryption bits
111    QString autoEncPass;
112    void warnEncryption();
113
114    QList<QStringList> sysDisks; // Our lists which contains disk info
115    QList<QStringList> sysPartitions; // Our lists which contains partition info
116    QList<QStringList> sysFinalDiskLayout; // Our lists which contains the final disk layout
117    bool loadMBR;
118    bool loadGPT;
119    int systemMemory; // Ammount of system RAM we have in MB
120    QList<QStringList> listComponents; // QStringList for our available components
121    QStringList languages;
122    QStringList updatePartitions;
123    QString Arch;
124    QProcess *installProc;
125    bool installFoundCounter;
126    bool installFoundMetaCounter;
127    bool installFoundFetchOutput;
128    bool isLiveMode;
129    bool hasPkgsOnMedia;
130    bool hasInstallOnMedia;
131    bool hasFreeBSDOnMedia;
132    bool toggleKeyLayout;
133    bool haveWarnedSpace;
134
135    // Hardware checker
136    dialogCheckHardware *pcHardware;
137
138    // Help Stuff
139    dialogHelp *pcHelp;
140
141    // Infobox
142    dialogInfoBox *dIB;
143    QMenu *popup;
144
145    // FreeBSD setup wizard
146    wizardFreeBSD *wFBSD;
147   
148    // FreeBSD options
149    QString fRootPW;
150    QString fName;
151    QString fUserName;
152    QString fUserPW;
153    QString fShell;
154    QString fHost;
155    bool fSSH;
156    bool fSRC;
157    bool fPORTS;
158    QStringList fNetSettings;
159    QStringList getUsersCfgSettings();
160
161    // Keyboard Widget
162    widgetKeyboard *wKey;
163    QStringList keyModels;
164    QStringList keyLayouts;
165
166    // Disk setup wizard
167    wizardDisk *wDisk;
168    QTranslator *translator;
169
170protected:
171    void closeEvent(QCloseEvent *event);
172
173};
174
175#endif // INSTALLER_H
Note: See TracBrowser for help on using the repository browser.