diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-08 15:17:51 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-08 19:38:03 +0900 |
| commit | 7d612f7c91d55501276a385a30dbadb121e7bd9f (patch) | |
| tree | 4c6f1546e16db32779dfbf5c9e107b938faee6bb /src/kernel/tqasyncio.cpp | |
| parent | 5a863a8932d14b99c5f838c4efa1618070d71b29 (diff) | |
| download | tqt-7d612f7c91d55501276a385a30dbadb121e7bd9f.tar.gz tqt-7d612f7c91d55501276a385a30dbadb121e7bd9f.zip | |
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/kernel/tqasyncio.cpp')
| -rw-r--r-- | src/kernel/tqasyncio.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/kernel/tqasyncio.cpp b/src/kernel/tqasyncio.cpp index c8fe10ce4..aa3fff18a 100644 --- a/src/kernel/tqasyncio.cpp +++ b/src/kernel/tqasyncio.cpp @@ -173,25 +173,25 @@ void TQDataSource::maybeReady() */ /*! - This function should return TRUE if the data source can be rewound. + This function should return true if the data source can be rewound. - The default returns FALSE. + The default returns false. */ bool TQDataSource::rewindable() const { - return FALSE; + return false; } /*! - If this function is called with \a on set to TRUE, and rewindable() - is TRUE, then the data source must take measures to allow the rewind() - function to subsequently operate as described. If rewindable() is FALSE, + If this function is called with \a on set to true, and rewindable() + is true, then the data source must take measures to allow the rewind() + function to subsequently operate as described. If rewindable() is false, the function should call TQDataSource::enableRewind(), which aborts with a tqFatal() error. For example, a network connection may choose to use a disk cache of input only if rewinding is enabled before the first buffer-full of - data is discarded, returning FALSE in rewindable() if that first buffer + data is discarded, returning false in rewindable() if that first buffer is discarded. */ void TQDataSource::enableRewind( bool /* on */ ) @@ -201,7 +201,7 @@ void TQDataSource::enableRewind( bool /* on */ ) /*! This function rewinds the data source. This may only be called if - enableRewind(TRUE) has been previously called. + enableRewind(true) has been previously called. */ void TQDataSource::rewind() { @@ -228,7 +228,7 @@ TQIODeviceSource::TQIODeviceSource(TQIODevice* device, int buffer_size) : buf_size(buffer_size), buffer(new uchar[buf_size]), iod(device), - rew(FALSE) + rew(false) { } @@ -269,13 +269,13 @@ void TQIODeviceSource::sendTo(TQDataSink* sink, int n) */ bool TQIODeviceSource::rewindable() const { - return TRUE; + return true; } /*! - If \a on is set to TRUE then rewinding is enabled. + If \a on is set to true then rewinding is enabled. No special action is taken. If \a on is set to - FALSE then rewinding is disabled. + false then rewinding is disabled. */ void TQIODeviceSource::enableRewind(bool on) { @@ -323,14 +323,14 @@ TQDataPump::TQDataPump(TQDataSource* data_source, TQDataSink* data_sink) : source->connect(this, TQ_SLOT(kickStart())); sink->connect(this, TQ_SLOT(kickStart())); connect(&timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(tryToPump())); - timer.start(0, TRUE); + timer.start(0, true); } void TQDataPump::kickStart() { if (!timer.isActive()) { interval = 0; - timer.start(0, TRUE); + timer.start(0, true); } } @@ -353,7 +353,7 @@ void TQDataPump::tryToPump() return; source->sendTo(sink, TQMIN(supply, demand)); - timer.start(0, TRUE); + timer.start(0, true); } #endif // TQT_NO_ASYNC_IO |
