Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

KLocale Class Reference

#include </home/clem/local/src/opie/noncore/apps/tinykate/libkate/microkde/klocale.h>

List of all members.

Public Member Functions

QString formatDate (const QDate &pDate, bool shortFormat=false) const
QString formatTime (const QTime &pTime, bool includeSecs=false) const
QString formatDateTime (const QDateTime &pDateTime) const
QString formatDateTime (const QDateTime &pDateTime, bool shortFormat, bool includeSecs=false) const
QDate readDate (const QString &str, bool *ok=0) const
QDate readDate (const QString &intstr, const QString &fmt, bool *ok=0) const
QTime readTime (const QString &str, bool *ok=0) const
bool use12Clock () const
bool weekStartsMonday () const
QString weekDayName (int, bool=false) const
QString monthName (int, bool=false) const
QString country () const
QString dateFormat () const
QString dateFormatShort () const
QString timeFormat () const

Private Member Functions

QTime readTime (const QString &str, bool seconds, bool *ok) const
QDate readDate (const QString &str, bool shortFormat, bool *ok) const


Member Function Documentation

QString KLocale::country  )  const
 

Definition at line 512 of file klocale.cpp.

References QString::null.

QString KLocale::dateFormat  )  const
 

Definition at line 517 of file klocale.cpp.

Referenced by formatDate(), and readDate().

QString KLocale::dateFormatShort  )  const
 

Definition at line 522 of file klocale.cpp.

Referenced by formatDate(), and readDate().

QString KLocale::formatDate const QDate pDate,
bool  shortFormat = false
const
 

Definition at line 121 of file klocale.cpp.

References QString::at(), dateFormat(), dateFormatShort(), QDate::day(), QDate::dayOfWeek(), QString::length(), QDate::month(), monthName(), put_it_in(), weekDayName(), and QDate::year().

Referenced by formatDateTime().

QString KLocale::formatDateTime const QDateTime pDateTime,
bool  shortFormat,
bool  includeSecs = false
const
 

Definition at line 193 of file klocale.cpp.

References QDateTime::date(), formatDate(), formatTime(), i18n, and QDateTime::time().

QString KLocale::formatDateTime const QDateTime pDateTime  )  const
 

Definition at line 202 of file klocale.cpp.

QString KLocale::formatTime const QTime pTime,
bool  includeSecs = false
const
 

Definition at line 42 of file klocale.cpp.

References QString::at(), i18n, QString::length(), put_it_in(), s, and timeFormat().

Referenced by formatDateTime().

QString KLocale::monthName int  ,
bool  = false
const
 

Definition at line 474 of file klocale.cpp.

References i18n, and QString::null.

Referenced by formatDate(), and readDate().

QDate KLocale::readDate const QString str,
bool  shortFormat,
bool *  ok
const [private]
 

Definition at line 215 of file klocale.cpp.

References dateFormat(), dateFormatShort(), fmt(), readDate(), and QString::simplifyWhiteSpace().

QDate KLocale::readDate const QString intstr,
const QString fmt,
bool *  ok = 0
const
 

Definition at line 221 of file klocale.cpp.

References QString::at(), QDate::currentDate(), error(), QChar::isSpace(), len, QString::length(), QString::mid(), monthName(), readInt(), s, QString::simplifyWhiteSpace(), str, and weekDayName().

QDate KLocale::readDate const QString str,
bool *  ok = 0
const
 

Definition at line 207 of file klocale.cpp.

References QDate::isValid().

Referenced by readDate().

QTime KLocale::readTime const QString str,
bool  seconds,
bool *  ok
const [private]
 

Definition at line 328 of file klocale.cpp.

References QString::at(), error(), QString::fromLatin1(), i18n, QChar::isSpace(), len, QString::length(), QString::mid(), QString::null, readInt(), QString::replace(), s, QString::simplifyWhiteSpace(), str, and timeFormat().

QTime KLocale::readTime const QString str,
bool *  ok = 0
const
 

Definition at line 320 of file klocale.cpp.

References QTime::isValid().

QString KLocale::timeFormat  )  const
 

Definition at line 527 of file klocale.cpp.

Referenced by formatTime(), and readTime().

bool KLocale::use12Clock  )  const
 

Definition at line 436 of file klocale.cpp.

QString KLocale::weekDayName int  ,
bool  = false
const
 

Definition at line 446 of file klocale.cpp.

References i18n, and QString::null.

Referenced by formatDate(), and readDate().

bool KLocale::weekStartsMonday  )  const
 

Definition at line 441 of file klocale.cpp.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:37:51 2005 for OPIE by  doxygen 1.4.2