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

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

Remove old Mirror tab in System Manager, not used now that we run via CDN

  • Property mode set to 100644
File size: 3.6 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
15#include <pcbsd-utils.h>
16#include <pcbsd-ui.h>
17#include "updaterDialog.h"
18#include "ui_pbsystemtab.h"
19#include "portsnapprogress.h"
20#include "../config.h"
21
22/* Change this to switch the default patch tmpdir */
23const QString PATCHTMPDIR_DEFAULT( PREFIX + "/tmp" );
24#define SYSTRIGGER "/tmp/.sysupdatetraytrigger"
25
26/* The Update STATUS Flags */
27#define SYSTEM_UP2DATE 0
28#define SYSTEM_UPDATE_AVAIL 1
29#define SYSTEM_CHECKING4UPDATES 4
30#define SYSTEM_UPDATING 5
31#define CHECK_FAILED 6
32
33// Set our defines for the type of mirror the user is running
34#define AUTOMIRROR      0
35#define SELECTMIRROR    1
36#define CUSTOMMIRROR    2
37
38
39
40class PBSystemTab : public QDialog, private Ui::PBSystemTab
41{
42        Q_OBJECT
43
44public:
45        PBSystemTab() : QDialog()
46        {
47          setupUi(this);
48        }
49
50    QMap <QString, QString> codeMap;
51    bool checkValue( QString File, QString Key, QString Value );
52
53public slots:
54    void ProgramInit();
55    void saveKernScreen();
56    void miscSavePressed();
57    void changeOpenTab(int tab);
58
59private slots:
60    void ReadUname();
61    void startGenerateSheet();
62    void finishedSheet();
63    void fetchSourcePressed();
64    void fetchPortsPressed();
65    void customSplashPressed();
66    void showSplashChecked( int newState );
67    void loadBootData();
68    void slotMiscSave();
69    void slotClose();
70   
71private:
72    QString KernDescr[50];
73    QString KernDefaultTag;
74    QString KernTag[50];
75    QString KernFileName[50];
76    QProcess *ViewSheet;
77    QProcess *SheetGenScript;
78    QString SheetFileName;
79    QProcess *GetPBVer;
80    QProcess *GetUname;
81    PortsnapProgress *portsnapUI;
82    QString username;
83    bool miscChanged;
84    bool kernelChanged;
85    void CheckUname();
86    void CheckPBVer();
87    void CreateSheetFile();
88    void showRebootRequired();
89    void LoadKernSettings();
90    QString getLineFromCommandOutput(QString cmd);
91    bool sanityCheckSettings();
92
93    QString mirrorNames[900];
94    QString mirrorURLs[900];
95    QString mirrorJobBuf;
96    QNetworkAccessManager *mirrorJob;
97    QNetworkReply *mirrorReply;
98    void checkProxy();
99
100    updaterStatus *UpdaterStatusDialog;
101   
102    QMenu *popup;
103    QNetworkAccessManager *sysFetchJob;
104    QNetworkReply *sysFetchReply;
105    QNetworkAccessManager *sysCopyJob;
106    QNetworkReply *sysCopyReply;
107
108    int mirrorType;
109    QString mirrorURL;
110    QString customTmpDir;
111    QString Version;
112    QString Arch;
113    QString Lang;
114    int programstatus;
115    int currentSysWorkingItem;
116    QStringList workingSysUpdates;
117    int workingPopupItem;
118    long totalSeconds;
119    long downloadSize;
120    int totalSteps;
121    int attemptedRedownload;
122    int firstInstall;
123    int firstDownload;
124    int requiresSysReboot;
125    QString sysPatchsetTmpFile;
126    QProcess *getUpdatesDir;
127    QProcess *readSysUpdates;
128    QProcess *listingProc;
129    QProcess *checksumProc;
130    QProcess *extractProc;
131    QProcess *installProc;
132    QProcess *getFreeSpaceProc;
133    QString SysUpdateName[500];
134    QString SysUpdateIgnore[500];
135    QString SysUpdatePatchFile[500];
136    QString SysUpdateDate[500];
137    QString SysUpdateMD5[500];
138    QString SysUpdateSize[500];
139    QString SysUpdateURL[500];
140    QString SysUpdateAlone[500];
141    QString SysUpdateReboot[500];
142    QString SysUpdateDetailsURL[500];
143    QString SysUpdatesShown[501];
144    metaWidget *pkgWidget;
145
146
147signals:
148  void changed();
149
150} ;
151#endif // PBSYSTEMTAB_H
152
Note: See TracBrowser for help on using the repository browser.