libkdepim
KPimPrefs Class Reference
List of all members.Detailed Description
Definition at line 31 of file kpimprefs.h.
Public Member Functions | |
KPimPrefs (const QString &name=QString::null) | |
virtual | ~KPimPrefs () |
void | usrSetDefaults () |
void | usrReadConfig () |
void | usrWriteConfig () |
Static Public Member Functions | |
static const QString | timezone () |
static QDateTime | utcToLocalTime (const QDateTime &dt, const QString &timeZoneId) |
static QDateTime | localTimeToUtc (const QDateTime &dt, const QString &timeZoneId) |
Public Attributes | |
QStringList | mCustomCategories |
Protected Member Functions | |
virtual void | setCategoryDefaults () |
Member Function Documentation
void KPimPrefs::usrSetDefaults | ( | ) |
void KPimPrefs::usrReadConfig | ( | ) |
void KPimPrefs::usrWriteConfig | ( | ) |
const QString KPimPrefs::timezone | ( | ) | [static] |
Get user's timezone.
This will first look for whatever timezone is stored in KOrganizer's configuration file. If no timezone is found there, it uses /etc/localtime.
The value returned may be in various formats (for example, America/New_York or EST) so your program should be prepared to these formats.
The Calendar class in libkcal says accepts all timezone codes that are listed in /usr/share/zoneinfo/zone.tab.
- See also:
- Calendar
Definition at line 62 of file kpimprefs.cpp.
QDateTime KPimPrefs::utcToLocalTime | ( | const QDateTime & | dt, | |
const QString & | timeZoneId | |||
) | [static] |
Convert time given in UTC to local time at timezone specified by given timezone id.
Definition at line 95 of file kpimprefs.cpp.
QDateTime KPimPrefs::localTimeToUtc | ( | const QDateTime & | dt, | |
const QString & | timeZoneId | |||
) | [static] |
Convert time given in local time at timezone specified by given timezone id to UTC.
Definition at line 138 of file kpimprefs.cpp.
The documentation for this class was generated from the following files: