summaryrefslogtreecommitdiffstats
path: root/kdesu/process.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdesu/process.h
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdesu/process.h')
-rw-r--r--kdesu/process.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/kdesu/process.h b/kdesu/process.h
index 8a2004d92..c45132a9c 100644
--- a/kdesu/process.h
+++ b/kdesu/process.h
@@ -15,15 +15,15 @@
#include <sys/types.h>
-#include <qcstring.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qvaluelist.h>
+#include <tqcstring.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqvaluelist.h>
#include <kdelibs_export.h>
class PTY;
-typedef QValueList<QCString> QCStringList;
+typedef TQValueList<TQCString> QCStringList;
/**
* Synchronous communication with tty programs.
@@ -46,7 +46,7 @@ public:
* @param command The command to execute.
* @param args The arguments to the command.
*/
- int exec(const QCString &command, const QCStringList &args);
+ int exec(const TQCString &command, const QCStringList &args);
/**
* Reads a line from the program's standard out. Depending on the @em block
@@ -54,33 +54,33 @@ public:
* @param block Block until a full line is read?
* @return The output string.
*/
- QCString readLine(bool block=true);
+ TQCString readLine(bool block=true);
/**
* Read all available output from the program's standard out.
* @param block If no output is in the buffer, should the function block
* @return The output.
*/
- QCString readAll(bool block=true);
+ TQCString readAll(bool block=true);
/**
* Writes a line of text to the program's standard in.
* @param line The text to write.
* @param addNewline Adds a '\n' to the line.
*/
- void writeLine(const QCString &line, bool addNewline=true);
+ void writeLine(const TQCString &line, bool addNewline=true);
/**
* Puts back a line of input.
* @param line The line to put back.
* @param addNewline Adds a '\n' to the line.
*/
- void unreadLine(const QCString &line, bool addNewline=true);
+ void unreadLine(const TQCString &line, bool addNewline=true);
/**
* Sets the exit string. If a line of program output matches this,
* waitForChild() will terminate the program and return.
*/
- void setExitString(const QCString &exit) { m_Exit = exit; }
+ void setExitString(const TQCString &exit) { m_Exit = exit; }
/**
* Waits for the child to exit. See also setExitString.
@@ -168,14 +168,14 @@ protected:
bool m_bErase, m_bTerminal;
int m_Pid, m_Fd;
- QCString m_Command, m_Exit;
+ TQCString m_Command, m_Exit;
private:
int init();
int SetupTTY(int fd);
PTY *m_pPTY;
- QCString m_Inbuf, m_TTY;
+ TQCString m_Inbuf, m_TTY;
protected:
virtual void virtual_hook( int id, void* data );