• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.4 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 TIME_ZONE_INFORMATION &tzi, const QDateTime &utc, int year)
static bool is_dst (const KTimeZone *caller, const QDateTime &utc)
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 TIME_ZONE_INFORMATION &tz, int year)
Transitions transitions (const KTimeZone *caller, 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

#define COPY (   name)    data->_tzi.name = tzi.name

Typedef Documentation

typedef LPSYSTEMTIME lpLocalTime

Definition at line 148 of file ktimezone_win.cpp.

typedef LPSYSTEMTIME LPSYSTEMTIME lpUniversalTime

Definition at line 148 of file ktimezone_win.cpp.


Function Documentation

typedef BOOL ( WINAPI *  PtrTzSpecificLocalTimeToSystemTime)
static bool check_local ( const KTimeZone *  caller,
const QDateTime &  dt 
)
inlinestatic

Definition at line 320 of file ktimezone_win.cpp.

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

Definition at line 316 of file ktimezone_win.cpp.

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

Definition at line 324 of file ktimezone_win.cpp.

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

Definition at line 598 of file ktimezone_win.cpp.

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

Definition at line 578 of file ktimezone_win.cpp.

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.

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.

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

Definition at line 297 of file ktimezone_win.cpp.

static QString getWinZoneName ( const QString &  name)
static

Definition at line 136 of file ktimezone_win.cpp.

static bool has_transition ( const TIME_ZONE_INFORMATION &  tz)
static

Definition at line 328 of file ktimezone_win.cpp.

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

Definition at line 560 of file ktimezone_win.cpp.

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

Definition at line 570 of file ktimezone_win.cpp.

static QStringList list_key ( HKEY  key)
static

Definition at line 378 of file ktimezone_win.cpp.

static QStringList list_standard_names ( )
static

Definition at line 394 of file ktimezone_win.cpp.

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

Definition at line 588 of file ktimezone_win.cpp.

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

Definition at line 602 of file ktimezone_win.cpp.

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

Definition at line 431 of file ktimezone_win.cpp.

static SYSTEMTIME qdatetime_to_systemtime ( const QDateTime &  dt)
static

Definition at line 208 of file ktimezone_win.cpp.

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

Definition at line 192 of file ktimezone_win.cpp.

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

Definition at line 196 of file ktimezone_win.cpp.

static int qt_dayofweek_to_win_dayofweek ( int  qdow)
static

Definition at line 337 of file ktimezone_win.cpp.

static QDateTime systemtime_to_qdatetime ( const SYSTEMTIME &  st)
inlinestatic

Definition at line 203 of file ktimezone_win.cpp.

static QString tchar_to_qstring ( const TCHAR *  str)
inlinestatic

Definition at line 188 of file ktimezone_win.cpp.

static QDateTime transition ( const SYSTEMTIME &  st,
int  year 
)
static

Definition at line 357 of file ktimezone_win.cpp.

Transitions transitions ( const TIME_ZONE_INFORMATION &  tz,
int  year 
)

Definition at line 368 of file ktimezone_win.cpp.

Transitions transitions ( const KTimeZone *  caller,
int  year 
)

Definition at line 556 of file ktimezone_win.cpp.

static bool TzSpecificLocalTimeToSystemTime_Portable ( TIME_ZONE_INFORMATION *  tz,
SYSTEMTIME *  i_stLocal,
SYSTEMTIME *  o_stUniversal 
)
static

Definition at line 224 of file ktimezone_win.cpp.

static int win_dayofweek_to_qt_dayofweek ( int  wdow)
static

Definition at line 332 of file ktimezone_win.cpp.


Variable Documentation

const int MAX_KEY_LENGTH = 255
static

Definition at line 376 of file ktimezone_win.cpp.

const int OneHour = 3600
static

Definition at line 596 of file ktimezone_win.cpp.

PtrTzSpecificLocalTimeToSystemTime pTzSpecificLocalTimeToSystemTime = 0
static

Definition at line 151 of file ktimezone_win.cpp.

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

Definition at line 202 of file ktimezone_win.cpp.

const ZoneKey ZoneTbl[]
static

Definition at line 41 of file ktimezone_win.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jun 1 2013 12:05:06 by doxygen 1.8.1.1 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.10.4 API Reference

Skip menu "kdelibs-4.10.4 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