class KInstance

This file defines portable defines for large file support. More...

Definition#include <kinstance.h>
Inherited byKApplication, KUniqueApplication
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


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:
instanceNamethe 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:
aboutDatadata about this instance (see KAboutData)

 KInstance ( KInstance* src )

KInstance

 ~KInstance ()

~KInstance

[virtual]

Destructor.

KStandardDirsdirs ()

dirs

[const]

Returns the application standard dirs object.

Returns: The KStandardDirs of the application.

KConfigconfig ()

config

[const]

Returns the general config object ("appnamerc").

Returns: the KConfig object for the instance.

KIconLoadericonLoader ()

iconLoader

[const]

Returns an iconloader object.

Returns: the iconloader object.

void  newIconLoader ()

newIconLoader

[const]

Re-allocate the global iconloader.

KCharsetscharsets ()

charsets

[const]

const KAboutDataaboutData ()

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:
namethe name of the default config file

void  virtual_hook ( int id, void* data )

virtual_hook

[protected virtual]


Generated by: caleb on tcdevel on Tue Jan 28 12:54:04 2003, using kdoc $.