source: src-qt4/pc-sysmanager/gitprogress.h @ 6d7b1e6

releng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since 6d7b1e6 was 6d7b1e6, checked in by Joe Maloney <pkgdemonteam@…>, 12 months ago

Moved portsnap* to retired. Imported new portsnapproc code from Ken as gitprogress*. Added new files to project file.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#ifndef _GIT_PROGRESS_H
2#define _GIT_PROGRESS_H
3
4#include <QObject>
5#include <QProcess>
6#include <QFile>
7#include <QString>
8#include <QStringList>
9#include <QCoreApplication>
10#include <QDebug>
11
12class gitProc : public QObject{
13        Q_OBJECT
14public:
15       
16        gitProc();
17        ~gitProc();
18       
19        //Quick-start functions for specific tasks
20        bool startInitPorts(); //initialize the ports tree
21        bool startPorts(); //fetch the ports tree
22        bool startInitSource(); //initialize the source fetching
23        bool startSource(); //fetch the source tree
24
25        //Information functions
26        bool isRunning(){ return running; } //so you can double check whether it is still running
27       
28        //Quick function to run a command and return success/failure
29        static bool quickCMD(QString dir, QString cmd, QStringList args = QStringList()); 
30
31private:
32        QProcess *process;
33        bool running;
34        gitProc *longProcess;
35
36private slots:
37        void parseUpdate(); //New process message from internal worker
38        void procDone(); //internal worker finished
39
40signals:
41        void ProcMessage(QString); //a new message while it is running
42        void ProcFinished(bool); //the process result (good/bad)
43};
44#endif
Note: See TracBrowser for help on using the repository browser.