summaryrefslogtreecommitdiffstats
path: root/kioslaves/imap4/imapcommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'kioslaves/imap4/imapcommand.h')
-rw-r--r--kioslaves/imap4/imapcommand.h140
1 files changed, 70 insertions, 70 deletions
diff --git a/kioslaves/imap4/imapcommand.h b/kioslaves/imap4/imapcommand.h
index f06c5af8..f91b9329 100644
--- a/kioslaves/imap4/imapcommand.h
+++ b/kioslaves/imap4/imapcommand.h
@@ -23,9 +23,9 @@
*
*********************************************************************/
-#include <qstringlist.h>
-#include <qstring.h>
-#include <qmap.h>
+#include <tqstringlist.h>
+#include <tqstring.h>
+#include <tqmap.h>
/**
* @brief encapulate a IMAP command
@@ -43,13 +43,13 @@ public:
*/
imapCommand ();
/**
- * @fn imapCommand (const QString & command, const QString & parameter);
+ * @fn imapCommand (const TQString & command, const TQString & parameter);
* @brief Constructor
* @param command Imap command
* @param parameter Parameters to the command
* @return none
*/
- imapCommand (const QString & command, const QString & parameter);
+ imapCommand (const TQString & command, const TQString & parameter);
/**
* @fn bool isComplete ();
* @brief is it complete?
@@ -57,43 +57,43 @@ public:
*/
bool isComplete ();
/**
- * @fn const QString & result ();
+ * @fn const TQString & result ();
* @brief get the result of the command
* @return The result, i.e. first word of the result line, like OK
*/
- const QString & result ();
+ const TQString & result ();
/**
- * @fn const QString & resultInfo ();
+ * @fn const TQString & resultInfo ();
* @brief get information about the result
* @return Information about the result, i.e. the rest of the result line
*/
- const QString & resultInfo ();
+ const TQString & resultInfo ();
/**
- * @fn const QString & parameter ();
+ * @fn const TQString & parameter ();
* @brief get the parameter
* @return the parameter
*/
- const QString & parameter ();
+ const TQString & parameter ();
/**
- * @fn const QString & command ();
+ * @fn const TQString & command ();
* @brief get the command
* @return the command
*/
- const QString & command ();
+ const TQString & command ();
/**
- * @fn const QString & id ();
+ * @fn const TQString & id ();
* @brief get the id
* @return the id
*/
- const QString & id ();
+ const TQString & id ();
/**
- * @fn void setId (const QString &);
+ * @fn void setId (const TQString &);
* @brief set the id
* @param id the id used by the command
* @return none
*/
- void setId (const QString &);
+ void setId (const TQString &);
/**
* @fn void setComplete ();
* @brief set the completed state
@@ -101,42 +101,42 @@ public:
*/
void setComplete ();
/**
- * @fn void setResult (const QString &);
+ * @fn void setResult (const TQString &);
* @brief set the completed state
* @param result the command result
* @return none
*/
- void setResult (const QString &);
+ void setResult (const TQString &);
/**
- * @fn void setResultInfo (const QString &);
+ * @fn void setResultInfo (const TQString &);
* @brief set the completed state
* @param result the command result information
* @return none
*/
- void setResultInfo (const QString &);
+ void setResultInfo (const TQString &);
/**
- * @fn void setCommand (const QString &);
+ * @fn void setCommand (const TQString &);
* @brief set the command
* @param command the imap command
* @return none
*/
- void setCommand (const QString &);
+ void setCommand (const TQString &);
/**
- * @fn void setParameter (const QString &);
+ * @fn void setParameter (const TQString &);
* @brief set the command parameter(s)
* @param parameter the comand parameter(s)
* @return none
*/
- void setParameter (const QString &);
+ void setParameter (const TQString &);
/**
- * @fn const QString getStr ();
+ * @fn const TQString getStr ();
* @brief returns the data to send to the server
* The function returns the complete data to be sent to
* the server (\<id\> \<command\> [\<parameter\>])
* @return the data to send to the server
* @todo possibly rename function to be clear of it's purpose
*/
- const QString getStr ();
+ const TQString getStr ();
/**
* @fn static imapCommand *clientNoop ();
@@ -145,7 +145,7 @@ public:
*/
static imapCommand *clientNoop ();
/**
- * @fn static imapCommand *clientFetch (ulong uid, const QString & fields, bool nouid = false);
+ * @fn static imapCommand *clientFetch (ulong uid, const TQString & fields, bool nouid = false);
* @brief Create a FETCH command
* @param uid Uid of the message to fetch
* @param fields options to pass to the server
@@ -153,10 +153,10 @@ public:
* @return a FETCH imapCommand
* Fetch a single uid
*/
- static imapCommand *clientFetch (ulong uid, const QString & fields,
+ static imapCommand *clientFetch (ulong uid, const TQString & fields,
bool nouid = false);
/**
- * @fn static imapCommand *clientFetch (ulong fromUid, ulong toUid, const QString & fields, bool nouid = false);
+ * @fn static imapCommand *clientFetch (ulong fromUid, ulong toUid, const TQString & fields, bool nouid = false);
* @brief Create a FETCH command
* @param fromUid start uid of the messages to fetch
* @param toUid last uid of the messages to fetch
@@ -166,10 +166,10 @@ public:
* Fetch a range of uids
*/
static imapCommand *clientFetch (ulong fromUid, ulong toUid,
- const QString & fields, bool nouid =
+ const TQString & fields, bool nouid =
false);
/**
- * @fn static imapCommand *clientFetch (const QString & sequence, const QString & fields, bool nouid = false);
+ * @fn static imapCommand *clientFetch (const TQString & sequence, const TQString & fields, bool nouid = false);
* @brief Create a FETCH command
* @param sequence a IMAP FETCH sequence string
* @param fields options to pass to the server
@@ -178,27 +178,27 @@ public:
* Fetch a range of uids. The other clientFetch functions are just
* wrappers around this function.
*/
- static imapCommand *clientFetch (const QString & sequence,
- const QString & fields, bool nouid =
+ static imapCommand *clientFetch (const TQString & sequence,
+ const TQString & fields, bool nouid =
false);
/**
- * @fn static imapCommand *clientList (const QString & reference, const QString & path, bool lsub = false);
+ * @fn static imapCommand *clientList (const TQString & reference, const TQString & path, bool lsub = false);
* @brief Create a LIST command
* @param reference
* @param path The path to list
* @param lsub Perform a LIST or a LSUB command
* @return a LIST imapCommand
*/
- static imapCommand *clientList (const QString & reference,
- const QString & path, bool lsub = false);
+ static imapCommand *clientList (const TQString & reference,
+ const TQString & path, bool lsub = false);
/**
- * @fn static imapCommand *clientSelect (const QString & path, bool examine = false);
+ * @fn static imapCommand *clientSelect (const TQString & path, bool examine = false);
* @brief Create a SELECT command
* @param path The path to select
* @param lsub Perform a SELECT or a EXAMINE command
* @return a SELECT imapCommand
*/
- static imapCommand *clientSelect (const QString & path, bool examine =
+ static imapCommand *clientSelect (const TQString & path, bool examine =
false);
/**
* @fn static imapCommand *clientClose();
@@ -212,8 +212,8 @@ public:
* @param parameters
* @return a STATUS imapCommand
*/
- static imapCommand *clientStatus (const QString & path,
- const QString & parameters);
+ static imapCommand *clientStatus (const TQString & path,
+ const TQString & parameters);
/**
* @brief Create a COPY command
* @param box
@@ -221,8 +221,8 @@ public:
* @param nouid Perform a COPY or UID COPY command
* @return a COPY imapCommand
*/
- static imapCommand *clientCopy (const QString & box,
- const QString & sequence, bool nouid =
+ static imapCommand *clientCopy (const TQString & box,
+ const TQString & sequence, bool nouid =
false);
/**
* @brief Create a APPEND command
@@ -231,32 +231,32 @@ public:
* @param size
* @return a APPEND imapCommand
*/
- static imapCommand *clientAppend (const QString & box,
- const QString & flags, ulong size);
+ static imapCommand *clientAppend (const TQString & box,
+ const TQString & flags, ulong size);
/**
* @brief Create a CREATE command
* @param path
* @return a CREATE imapCommand
*/
- static imapCommand *clientCreate (const QString & path);
+ static imapCommand *clientCreate (const TQString & path);
/**
* @brief Create a DELETE command
* @param path
* @return a DELETE imapCommand
*/
- static imapCommand *clientDelete (const QString & path);
+ static imapCommand *clientDelete (const TQString & path);
/**
* @brief Create a SUBSCRIBE command
* @param path
* @return a SUBSCRIBE imapCommand
*/
- static imapCommand *clientSubscribe (const QString & path);
+ static imapCommand *clientSubscribe (const TQString & path);
/**
* @brief Create a UNSUBSCRIBE command
* @param path
* @return a UNSUBSCRIBE imapCommand
*/
- static imapCommand *clientUnsubscribe (const QString & path);
+ static imapCommand *clientUnsubscribe (const TQString & path);
/**
* @brief Create a EXPUNGE command
* @return a EXPUNGE imapCommand
@@ -268,15 +268,15 @@ public:
* @param dest Destination
* @return a RENAME imapCommand
*/
- static imapCommand *clientRename (const QString & src,
- const QString & dest);
+ static imapCommand *clientRename (const TQString & src,
+ const TQString & dest);
/**
* @brief Create a SEARCH command
* @param search
* @param nouid Perform a UID SEARCH or a SEARCH command
* @return a SEARCH imapCommand
*/
- static imapCommand *clientSearch (const QString & search, bool nouid =
+ static imapCommand *clientSearch (const TQString & search, bool nouid =
false);
/**
* @brief Create a STORE command
@@ -286,8 +286,8 @@ public:
* @param nouid Perform a UID STORE or a STORE command
* @return a STORE imapCommand
*/
- static imapCommand *clientStore (const QString & set, const QString & item,
- const QString & data, bool nouid = false);
+ static imapCommand *clientStore (const TQString & set, const TQString & item,
+ const TQString & data, bool nouid = false);
/**
* @brief Create a LOGOUT command
* @return a LOGOUT imapCommand
@@ -307,7 +307,7 @@ public:
* @param acl access right modification (starting with optional +/-)
* @return a SETACL imapCommand
*/
- static imapCommand *clientSetACL ( const QString& box, const QString& user, const QString& acl );
+ static imapCommand *clientSetACL ( const TQString& box, const TQString& user, const TQString& acl );
/**
* @brief Create a DELETEACL command
@@ -315,14 +315,14 @@ public:
* @param user authentication identifier
* @return a DELETEACL imapCommand
*/
- static imapCommand *clientDeleteACL ( const QString& box, const QString& user );
+ static imapCommand *clientDeleteACL ( const TQString& box, const TQString& user );
/**
* @brief Create a GETACL command
* @param box mailbox name
* @return a GETACL imapCommand
*/
- static imapCommand *clientGetACL ( const QString& box );
+ static imapCommand *clientGetACL ( const TQString& box );
/**
* @brief Create a LISTRIGHTS command
@@ -330,14 +330,14 @@ public:
* @param user authentication identifier
* @return a LISTRIGHTS imapCommand
*/
- static imapCommand *clientListRights ( const QString& box, const QString& user );
+ static imapCommand *clientListRights ( const TQString& box, const TQString& user );
/**
* @brief Create a MYRIGHTS command
* @param box mailbox name
* @return a MYRIGHTS imapCommand
*/
- static imapCommand *clientMyRights ( const QString& box );
+ static imapCommand *clientMyRights ( const TQString& box );
//////////// ANNOTATEMORE support /////////////
/**
@@ -347,7 +347,7 @@ public:
* @param attributes map of attribute names + values
* @return a SETANNOTATION imapCommand
*/
- static imapCommand *clientSetAnnotation ( const QString& box, const QString& entry, const QMap<QString, QString>& attributes );
+ static imapCommand *clientSetAnnotation ( const TQString& box, const TQString& entry, const TQMap<TQString, TQString>& attributes );
/**
* @brief Create a GETANNOTATION command
@@ -356,7 +356,7 @@ public:
* @param attributeNames attribute specifier
* @return a GETANNOTATION imapCommand
*/
- static imapCommand *clientGetAnnotation ( const QString& box, const QString& entry, const QStringList& attributeNames );
+ static imapCommand *clientGetAnnotation ( const TQString& box, const TQString& entry, const TQStringList& attributeNames );
/**
* @brief Create a NAMESPACE command
@@ -365,11 +365,11 @@ public:
static imapCommand *clientNamespace ();
/**
- * @brief Create a GETQUOTAROOT command
+ * @brief Create a GEQUOTAROOT command
* @param box mailbox name
- * @return a GETQUOTAROOT imapCommand
+ * @return a GEQUOTAROOT imapCommand
*/
- static imapCommand *clientGetQuotaroot ( const QString& box );
+ static imapCommand *clientGetQuotaroot ( const TQString& box );
/**
* @brief Create a custom command
@@ -377,15 +377,15 @@ public:
* @param arguments The custom arguments
* @return a custom imapCommand
*/
- static imapCommand *clientCustom ( const QString& command, const QString& arguments );
+ static imapCommand *clientCustom ( const TQString& command, const TQString& arguments );
protected:
- QString aCommand;
- QString mId;
+ TQString aCommand;
+ TQString mId;
bool mComplete;
- QString aParameter;
- QString mResult;
- QString mResultInfo;
+ TQString aParameter;
+ TQString mResult;
+ TQString mResultInfo;
private:
imapCommand & operator = (const imapCommand &);