#include <tdeinstance.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 TDE global objects for use in shared libraries.
In practical terms, this class is used in TDE components. This allows components to store things that normally would be accessed by TDEGlobal.
Definition at line 47 of file tdeinstance.h.
Constructor & Destructor Documentation
◆ TDEInstance() [1/4]
TDEInstance::TDEInstance | ( | const TQCString & | instanceName | ) |
Constructor.
- Parameters
-
instanceName the name of the instance
Definition at line 75 of file tdeinstance.cpp.
◆ TDEInstance() [2/4]
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 97 of file tdeinstance.cpp.
◆ TDEInstance() [3/4]
TDEInstance::TDEInstance | ( | TDEInstance * | src | ) |
Definition at line 120 of file tdeinstance.cpp.
◆ ~TDEInstance()
|
virtual |
Destructor.
Definition at line 154 of file tdeinstance.cpp.
◆ TDEInstance() [4/4]
|
protected |
Copy Constructor is not allowed.
Member Function Documentation
◆ aboutData()
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 336 of file tdeinstance.cpp.
◆ config()
TDEConfig * TDEInstance::config | ( | ) | const |
Returns the general config object ("appnamerc").
- Returns
- the TDEConfig object for the instance.
Definition at line 212 of file tdeinstance.cpp.
◆ dirs()
TDEStandardDirs * TDEInstance::dirs | ( | ) | const |
Returns the application standard dirs object.
- Returns
- The TDEStandardDirs of the application.
Definition at line 189 of file tdeinstance.cpp.
◆ iconLoader()
TDEIconLoader * TDEInstance::iconLoader | ( | ) | const |
Returns an iconloader object.
- Returns
- the iconloader object.
Definition at line 276 of file tdeinstance.cpp.
◆ instanceName()
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 342 of file tdeinstance.cpp.
◆ mimeSourceFactory()
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 348 of file tdeinstance.cpp.
◆ newIconLoader()
void TDEInstance::newIconLoader | ( | ) | const |
Re-allocate the global iconloader.
Definition at line 329 of file tdeinstance.cpp.
◆ setConfigName()
|
protected |
Set name of default config file.
- Parameters
-
name the name of the default config file
- Since
- 3.1
Definition at line 270 of file tdeinstance.cpp.
◆ setConfigReadOnly()
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 207 of file tdeinstance.cpp.
◆ sharedConfig()
TDESharedConfig * TDEInstance::sharedConfig | ( | ) | const |
Returns the general config object ("appnamerc").
- Returns
- the TDEConfig object for the instance.
Definition at line 261 of file tdeinstance.cpp.
◆ virtual_hook()
|
protectedvirtual |
Definition at line 360 of file tdeinstance.cpp.
Friends And Related Function Documentation
◆ TDEStandardDirs
|
friend |
Definition at line 49 of file tdeinstance.h.
The documentation for this class was generated from the following files: