diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeprint/kpipeprocess.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-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 'kdeprint/kpipeprocess.cpp')
-rw-r--r-- | kdeprint/kpipeprocess.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kdeprint/kpipeprocess.cpp b/kdeprint/kpipeprocess.cpp index e95e3b290..a3ef560c8 100644 --- a/kdeprint/kpipeprocess.cpp +++ b/kdeprint/kpipeprocess.cpp @@ -19,8 +19,8 @@ #include "kpipeprocess.h" -KPipeProcess::KPipeProcess(const QString& cmd, int mode) -: QFile() +KPipeProcess::KPipeProcess(const TQString& cmd, int mode) +: TQFile() { m_pipe = NULL; if (!cmd.isEmpty()) @@ -32,7 +32,7 @@ KPipeProcess::~KPipeProcess() close(); } -bool KPipeProcess::open(const QString& cmd, int mode) +bool KPipeProcess::open(const TQString& cmd, int mode) { // close first if needed close(); @@ -43,7 +43,7 @@ bool KPipeProcess::open(const QString& cmd, int mode) // create the pipe m_pipe = popen(cmd.latin1(),(mode == IO_WriteOnly ? "w" : "r")); if (m_pipe) - if (!QFile::open(mode,m_pipe)) + if (!TQFile::open(mode,m_pipe)) close(); return (m_pipe != NULL); } @@ -52,7 +52,7 @@ void KPipeProcess::close() { if (m_pipe != NULL) { - QFile::close(); + TQFile::close(); /* pipe must be close to be sure the process is terminated */ pclose( m_pipe ); m_pipe = NULL; |