luna-sysmgr-common
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LocalePreferences Class Reference

#include <LocalePreferences.h>

Inheritance diagram for LocalePreferences:
[legend]
Collaboration diagram for LocalePreferences:
[legend]

Classes

struct  LocaleInfo
 

Signals

void prefsLocaleChanged (void)
 
void signalTimeFormatChanged (const char *format)
 
void localeInfoChanged ()
 

Public Member Functions

QString uiLocale () const
 The locale of the UI. More...
 
QString locale (const QString &name) const
 Get locale by name. More...
 
QString timezone () const
 Default time zone. More...
 
QString clock () const
 Clock preference (either "12", "24" or "locale") More...
 
LocaleInfo locales () const
 Get all locale information. More...
 
std::string locale () const
 
std::string localeRegion () const
 
std::string phoneRegion () const
 
std::string timeFormat () const
 

Static Public Member Functions

static LocalePreferencesinstance ()
 

Member Function Documentation

QString LocalePreferences::clock ( ) const

Clock preference (either "12", "24" or "locale")

LocalePreferences * LocalePreferences::instance ( )
static
QString LocalePreferences::locale ( const QString &  name) const

Get locale by name.

std::string LocalePreferences::locale ( ) const
void LocalePreferences::localeInfoChanged ( )
signal
std::string LocalePreferences::localeRegion ( ) const
LocalePreferences::LocaleInfo LocalePreferences::locales ( ) const

Get all locale information.

std::string LocalePreferences::phoneRegion ( ) const
void LocalePreferences::prefsLocaleChanged ( void  )
signal
void LocalePreferences::signalTimeFormatChanged ( const char *  format)
signal
std::string LocalePreferences::timeFormat ( ) const
QString LocalePreferences::timezone ( ) const

Default time zone.

QString LocalePreferences::uiLocale ( ) const

The locale of the UI.


The documentation for this class was generated from the following files: