diff options
Diffstat (limited to 'kabc/vcard/include/VCardVCard.h')
-rw-r--r-- | kabc/vcard/include/VCardVCard.h | 49 |
1 files changed, 33 insertions, 16 deletions
diff --git a/kabc/vcard/include/VCardVCard.h b/kabc/vcard/include/VCardVCard.h index 53563e8c0..1d2bbb1ef 100644 --- a/kabc/vcard/include/VCardVCard.h +++ b/kabc/vcard/include/VCardVCard.h @@ -36,26 +36,43 @@ namespace VCARD class KVCARD_EXPORT VCard : public Entity { + public: + VCard(); + VCard(const VCard&); + VCard(const TQCString&); + VCard & operator = (VCard&); + VCard & operator = (const TQCString&); + bool operator ==(VCard&); + bool operator !=(VCard& x) {return !(*this==x);} + bool operator ==(const TQCString& s) {VCard a(s);return(*this==a);} + bool operator != (const TQCString& s) {return !(*this == s);} -#include "VCard-generated.h" - - bool has(EntityType); - bool has(const TQCString &); - - void add(const ContentLine &); - void add(const TQCString &); - - ContentLine * contentLine(EntityType); - ContentLine * contentLine(const TQCString &); - - TQCString group() { parse(); return group_; } - - TQPtrList<ContentLine> contentLineList() { parse(); return contentLineList_; } + virtual ~VCard(); + void parse() {if(!parsed_) _parse();parsed_=true;assembled_=false;} + + void assemble() {if(assembled_) return;parse();_assemble();assembled_=true;} + + void _parse(); + void _assemble(); + const char * className() const { return "VCard"; } + bool has(EntityType); + bool has(const TQCString &); + + void add(const ContentLine &); + void add(const TQCString &); + + ContentLine * contentLine(EntityType); + ContentLine * contentLine(const TQCString &); + + TQCString group() { parse(); return group_; } + + TQPtrList<ContentLine> contentLineList() { parse(); return contentLineList_; } + private: - TQCString group_; - TQPtrList<ContentLine> contentLineList_; + TQCString group_; + TQPtrList<ContentLine> contentLineList_; }; } |