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/VCardUTCValue.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/VCardUTCValue.h')
-rw-r--r-- | tdeabc/vcard/include/VCardUTCValue.h | 39 |
1 files changed, 28 insertions, 11 deletions
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_; |