summaryrefslogtreecommitdiffstats
path: root/korn/kio_single_subject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korn/kio_single_subject.cpp')
-rw-r--r--korn/kio_single_subject.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/korn/kio_single_subject.cpp b/korn/kio_single_subject.cpp
index cdb70733f..6d797efd8 100644
--- a/korn/kio_single_subject.cpp
+++ b/korn/kio_single_subject.cpp
@@ -31,19 +31,19 @@
#include <kio/jobclasses.h>
#include <krfcdate.h>
-#include <qregexp.h>
-#include <qcstring.h>
-#include <qstring.h>
+#include <tqregexp.h>
+#include <tqcstring.h>
+#include <tqstring.h>
-KIO_Single_Subject::KIO_Single_Subject( QObject * parent, const char * name,
+KIO_Single_Subject::KIO_Single_Subject( TQObject * parent, const char * name,
KURL &kurl, KIO::MetaData &metadata, const KIO_Protocol * protocol, KIO::Slave *& slave,
- const QString &url, const long size )
- : QObject( parent, name )
+ const TQString &url, const long size )
+ : TQObject( parent, name )
{
_kurl = new KURL( kurl );
_metadata = new KIO::MetaData( metadata );
_protocol = protocol;
- _name = new QString( url );
+ _name = new TQString( url );
_size = size;
_message = new QString;
@@ -65,9 +65,9 @@ void KIO_Single_Subject::init( KIO::Slave *& slave)
_job = KIO::get( *_kurl, false, false );
_job->addMetaData( *_metadata );
- connect( _job, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotResult( KIO::Job* ) ) );
- connect( _job, SIGNAL( data (KIO::Job *, const QByteArray &) ),
- this, SLOT( slotData(KIO::Job *, const QByteArray &) ) );
+ connect( _job, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( slotResult( KIO::Job* ) ) );
+ connect( _job, TQT_SIGNAL( data (KIO::Job *, const TQByteArray &) ),
+ this, TQT_SLOT( slotData(KIO::Job *, const TQByteArray &) ) );
if( _protocol->connectionBased( ) && slave )
KIO::Scheduler::assignJobToSlave( slave , _job );
@@ -76,15 +76,15 @@ void KIO_Single_Subject::init( KIO::Slave *& slave)
}
-void KIO_Single_Subject::parseMail( QString * message, KornMailSubject *subject, bool fullMessage )
+void KIO_Single_Subject::parseMail( TQString * message, KornMailSubject *subject, bool fullMessage )
{
- QTextStream stream( message, IO_ReadOnly );
- QString line;
- QRegExp rx_sender( "^[fF]rom: " ); //Ex: From: ...
- QRegExp rx_sender_has_name1( "^[fF]rom:\\s*(\\w+[\\w\\s]*)\\<" ); //Ex: From: A name<email@domein.country>
- QRegExp rx_sender_has_name2( "^[fF]rom:\\s*\\\"\\s*(\\w+[\\w\\s]*)\\\""); //Ex: From: "A name"<a@invalid>
- QRegExp rx_subject( "^[sS]ubject: " ); //Ex: Subject: ...
- QRegExp rx_date ( "^[dD]ate: ");
+ TQTextStream stream( message, IO_ReadOnly );
+ TQString line;
+ TQRegExp rx_sender( "^[fF]rom: " ); //Ex: From: ...
+ TQRegExp rx_sender_has_name1( "^[fF]rom:\\s*(\\w+[\\w\\s]*)\\<" ); //Ex: From: A name<email@domein.country>
+ TQRegExp rx_sender_has_name2( "^[fF]rom:\\s*\\\"\\s*(\\w+[\\w\\s]*)\\\""); //Ex: From: "A name"<a@invalid>
+ TQRegExp rx_subject( "^[sS]ubject: " ); //Ex: Subject: ...
+ TQRegExp rx_date ( "^[dD]ate: ");
bool inheader = true;
int fieldnumber = 0;
@@ -122,7 +122,7 @@ void KIO_Single_Subject::parseMail( QString * message, KornMailSubject *subject,
subject->setHeader( *message, fullMessage );
}
-void KIO_Single_Subject::slotData( KIO::Job* job, const QByteArray& data )
+void KIO_Single_Subject::slotData( KIO::Job* job, const TQByteArray& data )
{
if( job != _job )
kdWarning() << i18n( "Got invalid job; something strange happened?" ) << endl;