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.cpp | |
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.cpp')
-rw-r--r-- | kabc/key.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kabc/key.cpp b/kabc/key.cpp index e4fe50f2e..0d917595d 100644 --- a/kabc/key.cpp +++ b/kabc/key.cpp @@ -25,7 +25,7 @@ using namespace KABC; -Key::Key( const QString &text, int type ) +Key::Key( const TQString &text, int type ) : mTextData( text ), mIsBinary( false ), mType( type ) { mId = KApplication::randomString(8); @@ -53,34 +53,34 @@ bool Key::operator!=( const Key &k ) const return !( k == *this ); } -void Key::setId( const QString &id ) +void Key::setId( const TQString &id ) { mId = id; } -QString Key::id() const +TQString Key::id() const { return mId; } -void Key::setBinaryData( const QByteArray &binary ) +void Key::setBinaryData( const TQByteArray &binary ) { mBinaryData = binary; mIsBinary = true; } -QByteArray Key::binaryData() const +TQByteArray Key::binaryData() const { return mBinaryData; } -void Key::setTextData( const QString &text ) +void Key::setTextData( const TQString &text ) { mTextData = text; mIsBinary = false; } -QString Key::textData() const +TQString Key::textData() const { return mTextData; } @@ -95,7 +95,7 @@ void Key::setType( int type ) mType = type; } -void Key::setCustomTypeString( const QString &custom ) +void Key::setCustomTypeString( const TQString &custom ) { mCustomTypeString = custom; } @@ -105,7 +105,7 @@ int Key::type() const return mType; } -QString Key::customTypeString() const +TQString Key::customTypeString() const { return mCustomTypeString; } @@ -120,7 +120,7 @@ Key::TypeList Key::typeList() return list; } -QString Key::typeLabel( int type ) +TQString Key::typeLabel( int type ) { switch ( type ) { case X509: @@ -138,13 +138,13 @@ QString Key::typeLabel( int type ) } } -QDataStream &KABC::operator<<( QDataStream &s, const Key &key ) +TQDataStream &KABC::operator<<( TQDataStream &s, const Key &key ) { return s << key.mId << key.mIsBinary << key.mTextData << key.mBinaryData << key.mCustomTypeString << key.mType; } -QDataStream &KABC::operator>>( QDataStream &s, Key &key ) +TQDataStream &KABC::operator>>( TQDataStream &s, Key &key ) { s >> key.mId >> key.mIsBinary >> key.mTextData >> key.mBinaryData >> key.mCustomTypeString >> key.mType; |