sound.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KABC_SOUND_H
00022 #define KABC_SOUND_H
00023
00024 #include <qcstring.h>
00025 #include <qstring.h>
00026
00027 namespace KABC {
00028
00029 class Sound
00030 {
00031 friend QDataStream &operator<<( QDataStream &, const Sound & );
00032 friend QDataStream &operator>>( QDataStream &, Sound & );
00033
00034 public:
00035
00039 Sound();
00040
00046 Sound( const QString &url );
00047
00053 Sound( const QByteArray &data );
00054
00058 ~Sound();
00059
00060
00061 bool operator==( const Sound & ) const;
00062 bool operator!=( const Sound & ) const;
00063
00071 void setUrl( const QString &url );
00072
00079 void setData( const QByteArray &data );
00080
00088 bool isIntern() const;
00089
00093 QString url() const;
00094
00098 QByteArray data() const;
00099
00103 QString asString() const;
00104
00105 private:
00106 QString mUrl;
00107 QByteArray mData;
00108
00109 int mIntern;
00110 };
00111
00112 QDataStream &operator<<( QDataStream &, const Sound & );
00113 QDataStream &operator>>( QDataStream &, Sound & );
00114
00115 }
00116 #endif
This file is part of the documentation for kdelibs Version 3.1.0.