In file ../core/kapp.h:

class KApplication : public QApplication

KApplication: A base class for all KDE applications

Inheritance:


public members:

KApplication ( int& argc, char** argv )
Constructor: pass command-line arguments
KApplication ( int& argc, char** argv, const QString& rAppName )
Constructor: pass command-line arguments and set a logical app name
virtual ~KApplication ()
Destructor
static KApplication * getKApplication ()
Return the current application object
const QString& appName () const
Return the logical application name
KConfig * getConfig () const
Retrieve the application config object.
ConfigState getConfigState () const
Retrieve the state of the app-config object.

Drag 'n Drop stuff
Atom getDndSelectionAtom ()
An X11 atom used for IPC
Atom getDndProtocolAtom ()
An X11 atom used for IPC
Atom getDndEnterProtocolAtom ()
An X11 atom used for IPC
Atom getDndLeaveProtocolAtom ()
An X11 atom used for IPC
Atom getDndRootProtocolAtom ()
An X11 atom used for IPC
Display *getDisplay ()
Get the X11 display
virtual void addDropZone ( KDNDDropZone *_z )
Used by KDNDDropZone to register
virtual void removeDropZone ( KDNDDropZone *_z )
Used by KDNDDropZone during shutdown
virtual void setRootDropZone ( KDNDDropZone *_z )
Set the DropZone which reveives root drop events.

protected members:

Drag 'n Drop stuff
QList< KDNDDropZone > dropZones
List of all DropZones.
KDNDDropZone *lastEnteredDropZone
The last drop zone the mouse was over
KDNDDropZone *rootDropZone
The DropZone which receives root drop events.
bool x11EventFilter ( XEvent * )
Used to catch X11 events
Atom DndSelection
An X11 atom used for IPC
Atom DndProtocol
An X11 atom used for IPC
Atom DndEnterProtocol
An X11 atom used for IPC
Atom DndLeaveProtocol
An X11 atom used for IPC
Atom DndRootProtocol
An X11 atom used for IPC
Display *display
The X11 display
static KApplication *KApp
Current application object.

Documentation

KApplication provides the application with KDE defaults such as accelerators, common menu entries, a KCOnfig object etc.
KApplication ( int& argc, char** argv )
Constructor. Pass command-line arguments. A KConfig object is created that contains an application-specific config file whose name is "~/." + argv[0] + "rc". This constructor should be considered obsolete. The state of the application-specific config file may be queried afterwards with getConfigState().

KApplication ( int& argc, char** argv, const QString& rAppName )
Constructor. Pass command-line arguments. A KConfig object is created that contains an application-specific config file whose name is "~/." + rAppName + "rc". The state of the application-specific config file may be queried afterwards with getConfigState().

virtual ~KApplication ()
Destructor

static KApplication * getKApplication ()
Return the current application object

const QString& appName () const
Return the logical application name as set in the constructor

KConfig * getConfig () const
Retrieve the application config object.

ConfigState getConfigState () const
Retrieve the state of the app-config object. Possible return values are APPCONFIG_NONE (the application-specific config file could not be opened neither read-write nor read-only), APPCONFIG_READONLY (the application-specific config file is opened read-only, but not read-write) and APPCONFIG_READWRITE (the application-specific config file is opened read-write).

KDNDDropZone * lastEnteredDropZone
If we get a DndLeaveProtocol we must inform 'lastEnteredDropZone' that the mouse left the DropZone.


this class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling