Qt Extended Home · Index · Classes · Headers · Overviews codeless banner

DesktopSettings Class Reference

The DesktopSettings class maintains settings. More...

    #include <DesktopSettings>

Inherits QSettings.

Public Functions

Static Public Members

Additional Inherited Members


Detailed Description

The DesktopSettings class maintains settings.

The DesktopSettings class has a number of global options. It is also used as a replacement for QSettings, providing various helper functions.

DesktopSettings will cause settings to be located in Trolltech/Qt Extended Sync Agent/... On Windows, this can be found in the registry: HKCU\Software\Trolltech\Qt Extended Sync Agent\... On Mac OS X, this can be found in $HOME/Library/Preferences/Qt Extended Sync Agent.plist On Unix, this can be found in $HOME/.config/Trolltech/Qt Extended Sync Agent/...


Member Function Documentation

DesktopSettings::DesktopSettings ( const QString & section = QString() )

Create a DesktopSettings instance. If the section is specified, settings will be stored there.

DesktopSettings::~DesktopSettings ()   [virtual]

Destructor.

QString DesktopSettings::currentPlugin ()   [static]

Return the current plugin. Note that this may not be accurate when using multi-window mode.

bool DesktopSettings::debugMode ()   [static]

Return the debugMode global option.

QString DesktopSettings::defaultPlugin ()   [static]

Return the default plugin.

QString DesktopSettings::deviceId ()   [static]

Returns a unique string for this device.

QString DesktopSettings::homePath ()   [static]

Return the location that Qt Extended Sync Agent can write files to. This function exists because the location varies for different platforms.

QString DesktopSettings::installedDir ()   [static]

Return the location that Qt Extended Sync Agent has been installed to.

QStringList DesktopSettings::languages ()   [static]

Return a bunch of related languages. For example: en_US, en.

void DesktopSettings::loadTranslations ( const QString & file, QObject * parent )   [static]

Load translations from file. The translations will be unloaded when parent is destroyed.

bool DesktopSettings::promptOnQuit ()   [static]

Return the promptOnQuit global option.

QString DesktopSettings::systemLanguage ()   [static]

Return the system language (or a derivitave that exists, falling back to english)


Copyright © 2009 Nokia
Qt Extended Sync Agent Documentation