27 #include <tqcstring.h>
28 #include <tqdatetime.h>
30 #include <VCardValue.h>
35 class KVCARD_EXPORT DateValue :
public Value
39 DateValue(
const DateValue&);
40 DateValue(
const TQCString&);
41 DateValue & operator = (DateValue&);
42 DateValue & operator = (
const TQCString&);
43 bool operator ==(DateValue&);
44 bool operator !=(DateValue& x) {
return !(*
this==x);}
45 bool operator ==(
const TQCString& s) {DateValue a(s);
return(*
this==a);}
46 bool operator != (
const TQCString& s) {
return !(*
this == s);}
49 void parse() {
if(!parsed_) _parse();parsed_=
true;assembled_=
false;}
51 void assemble() {
if(assembled_)
return;parse();_assemble();assembled_=
true;}
55 const char * className()
const {
return "DateValue"; }
61 unsigned int hour = 0,
62 unsigned int minute = 0,
63 unsigned int second = 0,
65 bool zonePositive =
true,
66 unsigned int zoneHour = 0,
67 unsigned int zoneMinute = 0);
69 DateValue(
const TQDate &);
70 DateValue(
const TQDateTime &);
80 unsigned int minute();
81 unsigned int second();
82 double secondFraction();
84 unsigned int zoneHour();
85 unsigned int zoneMinute();
87 void setYear (
unsigned int);
88 void setMonth (
unsigned int);
89 void setDay (
unsigned int);
90 void setHour (
unsigned int);
91 void setMinute (
unsigned int);
92 void setSecond (
unsigned int);
93 void setSecondFraction (
double);
94 void setZonePositive (
bool);
95 void setZoneHour (
unsigned int);
96 void setZoneMinute (
unsigned int);
104 unsigned int year_, month_, day_,
105 hour_, minute_, second_,
106 zoneHour_, zoneMinute_;