summaryrefslogtreecommitdiffstats
path: root/kmail/kmsender_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/kmsender_p.h')
-rw-r--r--kmail/kmsender_p.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/kmail/kmsender_p.h b/kmail/kmsender_p.h
index e9517974b..a842027a1 100644
--- a/kmail/kmsender_p.h
+++ b/kmail/kmsender_p.h
@@ -6,9 +6,9 @@
#define __KMAIL_SENDER_P_H__
#include "kmsender.h"
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qobject.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqobject.h>
#include <kio/global.h>
#include <kdeversion.h>
@@ -32,7 +32,7 @@ public:
void start() { emit started( doStart() ); }
/** Send given message. May return before message is sent. */
- bool send( const QString & sender, const QStringList & to, const QStringList & cc, const QStringList & bcc, const QByteArray & message ) {
+ bool send( const TQString & sender, const TQStringList & to, const TQStringList & cc, const TQStringList & bcc, const TQByteArray & message ) {
reset(); return doSend( sender, to, cc, bcc, message );
}
@@ -47,7 +47,7 @@ public:
bool sendOk() const { return mSendOk; }
/** Returns error message of last call of failed(). */
- QString lastErrorMessage() const { return mLastErrorMessage; }
+ TQString lastErrorMessage() const { return mLastErrorMessage; }
signals:
/** Emitted when the current message is sent or an error occurred. */
@@ -61,22 +61,22 @@ protected:
/** Called to signal a transmission error. The sender then
calls finish() and terminates sending of messages.
Sets mSending to FALSE. */
- void failed(const QString &msg);
+ void failed(const TQString &msg);
/** Informs the user about what is going on. */
- void statusMsg(const QString&);
+ void statusMsg(const TQString&);
private:
void reset();
private:
virtual void doFinish() = 0;
- virtual bool doSend( const QString & sender, const QStringList & to, const QStringList & cc, const QStringList & bcc, const QByteArray & message ) = 0;
+ virtual bool doSend( const TQString & sender, const TQStringList & to, const TQStringList & cc, const TQStringList & bcc, const TQByteArray & message ) = 0;
virtual bool doStart() = 0;
protected:
KMSender* mSender;
- QString mLastErrorMessage;
+ TQString mLastErrorMessage;
bool mSendOk : 1;
bool mSending : 1;
};
@@ -101,12 +101,12 @@ private:
/** implemented from KMSendProc */
void doFinish();
/** implemented from KMSendProc */
- bool doSend( const QString & sender, const QStringList & to, const QStringList & cc, const QStringList & bcc, const QByteArray & message );
+ bool doSend( const TQString & sender, const TQStringList & to, const TQStringList & cc, const TQStringList & bcc, const TQByteArray & message );
/** implemented from KMSendProc */
bool doStart();
private:
- QByteArray mMsgStr;
+ TQByteArray mMsgStr;
char* mMsgPos;
int mMsgRest;
KProcess* mMailerProc;
@@ -123,22 +123,22 @@ public:
void abort();
private slots:
- void dataReq(KIO::Job *, QByteArray &);
+ void dataReq(KIO::Job *, TQByteArray &);
void result(KIO::Job *);
- void slaveError(KIO::Slave *, int, const QString &);
+ void slaveError(KIO::Slave *, int, const TQString &);
private:
/** implemented from KMSendProc */
void doFinish();
/** implemented from KMSendProc */
- bool doSend( const QString & sender, const QStringList & to, const QStringList & cc, const QStringList & bcc, const QByteArray & message );
+ bool doSend( const TQString & sender, const TQStringList & to, const TQStringList & cc, const TQStringList & bcc, const TQByteArray & message );
/** implemented from KMSendProc */
bool doStart() { return true; }
void cleanup();
private:
- QByteArray mMessage;
+ TQByteArray mMessage;
uint mMessageLength;
uint mMessageOffset;