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/sound.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/sound.cpp')
-rw-r--r-- | kabc/sound.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kabc/sound.cpp b/kabc/sound.cpp index 48f12e4f1..cf645be83 100644 --- a/kabc/sound.cpp +++ b/kabc/sound.cpp @@ -20,7 +20,7 @@ #include "sound.h" -#include <qdatastream.h> +#include <tqdatastream.h> using namespace KABC; @@ -29,12 +29,12 @@ Sound::Sound() { } -Sound::Sound( const QString &url ) +Sound::Sound( const TQString &url ) : mUrl( url ), mIntern( false ) { } -Sound::Sound( const QByteArray &data ) +Sound::Sound( const TQByteArray &data ) : mData( data ), mIntern( true ) { } @@ -63,13 +63,13 @@ bool Sound::operator!=( const Sound &s ) const return !( s == *this ); } -void Sound::setUrl( const QString &url ) +void Sound::setUrl( const TQString &url ) { mUrl = url; mIntern = false; } -void Sound::setData( const QByteArray &data ) +void Sound::setData( const TQByteArray &data ) { mData = data; mIntern = true; @@ -86,17 +86,17 @@ bool Sound::isEmpty() const } -QString Sound::url() const +TQString Sound::url() const { return mUrl; } -QByteArray Sound::data() const +TQByteArray Sound::data() const { return mData; } -QString Sound::asString() const +TQString Sound::asString() const { if ( mIntern ) return "intern sound"; @@ -104,13 +104,13 @@ QString Sound::asString() const return mUrl; } -QDataStream &KABC::operator<<( QDataStream &s, const Sound &sound ) +TQDataStream &KABC::operator<<( TQDataStream &s, const Sound &sound ) { return s << sound.mIntern << sound.mUrl; // return s << sound.mIntern << sound.mUrl << sound.mData; } -QDataStream &KABC::operator>>( QDataStream &s, Sound &sound ) +TQDataStream &KABC::operator>>( TQDataStream &s, Sound &sound ) { s >> sound.mIntern >> sound.mUrl; // s >> sound.mIntern >> sound.mUrl >> sound.mData; |