source: src-qt4/pc-sysmanager/pbsystemtab.h @ 1c0e4984

releng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1releng/10.1.1
Last change on this file since 1c0e4984 was 1c0e4984, checked in by Ken Moore <ken@…>, 14 months ago

Clean up a lot of the built-up kruft in the main system manager UI from the very old days.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1#ifndef PBSYSTEMTAB_H
2#define PBSYSTEMTAB_H
3
4#include <QDialog>
5#include <QFile>
6#include <QMenu>
7#include <QMessageBox>
8//#include <QNetworkAccessManager>
9//#include <QNetworkReply>
10#include <QProcess>
11#include <QProgressDialog>
12#include <QTextStream>
13#include <QTimer>
14#include <QCloseEvent>
15
16#include <pcbsd-utils.h>
17#include <pcbsd-ui.h>
18#include "ui_pbsystemtab.h"
19#include "cmdDialog.h"
20#include "../config.h"
21
22
23/* Change this to switch the default patch tmpdir */
24//const QString PATCHTMPDIR_DEFAULT( PREFIX + "/tmp" );
25//#define SYSTRIGGER "/tmp/.sysupdatetraytrigger"
26
27/* The Update STATUS Flags */
28//#define SYSTEM_UP2DATE 0
29//#define SYSTEM_UPDATE_AVAIL 1
30//#define SYSTEM_CHECKING4UPDATES 4
31//#define SYSTEM_UPDATING 5
32//#define CHECK_FAILED 6
33
34// Set our defines for the type of mirror the user is running
35//#define AUTOMIRROR      0
36//#define SELECTMIRROR    1
37//#define CUSTOMMIRROR    2
38
39
40
41class PBSystemTab : public QDialog, private Ui::PBSystemTab
42{
43        Q_OBJECT
44
45public:
46        PBSystemTab() : QDialog()
47        {
48          setupUi(this);
49        }
50
51    QMap <QString, QString> codeMap;
52    bool checkValue( QString File, QString Key, QString Value );
53
54public slots:
55    void ProgramInit();
56    void changeOpenTab(int tab);
57
58private slots:
59
60    void startGenerateSheet();
61    void finishedSheet();
62    void fetchSourcePressed();
63    void fetchPortsPressed();
64    void loadMiscData();
65    void slotMiscSave();
66    void slotClose();
67   
68private:
69    //Diagnostic Sheet generation
70    QProcess *SheetGenScript;
71    QString SheetFileName;
72
73    //Ports/Source fetching
74    CMDDialog *cmdDlg;
75
76    //Internal variables
77    QString username, Version, Arch;
78
79
80    void CheckUname();
81    void CheckPBVer();
82    void CreateSheetFile();
83    void showRebootRequired();
84
85protected:
86        void closeEvent(QCloseEvent *event);
87
88signals:
89  void changed();
90
91} ;
92#endif // PBSYSTEMTAB_H
Note: See TracBrowser for help on using the repository browser.