diff options
Diffstat (limited to 'kmail/kmailIface.h')
-rw-r--r-- | kmail/kmailIface.h | 128 |
1 files changed, 64 insertions, 64 deletions
diff --git a/kmail/kmailIface.h b/kmail/kmailIface.h index 1a4a04f23..fd47f0485 100644 --- a/kmail/kmailIface.h +++ b/kmail/kmailIface.h @@ -5,7 +5,7 @@ #include <dcopobject.h> #include <dcopref.h> #include <kurl.h> -#include <qstringlist.h> +#include <tqstringlist.h> /** checkMail wont show reader but will check mail. use openReader to show if you give a filename to openReader it will show mbox or @@ -20,53 +20,53 @@ class KMailIface : virtual public DCOPObject k_dcop: virtual void checkMail() = 0; - virtual QStringList accounts() = 0; - virtual void checkAccount(const QString &account) = 0; + virtual TQStringList accounts() = 0; + virtual void checkAccount(const TQString &account) = 0; virtual void openReader() = 0; - virtual int openComposer(const QString &to, const QString &cc, - const QString &bcc, const QString &subject, - const QString &body, int hidden, + virtual int openComposer(const TQString &to, const TQString &cc, + const TQString &bcc, const TQString &subject, + const TQString &body, int hidden, const KURL &messageFile) = 0; - virtual int openComposer(const QString &to, const QString &cc, - const QString &bcc, const QString &subject, - const QString &body, int hidden, + virtual int openComposer(const TQString &to, const TQString &cc, + const TQString &bcc, const TQString &subject, + const TQString &body, int hidden, const KURL &messageFile, const KURL &attachURL) = 0; - virtual int openComposer(const QString &to, const QString &cc, - const QString &bcc, const QString &subject, - const QString &body, int hidden, + virtual int openComposer(const TQString &to, const TQString &cc, + const TQString &bcc, const TQString &subject, + const TQString &body, int hidden, const KURL &messageFile, const KURL::List &attachURLs) = 0; - virtual int openComposer (const QString &to, const QString &cc, - const QString &bcc, const QString &subject, - const QString &body, int hidden, - const QString &attachName, - const QCString &attachCte, - const QCString &attachData, - const QCString &attachType, - const QCString &attachSubType, - const QCString &attachParamAttr, - const QString &attachParamValue, - const QCString &attachContDisp) = 0; - virtual int openComposer (const QString &to, const QString &cc, - const QString &bcc, const QString &subject, - const QString &body, int hidden, - const QString &attachName, - const QCString &attachCte, - const QCString &attachData, - const QCString &attachType, - const QCString &attachSubType, - const QCString &attachParamAttr, - const QString &attachParamValue, - const QCString &attachContDisp, - const QCString &attachCharset) = 0; + virtual int openComposer (const TQString &to, const TQString &cc, + const TQString &bcc, const TQString &subject, + const TQString &body, int hidden, + const TQString &attachName, + const TQCString &attachCte, + const TQCString &attachData, + const TQCString &attachType, + const TQCString &attachSubType, + const TQCString &attachParamAttr, + const TQString &attachParamValue, + const TQCString &attachContDisp) = 0; + virtual int openComposer (const TQString &to, const TQString &cc, + const TQString &bcc, const TQString &subject, + const TQString &body, int hidden, + const TQString &attachName, + const TQCString &attachCte, + const TQCString &attachData, + const TQCString &attachType, + const TQCString &attachSubType, + const TQCString &attachParamAttr, + const TQString &attachParamValue, + const TQCString &attachContDisp, + const TQCString &attachCharset) = 0; /** Open composer and return reference to DCOP interface of composer window. If hidden is true, the window will not be shown. If you use that option, it's your responsibility to call the send() function of the composer in order to actually send the mail. */ - virtual DCOPRef openComposer(const QString &to, const QString &cc, - const QString &bcc, const QString &subject, - const QString &body, bool hidden) = 0; + virtual DCOPRef openComposer(const TQString &to, const TQString &cc, + const TQString &bcc, const TQString &subject, + const TQString &body, bool hidden) = 0; /** Send a certificate request to the CA specified in \a to. The @@ -75,8 +75,8 @@ k_dcop: This method will set content type encoding, mime types, etc. as per the MailTT specification. */ - virtual int sendCertificate( const QString& to, - const QByteArray& certData ) = 0; + virtual int sendCertificate( const TQString& to, + const TQByteArray& certData ) = 0; virtual void compactAllFolders() = 0; @@ -96,16 +96,16 @@ k_dcop: =-3, Can't allocate memory. =-4, Message already exists in folder. */ - virtual int dcopAddMessage(const QString & foldername, - const QString & messagefile, - const QString & MsgStatusFlags = QString()) = 0; - virtual int dcopAddMessage(const QString & foldername, + virtual int dcopAddMessage(const TQString & foldername, + const TQString & messagefile, + const TQString & MsgStatusFlags = TQString()) = 0; + virtual int dcopAddMessage(const TQString & foldername, const KURL & messagefile, - const QString & MsgStatusFlags = QString()) = 0; + const TQString & MsgStatusFlags = TQString()) = 0; - virtual QStringList folderList() const =0; - virtual DCOPRef getFolder( const QString& vpath ) =0; - virtual void selectFolder( QString folder ) =0; + virtual TQStringList folderList() const =0; + virtual DCOPRef getFolder( const TQString& vpath ) =0; + virtual void selectFolder( TQString folder ) =0; virtual bool canQueryClose() =0; /** @@ -113,7 +113,7 @@ k_dcop: * @param transport the name of the transport as defined in the sending accounts configuration. */ - virtual void setDefaultTransport( const QString & transport ) =0; + virtual void setDefaultTransport( const TQString & transport ) =0; virtual int timeOfLastMessageCountChange() const =0; @@ -141,7 +141,7 @@ k_dcop: k_dcop_signals: void unreadCountChanged(); - void unreadCountChanged( const QString& folderURL, int numUnread ); + void unreadCountChanged( const TQString& folderURL, int numUnread ); k_dcop_hidden: /** DCOP call which is used by the Kontact plugin to create a new message. @@ -149,9 +149,9 @@ k_dcop_hidden: * @TODO Rename to newMessageInternal() * @TODO Merge this and the various openComposer methods for better code reuse */ - virtual DCOPRef newMessage(const QString &to, - const QString &cc, - const QString& bcc, + virtual DCOPRef newMessage(const TQString &to, + const TQString &cc, + const TQString& bcc, bool hidden, bool useFolderId, const KURL &messageFile, @@ -162,7 +162,7 @@ k_dcop_hidden: @param messageId this parameter is ignored. */ /* @TODO Get rid of the messageId parameter. */ - virtual bool showMail( Q_UINT32 serialNumber, QString messageId ) = 0; + virtual bool showMail( Q_UINT32 serialNumber, TQString messageId ) = 0; /** * DCOP-enabled for KMailUniqueAppHandler in the kontact plugin @@ -179,9 +179,9 @@ k_dcop_hidden: * * DCOP-enabled for use in kaddressbook drop */ - virtual QString getFrom( Q_UINT32 serialNumber ) = 0; - virtual QString debugScheduler() = 0; - virtual QString debugSernum( Q_UINT32 serialNumber ) = 0; + virtual TQString getFrom( Q_UINT32 serialNumber ) = 0; + virtual TQString debugScheduler() = 0; + virtual TQString debugSernum( Q_UINT32 serialNumber ) = 0; /** Does essentially the same as dcopAddMessage except that it doesn't reject duplicate messages. @@ -201,19 +201,19 @@ k_dcop_hidden: =-3, Can't allocate memory. =-4, Message already exists in folder. */ - virtual int dcopAddMessage_fastImport(const QString & foldername, - const QString & messagefile, - const QString & MsgStatusFlags = QString()) = 0; - virtual int dcopAddMessage_fastImport(const QString & foldername, + virtual int dcopAddMessage_fastImport(const TQString & foldername, + const TQString & messagefile, + const TQString & MsgStatusFlags = TQString()) = 0; + virtual int dcopAddMessage_fastImport(const TQString & foldername, const KURL & messagefile, - const QString & MsgStatusFlags = QString()) = 0; + const TQString & MsgStatusFlags = TQString()) = 0; /** Clears the list of added message ids which is used to filter out duplicates. */ virtual void dcopResetAddMessage() = 0; - virtual void loadProfile( const QString& path ) = 0; - virtual void saveToProfile( const QString& path ) const = 0; + virtual void loadProfile( const TQString& path ) = 0; + virtual void saveToProfile( const TQString& path ) const = 0; }; #endif |