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 /libkdepim/progressmanager.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 'libkdepim/progressmanager.h')
-rw-r--r-- | libkdepim/progressmanager.h | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/libkdepim/progressmanager.h b/libkdepim/progressmanager.h index 977aa5a14..b4233f8df 100644 --- a/libkdepim/progressmanager.h +++ b/libkdepim/progressmanager.h @@ -24,9 +24,9 @@ #ifndef __KPIM_PROGRESSMANAGER_H__ #define __KPIM_PROGRESSMANAGER_H__ -#include <qobject.h> -#include <qdict.h> -#include <qstring.h> +#include <tqobject.h> +#include <tqdict.h> +#include <tqstring.h> #include <kdepimmacros.h> @@ -34,13 +34,13 @@ namespace KPIM { class ProgressItem; class ProgressManager; -typedef QMap<ProgressItem*, bool> ProgressItemMap; +typedef TQMap<ProgressItem*, bool> ProgressItemMap; class KDE_EXPORT ProgressItem : public QObject { Q_OBJECT friend class ProgressManager; - friend class QDict< ProgressItem >; // so it can be deleted from dicts + friend class TQDict< ProgressItem >; // so it can be deleted from dicts public: @@ -48,7 +48,7 @@ class KDE_EXPORT ProgressItem : public QObject * @return The id string which uniquely identifies the operation * represented by this item. */ - const QString& id() const { return mId; } + const TQString& id() const { return mId; } /** * @return The parent item of this one, if there is one. @@ -58,24 +58,24 @@ class KDE_EXPORT ProgressItem : public QObject /** * @return The user visible string to be used to represent this item. */ - const QString& label() const { return mLabel; } + const TQString& label() const { return mLabel; } /** * @param v Set the user visible string identifying this item. @p v will be interpreted as rich text, so it might have to be escaped. */ - void setLabel( const QString& v ); + void setLabel( const TQString& v ); /** * @return The string to be used for showing this item's current status. */ - const QString& status() const { return mStatus; } + const TQString& status() const { return mStatus; } /** * Set the string to be used for showing this item's current status. * @p v will be interpreted as rich text, so it might have to be escaped. * @param v The status string. */ - void setStatus( const QString& v ); + void setStatus( const TQString& v ); /** * @return Whether this item can be cancelled. @@ -119,7 +119,7 @@ class KDE_EXPORT ProgressItem : public QObject * Reset the progress value of this item to 0 and the status string to * the empty string. */ - void reset() { setProgress( 0 ); setStatus( QString::null ); mCompleted = 0; } + void reset() { setProgress( 0 ); setStatus( TQString::null ); mCompleted = 0; } void cancel(); @@ -176,14 +176,14 @@ signals: * @param The updated item. * @param The new message. */ - void progressItemStatus( KPIM::ProgressItem*, const QString& ); + void progressItemStatus( KPIM::ProgressItem*, const TQString& ); /** * Emitted when the label of an item changed. Should be used by * progress dialogs to update the label of an item. * @param The updated item. * @param The new label. */ - void progressItemLabel( KPIM::ProgressItem*, const QString& ); + void progressItemLabel( KPIM::ProgressItem*, const TQString& ); /** * Emitted when the crypto status of an item changed. Should be used by * progress dialogs to update the crypto indicator of an item. @@ -196,18 +196,18 @@ signals: protected: /* Only to be used by our good friend the ProgressManager */ ProgressItem( ProgressItem* parent, - const QString& id, - const QString& label, - const QString& status, + const TQString& id, + const TQString& label, + const TQString& status, bool isCancellable, bool usesCrypto ); virtual ~ProgressItem(); private: - QString mId; - QString mLabel; - QString mStatus; + TQString mId; + TQString mLabel; + TQString mStatus; ProgressItem* mParent; bool mCanBeCanceled; unsigned int mProgress; @@ -259,7 +259,7 @@ class KDE_EXPORT ProgressManager : public QObject * number as the id string for your progressItem to ensure it is unique. * @return */ - static QString getUniqueID() { return QString::number( ++uID ); } + static TQString getUniqueID() { return TQString::number( ++uID ); } /** * Creates a ProgressItem with a unique id and the given label. @@ -269,9 +269,9 @@ class KDE_EXPORT ProgressManager : public QObject * @param label The text to be displayed by progress handlers. It will be * interpreted as rich text, so it might have to be escaped. */ - static ProgressItem * createProgressItem( const QString &label ) { + static ProgressItem * createProgressItem( const TQString &label ) { return instance()->createProgressItemImpl( 0, getUniqueID(), label, - QString::null, true, false ); + TQString::null, true, false ); } /** @@ -291,9 +291,9 @@ class KDE_EXPORT ProgressManager : public QObject * @return The ProgressItem representing the operation. */ static ProgressItem * createProgressItem( ProgressItem* parent, - const QString& id, - const QString& label, - const QString& status = QString::null, + const TQString& id, + const TQString& label, + const TQString& status = TQString::null, bool canBeCanceled = true, bool usesCrypto = false ) { return instance()->createProgressItemImpl( parent, id, label, status, @@ -304,10 +304,10 @@ class KDE_EXPORT ProgressManager : public QObject * Use this version if you have the id string of the parent and want to * add a subjob to it. */ - static ProgressItem * createProgressItem( const QString& parent, - const QString& id, - const QString& label, - const QString& status = QString::null, + static ProgressItem * createProgressItem( const TQString& parent, + const TQString& id, + const TQString& label, + const TQString& status = TQString::null, bool canBeCanceled = true, bool usesCrypto = false ) { return instance()->createProgressItemImpl( parent, id, label, @@ -317,9 +317,9 @@ class KDE_EXPORT ProgressManager : public QObject /** * Version without a parent. */ - static ProgressItem * createProgressItem( const QString& id, - const QString& label, - const QString& status = QString::null, + static ProgressItem * createProgressItem( const TQString& id, + const TQString& label, + const TQString& status = TQString::null, bool canBeCanceled = true, bool usesCrypto = false ) { return instance()->createProgressItemImpl( 0, id, label, status, @@ -356,9 +356,9 @@ class KDE_EXPORT ProgressManager : public QObject /** @see ProgressItem::progressItemCanceled() */ void progressItemCanceled( KPIM::ProgressItem* ); /** @see ProgressItem::progressItemStatus() */ - void progressItemStatus( KPIM::ProgressItem*, const QString& ); + void progressItemStatus( KPIM::ProgressItem*, const TQString& ); /** @see ProgressItem::progressItemLabel() */ - void progressItemLabel( KPIM::ProgressItem*, const QString& ); + void progressItemLabel( KPIM::ProgressItem*, const TQString& ); /** @see ProgressItem::progressItemUsesCrypto() */ void progressItemUsesCrypto( KPIM::ProgressItem*, bool ); @@ -390,16 +390,16 @@ class KDE_EXPORT ProgressManager : public QObject ProgressManager( const ProgressManager& ); virtual ProgressItem* createProgressItemImpl( - ProgressItem* parent, const QString& id, - const QString& label, const QString& status, + ProgressItem* parent, const TQString& id, + const TQString& label, const TQString& status, bool cancellable, bool usesCrypto ); virtual ProgressItem* createProgressItemImpl( - const QString& parent, const QString& id, - const QString& label, const QString& status, + const TQString& parent, const TQString& id, + const TQString& label, const TQString& status, bool cancellable, bool usesCrypto ); void emitShowProgressDialogImpl(); - QDict< ProgressItem > mTransactions; + TQDict< ProgressItem > mTransactions; static ProgressManager *mInstance; static unsigned int uID; }; |