source: src-qt4/pc-updategui/mainWin.h @ bb6089a

9.1-release9.2-releasereleng/10.0releng/10.0.1releng/10.0.2
Last change on this file since bb6089a was 1620346, checked in by Kris Moore <kris@…>, 15 months ago

Initial import of PC-BSD /current/ SVN repo

  • Property mode set to 100644
File size: 1.7 KB
Line 
1#ifndef MAINWIN_H
2#define MAINWIN_H
3
4#include <QDialog>
5#include <QFile>
6#include <QMenu>
7#include <QMessageBox>
8#include <QProcess>
9#include <QProgressDialog>
10#include <QSocketNotifier>
11#include <QStringList>
12#include <QTextStream>
13#include <QTimer>
14
15#include <pcbsd-utils.h>
16#include "ui_mainWin.h"
17#include "../config.h"
18
19/* Change this to switch the default patch tmpdir */
20const QString PATCHTMPDIR_DEFAULT( PREFIX + "/tmp" );
21#define SYSTRIGGER "/tmp/.sysupdatetraytrigger"
22
23class mainWin : public QDialog, private Ui::mainWin
24{
25        Q_OBJECT
26
27public:
28        mainWin() : QDialog()
29        {
30          setupUi(this);
31        }
32
33    QMap <QString, QString> codeMap;
34
35public slots:
36    void ProgramInit(QString, QString);
37    void slotSingleInstance();
38
39private slots:
40    void slotDisplayUpdates();
41    void slotInstallClicked();
42    void slotRescanUpdates();
43    void slotReadUpdateData();
44    void slotSelectAllClicked();
45    void slotUpdateLoop();
46    void slotReadUpdateOutput();
47    void slotUpdateFinished();
48    void slotListClicked();
49    void slotListDoubleClicked(QListWidgetItem *);
50    void slotCloseClicked();
51
52    // Package updates
53    void slotRescanPkgsClicked();
54    void slotUpdatePkgsClicked();
55    void slotReadPkgUpdateOutput();
56    void slotUpdatePkgDone();
57    void slotReadEventPipe(int fd);
58
59private:
60    void doUpdates();
61    bool sanityCheck();
62    void checkFBSDUpdates();
63    void checkMPKGUpdates();
64    void checkPCUpdates();
65    int curUpdate;
66    int curUpdateIndex;
67    int totUpdate;
68    bool dPackages;
69    bool uPackages;
70    bool doingUpdate;
71    QProcess *uProc;
72    QList<QStringList> listUpdates;
73    QString wDir, wIP;
74    QString lastError;
75    QSocketNotifier *eSock;
76
77signals:
78
79} ;
80#endif // MAINWIN_H
81
Note: See TracBrowser for help on using the repository browser.