28 #include <tqptrlist.h>
30 #include <VCardEnum.h>
31 #include <VCardEntity.h>
32 #include <VCardContentLine.h>
37 class KVCARD_EXPORT VCard :
public Entity
42 VCard(
const TQCString&);
43 VCard & operator = (VCard&);
44 VCard & operator = (
const TQCString&);
45 bool operator ==(VCard&);
46 bool operator !=(VCard& x) {
return !(*
this==x);}
47 bool operator ==(
const TQCString& s) {VCard a(s);
return(*
this==a);}
48 bool operator != (
const TQCString& s) {
return !(*
this == s);}
51 void parse() {
if(!parsed_) _parse();parsed_=
true;assembled_=
false;}
53 void assemble() {
if(assembled_)
return;parse();_assemble();assembled_=
true;}
57 const char * className()
const {
return "VCard"; }
60 bool has(
const TQCString &);
62 void add(
const ContentLine &);
63 void add(
const TQCString &);
65 ContentLine * contentLine(EntityType);
66 ContentLine * contentLine(
const TQCString &);
68 TQCString group() { parse();
return group_; }
70 TQPtrList<ContentLine> contentLineList() { parse();
return contentLineList_; }
75 TQPtrList<ContentLine> contentLineList_;