KInstance Class Reference
#include <kinstance.h>
Inheritance diagram for KInstance:

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.
- Author:
- Torben Weis
Definition at line 43 of file kinstance.h.
Public Member Functions | |
KInstance (const QCString &instanceName) | |
KInstance (const KAboutData *aboutData) | |
KInstance (KInstance *src) | |
virtual | ~KInstance () |
KStandardDirs * | dirs () const |
KConfig * | config () const |
KSharedConfig * | sharedConfig () const |
KIconLoader * | iconLoader () const |
void | newIconLoader () const |
const KAboutData * | aboutData () const |
QCString | instanceName () const |
KMimeSourceFactory * | mimeSourceFactory () const |
Protected Member Functions | |
KInstance (const KInstance &) | |
void | setConfigName (const QString &name) |
virtual void | virtual_hook (int id, void *data) |
Friends | |
class | KStandardDirs |
Constructor & Destructor Documentation
|
Constructor.
Definition at line 69 of file kinstance.cpp. |
|
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).
Definition at line 87 of file kinstance.cpp. |
|
Destructor.
Definition at line 132 of file kinstance.cpp. |
|
Copy Constructor is not allowed.
|
Member Function Documentation
|
Returns the about data of this instance Warning, can be 0L.
Definition at line 255 of file kinstance.cpp. |
|
Returns the general config object ("appnamerc").
Definition at line 175 of file kinstance.cpp. |
|
Returns the application standard dirs object.
Definition at line 159 of file kinstance.cpp. |
|
Returns an iconloader object.
Definition at line 237 of file kinstance.cpp. |
|
Returns the name of the instance.
Definition at line 261 of file kinstance.cpp. |
|
Returns the KMimeSourceFactory of the instance. Mainly added for API completeness and future extensibility.
Definition at line 267 of file kinstance.cpp. |
|
Re-allocate the global iconloader.
Definition at line 248 of file kinstance.cpp. |
|
Set name of default config file.
Definition at line 231 of file kinstance.cpp. |
|
Returns the general config object ("appnamerc").
Definition at line 222 of file kinstance.cpp. |
The documentation for this class was generated from the following files: