summaryrefslogtreecommitdiffstats
path: root/tdeabc/vcard/include/VCardUTCValue.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-12-19 11:48:03 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-12-19 11:48:03 +0900
commit5cb3ed2e545a03815cdd04ab8666b605a71c44b4 (patch)
tree8c731204e9fdf6a030163992ac88cf210ce8acbe /tdeabc/vcard/include/VCardUTCValue.h
parent6f0a5983467358a325740c689c1fd546c3752b52 (diff)
downloadtdelibs-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 <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeabc/vcard/include/VCardUTCValue.h')
-rw-r--r--tdeabc/vcard/include/VCardUTCValue.h39
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_;