24 #ifndef TEXTBINVALUE_H
25 #define TEXTBINVALUE_H
27 #include <tqcstring.h>
29 #include <VCardValue.h>
34 class KVCARD_EXPORT TextBinValue :
public Value
38 TextBinValue(
const TextBinValue&);
39 TextBinValue(
const TQCString&);
40 TextBinValue & operator = (TextBinValue&);
41 TextBinValue & operator = (
const TQCString&);
42 bool operator ==(TextBinValue&);
43 bool operator !=(TextBinValue& x) {
return !(*
this==x);}
44 bool operator ==(
const TQCString& s) {TextBinValue a(s);
return(*
this==a);}
45 bool operator != (
const TQCString& s) {
return !(*
this == s);}
47 virtual ~TextBinValue();
48 void parse() {
if(!parsed_) _parse();parsed_=
true;assembled_=
false;}
50 void assemble() {
if(assembled_)
return;parse();_assemble();assembled_=
true;}
54 const char * className()
const {
return "TextBinValue"; }
56 TextBinValue *clone();
58 bool isBinary() { parse();
return mIsBinary_; }
59 TQByteArray data() { parse();
return mData_; }
60 TQString url() { parse();
return mUrl_; }
62 void setData(
const TQByteArray &data )
69 void setUrl(
const TQString &url )