diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kioslaves/imap4/imap4.h | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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 'kioslaves/imap4/imap4.h')
-rw-r--r-- | kioslaves/imap4/imap4.h | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/kioslaves/imap4/imap4.h b/kioslaves/imap4/imap4.h index b86a3815b..9920ecac4 100644 --- a/kioslaves/imap4/imap4.h +++ b/kioslaves/imap4/imap4.h @@ -28,7 +28,7 @@ #include "mimeio.h" #include <kio/tcpslavebase.h> -#include <qbuffer.h> +#include <tqbuffer.h> #define IMAP_BUFFER 8192 @@ -55,14 +55,14 @@ class IMAP4Protocol:public public: // reimplement the TCPSlave - IMAP4Protocol (const QCString & pool, const QCString & app, bool isSSL); + IMAP4Protocol (const TQCString & pool, const TQCString & app, bool isSSL); virtual ~IMAP4Protocol (); virtual void openConnection(); virtual void closeConnection(); - virtual void setHost (const QString & _host, int _port, const QString & _user, - const QString & _pass); + virtual void setHost (const TQString & _host, int _port, const TQString & _user, + const TQString & _pass); /** * @brief get a message or part of a message * the data is normally send as we get it from the server @@ -83,13 +83,13 @@ public: * @brief Capabilites, NOOP, (Un)subscribe, Change status, * Change ACL */ - virtual void special (const QByteArray & data); + virtual void special (const TQByteArray & data); /** * @brief list a directory/mailbox */ virtual void listDir (const KURL & _url); virtual void setSubURL (const KURL & _url); - virtual void dispatch (int command, const QByteArray & data); + virtual void dispatch (int command, const TQByteArray & data); /** * @brief create a mailbox */ @@ -103,7 +103,7 @@ public: /** @brief reimplement the parser * relay hook to send the fetched data directly to an upper level */ - virtual void parseRelay (const QByteArray & buffer); + virtual void parseRelay (const TQByteArray & buffer); /** @brief reimplement the parser * relay hook to announce the fetched data directly to an upper level @@ -112,26 +112,26 @@ public: /** @brief reimplement the parser * read at least len bytes */ - virtual bool parseRead (QByteArray &buffer,ulong len,ulong relay=0); + virtual bool parseRead (TQByteArray &buffer,ulong len,ulong relay=0); /** @brief reimplement the parser * @brief read at least a line (up to CRLF) */ - virtual bool parseReadLine (QByteArray & buffer, ulong relay = 0); + virtual bool parseReadLine (TQByteArray & buffer, ulong relay = 0); /** @brief reimplement the parser * @brief write argument to the server */ - virtual void parseWriteLine (const QString &); + virtual void parseWriteLine (const TQString &); /** @brief reimplement the mimeIO */ - virtual int outputLine (const QCString & _str, int len = -1); + virtual int outputLine (const TQCString & _str, int len = -1); /** @brief send out cached data to the application */ - virtual void flushOutput(QString contentEncoding = QString::null); + virtual void flushOutput(TQString contentEncoding = TQString::null); protected: // select or examine the box if needed - bool assureBox (const QString & aBox, bool readonly); + bool assureBox (const TQString & aBox, bool readonly); ssize_t myRead(void *data, ssize_t len); @@ -143,15 +143,15 @@ protected: * set to ITYPE_DIR_AND_BOX */ enum IMAP_TYPE - parseURL (const KURL & _url, QString & _box, QString & _section, - QString & _type, QString & _uid, QString & _validity, - QString & _hierarchyDelimiter, QString & _info, + parseURL (const KURL & _url, TQString & _box, TQString & _section, + TQString & _type, TQString & _uid, TQString & _validity, + TQString & _hierarchyDelimiter, TQString & _info, bool cache = false); - QString getMimeType (enum IMAP_TYPE); + TQString getMimeType (enum IMAP_TYPE); bool makeLogin (); - void outputLineStr (const QString & _str) + void outputLineStr (const TQString & _str) { outputLine (_str.latin1 (), _str.length()); } @@ -163,43 +163,43 @@ protected: * If @p appendPath is true the foldername will be appended * to the path of @p url */ - void doListEntry (const KURL & url, const QString & myBox, + void doListEntry (const KURL & url, const TQString & myBox, const imapList & item, bool appendPath = true); /** Send an ACL command which is identified by @p command */ - void specialACLCommand( int command, QDataStream& stream ); + void specialACLCommand( int command, TQDataStream& stream ); /** Send an annotation command which is identified by @p command */ - void specialAnnotateMoreCommand( int command, QDataStream& stream ); - void specialQuotaCommand( int command, QDataStream& stream ); + void specialAnnotateMoreCommand( int command, TQDataStream& stream ); + void specialQuotaCommand( int command, TQDataStream& stream ); /** Search current folder, the search string is passed as SECTION */ - void specialSearchCommand( QDataStream& ); + void specialSearchCommand( TQDataStream& ); /** Send a custom command to the server */ - void specialCustomCommand( QDataStream& ); + void specialCustomCommand( TQDataStream& ); private: // This method behaves like the above method but takes an already encoded url, // so you don't have to call KURL::url() for every mail. - void doListEntry (const QString & encodedUrl, int stretch, imapCache * cache = NULL, + void doListEntry (const TQString & encodedUrl, int stretch, imapCache * cache = NULL, bool withFlags = FALSE, bool withSubject = FALSE); - QString myHost, myUser, myPass, myAuth, myTLS; + TQString myHost, myUser, myPass, myAuth, myTLS; int myPort; bool mySSL; bool relayEnabled, cacheOutput, decodeContent; - QByteArray outputCache; - QBuffer outputBuffer; + TQByteArray outputCache; + TQBuffer outputBuffer; Q_ULONG outputBufferIndex; KIO::filesize_t mProcessedSize; char readBuffer[IMAP_BUFFER]; ssize_t readBufferLen; int readSize; - QDateTime mTimeOfLastNoop; + TQDateTime mTimeOfLastNoop; }; #endif |