org.kde.koala
public class KGlobal extends Object implements QtSupport
See Also: KStaticDeleterBase
UNKNOWN: Access to the KDE global objects.
| Constructor Summary | |
|---|---|
| protected | KGlobal(Class dummy) |
| KGlobal() | |
| Method Summary | |
|---|---|
| static KInstanceInterface | activeInstance() |
| static KCharsets | charsets()
The global charset manager. |
| static KConfig | config()
Returns the general config object. |
| static void | deleteStaticDeleters()
Calls KStaticDeleterBase.destructObject() on all
registered static deleters and unregisters them all. |
| static KStandardDirs | dirs()
Returns the application standard dirs object. |
| void | dispose() Delete the wrapped C++ instance ahead of finalize() |
| protected void | finalize() Deletes the wrapped C++ instance |
| static KIconLoader | iconLoader()
Returns an iconloader object. |
| static KInstanceInterface | instance()
Returns the global instance. |
| boolean | isDisposed() Has the wrapped C++ instance been deleted? |
| static KLocale | locale()
Returns the global locale object. |
| static void | registerStaticDeleter(KStaticDeleterBase d)
Registers a static deleter. |
| static void | setActiveInstance(KInstanceInterface d)
The instance currently active (useful in a multi-instance
application, such as a KParts application).
|
| static KSharedConfig | sharedConfig()
Returns the general config object. |
| static String | staticQString(String str)
Creates a static String.
|
| static void | unregisterStaticDeleter(KStaticDeleterBase d)
Unregisters a static deleter. |
Returns: the global charset manager
UNKNOWN: The global charset manager.
Returns: the global configuration object.
UNKNOWN: Returns the general config object.
See Also: KStaticDeleterBase KStaticDeleter
UNKNOWN: Calls KStaticDeleterBase.destructObject() on all registered static deleters and unregisters them all.
Returns: the global standard dir object
UNKNOWN: Returns the application standard dirs object.
Returns: the global iconloader object
UNKNOWN: Returns an iconloader object.
Returns: the global instance
UNKNOWN: Returns the global instance.
Returns: the global locale object
UNKNOWN: Returns the global locale object.
Parameters: d the static deleter to register
See Also: KStaticDeleterBase KStaticDeleter
UNKNOWN: Registers a static deleter.
UNKNOWN: The instance currently active (useful in a multi-instance application, such as a KParts application).
Returns: the global configuration object.
UNKNOWN: Returns the general config object.
static StringmyString = KGlobal.staticString("myText");
!!! Do _NOT_ use: !!!
static String myString = KGlobal.staticString("myText");
This creates a static object (instead of a static reference)
and as you know static objects are EVIL.Parameters: str the string to create
Returns: the static string
UNKNOWN: Creates a static String.
Parameters: d the static deleter to unregister
See Also: KStaticDeleterBase KStaticDeleter
UNKNOWN: Unregisters a static deleter.