diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kabc/key.h | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kabc/key.h')
-rw-r--r-- | kabc/key.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kabc/key.h b/kabc/key.h index 8c91fd6cf..ecc4492d8 100644 --- a/kabc/key.h +++ b/kabc/key.h @@ -21,7 +21,7 @@ #ifndef KABC_KEY_H #define KABC_KEY_H -#include <qvaluelist.h> +#include <tqvaluelist.h> #include <kdelibs_export.h> @@ -32,12 +32,12 @@ namespace KABC { */ class KABC_EXPORT Key { - friend KABC_EXPORT QDataStream &operator<<( QDataStream &, const Key & ); - friend KABC_EXPORT QDataStream &operator>>( QDataStream &, Key & ); + friend KABC_EXPORT TQDataStream &operator<<( TQDataStream &, const Key & ); + friend KABC_EXPORT TQDataStream &operator>>( TQDataStream &, Key & ); public: - typedef QValueList<Key> List; - typedef QValueList<int> TypeList; + typedef TQValueList<Key> List; + typedef TQValueList<int> TypeList; /** * Key types @@ -58,7 +58,7 @@ public: * @param text The text data. * @param type The key type, see Types. */ - Key( const QString &text = QString::null, int type = PGP ); + Key( const TQString &text = TQString::null, int type = PGP ); /** * Destructor. @@ -71,32 +71,32 @@ public: /** * Sets the unique identifier. */ - void setId( const QString &id ); + void setId( const TQString &id ); /** * Returns the unique identifier. */ - QString id() const; + TQString id() const; /** * Sets binary data. */ - void setBinaryData( const QByteArray &binary ); + void setBinaryData( const TQByteArray &binary ); /** * Returns the binary data. */ - QByteArray binaryData() const; + TQByteArray binaryData() const; /** * Sets text data. */ - void setTextData( const QString &text ); + void setTextData( const TQString &text ); /** * Returns the text data. */ - QString textData() const; + TQString textData() const; /** * Returns whether the key contains binary or text data. @@ -111,7 +111,7 @@ public: /** * Sets custom type string. */ - void setCustomTypeString( const QString &custom ); + void setCustomTypeString( const TQString &custom ); /** * Returns the type, see Type. @@ -121,7 +121,7 @@ public: /** * Returns the custom type string. */ - QString customTypeString() const; + TQString customTypeString() const; /** * Returns a list of all available key types. @@ -131,20 +131,20 @@ public: /** * Returns a translated label for a given key type. */ - static QString typeLabel( int type ); + static TQString typeLabel( int type ); private: - QByteArray mBinaryData; - QString mId; - QString mTextData; - QString mCustomTypeString; + TQByteArray mBinaryData; + TQString mId; + TQString mTextData; + TQString mCustomTypeString; int mIsBinary; int mType; }; -KABC_EXPORT QDataStream &operator<<( QDataStream &, const Key & ); -KABC_EXPORT QDataStream &operator>>( QDataStream &, Key & ); +KABC_EXPORT TQDataStream &operator<<( TQDataStream &, const Key & ); +KABC_EXPORT TQDataStream &operator>>( TQDataStream &, Key & ); } #endif |