# class KGlobal | Access the KDE global objects. More...
Definition | `#include <kglobal.h>`
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Static Methods

- static KInstance * instance ()
- static KStandardDirs * dirs ()
- static KConfig * config ()
- static KIconLoader * iconLoader ()
- static KLocale * locale ()
- static KCharsets * charsets ()
- static const QString & staticQString (const char *)
- static const QString & staticQString (const QString &)
- static void registerStaticDeleter (KStaticDeleterBase *)
- static void unregisterStaticDeleter (KStaticDeleterBase *)
- static void deleteStaticDeleters ()

#### Public Members

- static KStringDict *_stringDict
- static KInstance *_instance
- static KLocale *_locale
- static KCharsets *_charsets
- static KStaticDeleterList *_staticDeleters
- static KInstance *_activeInstance

## Detailed Description

Access the KDE global objects.

KInstance * instance () | ### instance

[static]

Retrieve the global instance. There is always at least one instance of a component in one application (in most cases the application itself).

KStandardDirs * dirs () | ### dirs

[static]

Retrieve the application standard dirs object.

KConfig * config () | ### config

[static]

Retrieve the general config object.

KIconLoader * iconLoader () | ### iconLoader

[static]

Retrieve an iconloader object.

KLocale * locale () | ### locale

[static]

KCharsets * charsets () | ### charsets

[static]

const QString & staticQString (const char *) | ### staticQString

[static]

Create a static QString

To be used inside functions(!) like: static const QString &myString = KGlobal::staticQString("myText");

!!! Do _NOT_ use: !!! static QString myString = KGlobal::staticQString("myText"); This creates a static object (instead of a static reference) and as you know static objects are EVIL.

const QString & staticQString (const QString &) | ### staticQString

[static]

Create a static QString

To be used inside functions(!) like: static const QString &myString = KGlobal::staticQString(i18n("My Text"));

!!! Do _NOT_ use: !!! static QString myString = KGlobal::staticQString(i18n("myText")); This creates a static object (instead of a static reference) and as you know static objects are EVIL.

void registerStaticDeleter (KStaticDeleterBase *) | ### registerStaticDeleter

[static]

void unregisterStaticDeleter (KStaticDeleterBase *) | ### unregisterStaticDeleter

[static]

void deleteStaticDeleters () | ### deleteStaticDeleters

[static]

static KStringDict * _stringDict | ### _stringDict

static KInstance * _instance | ### _instance

static KLocale * _locale | ### _locale

static KCharsets * _charsets | ### _charsets

static KStaticDeleterList * _staticDeleters | ### _staticDeleters

static KInstance * _activeInstance | ### _activeInstance

- Version: $Id: kglobal.h,v 1.34 2000/11/01 13:01:38 coolo Exp $
- Author: Sirtaj Singh Kang (taj@kde.org)
- Generated: root@sparc.ports.openbsd.org on Wed May 2 09:34:58 2001, using kdoc 2.0a53.