#include <kinstance.h>

Public Member Functions | |
TDEInstance (const TQCString &instanceName) | |
TDEInstance (const TDEAboutData *aboutData) | |
TDEInstance (TDEInstance *src) | |
virtual | ~TDEInstance () |
TDEStandardDirs * | dirs () const |
TDEConfig * | config () const |
TDESharedConfig * | sharedConfig () const |
void | setConfigReadOnly (bool ro) |
TDEIconLoader * | iconLoader () const |
void | newIconLoader () const |
const TDEAboutData * | aboutData () const |
TQCString | instanceName () const |
KMimeSourceFactory * | mimeSourceFactory () const |
Protected Member Functions | |
TDEInstance (const TDEInstance &) | |
void | setConfigName (const TQString &name) |
virtual void | virtual_hook (int id, void *data) |
Friends | |
class | TDEStandardDirs |
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 TDEGlobal.
Definition at line 47 of file kinstance.h.
Constructor & Destructor Documentation
TDEInstance::TDEInstance | ( | const TQCString & | instanceName | ) |
Constructor.
- Parameters
-
instanceName the name of the instance
Definition at line 73 of file kinstance.cpp.
TDEInstance::TDEInstance | ( | const TDEAboutData * | aboutData | ) |
Constructor.
When building a TDEInstance that is not your TDEApplication, make sure that the TDEAboutData and the TDEInstance have the same life time. You have to destroy both, since the instance doesn't own the about data. Don't build a TDEAboutData on the stack in this case ! Building a TDEAboutData on the stack is only ok for usage with TDECmdLineArgs and TDEApplication (not destroyed until the app exits).
- Parameters
-
aboutData data about this instance (see TDEAboutData)
Definition at line 95 of file kinstance.cpp.
|
virtual |
Destructor.
Definition at line 152 of file kinstance.cpp.
|
protected |
Copy Constructor is not allowed.
Member Function Documentation
const TDEAboutData * TDEInstance::aboutData | ( | ) | const |
Returns the about data of this instance Warning, can be 0L.
- Returns
- the about data of the instance, or 0 if it has not been set yet
Definition at line 314 of file kinstance.cpp.
TDEConfig * TDEInstance::config | ( | ) | const |
Returns the general config object ("appnamerc").
- Returns
- the TDEConfig object for the instance.
Definition at line 210 of file kinstance.cpp.
TDEStandardDirs * TDEInstance::dirs | ( | ) | const |
Returns the application standard dirs object.
- Returns
- The TDEStandardDirs of the application.
Definition at line 187 of file kinstance.cpp.
TDEIconLoader * TDEInstance::iconLoader | ( | ) | const |
Returns an iconloader object.
- Returns
- the iconloader object.
Definition at line 274 of file kinstance.cpp.
TQCString TDEInstance::instanceName | ( | ) | const |
Returns the name of the instance.
- Returns
- the instance name, can be null if the TDEInstance has been created with a null name
Definition at line 320 of file kinstance.cpp.
KMimeSourceFactory * TDEInstance::mimeSourceFactory | ( | ) | const |
Returns the KMimeSourceFactory of the instance.
Mainly added for API completeness and future extensibility.
- Returns
- the KMimeSourceFactory set as default for this application.
Definition at line 326 of file kinstance.cpp.
void TDEInstance::newIconLoader | ( | ) | const |
Re-allocate the global iconloader.
Definition at line 307 of file kinstance.cpp.
|
protected |
Set name of default config file.
- Parameters
-
name the name of the default config file
- Since
- 3.1
Definition at line 268 of file kinstance.cpp.
void TDEInstance::setConfigReadOnly | ( | bool | ro | ) |
Set a read-only flag on the configuration files This must be called before config() or dirs() to have any effect Defaults to FALSE.
- Parameters
-
ro read only if TRUE
Definition at line 205 of file kinstance.cpp.
TDESharedConfig * TDEInstance::sharedConfig | ( | ) | const |
Returns the general config object ("appnamerc").
- Returns
- the TDEConfig object for the instance.
Definition at line 259 of file kinstance.cpp.
The documentation for this class was generated from the following files: