KGlobal Class Reference
Access to the KDE global objects. More...
#include <kglobal.h>
Static Public Member Functions | |
KInstance * | instance () |
Returns the global instance. | |
KStandardDirs * | dirs () |
Returns the application standard dirs object. | |
KConfig * | config () |
Returns the general config object. | |
KIconLoader * | iconLoader () |
Returns an iconloader object. | |
KLocale * | locale () |
Returns the global locale object. | |
KCharsets * | charsets () |
The global charset manager. | |
const QString & | staticQString (const char *str) |
Creates a static QString. | |
const QString & | staticQString (const QString &str) |
Creates a static QString. | |
void | registerStaticDeleter (KStaticDeleterBase *d) |
Registers a static deleter. | |
void | unregisterStaticDeleter (KStaticDeleterBase *d) |
Unregisters a static deleter. | |
void | deleteStaticDeleters () |
Calls KStaticDeleterBase::destructObject() on all registered static deleters and unregisters them all. | |
void | setActiveInstance (KInstance *d) |
The instance currently active (useful in a multi-instance application, such as a KParts application). | |
KInstance * | activeInstance () |
Static Public Attributes | |
KStringDict * | _stringDict = 0 |
KInstance * | _instance = 0 |
KLocale * | _locale = 0 |
KCharsets * | _charsets = 0 |
KStaticDeleterList * | _staticDeleters = 0 |
KInstance * | _activeInstance = 0 |
Detailed Description
Access to the KDE global objects.KGlobal provides you with pointers of many central objects that exist only once in the process. It is also responsible for managing instances of KStaticDeleterBase.
- See also:
- KStaticDeleterBase
- Author:
- Sirtaj Singh Kang (taj@kde.org)
- Version:
- Id
- kglobal.h,v 1.44.2.2 2003/09/02 02:27:45 raabe Exp
Definition at line 45 of file kglobal.h.
Member Function Documentation
|
Returns the global instance. There is always at least one instance of a component in one application (in most cases the application itself).
Definition at line 74 of file kglobal.cpp. Referenced by KApplication::caption(), KWin::icon(), KLocale::KLocale(), and KTempFile::KTempFile(). |
|
Returns the application standard dirs object.
Definition at line 53 of file kglobal.cpp. References KInstance::dirs(). Referenced by KIconLoader::addExtraDesktopThemes(), KLocale::allCountriesTwoAlpha(), KConfigBackEnd::changeFileName(), KApplication::checkRecoverFile(), KPalette::getPaletteList(), KDesktopFile::isAuthorizedDesktopFile(), KConfig::KConfig(), KIconTheme::KIconTheme(), KSimpleConfig::KSimpleConfig(), KLocale::langLookup(), KIconTheme::list(), KConfigINIBackEnd::parseConfigFiles(), and KApplication::tempSaveName(). |
|
|
Returns an iconloader object.
Definition at line 67 of file kglobal.cpp. References KInstance::iconLoader(). Referenced by KIconLoader::unknown(). |
|
Returns the global locale object.
Definition at line 80 of file kglobal.cpp. Referenced by KCharsets::codecForName(), KConfigBase::deleteEntry(), KLocale::langLookup(), KConfigBase::setLocale(), and KConfigBase::writeEntry(). |
|
The global charset manager.
Definition at line 94 of file kglobal.cpp. Referenced by KCharsets::descriptiveEncodingNames(). |
|
Creates a static QString. To be used inside functions(!) like:
Definition at line 118 of file kglobal.cpp. References QString::fromLatin1(). Referenced by KApplication::authorizeKAction(), KIconLoader::iconPath(), KURL::isLocalFile(), KIconLoader::loadIcon(), KConfigBase::readEntry(), and KURL::setEncodedPath(). |
|
Creates a static QString. To be used inside functions(!) like:
Definition at line 136 of file kglobal.cpp. |
|
Registers a static deleter.
Definition at line 159 of file kglobal.cpp. Referenced by KStaticDeleter< type >::setObject(). |
|
Unregisters a static deleter.
Definition at line 168 of file kglobal.cpp. Referenced by KStaticDeleter< type >::setObject(). |
|
Calls KStaticDeleterBase::destructObject() on all registered static deleters and unregisters them all.
Definition at line 175 of file kglobal.cpp. |
|
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. Definition at line 104 of file kglobal.cpp. References QString::fromUtf8(), and KLocale::setActiveCatalogue(). Referenced by KInstance::KInstance(), and KInstance::~KInstance(). |
The documentation for this class was generated from the following files: