diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kmail/acljobs.h | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/acljobs.h')
-rw-r--r-- | kmail/acljobs.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kmail/acljobs.h b/kmail/acljobs.h index 0d4a731dc..7abc8065b 100644 --- a/kmail/acljobs.h +++ b/kmail/acljobs.h @@ -33,22 +33,22 @@ #define KMACLJOBS_H #include <kio/job.h> -#include <qvaluevector.h> +#include <tqvaluevector.h> namespace KMail { /// One entry in the ACL list: user and permissions struct ACLListEntry { ACLListEntry() {} // for QValueVector - ACLListEntry( const QString& u, const QString& irl, int p ) + ACLListEntry( const TQString& u, const TQString& irl, int p ) : userId( u ), internalRightsList( irl ), permissions( p ), changed( false ) {} - QString userId; - QString internalRightsList; ///< protocol-dependent string (e.g. IMAP rights list) + TQString userId; + TQString internalRightsList; ///< protocol-dependent string (e.g. IMAP rights list) int permissions; ///< based on the ACLPermissions enum bool changed; ///< special flag for KMFolderCachedImap }; - typedef QValueVector<ACLListEntry> ACLList; + typedef TQValueVector<ACLListEntry> ACLList; /** * This namespace contains functions that return jobs for ACL operations. @@ -78,11 +78,11 @@ namespace ACLJobs { All = List | Read | WriteFlags | Insert | Post | Create | Delete | Administer | WriteSeenFlag }; /// Set the permissions for a given user on a given url - KIO::SimpleJob* setACL( KIO::Slave* slave, const KURL& url, const QString& user, unsigned int permissions ); + KIO::SimpleJob* setACL( KIO::Slave* slave, const KURL& url, const TQString& user, unsigned int permissions ); class DeleteACLJob; /// Delete the permissions for a given user on a given url - DeleteACLJob* deleteACL( KIO::Slave* slave, const KURL& url, const QString& user ); + DeleteACLJob* deleteACL( KIO::Slave* slave, const KURL& url, const TQString& user ); class GetACLJob; /// List all ACLs for a given url @@ -101,13 +101,13 @@ namespace ACLJobs { { Q_OBJECT public: - GetACLJob( const KURL& url, const QByteArray &packedArgs, + GetACLJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo ); const ACLList& entries() const { return m_entries; } protected slots: - void slotInfoMessage( KIO::Job*, const QString& ); + void slotInfoMessage( KIO::Job*, const TQString& ); private: ACLList m_entries; }; @@ -117,12 +117,12 @@ namespace ACLJobs { { Q_OBJECT public: - GetUserRightsJob( const KURL& url, const QByteArray &packedArgs, + GetUserRightsJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo ); unsigned int permissions() const { return m_permissions; } protected slots: - void slotInfoMessage( KIO::Job*, const QString& ); + void slotInfoMessage( KIO::Job*, const TQString& ); private: unsigned int m_permissions; }; @@ -133,14 +133,14 @@ namespace ACLJobs { { Q_OBJECT public: - DeleteACLJob( const KURL& url, const QString& userId, - const QByteArray &packedArgs, + DeleteACLJob( const KURL& url, const TQString& userId, + const TQByteArray &packedArgs, bool showProgressInfo ); - QString userId() const { return mUserId; } + TQString userId() const { return mUserId; } private: - QString mUserId; + TQString mUserId; }; /// Set and delete a list of permissions for different users on a given url @@ -153,7 +153,7 @@ namespace ACLJobs { signals: // Emitted when a given user's permissions were successfully changed. // This allows the caller to keep track of what exactly was done (and handle errors better) - void aclChanged( const QString& userId, int permissions ); + void aclChanged( const TQString& userId, int permissions ); protected slots: virtual void slotStart(); @@ -168,7 +168,7 @@ namespace ACLJobs { #ifndef NDEBUG - QString permissionsToString( unsigned int permissions ); + TQString permissionsToString( unsigned int permissions ); #endif } |