source: src-qt4/pc-sysmanager/cmdDialog.h @ e9a3917

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

Finish cleaning up the new system manager ports/source checkout functionality.
Also create a backend class that just contains a bunch of static functions for simple usage elsewhere (like generating ports update commands). This will make it easy to update the utility later if URL's or other system calls change (since we don't need to worry about all the GUI-specific stuff getting mixed in).

  • Property mode set to 100644
File size: 583 bytes
Line 
1#ifndef _CMD_DIALOG_H
2#define _CMD_DIALOG_H
3
4#include <QDialog>
5#include <QString>
6#include <QWidget>
7#include <QMessageBox>
8
9#include "longProc.h"
10#include "backend.h"
11
12namespace Ui{
13        class CMDDialog;
14};
15
16class CMDDialog : public QDialog{
17        Q_OBJECT
18public:
19        CMDDialog(QWidget *parent = 0);
20        ~CMDDialog();
21
22        void start(QString cmdtype, QString branch = "");
23        bool isRunning();
24
25private:
26        Ui::CMDDialog *ui;
27        LongProc *PROC;
28
29private slots:
30        void NewMessage(QString);
31        void Finished();
32        void CloseUI();
33        void stopProcess();
34
35protected:
36        void closeEvent(QCloseEvent *event);
37};
38#endif
Note: See TracBrowser for help on using the repository browser.