class KInstance

# class KInstance | This file defines portable defines for large file support. More...
Definition | `#include <kinstance.h>`
Inherited by | KApplication, KUniqueApplication
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KInstance ( const QCString& instanceName)
- KInstance ( const KAboutData * aboutData )
- KInstance ( KInstance* src )
- virtual ~KInstance ()
- KStandardDirs * dirs () const
- KConfig * config () const
- KIconLoader * iconLoader () const
- void newIconLoader () const
- KCharsets * charsets () const
- const KAboutData * aboutData () const
- QCString instanceName () const
- KMimeSourceFactory* mimeSourceFactory () const

#### Protected Methods

- KInstance ( const KInstance& )
- void setConfigName (const QString &name)
- virtual void virtual_hook ( int id, void* data )

## Detailed Description

This file defines portable defines for large file support. To use this you must compile your code with _LARGEFILE64_SOURCE defined and use the KDE_xxx defines instead of the normal C functions and structures.

Please note that not every platform supports 64 bit file structures, in that case the normal 32 bit functions will be used.

KDE makes use of the "Transitional Extensions" since we can not ensure that all modules and libraries used by KDE will be compiled with 64-bit support. (A.3.2.3 Mixed API and Compile Environments within a Single Process)

See also: http://www.suse.de/~aj/linux_lfs.html, http://ftp.sas.com/standards/large.file/xopen/x_open.05Mar96.html

KInstance ( const QCString& instanceName) | ### KInstance

Constructor.

Parameters:

instanceName | the 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:

aboutData | data about this instance (see KAboutData)

KInstance ( KInstance* src ) | ### KInstance

~KInstance () | ### ~KInstance

[virtual]

Destructor.

KStandardDirs * dirs () | ### dirs

[const]

Returns the application standard dirs object.

Returns: The KStandardDirs of the application.

KConfig * config () | ### config

[const]

Returns the general config object ("appnamerc").

Returns: the KConfig object for the instance.

KIconLoader * iconLoader () | ### iconLoader

[const]

Returns an iconloader object.

Returns: the iconloader object.

void newIconLoader () | ### newIconLoader

[const]

Re-allocate the global iconloader.

KCharsets * charsets () | ### charsets

[const]

const KAboutData * aboutData () | ### 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

QCString instanceName () | ### instanceName

[const]

Returns the name of the instance

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

KMimeSourceFactory* mimeSourceFactory () | ### 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.

KInstance ( const KInstance& ) | ### KInstance

[protected]

Copy Constructor is not allowed

void setConfigName (const QString &name) | ### setConfigName

[protected]

Set name of default config file.

Parameters:

name | the name of the default config file

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:15 2003, using kdoc 2.0a54.