summaryrefslogtreecommitdiffstats
path: root/src/common/nokde/nokde_kprocess.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
commit0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch)
treeb95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/common/nokde/nokde_kprocess.h
parentb79a2c28534cf09987eeeba3077fff9236df182a (diff)
downloadpiklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.tar.gz
piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.zip
TQt4 port piklab
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1238822 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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