summaryrefslogtreecommitdiffstats
path: root/knotes/knotesnetrecv.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /knotes/knotesnetrecv.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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 '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();