diff options
author | Michele Calgaro <[email protected]> | 2020-12-19 11:48:03 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-12-19 11:48:03 +0900 |
commit | 5cb3ed2e545a03815cdd04ab8666b605a71c44b4 (patch) | |
tree | 8c731204e9fdf6a030163992ac88cf210ce8acbe /tdeabc/vcard/include/VCardVCard.h | |
parent | 6f0a5983467358a325740c689c1fd546c3752b52 (diff) | |
download | tdelibs-5cb3ed2e545a03815cdd04ab8666b605a71c44b4.tar.gz tdelibs-5cb3ed2e545a03815cdd04ab8666b605a71c44b4.zip |
tdeabc/vcard: integrated "generated" partial header files into the place where they
are actually used.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdeabc/vcard/include/VCardVCard.h')
-rw-r--r-- | tdeabc/vcard/include/VCardVCard.h | 49 |
1 files changed, 33 insertions, 16 deletions
diff --git a/tdeabc/vcard/include/VCardVCard.h b/tdeabc/vcard/include/VCardVCard.h index 53563e8c0..1d2bbb1ef 100644 --- a/tdeabc/vcard/include/VCardVCard.h +++ b/tdeabc/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_; }; } |