summaryrefslogtreecommitdiffstats
path: root/src/common/nokde/nokde_kprocess.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/nokde/nokde_kprocess.h')
-rw-r--r--src/common/nokde/nokde_kprocess.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/common/nokde/nokde_kprocess.h b/src/common/nokde/nokde_kprocess.h
index 59ff73c..5c7effd 100644
--- a/src/common/nokde/nokde_kprocess.h
+++ b/src/common/nokde/nokde_kprocess.h
@@ -1,32 +1,33 @@
#ifndef _KPROCESS_H_
#define _KPROCESS_H_
-#include <qdir.h>
+#include <tqdir.h>
#include "common/global/global.h"
#include "common/common/synchronous.h"
-#if QT_VERSION<0x040000
-class QProcess;
+#if [[[TQT_VERSION IS DEPRECATED]]]<0x040000
+class TQProcess;
#else
class Q3Process;
#endif
-class KProcess : public QObject
+class KProcess : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- KProcess(QObject *parent = 0, const char *name = 0);
+ KProcess(TQObject *tqparent = 0, const char *name = 0);
void clearArguments() { _arguments.clear(); }
- KProcess &operator<< (const QString &arg) { _arguments += arg; return *this; }
- KProcess &operator<< (const QStringList &args) { _arguments += args; return *this; }
- QStringList args() const { return _arguments; }
- void setEnvironment(const QString &name, const QString &value) { _environment += name + "=" + value; }
+ KProcess &operator<< (const TQString &arg) { _arguments += arg; return *this; }
+ KProcess &operator<< (const TQStringList &args) { _arguments += args; return *this; }
+ TQStringList args() const { return _arguments; }
+ void setEnvironment(const TQString &name, const TQString &value) { _environment += name + "=" + value; }
bool start();
bool writeStdin(const char *buffer, int len);
bool kill();
bool kill(int n);
int exitStatus() const;
bool isRunning() const;
- void setWorkingDirectory(const QDir &dir);
+ void setWorkingDirectory(const TQDir &dir);
void setUseShell(bool useShell);
signals:
@@ -40,12 +41,12 @@ private slots:
void readyReadStderrSlot();
private:
-#if QT_VERSION<0x040000
- QProcess *_process;
+#if [[[TQT_VERSION IS DEPRECATED]]]<0x040000
+ TQProcess *_process;
#else
Q3Process *_process;
#endif
- QStringList _arguments,_environment;
+ TQStringList _arguments,_environment;
};
#endif