KDECore
#include "ktimezone_win.h"
#include <config.h>
#include <kdebug.h>
#include <QStringList>
#include <QLibrary>
#include <windows.h>
#include <memory>
#include <string>
#include <cassert>
Go to the source code of this file.
Macros | |
#define | COPY(name) data->_tzi.name = tzi.name |
Typedefs | |
typedef LPSYSTEMTIME | lpLocalTime |
typedef LPSYSTEMTIME LPSYSTEMTIME | lpUniversalTime |
Functions | |
typedef | BOOL (WINAPI *PtrTzSpecificLocalTimeToSystemTime)(LPTIME_ZONE_INFORMATION lpTimeZoneInformation |
static bool | check_local (const KTimeZone *caller, const QDateTime &dt) |
static bool | check_prereq (const KTimeZone *caller, const QDateTime &dt, Qt::TimeSpec spec) |
static bool | check_utc (const KTimeZone *caller, const QDateTime &dt) |
static int | difference (const SYSTEMTIME &st1, const SYSTEMTIME &st2) |
static int | effective_offset (const TIME_ZONE_INFORMATION &tz, bool isDst) |
static QDate | find_nth_weekday_in_month_of_year (int nth, int dayOfWeek, int month, int year) |
static bool | get_binary_value (HKEY key, const TCHAR *value, void *data, DWORD numData, DWORD *outNumData=0) |
static bool | get_string_value (HKEY key, const TCHAR *value, TCHAR *dest, DWORD destSizeInBytes) |
static QString | getWinZoneName (const QString &name) |
static bool | has_transition (const TIME_ZONE_INFORMATION &tz) |
static bool | is_dst (const KTimeZone *caller, const QDateTime &utc) |
static bool | is_dst (const TIME_ZONE_INFORMATION &tzi, const QDateTime &utc, int year) |
static QStringList | list_key (HKEY key) |
static QStringList | list_standard_names () |
static int | offset_at_utc (const KTimeZone *caller, const QDateTime &utc) |
static int | offset_at_zone_time (const KTimeZone *caller, const SYSTEMTIME &zone, int *secondOffset) |
static std::basic_string< TCHAR > | pathFromZoneName (const KTimeZone &zone) |
static SYSTEMTIME | qdatetime_to_systemtime (const QDateTime &dt) |
static const TCHAR * | qstring_to_tchar (const QString &str) |
static std::basic_string< TCHAR > | qstring_to_tcharstring (const QString &str) |
static int | qt_dayofweek_to_win_dayofweek (int qdow) |
static QDateTime | systemtime_to_qdatetime (const SYSTEMTIME &st) |
static QString | tchar_to_qstring (const TCHAR *str) |
static QDateTime | transition (const SYSTEMTIME &st, int year) |
Transitions | transitions (const KTimeZone *caller, int year) |
Transitions | transitions (const TIME_ZONE_INFORMATION &tz, int year) |
static bool | TzSpecificLocalTimeToSystemTime_Portable (TIME_ZONE_INFORMATION *tz, SYSTEMTIME *i_stLocal, SYSTEMTIME *o_stUniversal) |
static int | win_dayofweek_to_qt_dayofweek (int wdow) |
Variables | |
static const int | MAX_KEY_LENGTH = 255 |
static const int | OneHour = 3600 |
static PtrTzSpecificLocalTimeToSystemTime | pTzSpecificLocalTimeToSystemTime = 0 |
static const TCHAR | timeZonesKey [] = TEXT("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time Zones") |
static const ZoneKey | ZoneTbl [] |
Macro Definition Documentation
◆ COPY
#define COPY | ( | name | ) | data->_tzi.name = tzi.name |
Typedef Documentation
◆ lpLocalTime
typedef LPSYSTEMTIME lpLocalTime |
Definition at line 148 of file ktimezone_win.cpp.
◆ lpUniversalTime
typedef LPSYSTEMTIME LPSYSTEMTIME lpUniversalTime |
Definition at line 149 of file ktimezone_win.cpp.
Function Documentation
◆ BOOL()
typedef BOOL | ( | WINAPI * | PtrTzSpecificLocalTimeToSystemTime | ) |
◆ check_local()
Definition at line 320 of file ktimezone_win.cpp.
◆ check_prereq()
|
static |
Definition at line 316 of file ktimezone_win.cpp.
◆ check_utc()
Definition at line 324 of file ktimezone_win.cpp.
◆ difference()
|
static |
Definition at line 598 of file ktimezone_win.cpp.
◆ effective_offset()
|
static |
Definition at line 578 of file ktimezone_win.cpp.
◆ find_nth_weekday_in_month_of_year()
|
static |
Definition at line 342 of file ktimezone_win.cpp.
◆ get_binary_value()
|
static |
Definition at line 284 of file ktimezone_win.cpp.
◆ get_string_value()
|
static |
Definition at line 297 of file ktimezone_win.cpp.
◆ getWinZoneName()
Definition at line 136 of file ktimezone_win.cpp.
◆ has_transition()
|
static |
Definition at line 328 of file ktimezone_win.cpp.
◆ is_dst() [1/2]
Definition at line 570 of file ktimezone_win.cpp.
◆ is_dst() [2/2]
Definition at line 560 of file ktimezone_win.cpp.
◆ list_key()
|
static |
Definition at line 378 of file ktimezone_win.cpp.
◆ list_standard_names()
|
static |
Definition at line 394 of file ktimezone_win.cpp.
◆ offset_at_utc()
Definition at line 588 of file ktimezone_win.cpp.
◆ offset_at_zone_time()
|
static |
Definition at line 602 of file ktimezone_win.cpp.
◆ pathFromZoneName()
|
static |
Definition at line 431 of file ktimezone_win.cpp.
◆ qdatetime_to_systemtime()
|
static |
Definition at line 208 of file ktimezone_win.cpp.
◆ qstring_to_tchar()
|
inlinestatic |
Definition at line 192 of file ktimezone_win.cpp.
◆ qstring_to_tcharstring()
|
inlinestatic |
Definition at line 196 of file ktimezone_win.cpp.
◆ qt_dayofweek_to_win_dayofweek()
|
static |
Definition at line 337 of file ktimezone_win.cpp.
◆ systemtime_to_qdatetime()
|
inlinestatic |
Definition at line 203 of file ktimezone_win.cpp.
◆ tchar_to_qstring()
|
inlinestatic |
Definition at line 188 of file ktimezone_win.cpp.
◆ transition()
|
static |
Definition at line 357 of file ktimezone_win.cpp.
◆ transitions() [1/2]
Transitions transitions | ( | const KTimeZone * | caller, |
int | year | ||
) |
Definition at line 556 of file ktimezone_win.cpp.
◆ transitions() [2/2]
Transitions transitions | ( | const TIME_ZONE_INFORMATION & | tz, |
int | year | ||
) |
Definition at line 368 of file ktimezone_win.cpp.
◆ TzSpecificLocalTimeToSystemTime_Portable()
|
static |
Definition at line 224 of file ktimezone_win.cpp.
◆ win_dayofweek_to_qt_dayofweek()
|
static |
Definition at line 332 of file ktimezone_win.cpp.
Variable Documentation
◆ MAX_KEY_LENGTH
|
static |
Definition at line 376 of file ktimezone_win.cpp.
◆ OneHour
|
static |
Definition at line 596 of file ktimezone_win.cpp.
◆ pTzSpecificLocalTimeToSystemTime
|
static |
Definition at line 151 of file ktimezone_win.cpp.
◆ timeZonesKey
|
static |
Definition at line 202 of file ktimezone_win.cpp.
◆ ZoneTbl
|
static |
Definition at line 41 of file ktimezone_win.cpp.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.