#include <kglobal.h>
Static Public Methods | |
| KInstance * | instance () |
| KStandardDirs * | dirs () |
| KConfig * | config () |
| KIconLoader * | iconLoader () |
| KLocale * | locale () |
| KCharsets * | charsets () |
| const QString & | staticQString (const char *str) |
| const QString & | staticQString (const QString &str) |
| void | registerStaticDeleter (KStaticDeleterBase *d) |
| void | unregisterStaticDeleter (KStaticDeleterBase *d) |
| void | deleteStaticDeleters () |
| void | setActiveInstance (KInstance *d) |
Definition at line 45 of file kglobal.h.
|
|
The global charset manager.
|
|
|
Returns the general config object.
|
|
|
Calls KStaticDeleterBase::destructObject() on all registered static deleters and unregisters them all.
|
|
|
Returns the application standard dirs object.
|
|
|
Returns an iconloader object.
|
|
|
Returns the global instance. There is always at least one instance of a component in one application (in most cases the application itself).
|
|
|
Returns the global locale object.
|
|
|
Registers a static deleter.
Referenced by KStaticDeleter< type >::setObject(). |
|
|
The instance currently active (useful in a multi-instance application, such as a KParts application). Don't use this - it's mainly for KAboutDialog and KBugReport. |
|
|
Creates 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.
|
|
|
Creates 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.
|
|
|
Unregisters a static deleter.
Referenced by KStaticDeleter< type >::setObject(). |
1.2.18