Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KInstance Class Reference

#include <kinstance.h>

Inheritance diagram for KInstance:

KApplication KUniqueApplication List of all members.

Public Methods

 KInstance (const QCString &instanceName)
 KInstance (const KAboutData *aboutData)
virtual ~KInstance ()
KStandardDirsdirs () const
KConfigconfig () const
KIconLoadericonLoader () const
void newIconLoader () const
const KAboutDataaboutData () const
QCString instanceName () const
KMimeSourceFactorymimeSourceFactory () const

Protected Methods

 KInstance (const KInstance &)
void setConfigName (const QString &name)

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
Version:
Id:
kinstance.h,v 1.26 2002/09/28 12:28:47 tjansen Exp

Definition at line 42 of file kinstance.h.


Constructor & Destructor Documentation

KInstance::KInstance const QCString &    instanceName
 

Constructor.

Parameters:
instanceName  the name of the instance

KInstance::KInstance const 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)

virtual KInstance::~KInstance   [virtual]
 

Destructor.

KInstance::KInstance const KInstance &    [protected]
 

Copy Constructor is not allowed


Member Function Documentation

const KAboutData* KInstance::aboutData  
 

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

KConfig* KInstance::config  
 

Returns the general config object ("appnamerc").

Returns:
the KConfig object for the instance.

KStandardDirs* KInstance::dirs  
 

Returns the application standard dirs object.

Returns:
The KStandardDirs of the application.

KIconLoader* KInstance::iconLoader  
 

Returns an iconloader object.

Returns:
the iconloader object.

QCString KInstance::instanceName  
 

Returns the name of the instance

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

KMimeSourceFactory* KInstance::mimeSourceFactory  
 

Returns the KMimeSourceFactory of the instance. Mainly added for API completeness and future extensibility.

Returns:
the KMimeSourceFactory set as default for this application.

void KInstance::newIconLoader  
 

Re-allocate the global iconloader.

void KInstance::setConfigName const QString &    name [protected]
 

Set name of default config file.

Parameters:
name  the name of the default config file
Since:
3.1


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:16 2003 for kdelibs by doxygen1.2.18