summaryrefslogtreecommitdiffstats
path: root/kabc/vcard/include/VCardDateValue.h
diff options
context:
space:
mode:
Diffstat (limited to 'kabc/vcard/include/VCardDateValue.h')
-rw-r--r--kabc/vcard/include/VCardDateValue.h110
1 files changed, 64 insertions, 46 deletions
diff --git a/kabc/vcard/include/VCardDateValue.h b/kabc/vcard/include/VCardDateValue.h
index 4f2e2fe7f..60db0f330 100644
--- a/kabc/vcard/include/VCardDateValue.h
+++ b/kabc/vcard/include/VCardDateValue.h
@@ -34,52 +34,70 @@ namespace VCARD
class KVCARD_EXPORT DateValue : public Value
{
-#include "DateValue-generated.h"
-
- DateValue(
- unsigned int year,
- unsigned int month,
- unsigned int day,
- unsigned int hour = 0,
- unsigned int minute = 0,
- unsigned int second = 0,
- double secFrac = 0,
- bool zonePositive = true,
- unsigned int zoneHour = 0,
- unsigned int zoneMinute = 0);
-
- DateValue(const TQDate &);
- DateValue(const TQDateTime &);
-
- DateValue *clone();
-
- bool hasTime();
-
- unsigned int year();
- unsigned int month();
- unsigned int day();
- unsigned int hour();
- unsigned int minute();
- unsigned int second();
- double secondFraction();
- bool zonePositive();
- unsigned int zoneHour();
- unsigned int zoneMinute();
-
- void setYear (unsigned int);
- void setMonth (unsigned int);
- void setDay (unsigned int);
- void setHour (unsigned int);
- void setMinute (unsigned int);
- void setSecond (unsigned int);
- void setSecondFraction (double);
- void setZonePositive (bool);
- void setZoneHour (unsigned int);
- void setZoneMinute (unsigned int);
-
- TQDate qdate();
- TQTime qtime();
- TQDateTime qdt();
+ public:
+ DateValue();
+ DateValue(const DateValue&);
+ DateValue(const TQCString&);
+ DateValue & operator = (DateValue&);
+ DateValue & operator = (const TQCString&);
+ bool operator ==(DateValue&);
+ bool operator !=(DateValue& x) {return !(*this==x);}
+ bool operator ==(const TQCString& s) {DateValue a(s);return(*this==a);}
+ bool operator != (const TQCString& s) {return !(*this == s);}
+
+ virtual ~DateValue();
+ 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 "DateValue"; }
+
+ DateValue(
+ unsigned int year,
+ unsigned int month,
+ unsigned int day,
+ unsigned int hour = 0,
+ unsigned int minute = 0,
+ unsigned int second = 0,
+ double secFrac = 0,
+ bool zonePositive = true,
+ unsigned int zoneHour = 0,
+ unsigned int zoneMinute = 0);
+
+ DateValue(const TQDate &);
+ DateValue(const TQDateTime &);
+
+ DateValue *clone();
+
+ bool hasTime();
+
+ unsigned int year();
+ unsigned int month();
+ unsigned int day();
+ unsigned int hour();
+ unsigned int minute();
+ unsigned int second();
+ double secondFraction();
+ bool zonePositive();
+ unsigned int zoneHour();
+ unsigned int zoneMinute();
+
+ void setYear (unsigned int);
+ void setMonth (unsigned int);
+ void setDay (unsigned int);
+ void setHour (unsigned int);
+ void setMinute (unsigned int);
+ void setSecond (unsigned int);
+ void setSecondFraction (double);
+ void setZonePositive (bool);
+ void setZoneHour (unsigned int);
+ void setZoneMinute (unsigned int);
+
+ TQDate qdate();
+ TQTime qtime();
+ TQDateTime qdt();
private: