From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kresources/kolab/shared/kmailconnection.h | 84 +++++++++++++++---------------- 1 file changed, 42 insertions(+), 42 deletions(-) (limited to 'kresources/kolab/shared/kmailconnection.h') diff --git a/kresources/kolab/shared/kmailconnection.h b/kresources/kolab/shared/kmailconnection.h index cbb69a155..16b80bfb0 100644 --- a/kresources/kolab/shared/kmailconnection.h +++ b/kresources/kolab/shared/kmailconnection.h @@ -48,26 +48,26 @@ class ResourceKolabBase; /** This class provides the kmail connectivity for IMAP resources. */ -class KMailConnection : public QObject, public DCOPObject { +class KMailConnection : public TQObject, public DCOPObject { Q_OBJECT K_DCOP // These are the methods called by KMail when the resource changes k_dcop: - bool fromKMailAddIncidence( const QString& type, const QString& resource, - Q_UINT32 sernum, int format, const QString& xml ); - void fromKMailDelIncidence( const QString& type, const QString& resource, - const QString& xml ); - void fromKMailRefresh( const QString& type, const QString& resource ); - void fromKMailAddSubresource( const QString& type, const QString& resource, - const QString& label, bool writable, + bool fromKMailAddIncidence( const TQString& type, const TQString& resource, + Q_UINT32 sernum, int format, const TQString& xml ); + void fromKMailDelIncidence( const TQString& type, const TQString& resource, + const TQString& xml ); + void fromKMailRefresh( const TQString& type, const TQString& resource ); + void fromKMailAddSubresource( const TQString& type, const TQString& resource, + const TQString& label, bool writable, bool alarmRelevant ); - void fromKMailDelSubresource( const QString& type, const QString& resource ); - void fromKMailAsyncLoadResult( const QMap& map, const QString& type, - const QString& folder ); + void fromKMailDelSubresource( const TQString& type, const TQString& resource ); + void fromKMailAsyncLoadResult( const TQMap& map, const TQString& type, + const TQString& folder ); public: - KMailConnection( ResourceKolabBase* resource, const QCString& objId ); + KMailConnection( ResourceKolabBase* resource, const TQCString& objId ); virtual ~KMailConnection(); /** @@ -76,47 +76,47 @@ public: bool connectToKMail(); // Call the DCOP methods - bool kmailSubresources( QValueList& lst, - const QString& contentsType ); + bool kmailSubresources( TQValueList& lst, + const TQString& contentsType ); bool kmailIncidencesCount( int& count, - const QString& mimetype, - const QString& resource ); - bool kmailIncidences( QMap& lst, const QString& mimetype, - const QString& resource, + const TQString& mimetype, + const TQString& resource ); + bool kmailIncidences( TQMap& lst, const TQString& mimetype, + const TQString& resource, int startIndex, int nbMessages ); - bool kmailGetAttachment( KURL& url, const QString& resource, Q_UINT32 sernum, - const QString& filename ); - bool kmailAttachmentMimetype( QString &mimeType, const QString &resource, - Q_UINT32 sernum, const QString &filename ); - bool kmailListAttachments( QStringList &list, const QString &resource, + bool kmailGetAttachment( KURL& url, const TQString& resource, Q_UINT32 sernum, + const TQString& filename ); + bool kmailAttachmentMimetype( TQString &mimeType, const TQString &resource, + Q_UINT32 sernum, const TQString &filename ); + bool kmailListAttachments( TQStringList &list, const TQString &resource, Q_UINT32 sernum ); - bool kmailDeleteIncidence( const QString& resource, Q_UINT32 sernum ); - bool kmailUpdate( const QString& resource, + bool kmailDeleteIncidence( const TQString& resource, Q_UINT32 sernum ); + bool kmailUpdate( const TQString& resource, Q_UINT32& sernum, - const QString& subject, - const QString& plainTextBody, - const QMap& customHeaders, - const QStringList& attachmentURLs, - const QStringList& attachmentMimetypes, - const QStringList& attachmentNames, - const QStringList& deletedAttachments ); - - bool kmailStorageFormat( KMailICalIface::StorageFormat& type, const QString& folder); - - bool kmailTriggerSync( const QString& contentsType ); - bool kmailAddSubresource( const QString& resource, - const QString& parent, - const QString& contentsType ); - bool kmailRemoveSubresource( const QString& resource ); + const TQString& subject, + const TQString& plainTextBody, + const TQMap& customHeaders, + const TQStringList& attachmentURLs, + const TQStringList& attachmentMimetypes, + const TQStringList& attachmentNames, + const TQStringList& deletedAttachments ); + + bool kmailStorageFormat( KMailICalIface::StorageFormat& type, const TQString& folder); + + bool kmailTriggerSync( const TQString& contentsType ); + bool kmailAddSubresource( const TQString& resource, + const TQString& parent, + const TQString& contentsType ); + bool kmailRemoveSubresource( const TQString& resource ); private slots: - virtual void unregisteredFromDCOP( const QCString& ); + virtual void unregisteredFromDCOP( const TQCString& ); private: /** Connect a signal from KMail to a local slot. */ - bool connectKMailSignal( const QCString&, const QCString& ); + bool connectKMailSignal( const TQCString&, const TQCString& ); ResourceKolabBase* mResource; DCOPClient* mDCOPClient; -- cgit v1.2.1