diff options
Diffstat (limited to 'kbiff/kbiffmonitor.h')
-rw-r--r-- | kbiff/kbiffmonitor.h | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/kbiff/kbiffmonitor.h b/kbiff/kbiffmonitor.h index cf7ed11..52cc1e7 100644 --- a/kbiff/kbiffmonitor.h +++ b/kbiff/kbiffmonitor.h @@ -17,29 +17,29 @@ #include <sys/time.h> -#include <qobject.h> -#include <qlist.h> -#include <qfileinfo.h> +#include <ntqobject.h> +#include <ntqlist.h> +#include <ntqfileinfo.h> #ifdef USE_SSL #include <kssl.h> #endif class KBiffURL; -class QString; +class TQString; /** * @internal * Internal class to store UIDL list */ -class KBiffUidlList : public QList<QString> +class KBiffUidlList : public TQList<TQString> { protected: int compareItems(Item s1, Item s2) { - QString *str1, *str2; - str1 = (QString *)s1; - str2 = (QString *)s2; + TQString *str1, *str2; + str1 = (TQString *)s1; + str2 = (TQString *)s2; if((*str1) == (*str2)) return 0; else @@ -59,7 +59,7 @@ public: KBiffSocket(); virtual ~KBiffSocket(); - bool connectSocket(const QString& host, unsigned short int port); + bool connectSocket(const TQString& host, unsigned short int port); bool active(); bool isAsync(); @@ -76,8 +76,8 @@ public: void close(); protected: - QString readLine(); - int writeLine(const QString& line); + TQString readLine(); + int writeLine(const TQString& line); bool async; @@ -87,7 +87,7 @@ protected: fd_set socketFDS; int messages; int newMessages; - QString banner; // the first line read from a new connection + TQString banner; // the first line read from a new connection #ifdef USE_SSL bool usessl; @@ -104,8 +104,8 @@ public: KBiffImap(); virtual ~KBiffImap(); - bool command(const QString& line, unsigned int seq); - QString mungeUserPass(const QString& old_user); + bool command(const TQString& line, unsigned int seq); + TQString mungeUserPass(const TQString& old_user); void resetNumbers(); /** * @internal @@ -123,7 +123,7 @@ public: * @param user the user name required for authentication * @param pass the password required for authentication */ - bool authenticate(int *pseq, const QString& user, const QString& pass); + bool authenticate(int *pseq, const TQString& user, const TQString& pass); protected: /** @@ -138,7 +138,7 @@ protected: * * @brief the CRAM-MD5 challenge (base64 decoded) as issued by the server */ - QString chall_cram_md5; + TQString chall_cram_md5; }; /** @@ -150,7 +150,7 @@ public: KBiffPop(); virtual ~KBiffPop(); - bool command(const QString& line); + bool command(const TQString& line); KBiffUidlList getUidlList() const; void close(); @@ -172,7 +172,7 @@ public: * @param user the user name required for authentication * @param pass the password required for authentication */ - bool authenticate(const QString& user, const QString& pass); + bool authenticate(const TQString& user, const TQString& pass); protected: KBiffUidlList uidlList; @@ -185,7 +185,7 @@ protected: * @internal * @brief the APOP challenge from the server */ - QCString chall_apop; + TQCString chall_apop; /** * @internal * @brief does the server support CRAM-MD5 authentication ? @@ -195,7 +195,7 @@ protected: * @internal * @brief the CRAM-MD5 challenge (base64 decoded) */ - QString chall_cram_md5; // the CRAM-MD5 challenge (base64 decoded) + TQString chall_cram_md5; // the CRAM-MD5 challenge (base64 decoded) /** * @internal * @brief does the user want APOP authentication @@ -211,7 +211,7 @@ class KBiffNntp : public KBiffSocket public: virtual ~KBiffNntp(); - bool command(const QString& line); + bool command(const TQString& line); int first() const; int last() const; protected: @@ -262,7 +262,7 @@ typedef enum * @author Kurt Granroth <granroth@kde.org> * @version $Id$ */ -class KBiffMonitor : public QObject +class KBiffMonitor : public TQObject { Q_OBJECT @@ -287,17 +287,17 @@ public: /** * Returns the simpleURL of current mailbox being monitored */ - const QString getMailbox() const { return simpleURL; } + const TQString getMailbox() const { return simpleURL; } /** * Sets or Returns the key of current mailbox being monitored */ - const QString getMailboxKey() const { return key; } + const TQString getMailboxKey() const { return key; } /** * Returns the type of mailbox being monitored */ - const QString getProtocol() const { return protocol; } + const TQString getProtocol() const { return protocol; } /** * Returns <CODE>true</CODE> is KBiffMonitor is currently monitoring * a mailbox. @@ -361,13 +361,13 @@ public slots: /** * Overloaded for convenience */ - void setMailbox(const QString& url); - void setMailboxKey(const QString& k); + void setMailbox(const TQString& url); + void setMailboxKey(const TQString& k); /** * Sets the password for the POP3 and IMAP4 protocols. */ - void setPassword(const QString& password); + void setPassword(const TQString& password); /** * Set the interval between mailbox reads. This is in seconds. @@ -403,7 +403,7 @@ signals: /** * This will get <CODE>emit</CODE>ed when new mail arrives */ - void signal_newMail(const int num_new, const QString& mailbox); + void signal_newMail(const int num_new, const TQString& mailbox); /** * This will get <CODE>emit</CODE>ed when no mail exists @@ -413,7 +413,7 @@ signals: /** * This will get <CODE>emit</CODE>ed when no mail exists */ - void signal_noMail(const QString& mailbox); + void signal_noMail(const TQString& mailbox); /** * This will get <CODE>emit</CODE>ed when the mailbox is read @@ -423,7 +423,7 @@ signals: /** * This will get <CODE>emit</CODE>ed when the mailbox is read */ - void signal_oldMail(const QString& mailbox); + void signal_oldMail(const TQString& mailbox); /** * This will get <CODE>emit</CODE>ed when no connection can be @@ -435,13 +435,13 @@ signals: * This will get <CODE>emit</CODE>ed when no connection can * be established */ - void signal_noConn(const QString& mailbox); + void signal_noConn(const TQString& mailbox); /** * This will get <CODE>emit</CODE>ed everytime mail will be * fetched externally */ - void signal_fetchMail(const QString& fetchClient); + void signal_fetchMail(const TQString& fetchClient); /** * This will get <CODE>emit</CODE>ed everytime the mailbox @@ -454,16 +454,16 @@ signals: * checked. It contains the current mailbox name, state, and number * of new messages */ - void signal_currentStatus(const int, const QString& , const KBiffMailState); + void signal_currentStatus(const int, const TQString& , const KBiffMailState); /** * This will get <CODE>emit</CODE>ed everytime there was an * invalid login or incomplete connection to a remote server. */ - void signal_invalidLogin(const QString& mailbox); + void signal_invalidLogin(const TQString& mailbox); protected: - void timerEvent(QTimerEvent *); + void timerEvent(TQTimerEvent *); protected slots: void checkLocal(); @@ -476,8 +476,8 @@ protected slots: protected: // protected (non-slot) functions - void determineState(unsigned int size, const QDateTime& last_read, - const QDateTime& last_modified); + void determineState(unsigned int size, const TQDateTime& last_read, + const TQDateTime& last_modified); void determineState(unsigned int size); void determineState(KBiffUidlList uidl_list); @@ -498,22 +498,22 @@ private: bool firstRun; // Mailbox stuff - QString key; - QString simpleURL; - QString protocol; - QString mailbox; - QString server; - QString user; - QString password; - QString fetchCommand; + TQString key; + TQString simpleURL; + TQString protocol; + TQString mailbox; + TQString server; + TQString user; + TQString password; + TQString fetchCommand; unsigned short int port; bool preauth; bool keepalive; // New state cache unsigned int new_lastSize; - QDateTime new_lastRead; - QDateTime new_lastModified; + TQDateTime new_lastRead; + TQDateTime new_lastModified; KBiffUidlList new_uidlList; bool b_new_lastSize; bool b_new_lastRead; @@ -522,8 +522,8 @@ private: // State variables KBiffMailState mailState; unsigned int lastSize; - QDateTime lastRead; - QDateTime lastModified; + TQDateTime lastRead; + TQDateTime lastModified; KBiffUidlList uidlList; // Socket protocols |