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

9.1-release9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since 67e6e29 was 67e6e29, checked in by Kris Moore <kris@…>, 20 months ago

Update the pc-updatemanager, remove the pkgng stuff, since its all
in pc-pkgmanager now

  • Property mode set to 100644
File size: 1.4 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
52private:
53    void doUpdates();
54    bool sanityCheck();
55    void checkFBSDUpdates();
56    void checkPCUpdates();
57    int curUpdate;
58    int curUpdateIndex;
59    int totUpdate;
60    bool doingUpdate;
61    QProcess *uProc;
62    QList<QStringList> listUpdates;
63    QString wDir, wIP;
64    QString lastError;
65
66signals:
67
68} ;
69#endif // MAINWIN_H
70
Note: See TracBrowser for help on using the repository browser.