• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDECore

ktimezone_win.cpp File Reference

#include "ktimezone_win.h"
#include <config.h>
#include <kdebug.h>
#include <QStringList>
#include <windows.h>
#include <memory>
#include <string>
#include <cassert>

Go to the source code of this file.

Defines

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

Functions

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 WCHAR *value, WCHAR *dest, DWORD destSizeInBytes)
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 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 SYSTEMTIME qdatetime_to_systemtime (const QDateTime &dt)
static int qt_dayofweek_to_win_dayofweek (int qdow)
static QDateTime systemtime_to_qdatetime (const SYSTEMTIME &st)
static QString tchar_to_qstring (const wchar_t *str)
static QString tchar_to_qstring (TCHAR *ustr)
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 const TCHAR timeZonesKey [] = TEXT("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time Zones")

Define Documentation

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

Function Documentation

static bool check_local ( const KTimeZone *  caller,
const QDateTime &  dt 
) [inline, static]

Definition at line 171 of file ktimezone_win.cpp.

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

Definition at line 167 of file ktimezone_win.cpp.

static bool check_utc ( const KTimeZone *  caller,
const QDateTime &  dt 
) [inline, static]

Definition at line 175 of file ktimezone_win.cpp.

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

Definition at line 358 of file ktimezone_win.cpp.

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

Definition at line 338 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 193 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 135 of file ktimezone_win.cpp.

static bool get_string_value ( HKEY  key,
const WCHAR *  value,
WCHAR *  dest,
DWORD  destSizeInBytes 
) [static]

Definition at line 148 of file ktimezone_win.cpp.

static bool has_transition ( const TIME_ZONE_INFORMATION &  tz  )  [static]

Definition at line 179 of file ktimezone_win.cpp.

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

Definition at line 330 of file ktimezone_win.cpp.

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

Definition at line 320 of file ktimezone_win.cpp.

static QStringList list_key ( HKEY  key  )  [static]

Definition at line 403 of file ktimezone_win.cpp.

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

Definition at line 348 of file ktimezone_win.cpp.

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

Definition at line 362 of file ktimezone_win.cpp.

static SYSTEMTIME qdatetime_to_systemtime ( const QDateTime &  dt  )  [static]

Definition at line 60 of file ktimezone_win.cpp.

static int qt_dayofweek_to_win_dayofweek ( int  qdow  )  [static]

Definition at line 188 of file ktimezone_win.cpp.

static QDateTime systemtime_to_qdatetime ( const SYSTEMTIME &  st  )  [inline, static]

Definition at line 55 of file ktimezone_win.cpp.

static QString tchar_to_qstring ( const wchar_t *  str  )  [inline, static]

Definition at line 399 of file ktimezone_win.cpp.

static QString tchar_to_qstring ( TCHAR *  ustr  )  [inline, static]

Definition at line 395 of file ktimezone_win.cpp.

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

Definition at line 208 of file ktimezone_win.cpp.

Transitions transitions ( const KTimeZone *  caller,
int  year 
)

Definition at line 316 of file ktimezone_win.cpp.

Transitions transitions ( const TIME_ZONE_INFORMATION &  tz,
int  year 
)

Definition at line 219 of file ktimezone_win.cpp.

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

Definition at line 76 of file ktimezone_win.cpp.

static int win_dayofweek_to_qt_dayofweek ( int  wdow  )  [static]

Definition at line 183 of file ktimezone_win.cpp.


Variable Documentation

const int MAX_KEY_LENGTH = 255 [static]

Definition at line 392 of file ktimezone_win.cpp.

const int OneHour = 3600 [static]

Definition at line 356 of file ktimezone_win.cpp.

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

Definition at line 54 of file ktimezone_win.cpp.

KDECore

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal