summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqprocess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tqprocess.cpp')
-rw-r--r--src/kernel/tqprocess.cpp74
1 files changed, 37 insertions, 37 deletions
diff --git a/src/kernel/tqprocess.cpp b/src/kernel/tqprocess.cpp
index b43c12b4a..58b0bdbaf 100644
--- a/src/kernel/tqprocess.cpp
+++ b/src/kernel/tqprocess.cpp
@@ -225,9 +225,9 @@
\sa setArguments() addArgument() start()
*/
TQProcess::TQProcess( TQObject *parent, const char *name )
- : TQObject( parent, name ), ioRedirection( FALSE ), notifyOnExit( FALSE ),
- wroteToStdinConnected( FALSE ),
- readStdoutCalled( FALSE ), readStderrCalled( FALSE ),
+ : TQObject( parent, name ), ioRedirection( false ), notifyOnExit( false ),
+ wroteToStdinConnected( false ),
+ readStdoutCalled( false ), readStderrCalled( false ),
comms( Stdin|Stdout|Stderr )
{
init();
@@ -244,9 +244,9 @@ TQProcess::TQProcess( TQObject *parent, const char *name )
\sa setArguments() addArgument() start()
*/
TQProcess::TQProcess( const TQString& arg0, TQObject *parent, const char *name )
- : TQObject( parent, name ), ioRedirection( FALSE ), notifyOnExit( FALSE ),
- wroteToStdinConnected( FALSE ),
- readStdoutCalled( FALSE ), readStderrCalled( FALSE ),
+ : TQObject( parent, name ), ioRedirection( false ), notifyOnExit( false ),
+ wroteToStdinConnected( false ),
+ readStdoutCalled( false ), readStderrCalled( false ),
comms( Stdin|Stdout|Stderr )
{
init();
@@ -266,9 +266,9 @@ TQProcess::TQProcess( const TQString& arg0, TQObject *parent, const char *name )
\sa setArguments() addArgument() start()
*/
TQProcess::TQProcess( const TQStringList& args, TQObject *parent, const char *name )
- : TQObject( parent, name ), ioRedirection( FALSE ), notifyOnExit( FALSE ),
- wroteToStdinConnected( FALSE ),
- readStdoutCalled( FALSE ), readStderrCalled( FALSE ),
+ : TQObject( parent, name ), ioRedirection( false ), notifyOnExit( false ),
+ wroteToStdinConnected( false ),
+ readStdoutCalled( false ), readStderrCalled( false ),
comms( Stdin|Stdout|Stderr )
{
init();
@@ -408,8 +408,8 @@ void TQProcess::setCommunication( int commFlags )
}
/*!
- Returns TRUE if the process has exited normally; otherwise returns
- FALSE. This implies that this function returns FALSE if the
+ Returns true if the process has exited normally; otherwise returns
+ false. This implies that this function returns false if the
process is still running.
\sa isRunning() exitStatus() processExited()
@@ -418,7 +418,7 @@ bool TQProcess::normalExit() const
{
// isRunning() has the side effect that it determines the exit status!
if ( isRunning() )
- return FALSE;
+ return false;
else
return exitNormal;
}
@@ -428,7 +428,7 @@ bool TQProcess::normalExit() const
still running. This function returns immediately and does not wait
until the process is finished.
- If normalExit() is FALSE (e.g. if the program was killed or
+ If normalExit() is false (e.g. if the program was killed or
crashed), this function returns 0, so you should check the return
value of normalExit() before relying on this value.
@@ -459,9 +459,9 @@ TQByteArray TQProcess::readStdout()
if ( readStdoutCalled ) {
return TQByteArray();
}
- readStdoutCalled = TRUE;
+ readStdoutCalled = true;
TQMembuf *buf = membufStdout();
- readStdoutCalled = FALSE;
+ readStdoutCalled = false;
return buf->readAll();
}
@@ -481,9 +481,9 @@ TQByteArray TQProcess::readStderr()
if ( readStderrCalled ) {
return TQByteArray();
}
- readStderrCalled = TRUE;
+ readStderrCalled = true;
TQMembuf *buf = membufStderr();
- readStderrCalled = FALSE;
+ readStderrCalled = false;
return buf->readAll();
}
@@ -491,7 +491,7 @@ TQByteArray TQProcess::readStderr()
/*!
Reads a line of text from standard output, excluding any trailing
newline or carriage return characters, and returns it. Returns
- TQString::null if canReadLineStdout() returns FALSE.
+ TQString::null if canReadLineStdout() returns false.
By default, the text is interpreted to be in Latin-1 encoding. If you need
other codecs, you can set a different codec with
@@ -527,7 +527,7 @@ TQString TQProcess::readLineStdout()
/*!
Reads a line of text from standard error, excluding any trailing
newline or carriage return characters and returns it. Returns
- TQString::null if canReadLineStderr() returns FALSE.
+ TQString::null if canReadLineStderr() returns false.
By default, the text is interpreted to be in Latin-1 encoding. If you need
other codecs, you can set a different codec with
@@ -591,8 +591,8 @@ TQString TQProcess::readLineStderr()
settings for the environment variable \c LD_LIBRARY_PATH, then
this variable is inherited from the starting process.
- Returns TRUE if the process could be started; otherwise returns
- FALSE.
+ Returns true if the process could be started; otherwise returns
+ false.
Note that you should not use the slots writeToStdin() and
closeStdin() on processes started with launch(), since the result
@@ -628,10 +628,10 @@ bool TQProcess::launch( const TQByteArray& buf, TQStringList *env )
closeStdin();
emit launchFinished();
}
- return TRUE;
+ return true;
} else {
emit launchFinished();
- return FALSE;
+ return false;
}
}
@@ -652,10 +652,10 @@ bool TQProcess::launch( const TQString& buf, TQStringList *env )
closeStdin();
emit launchFinished();
}
- return TRUE;
+ return true;
} else {
emit launchFinished();
- return FALSE;
+ return false;
}
}
@@ -755,23 +755,23 @@ void TQProcess::connectNotify( const char * signal )
qstrcmp( signal, TQ_SIGNAL(readyReadStderr()) )==0
) {
#if defined(QT_QPROCESS_DEBUG)
- tqDebug( "TQProcess::connectNotify(): set ioRedirection to TRUE" );
+ tqDebug( "TQProcess::connectNotify(): set ioRedirection to true" );
#endif
- setIoRedirection( TRUE );
+ setIoRedirection( true );
return;
}
if ( !notifyOnExit && qstrcmp( signal, TQ_SIGNAL(processExited()) )==0 ) {
#if defined(QT_QPROCESS_DEBUG)
- tqDebug( "TQProcess::connectNotify(): set notifyOnExit to TRUE" );
+ tqDebug( "TQProcess::connectNotify(): set notifyOnExit to true" );
#endif
- setNotifyOnExit( TRUE );
+ setNotifyOnExit( true );
return;
}
if ( !wroteToStdinConnected && qstrcmp( signal, TQ_SIGNAL(wroteToStdin()) )==0 ) {
#if defined(QT_QPROCESS_DEBUG)
- tqDebug( "TQProcess::connectNotify(): set wroteToStdinConnected to TRUE" );
+ tqDebug( "TQProcess::connectNotify(): set wroteToStdinConnected to true" );
#endif
- setWroteStdinConnected( TRUE );
+ setWroteStdinConnected( true );
return;
}
}
@@ -785,21 +785,21 @@ void TQProcess::disconnectNotify( const char * )
receivers( TQ_SIGNAL(readyReadStderr()) ) ==0
) {
#if defined(QT_QPROCESS_DEBUG)
- tqDebug( "TQProcess::disconnectNotify(): set ioRedirection to FALSE" );
+ tqDebug( "TQProcess::disconnectNotify(): set ioRedirection to false" );
#endif
- setIoRedirection( FALSE );
+ setIoRedirection( false );
}
if ( notifyOnExit && receivers( TQ_SIGNAL(processExited()) ) == 0 ) {
#if defined(QT_QPROCESS_DEBUG)
- tqDebug( "TQProcess::disconnectNotify(): set notifyOnExit to FALSE" );
+ tqDebug( "TQProcess::disconnectNotify(): set notifyOnExit to false" );
#endif
- setNotifyOnExit( FALSE );
+ setNotifyOnExit( false );
}
if ( wroteToStdinConnected && receivers( TQ_SIGNAL(wroteToStdin()) ) == 0 ) {
#if defined(QT_QPROCESS_DEBUG)
- tqDebug( "TQProcess::disconnectNotify(): set wroteToStdinConnected to FALSE" );
+ tqDebug( "TQProcess::disconnectNotify(): set wroteToStdinConnected to false" );
#endif
- setWroteStdinConnected( FALSE );
+ setWroteStdinConnected( false );
}
}