blob: 3fd7dcb1b2a7082af619afcb2ea103a11067c9ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#ifndef TESTLUPDATE_H
#define TESTLUPDATE_H
#include <QObject>
#include <QProcess>
#include <QStringList>
class TestLUpdate : public QObject
{
Q_OBJECT
public:
TestLUpdate();
virtual ~TestLUpdate();
void setWorkingDirectory( const QString &workDir);
bool run( const QString &commandline);
bool updateProFile( const QString &arguments);
bool qmake();
QStringList getErrorMessages() {
return make_result;
}
void clearResult() {
make_result.clear();
}
private:
QString m_cmdLupdate;
QString m_cmdQMake;
QString m_workDir;
QProcess *childProc;
QStringList env_list;
QStringList make_result;
bool child_show;
bool qws_mode;
bool exit_ok;
bool runChild( bool showOutput, const QString &program, const QStringList &argList = QStringList());
void addMakeResult( const QString &result );
void childHasData();
private slots:
void childReady(int exitCode);
};
#endif // TESTLUPDATE_H
|