30 Picture::Picture(
const TQString &url )
31 : mUrl( url ), mIntern( false )
35 Picture::Picture(
const TQImage &data )
36 : mData( data ), mIntern( true )
44 bool Picture::operator==(
const Picture &p )
const
46 if ( mIntern != p.mIntern )
return false;
49 if ( mData != p.mData )
59 bool Picture::operator!=(
const Picture &p )
const
61 return !( p == *this );
64 void Picture::setUrl(
const TQString &url )
70 void Picture::setData(
const TQImage &data )
76 void Picture::setType(
const TQString &type )
81 bool Picture::isIntern()
const
86 TQString Picture::url()
const
91 TQImage Picture::data()
const
96 TQString Picture::type()
const
101 TQString Picture::asString()
const
104 return "intern picture";
109 TQDataStream &TDEABC::operator<<( TQDataStream &s,
const Picture &picture )
111 return s << picture.mIntern << picture.mUrl << picture.mType;
115 TQDataStream &TDEABC::operator>>( TQDataStream &s, Picture &picture )
117 s >> picture.mIntern >> picture.mUrl >> picture.mType;
static data, shared by ALL addressee objects