diff options
Diffstat (limited to 'tdeabc/vcard/include/VCardLangValue.h')
-rw-r--r-- | tdeabc/vcard/include/VCardLangValue.h | 38 |
1 files changed, 28 insertions, 10 deletions
diff --git a/tdeabc/vcard/include/VCardLangValue.h b/tdeabc/vcard/include/VCardLangValue.h index 7767d52fa..96eea4f71 100644 --- a/tdeabc/vcard/include/VCardLangValue.h +++ b/tdeabc/vcard/include/VCardLangValue.h @@ -34,16 +34,34 @@ namespace VCARD class KVCARD_EXPORT LangValue : public Value { -#include "LangValue-generated.h" - - TQCString primary(); - TQStrList subtags(); - - void setPrimary(const TQCString &); - void setSubTags(const TQStrList &); - - TQCString primary_; - TQStrList subtags_; + public: + LangValue(); + LangValue(const LangValue&); + LangValue(const TQCString&); + LangValue & operator = (LangValue&); + LangValue & operator = (const TQCString&); + bool operator ==(LangValue&); + bool operator !=(LangValue& x) {return !(*this==x);} + bool operator ==(const TQCString& s) {LangValue a(s);return(*this==a);} + bool operator != (const TQCString& s) {return !(*this == s);} + + virtual ~LangValue(); + 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 "LangValue"; } + + TQCString primary(); + TQStrList subtags(); + + void setPrimary(const TQCString &); + void setSubTags(const TQStrList &); + + TQCString primary_; + TQStrList subtags_; }; } |