From 5cb3ed2e545a03815cdd04ab8666b605a71c44b4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 19 Dec 2020 11:48:03 +0900 Subject: tdeabc/vcard: integrated "generated" partial header files into the place where they are actually used. Signed-off-by: Michele Calgaro --- tdeabc/vcard/include/VCardUTCValue.h | 39 ++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 11 deletions(-) (limited to 'tdeabc/vcard/include/VCardUTCValue.h') diff --git a/tdeabc/vcard/include/VCardUTCValue.h b/tdeabc/vcard/include/VCardUTCValue.h index cb09ccf00..6a623aa6a 100644 --- a/tdeabc/vcard/include/VCardUTCValue.h +++ b/tdeabc/vcard/include/VCardUTCValue.h @@ -33,19 +33,36 @@ namespace VCARD class KVCARD_EXPORT UTCValue : public Value { - -#include "UTCValue-generated.h" + public: + UTCValue(); + UTCValue(const UTCValue&); + UTCValue(const TQCString&); + UTCValue & operator = (UTCValue&); + UTCValue & operator = (const TQCString&); + bool operator ==(UTCValue&); + bool operator !=(UTCValue& x) {return !(*this==x);} + bool operator ==(const TQCString& s) {UTCValue a(s);return(*this==a);} + bool operator != (const TQCString& s) {return !(*this == s);} - UTCValue *clone(); - - void setPositive( int p ) { positive_ = p; assembled_ = false; } - void setHour( int h ) { hour_ = h; assembled_ = false; } - void setMinute( int m ) { minute_ = m; assembled_ = false; } + virtual ~UTCValue(); + void parse() {if(!parsed_) _parse();parsed_=true;assembled_=false;} - bool positive() { parse(); return positive_; } - unsigned int hour() { parse(); return hour_; } - unsigned int minute() { parse(); return minute_; } - + void assemble() {if(assembled_) return;parse();_assemble();assembled_=true;} + + void _parse(); + void _assemble(); + const char * className() const { return "UTCValue"; } + + UTCValue *clone(); + + void setPositive( int p ) { positive_ = p; assembled_ = false; } + void setHour( int h ) { hour_ = h; assembled_ = false; } + void setMinute( int m ) { minute_ = m; assembled_ = false; } + + bool positive() { parse(); return positive_; } + unsigned int hour() { parse(); return hour_; } + unsigned int minute() { parse(); return minute_; } + private: bool positive_; -- cgit v1.2.1