• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • kdecore
  • date
Macros | Typedefs | Functions | Variables
ktimezone_win.cpp File Reference
#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()

static bool check_local ( const KTimeZone *  caller,
const QDateTime &  dt 
)
inlinestatic

Definition at line 320 of file ktimezone_win.cpp.

◆ check_prereq()

static bool check_prereq ( const KTimeZone *  caller,
const QDateTime &  dt,
Qt::TimeSpec  spec 
)
static

Definition at line 316 of file ktimezone_win.cpp.

◆ check_utc()

static bool check_utc ( const KTimeZone *  caller,
const QDateTime &  dt 
)
inlinestatic

Definition at line 324 of file ktimezone_win.cpp.

◆ difference()

static int difference ( const SYSTEMTIME &  st1,
const SYSTEMTIME &  st2 
)
static

Definition at line 598 of file ktimezone_win.cpp.

◆ effective_offset()

static int effective_offset ( const TIME_ZONE_INFORMATION &  tz,
bool  isDst 
)
static

Definition at line 578 of file ktimezone_win.cpp.

◆ find_nth_weekday_in_month_of_year()

static QDate find_nth_weekday_in_month_of_year ( int  nth,
int  dayOfWeek,
int  month,
int  year 
)
static

Definition at line 342 of file ktimezone_win.cpp.

◆ get_binary_value()

static bool get_binary_value ( HKEY  key,
const TCHAR *  value,
void *  data,
DWORD  numData,
DWORD *  outNumData = 0 
)
static

Definition at line 284 of file ktimezone_win.cpp.

◆ get_string_value()

static bool get_string_value ( HKEY  key,
const TCHAR *  value,
TCHAR *  dest,
DWORD  destSizeInBytes 
)
static

Definition at line 297 of file ktimezone_win.cpp.

◆ getWinZoneName()

static QString getWinZoneName ( const QString &  name)
static

Definition at line 136 of file ktimezone_win.cpp.

◆ has_transition()

static bool has_transition ( const TIME_ZONE_INFORMATION &  tz)
static

Definition at line 328 of file ktimezone_win.cpp.

◆ is_dst() [1/2]

static bool is_dst ( const KTimeZone *  caller,
const QDateTime &  utc 
)
static

Definition at line 570 of file ktimezone_win.cpp.

◆ is_dst() [2/2]

static bool is_dst ( const TIME_ZONE_INFORMATION &  tzi,
const QDateTime &  utc,
int  year 
)
static

Definition at line 560 of file ktimezone_win.cpp.

◆ list_key()

static QStringList list_key ( HKEY  key)
static

Definition at line 378 of file ktimezone_win.cpp.

◆ list_standard_names()

static QStringList list_standard_names ( )
static

Definition at line 394 of file ktimezone_win.cpp.

◆ offset_at_utc()

static int offset_at_utc ( const KTimeZone *  caller,
const QDateTime &  utc 
)
static

Definition at line 588 of file ktimezone_win.cpp.

◆ offset_at_zone_time()

static int offset_at_zone_time ( const KTimeZone *  caller,
const SYSTEMTIME &  zone,
int *  secondOffset 
)
static

Definition at line 602 of file ktimezone_win.cpp.

◆ pathFromZoneName()

static std::basic_string< TCHAR > pathFromZoneName ( const KTimeZone &  zone)
static

Definition at line 431 of file ktimezone_win.cpp.

◆ qdatetime_to_systemtime()

static SYSTEMTIME qdatetime_to_systemtime ( const QDateTime &  dt)
static

Definition at line 208 of file ktimezone_win.cpp.

◆ qstring_to_tchar()

static const TCHAR * qstring_to_tchar ( const QString &  str)
inlinestatic

Definition at line 192 of file ktimezone_win.cpp.

◆ qstring_to_tcharstring()

static std::basic_string< TCHAR > qstring_to_tcharstring ( const QString &  str)
inlinestatic

Definition at line 196 of file ktimezone_win.cpp.

◆ qt_dayofweek_to_win_dayofweek()

static int qt_dayofweek_to_win_dayofweek ( int  qdow)
static

Definition at line 337 of file ktimezone_win.cpp.

◆ systemtime_to_qdatetime()

static QDateTime systemtime_to_qdatetime ( const SYSTEMTIME &  st)
inlinestatic

Definition at line 203 of file ktimezone_win.cpp.

◆ tchar_to_qstring()

static QString tchar_to_qstring ( const TCHAR *  str)
inlinestatic

Definition at line 188 of file ktimezone_win.cpp.

◆ transition()

static QDateTime transition ( const SYSTEMTIME &  st,
int  year 
)
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 bool TzSpecificLocalTimeToSystemTime_Portable ( TIME_ZONE_INFORMATION *  tz,
SYSTEMTIME *  i_stLocal,
SYSTEMTIME *  o_stUniversal 
)
static

Definition at line 224 of file ktimezone_win.cpp.

◆ win_dayofweek_to_qt_dayofweek()

static int win_dayofweek_to_qt_dayofweek ( int  wdow)
static

Definition at line 332 of file ktimezone_win.cpp.

Variable Documentation

◆ MAX_KEY_LENGTH

const int MAX_KEY_LENGTH = 255
static

Definition at line 376 of file ktimezone_win.cpp.

◆ OneHour

const int OneHour = 3600
static

Definition at line 596 of file ktimezone_win.cpp.

◆ pTzSpecificLocalTimeToSystemTime

PtrTzSpecificLocalTimeToSystemTime pTzSpecificLocalTimeToSystemTime = 0
static

Definition at line 151 of file ktimezone_win.cpp.

◆ timeZonesKey

const TCHAR timeZonesKey[] = TEXT("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time Zones")
static

Definition at line 202 of file ktimezone_win.cpp.

◆ ZoneTbl

const ZoneKey ZoneTbl[]
static

Definition at line 41 of file ktimezone_win.cpp.

This file is part of the KDE documentation.
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.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal