ktimezones.cpp
727 str >> tzh.ttisgmtcnt >> tzh.ttisstdcnt >> tzh.leapcnt >> tzh.timecnt >> tzh.typecnt >> tzh.charcnt;
728 // kdError() << "header: " << tzh.ttisgmtcnt << ", " << tzh.ttisstdcnt << ", " << tzh.leapcnt << ", " <<
730 dataReceiver.gotHeader(tzh.ttisgmtcnt, tzh.ttisstdcnt, tzh.leapcnt, tzh.timecnt, tzh.typecnt, tzh.charcnt);
virtual void gotTransitionTime(int index, unsigned transitionTime)
Called when a transition time is seen.
Definition: ktimezones.cpp:662
virtual bool parse(const TQString &zone, KTimezoneDetails &dataReceiver) const
Extract timezone detail information.
Definition: ktimezones.cpp:688
virtual void gotIsStandard(int index, bool isStandard)
Called when a standard/wall time indicator is seen.
Definition: ktimezones.cpp:659
virtual void gotLocalTimeIndex(int index, unsigned localTimeIndex)
Called when a local time index is seen.
Definition: ktimezones.cpp:656
void reset()
Calling this function will reset the calculated message digest.
Definition: kmdcodec.cpp:942
The KTimezoneSource class contains information source-dependent functions related to a timezone.
Definition: ktimezones.h:51
TQCString hexDigest()
Returns the value of the calculated message digest in a hexadecimal representation.
Definition: kmdcodec.cpp:903
static const float UNKNOWN
A representation for unknown locations; this is a float that does not represent a real latitude or lo...
Definition: ktimezones.h:92
int offset(Qt::TimeSpec basisSpec=Qt::UTC) const
Returns the current offset of this timezone to UTC or the local timezone in seconds.
Definition: ktimezones.cpp:283
const KTimezone * zone(const TQString &name)
Returns the given timezone.
Definition: ktimezones.cpp:622
The KTimezone class contains core functions related to a timezone.
Definition: ktimezones.h:85
The KTempFile class creates and opens a unique file for temporary use.
Definition: tdetempfile.h:55
@ Block
The application is suspended until the started process is finished.
Definition: kprocess.h:182
virtual void gotLocalTime(int index, int gmtOff, bool isDst, unsigned abbrIndex)
Called when a local time is seen.
Definition: ktimezones.cpp:653
virtual void gotLeapAdjustment(int index, unsigned leapTime, unsigned leapSeconds)
Called when a leap second adjustment is seen.
Definition: ktimezones.cpp:650
virtual void gotIsUTC(int index, bool isUTC)
Called when a UTC/local time indicator is seen.
Definition: ktimezones.cpp:665
KTimezone(TDESharedPtr< KTimezoneSource > db, const TQString &name, const TQString &countryCode=TQString(), float latitude=UNKNOWN, float longitude=UNKNOWN, const TQString &comment=TQString())
Create a timezone.
Definition: ktimezones.cpp:205
The KTimezoneDetails class contains extended functions related to a timezone.
Definition: ktimezones.h:225
A class derived from TDEProcess to start child processes through a shell.
Definition: kprocess.h:904
static bool isValidLatitude(float latitude)
A test for a valid latitude.
Definition: ktimezones.cpp:195
virtual void gotAbbreviation(int index, const TQString &abbr)
Called when a timezone abbreviation is seen.
Definition: ktimezones.cpp:642
virtual bool start(RunMode runmode=NotifyOnExit, Communication comm=NoCommunication)
Starts the process.
Definition: kprocess.cpp:1129
TQString countryCode() const
Returns the two-letter country code of the timezone.
Definition: ktimezones.cpp:263
bool parse(KTimezoneDetails &dataReceiver) const
Extract timezone detail information.
Definition: ktimezones.cpp:320
virtual void gotHeader(unsigned ttIsGmtCnt, unsigned ttIsStdCnt, unsigned leapCnt, unsigned timeCnt, unsigned typeCnt, unsigned charCnt)
Called when the header is seen.
Definition: ktimezones.cpp:645
TQDateTime convert(const KTimezone *newZone, const TQDateTime &dateTime) const
Convert a date/time (which is interpreted as being localtime in this timezone) into localtime in the ...
Definition: ktimezones.cpp:235
static TQStringList perlSplit(const TQString &sep, const TQString &s, uint max=0)
Split a TQString into a TQStringList in a similar fashion to the static TQStringList function in Qt,...
Definition: kstringhandler.cpp:452
static bool isValidLongitude(float longitude)
A test for a valid longitude.
Definition: ktimezones.cpp:200
void update(const char *in, int len=-1)
Updates the message to be digested.
Definition: kmdcodec.h:442