summaryrefslogtreecommitdiffstats
path: root/tdeabc/vcard/include/VCardUTCValue.h
diff options
context:
space:
mode:
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_;