diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-12-19 11:48:03 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-12-19 11:48:03 +0900 |
commit | 5cb3ed2e545a03815cdd04ab8666b605a71c44b4 (patch) | |
tree | 8c731204e9fdf6a030163992ac88cf210ce8acbe /tdeabc/vcard/include/VCardDateValue.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 <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeabc/vcard/include/VCardDateValue.h')
-rw-r--r-- | tdeabc/vcard/include/VCardDateValue.h | 110 |
1 files changed, 64 insertions, 46 deletions
diff --git a/tdeabc/vcard/include/VCardDateValue.h b/tdeabc/vcard/include/VCardDateValue.h index 4f2e2fe7f..60db0f330 100644 --- a/tdeabc/vcard/include/VCardDateValue.h +++ b/tdeabc/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: |