class KInstance

Access to KDE global objects for use in shared libraries. More...

Definition#include <kinstance.h>
Inherited byKApplication, KUniqueApplication
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


Detailed Description

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.

 KInstance ( const QCString& instanceName)

KInstance

Constructor

Parameters:
instanceNamethe name of the instance

 KInstance ( const KAboutData * aboutData )

KInstance

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:
aboutDatadata about this instance (see KAboutData)

 ~KInstance ()

~KInstance

[virtual]

Destructor.

KStandardDirsdirs ()

dirs

[const]

Retrieve the application standard dirs object.

KConfigconfig ()

config

[const]

Retrieve the general config object.

KIconLoadericonLoader ()

iconLoader

[const]

Retrieve an iconloader object.

void  newIconLoader ()

newIconLoader

[const]

Re-allocate the global iconloader.

KCharsetscharsets ()

charsets

[const]

const KAboutDataaboutData ()

aboutData

[const]

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

QCString  instanceName ()

instanceName

[const]

Returns: the instance name

KMimeSourceFactory*  mimeSourceFactory ()

mimeSourceFactory

[const]

Mainly added for API completeness and future extensibility.

Returns: the KMimeSourceFactory set as default for this application.

 KInstance ( const KInstance& )

KInstance

[protected]

Copy Constructor is not allowed