summaryrefslogtreecommitdiffstats
path: root/knotes/knotesnetrecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knotes/knotesnetrecv.cpp')
-rw-r--r--knotes/knotesnetrecv.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/knotes/knotesnetrecv.cpp b/knotes/knotesnetrecv.cpp
index 65edb2cb5..0a261252b 100644
--- a/knotes/knotesnetrecv.cpp
+++ b/knotes/knotesnetrecv.cpp
@@ -30,10 +30,10 @@
your version.
*******************************************************************/
-#include <qtimer.h>
-#include <qdatetime.h>
-#include <qregexp.h>
-#include <qcstring.h>
+#include <tqtimer.h>
+#include <tqdatetime.h>
+#include <tqregexp.h>
+#include <tqcstring.h>
#include <kdebug.h>
#include <kbufferedsocket.h>
@@ -58,27 +58,27 @@ using namespace KNetwork;
KNotesNetworkReceiver::KNotesNetworkReceiver( KBufferedSocket *s )
- : QObject(),
- m_buffer( new QByteArray() ), m_sock( s )
+ : TQObject(),
+ m_buffer( new TQByteArray() ), m_sock( s )
{
- QString date = KGlobal::locale()->formatDateTime( QDateTime::currentDateTime(), true, false );
+ TQString date = KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime(), true, false );
// Add the remote IP or hostname and the date to the title, to help the
// user guess who wrote it.
- m_titleAddon = QString(" [%1, %2]")
+ m_titleAddon = TQString(" [%1, %2]")
.arg( m_sock->peerAddress().nodeName() )
.arg( date );
// Setup the communications
- connect( m_sock, SIGNAL(readyRead()), SLOT(slotDataAvailable()) );
- connect( m_sock, SIGNAL(closed()), SLOT(slotConnectionClosed()) );
- connect( m_sock, SIGNAL(gotError( int )), SLOT(slotError( int )) );
+ connect( m_sock, TQT_SIGNAL(readyRead()), TQT_SLOT(slotDataAvailable()) );
+ connect( m_sock, TQT_SIGNAL(closed()), TQT_SLOT(slotConnectionClosed()) );
+ connect( m_sock, TQT_SIGNAL(gotError( int )), TQT_SLOT(slotError( int )) );
m_sock->enableRead( true );
// Setup the timer
- m_timer = new QTimer( this, "m_timer" );
- connect( m_timer, SIGNAL(timeout()), SLOT(slotReceptionTimeout()) );
+ m_timer = new TQTimer( this, "m_timer" );
+ connect( m_timer, TQT_SIGNAL(timeout()), TQT_SLOT(slotReceptionTimeout()) );
m_timer->start( MAXTIME, true );
}
@@ -127,11 +127,11 @@ void KNotesNetworkReceiver::slotConnectionClosed()
{
if ( m_timer->isActive() )
{
- QString noteText = QString( *m_buffer ).stripWhiteSpace();
+ TQString noteText = TQString( *m_buffer ).stripWhiteSpace();
// First line is the note title or, in case of ATnotes, the id
- int pos = noteText.find( QRegExp("[\r\n]") );
- QString noteTitle = noteText.left( pos ).stripWhiteSpace() + m_titleAddon;
+ int pos = noteText.find( TQRegExp("[\r\n]") );
+ TQString noteTitle = noteText.left( pos ).stripWhiteSpace() + m_titleAddon;
noteText = noteText.mid( pos ).stripWhiteSpace();