27 #include <tqcstring.h>
29 #include <VCardValue.h>
34 class KVCARD_EXPORT UTCValue :
public Value
38 UTCValue(
const UTCValue&);
39 UTCValue(
const TQCString&);
40 UTCValue & operator = (UTCValue&);
41 UTCValue & operator = (
const TQCString&);
42 bool operator ==(UTCValue&);
43 bool operator !=(UTCValue& x) {
return !(*
this==x);}
44 bool operator ==(
const TQCString& s) {UTCValue a(s);
return(*
this==a);}
45 bool operator != (
const TQCString& s) {
return !(*
this == s);}
48 void parse() {
if(!parsed_) _parse();parsed_=
true;assembled_=
false;}
50 void assemble() {
if(assembled_)
return;parse();_assemble();assembled_=
true;}
54 const char * className()
const {
return "UTCValue"; }
58 void setPositive(
int p ) { positive_ = p; assembled_ =
false; }
59 void setHour(
int h ) { hour_ = h; assembled_ =
false; }
60 void setMinute(
int m ) { minute_ = m; assembled_ =
false; }
62 bool positive() { parse();
return positive_; }
63 unsigned int hour() { parse();
return hour_; }
64 unsigned int minute() { parse();
return minute_; }