org.kde.koala

Class KInstance

public class KInstance extends Object implements QtSupport, KInstanceInterface

Access to KDE global objects for use in shared libraries. In practical terms, this class is used in KDE components. This allows components to store things that normally would be accessed by KGlobal.

Author: Torben Weis

UNKNOWN: Access to KDE global objects for use in shared libraries.

Constructor Summary
protected KInstance(Class dummy)
KInstance(String instanceName)
Constructor.
KInstance(KAboutData aboutData)
Constructor.
KInstance(KInstanceInterface src)
Method Summary
KAboutDataaboutData()
Returns the about data of this instance Warning, can be null
KConfigconfig()
Returns the general config object ("appnamerc").
KStandardDirsdirs()
Returns the application standard dirs object.
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
KIconLoadericonLoader()
Returns an iconloader object.
StringinstanceName()
Returns the name of the instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?
KMimeSourceFactorymimeSourceFactory()
Returns the KMimeSourceFactory of the instance.
voidnewIconLoader()
Re-allocate the global iconloader.
protected voidsetConfigName(String name)
Set name of default config file.
KSharedConfigsharedConfig()
Returns the general config object ("appnamerc").

Constructor Detail

KInstance

protected KInstance(Class dummy)

KInstance

public KInstance(String instanceName)
Constructor.

Parameters: instanceName the name of the instance

UNKNOWN: Constructor.

KInstance

public KInstance(KAboutData aboutData)
Constructor. When building a KInstance that is not your KApplication, make sure that the KAboutData and the KInstance have the same life time. You have to destroy both, since the instance doesn't own the about data. Don't build a KAboutData on the stack in this case ! Building a KAboutData on the stack is only ok for usage with KCmdLineArgs and KApplication (not destroyed until the app exits).

Parameters: aboutData data about this instance (see KAboutData)

UNKNOWN: Constructor.

KInstance

public KInstance(KInstanceInterface src)

Method Detail

aboutData

public KAboutData aboutData()
Returns the about data of this instance Warning, can be null

Returns: the about data of the instance, or 0 if it has not been set yet

UNKNOWN: Returns the about data of this instance Warning, can be 0L

config

public KConfig config()
Returns the general config object ("appnamerc").

Returns: the KConfig object for the instance.

UNKNOWN: Returns the general config object ("appnamerc").

dirs

public KStandardDirs dirs()
Returns the application standard dirs object.

Returns: The KStandardDirs of the application.

UNKNOWN: Returns the application standard dirs object.

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

iconLoader

public KIconLoader iconLoader()
Returns an iconloader object.

Returns: the iconloader object.

UNKNOWN: Returns an iconloader object.

instanceName

public String instanceName()
Returns the name of the instance

Returns: the instance name, can be null if the KInstance has been created with a null name

UNKNOWN: Returns the name of the instance

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

mimeSourceFactory

public KMimeSourceFactory mimeSourceFactory()
Returns the KMimeSourceFactory of the instance. Mainly added for API completeness and future extensibility.

Returns: the KMimeSourceFactory set as default for this application.

UNKNOWN: Returns the KMimeSourceFactory of the instance.

newIconLoader

public void newIconLoader()
Re-allocate the global iconloader.

UNKNOWN: Re-allocate the global iconloader.

setConfigName

protected void setConfigName(String name)
Set name of default config file.

Parameters: name the name of the default config file

UNKNOWN: Set name of default config file.

sharedConfig

public KSharedConfig sharedConfig()
Returns the general config object ("appnamerc").

Returns: the KConfig object for the instance.

UNKNOWN: Returns the general config object ("appnamerc").