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/scalix/shared/resourcescalixbase.h | 94 +++++++++++++-------------- 1 file changed, 47 insertions(+), 47 deletions(-) (limited to 'kresources/scalix/shared/resourcescalixbase.h') diff --git a/kresources/scalix/shared/resourcescalixbase.h b/kresources/scalix/shared/resourcescalixbase.h index 3c32c1df..f1aefc19 100644 --- a/kresources/scalix/shared/resourcescalixbase.h +++ b/kresources/scalix/shared/resourcescalixbase.h @@ -33,9 +33,9 @@ #ifndef RESOURCESCALIXBASE_H #define RESOURCESCALIXBASE_H -#include -#include -#include +#include +#include +#include #include "subresource.h" #include @@ -72,30 +72,30 @@ class KMailConnection; */ class ResourceScalixBase { public: - ResourceScalixBase( const QCString& objId ); + ResourceScalixBase( const TQCString& objId ); virtual ~ResourceScalixBase(); // These are the methods called by KMail when the resource changes - virtual bool fromKMailAddIncidence( const QString& type, - const QString& resource, + virtual bool fromKMailAddIncidence( const TQString& type, + const TQString& resource, Q_UINT32 sernum, int format, - const QString& data ) = 0; - virtual void fromKMailDelIncidence( const QString& type, - const QString& resource, - const QString& xml ) = 0; - virtual void fromKMailRefresh( const QString& type, - const QString& resource ) = 0; - virtual void fromKMailAddSubresource( const QString& type, - const QString& resource, - const QString& label, + const TQString& data ) = 0; + virtual void fromKMailDelIncidence( const TQString& type, + const TQString& resource, + const TQString& xml ) = 0; + virtual void fromKMailRefresh( const TQString& type, + const TQString& resource ) = 0; + virtual void fromKMailAddSubresource( const TQString& type, + const TQString& resource, + const TQString& label, bool writable ) = 0; - virtual void fromKMailDelSubresource( const QString& type, - const QString& resource ) = 0; + virtual void fromKMailDelSubresource( const TQString& type, + const TQString& resource ) = 0; - virtual void fromKMailAsyncLoadResult( const QMap& map, - const QString& type, - const QString& folder ) = 0; + virtual void fromKMailAsyncLoadResult( const TQMap& map, + const TQString& type, + const TQString& folder ) = 0; protected: /// Do the connection to KMail. bool connectToKMail() const; @@ -103,58 +103,58 @@ protected: // These are the KMail dcop function connections. The docs here say // "Get", which here means that the first argument is the return arg - /// List all folders with a certain contentsType. Returns a QMap with + /// List all folders with a certain contentsType. Returns a TQMap with /// resourcename/writable pairs - bool kmailSubresources( QValueList& lst, - const QString& contentsType ) const; + bool kmailSubresources( TQValueList& lst, + const TQString& contentsType ) const; /// Get the number of messages in this folder. /// Used to iterate over kmailIncidences by chunks - bool kmailIncidencesCount( int& count, const QString& mimetype, - const QString& resource ) const; + bool kmailIncidencesCount( int& count, const TQString& mimetype, + const TQString& resource ) const; /// Get the mimetype attachments from a chunk of messages from this folder. - /// Returns a QMap with serialNumber/attachment pairs. - bool kmailIncidences( QMap& lst, const QString& mimetype, - const QString& resource, + /// Returns a TQMap with serialNumber/attachment pairs. + bool kmailIncidences( TQMap& lst, const TQString& mimetype, + const TQString& resource, int startIndex, int nbMessages ) const; - bool kmailTriggerSync( const QString& contentType ) const; + bool kmailTriggerSync( const TQString& contentType ) const; public: // for Contact /// Get an attachment from a mail. Returns a URL to it. This can /// be called by the resource after obtaining the incidence. /// The resource must delete the temp file. - bool kmailGetAttachment( KURL& url, const QString& resource, + bool kmailGetAttachment( KURL& url, const TQString& resource, Q_UINT32 sernum, - const QString& filename ) const; + const TQString& filename ) const; protected: /// Delete an incidence. - bool kmailDeleteIncidence( const QString& resource, Q_UINT32 sernum ); + bool kmailDeleteIncidence( const TQString& resource, Q_UINT32 sernum ); - KMailICalIface::StorageFormat kmailStorageFormat( const QString& folder ) const; + KMailICalIface::StorageFormat kmailStorageFormat( const TQString& folder ) const; - typedef QMap CustomHeaderMap; + typedef TQMap CustomHeaderMap; /// Update an incidence. The list of attachments are URLs. /// The parameter sernum is updated with the right KMail serial number - bool kmailUpdate( const QString& resource, Q_UINT32& sernum, - const QString& xml, - const QString& mimetype, - const QString& subject, + bool kmailUpdate( const TQString& resource, Q_UINT32& sernum, + const TQString& xml, + const TQString& mimetype, + const TQString& subject, const CustomHeaderMap& customHeaders = CustomHeaderMap(), - const QStringList& attachmentURLs = QStringList(), - const QStringList& attachmentMimetypes = QStringList(), - const QStringList& attachmentNames = QStringList(), - const QStringList& deletedAttachments = QStringList() ); + const TQStringList& attachmentURLs = TQStringList(), + const TQStringList& attachmentMimetypes = TQStringList(), + const TQStringList& attachmentNames = TQStringList(), + const TQStringList& deletedAttachments = TQStringList() ); /// Get the full path of the config file. - QString configFile( const QString& type ) const; + TQString configFile( const TQString& type ) const; /// If only one of these is writable, return that. Otherwise return null. - QString findWritableResource( const ResourceMap& resources ); + TQString findWritableResource( const ResourceMap& resources ); bool mSilent; @@ -167,9 +167,9 @@ protected: /// This is used to distinguish operations triggered by the user, /// from operations triggered by KMail - QStringList mUidsPendingAdding; - QStringList mUidsPendingDeletion; - QStringList mUidsPendingUpdate; + TQStringList mUidsPendingAdding; + TQStringList mUidsPendingDeletion; + TQStringList mUidsPendingUpdate; private: mutable KMailConnection* mConnection; -- cgit v1.2.3