extprogs.h

changeset 165
88a03c1a52d9
child 166
72ec7b60da54
equal deleted inserted replaced
164:8c93d8e38494 165:88a03c1a52d9
1 #ifndef EXTPROGS_H
2 #define EXTPROGS_H
3
4 #include <qobject.h>
5
6 class QProcess;
7 class ProcessWaiter : public QObject {
8 Q_OBJECT
9
10 public:
11 ProcessWaiter (QProcess* proc, bool& readyvar) : m_proc (proc), m_readyvar (readyvar) {
12 m_readyvar = false;
13 }
14
15 int exitFlag () { return m_exitflag; }
16
17 public slots:
18 void slot_procDone (int exitflag) {
19 m_readyvar = true;
20 m_exitflag = exitflag;
21 }
22
23 private:
24 QProcess* m_proc;
25 bool& m_readyvar;
26 int m_exitflag;
27 };
28
29 enum extprog {
30 IseCalc,
31 Intersector,
32 Coverer,
33 Ytruder,
34 DATHeader
35 };
36
37 void runYtruder ();
38
39 #endif // EXTPROGS_H

mercurial