diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kalarm/lib/shellprocess.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/lib/shellprocess.cpp')
-rw-r--r-- | kalarm/lib/shellprocess.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kalarm/lib/shellprocess.cpp b/kalarm/lib/shellprocess.cpp index 1e37d2e74..209f1aad8 100644 --- a/kalarm/lib/shellprocess.cpp +++ b/kalarm/lib/shellprocess.cpp @@ -31,13 +31,13 @@ #include "shellprocess.moc" -QCString ShellProcess::mShellName; -QCString ShellProcess::mShellPath; +TQCString ShellProcess::mShellName; +TQCString ShellProcess::mShellPath; bool ShellProcess::mInitialised = false; bool ShellProcess::mAuthorised = false; -ShellProcess::ShellProcess(const QString& command) +ShellProcess::ShellProcess(const TQString& command) : KShellProcess(shellName()), mCommand(command), mStatus(INACTIVE), @@ -56,8 +56,8 @@ bool ShellProcess::start(Communication comm) return false; } KShellProcess::operator<<(mCommand); - connect(this, SIGNAL(wroteStdin(KProcess*)), SLOT(writtenStdin(KProcess*))); - connect(this, SIGNAL(processExited(KProcess*)), SLOT(slotExited(KProcess*))); + connect(this, TQT_SIGNAL(wroteStdin(KProcess*)), TQT_SLOT(writtenStdin(KProcess*))); + connect(this, TQT_SIGNAL(processExited(KProcess*)), TQT_SLOT(slotExited(KProcess*))); if (!KShellProcess::start(KProcess::NotifyOnExit, comm)) { mStatus = START_FAIL; @@ -101,7 +101,7 @@ void ShellProcess::slotExited(KProcess* proc) */ void ShellProcess::writeStdin(const char* buffer, int bufflen) { - QCString scopy(buffer, bufflen+1); // construct a deep copy + TQCString scopy(buffer, bufflen+1); // construct a deep copy bool write = mStdinQueue.isEmpty(); mStdinQueue.append(scopy); if (write) @@ -138,7 +138,7 @@ void ShellProcess::stdinExit() * Return the error message corresponding to the command exit status. * Reply = null string if not yet exited, or if command successful. */ -QString ShellProcess::errorMessage() const +TQString ShellProcess::errorMessage() const { switch (mStatus) { @@ -153,7 +153,7 @@ QString ShellProcess::errorMessage() const case RUNNING: case SUCCESS: default: - return QString::null; + return TQString::null; } } @@ -162,13 +162,13 @@ QString ShellProcess::errorMessage() const * This is a duplication of what KShellProcess does, but we need to know * which shell is used in order to decide what its exit code means. */ -const QCString& ShellProcess::shellPath() +const TQCString& ShellProcess::shellPath() { if (mShellPath.isEmpty()) { // Get the path to the shell mShellPath = "/bin/sh"; - QCString envshell = QCString(getenv("SHELL")).stripWhiteSpace(); + TQCString envshell = TQCString(getenv("SHELL")).stripWhiteSpace(); if (!envshell.isEmpty()) { struct stat fileinfo; |