.TH "KApplication" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdecore Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KApplication \- Controls and provides information to all \fBKDE\fP applications. Controls and provides information to all \fBKDE\fP applications.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kapplication.h>\fP
.PP
Inherits \fBQApplication\fP, and \fBKInstance\fP.
.PP
Inherited by \fBKUniqueApplication\fP.
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBCaptionLayout\fP { \fBCaptionAppLast\fP = 1, \fBCaptionAppFirst\fP, \fBCaptionNoApp\fP }"
.br
.ti -1c
.RI "enum \fBShutdownConfirm\fP { \fBShutdownConfirmDefault\fP =  -1, \fBShutdownConfirmNo\fP =  0, \fBShutdownConfirmYes\fP =  1 }"
.br
.ti -1c
.RI "enum \fBShutdownType\fP { \fBShutdownTypeDefault\fP =  -1, \fBShutdownTypeNone\fP =  0, \fBShutdownTypeReboot\fP =  1, \fBShutdownTypeHalt\fP =  2 }"
.br
.ti -1c
.RI "enum \fBShutdownMode\fP { \fBShutdownModeDefault\fP =  -1, \fBShutdownModeSchedule\fP =  0, \fBShutdownModeTryNow\fP =  1, \fBShutdownModeForceNow\fP =  2, \fBShutdownModeInteractive\fP =  3 }"
.br
.ti -1c
.RI "enum { \fBShiftModifier\fP =  1<<0, \fBLockModifier\fP =  1<<1, \fBControlModifier\fP =  1<<2, \fBModifier1\fP =  1<<3, \fBModifier2\fP =  1<<4, \fBModifier3\fP =  1<<5, \fBModifier4\fP =  1<<6, \fBModifier5\fP =  1<<7 }"
.br
.ti -1c
.RI "enum { \fBButton1Pressed\fP =  1<<8, \fBButton2Pressed\fP =  1<<9, \fBButton3Pressed\fP =  1<<10, \fBButton4Pressed\fP =  1<<11, \fBButton5Pressed\fP =  1<<12 }"
.br
.ti -1c
.RI "enum \fBSettingsCategory\fP { \fBSETTINGS_MOUSE\fP, \fBSETTINGS_COMPLETION\fP, \fBSETTINGS_PATHS\fP, \fBSETTINGS_POPUPMENU\fP, \fBSETTINGS_QT\fP, \fBSETTINGS_SHORTCUTS\fP }"
.br
.in -1c
.SS "Public Slots"

.in +1c
.ti -1c
.RI "void \fBinvokeBrowser\fP (const \fBQString\fP &url, const \fBQCString\fP &startup_id)"
.br
.ti -1c
.RI "void \fBinvokeBrowser\fP (const \fBQString\fP &url)"
.br
.ti -1c
.RI "void \fBcut\fP ()"
.br
.ti -1c
.RI "void \fBcopy\fP ()"
.br
.ti -1c
.RI "void \fBpaste\fP ()"
.br
.ti -1c
.RI "void \fBclear\fP ()"
.br
.ti -1c
.RI "void \fBselectAll\fP ()"
.br
.ti -1c
.RI "void \fBref\fP ()"
.br
.ti -1c
.RI "void \fBderef\fP ()"
.br
.in -1c
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBkdisplayPaletteChanged\fP ()"
.br
.ti -1c
.RI "void \fBkdisplayStyleChanged\fP ()"
.br
.ti -1c
.RI "void \fBkdisplayFontChanged\fP ()"
.br
.ti -1c
.RI "void \fBappearanceChanged\fP ()"
.br
.ti -1c
.RI "void \fBtoolbarAppearanceChanged\fP (int)"
.br
.ti -1c
.RI "void \fBbackgroundChanged\fP (int desk)"
.br
.ti -1c
.RI "void \fBsettingsChanged\fP (int category)"
.br
.ti -1c
.RI "void \fBiconChanged\fP (int group)"
.br
.ti -1c
.RI "void \fBkipcMessage\fP (int id, int data)"
.br
.ti -1c
.RI "void \fBsaveYourself\fP ()"
.br
.ti -1c
.RI "void \fBshutDown\fP ()"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKApplication\fP (bool allowStyles=true, bool GUIenabled=true)"
.br
.ti -1c
.RI "\fBKApplication\fP (Display *display, Qt::HANDLE visual=0, Qt::HANDLE colormap=0, bool allowStyles=true)"
.br
.ti -1c
.RI "\fBKApplication\fP (Display *display, int &\fBargc\fP, char **\fBargv\fP, const \fBQCString\fP &rAppName, bool allowStyles=true, bool GUIenabled=true)"
.br
.ti -1c
.RI "\fBKApplication\fP (int &\fBargc\fP, char **\fBargv\fP, const \fBQCString\fP &rAppName, bool allowStyles=true, bool GUIenabled=true) KDE_DEPRECATED"
.br
.ti -1c
.RI "\fBKConfig\fP * \fBsessionConfig\fP ()"
.br
.ti -1c
.RI "bool \fBisRestored\fP () const "
.br
.ti -1c
.RI "void \fBdisableSessionManagement\fP ()"
.br
.ti -1c
.RI "void \fBenableSessionManagement\fP ()"
.br
.ti -1c
.RI "bool \fBrequestShutDown\fP (\fBShutdownConfirm\fP confirm=ShutdownConfirmDefault, \fBShutdownType\fP sdtype=ShutdownTypeDefault, \fBShutdownMode\fP sdmode=ShutdownModeDefault)"
.br
.ti -1c
.RI "void \fBpropagateSessionManager\fP ()"
.br
.ti -1c
.RI "void \fBcommitData\fP (\fBQSessionManager\fP &sm)"
.br
.ti -1c
.RI "void \fBsaveState\fP (\fBQSessionManager\fP &sm)"
.br
.ti -1c
.RI "bool \fBsessionSaving\fP () const "
.br
.ti -1c
.RI "\fBQPixmap\fP \fBicon\fP () const "
.br
.ti -1c
.RI "\fBQString\fP \fBiconName\fP () const "
.br
.ti -1c
.RI "\fBQPixmap\fP \fBminiIcon\fP () const "
.br
.ti -1c
.RI "\fBQString\fP \fBminiIconName\fP () const "
.br
.ti -1c
.RI "void \fBsetTopWidget\fP (\fBQWidget\fP *topWidget)"
.br
.ti -1c
.RI "void \fBinvokeHelp\fP (const \fBQString\fP &anchor, const \fBQString\fP &appname, const \fBQCString\fP &startup_id) const "
.br
.ti -1c
.RI "void \fBinvokeHelp\fP (const \fBQString\fP &anchor=QString::null, const \fBQString\fP &appname=QString::null) const "
.br
.ti -1c
.RI "void \fBinvokeHTMLHelp\fP (const \fBQString\fP &aFilename, const \fBQString\fP &aTopic=QString::null) const KDE_DEPRECATED"
.br
.ti -1c
.RI "void \fBinvokeMailer\fP (const \fBQString\fP &address, const \fBQString\fP &subject, const \fBQCString\fP &startup_id)"
.br
.ti -1c
.RI "void \fBinvokeMailer\fP (const \fBQString\fP &address, const \fBQString\fP &subject)"
.br
.ti -1c
.RI "void \fBinvokeMailer\fP (const \fBKURL\fP &mailtoURL, const \fBQCString\fP &startup_id, bool allowAttachments)"
.br
.ti -1c
.RI "void \fBinvokeMailer\fP (const \fBKURL\fP &mailtoURL, const \fBQCString\fP &startup_id)"
.br
.ti -1c
.RI "void \fBinvokeMailer\fP (const \fBKURL\fP &mailtoURL)"
.br
.ti -1c
.RI "void \fBinvokeMailer\fP (const \fBQString\fP &to, const \fBQString\fP &cc, const \fBQString\fP &bcc, const \fBQString\fP &subject, const \fBQString\fP &body, const \fBQString\fP &messageFile, const \fBQStringList\fP &attachURLs, const \fBQCString\fP &startup_id)"
.br
.ti -1c
.RI "void \fBinvokeMailer\fP (const \fBQString\fP &to, const \fBQString\fP &cc, const \fBQString\fP &bcc, const \fBQString\fP &subject, const \fBQString\fP &body, const \fBQString\fP &messageFile=QString::null, const \fBQStringList\fP &attachURLs=\fBQStringList\fP())"
.br
.ti -1c
.RI "\fBQString\fP \fBcaption\fP () const "
.br
.ti -1c
.RI "KDE_DEPRECATED KStyle * \fBkstyle\fP () const "
.br
.ti -1c
.RI "\fBQString\fP \fBmakeStdCaption\fP (const \fBQString\fP &userCaption, bool withAppName=true, bool modified=false) const "
.br
.ti -1c
.RI "\fBQString\fP \fBtempSaveName\fP (const \fBQString\fP &pFilename) const "
.br
.ti -1c
.RI "\fBQString\fP \fBcheckRecoverFile\fP (const \fBQString\fP &pFilename, bool &bRecover) const "
.br
.ti -1c
.RI "Display * \fBgetDisplay\fP ()"
.br
.ti -1c
.RI "void \fBenableStyles\fP ()"
.br
.ti -1c
.RI "void \fBdisableStyles\fP ()"
.br
.ti -1c
.RI "void \fBinstallX11EventFilter\fP (\fBQWidget\fP *filter)"
.br
.ti -1c
.RI "void \fBremoveX11EventFilter\fP (const \fBQWidget\fP *filter)"
.br
.ti -1c
.RI "void \fBaddKipcEventMask\fP (int id)"
.br
.ti -1c
.RI "void \fBremoveKipcEventMask\fP (int id)"
.br
.ti -1c
.RI "\fBQCString\fP \fBstartupId\fP () const "
.br
.ti -1c
.RI "void \fBsetStartupId\fP (const \fBQCString\fP &startup_id)"
.br
.ti -1c
.RI "void \fBupdateUserTimestamp\fP (unsigned long time=0)"
.br
.ti -1c
.RI "unsigned long \fBuserTimestamp\fP () const "
.br
.ti -1c
.RI "void \fBupdateRemoteUserTimestamp\fP (const \fBQCString\fP &dcopId, unsigned long time=0)"
.br
.ti -1c
.RI "\fBQString\fP \fBgeometryArgument\fP () const "
.br
.ti -1c
.RI "void \fBinstallKDEPropertyMap\fP ()"
.br
.ti -1c
.RI "bool \fBauthorize\fP (const \fBQString\fP &genericAction)"
.br
.ti -1c
.RI "bool \fBauthorizeKAction\fP (const char *action)"
.br
.ti -1c
.RI "bool \fBauthorizeURLAction\fP (const \fBQString\fP &action, const \fBKURL\fP &baseURL, const \fBKURL\fP &destURL)"
.br
.ti -1c
.RI "void \fBallowURLAction\fP (const \fBQString\fP &action, const \fBKURL\fP &_baseURL, const \fBKURL\fP &_destURL)"
.br
.ti -1c
.RI "bool \fBauthorizeControlModule\fP (const \fBQString\fP &menuId)"
.br
.ti -1c
.RI "\fBQStringList\fP \fBauthorizeControlModules\fP (const \fBQStringList\fP &menuIds)"
.br
.ti -1c
.RI "bool \fBnotify\fP (\fBQObject\fP *receiver, \fBQEvent\fP *event)"
.br
.ti -1c
.RI "int \fBxErrhandler\fP (Display *, void *)"
.br
.ti -1c
.RI "int \fBxioErrhandler\fP (Display *)"
.br
.ti -1c
.RI "void \fBiceIOErrorHandler\fP (_IceConn *conn)"
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "static void \fBaddCmdLineOptions\fP ()"
.br
.ti -1c
.RI "static \fBKApplication\fP * \fBkApplication\fP ()"
.br
.ti -1c
.RI "static \fBDCOPClient\fP * \fBdcopClient\fP ()"
.br
.ti -1c
.RI "static void \fBdisableAutoDcopRegistration\fP ()"
.br
.ti -1c
.RI "static \fBQCString\fP \fBlauncher\fP ()"
.br
.ti -1c
.RI "static int \fBstartServiceByName\fP (const \fBQString\fP &_name, const \fBQString\fP &URL, \fBQString\fP *error=0, \fBQCString\fP *dcopService=0, int *pid=0, const \fBQCString\fP &startup_id='', bool noWait=false)"
.br
.ti -1c
.RI "static int \fBstartServiceByName\fP (const \fBQString\fP &_name, const \fBQStringList\fP &URLs=\fBQStringList\fP(), \fBQString\fP *error=0, \fBQCString\fP *dcopService=0, int *pid=0, const \fBQCString\fP &startup_id='', bool noWait=false)"
.br
.ti -1c
.RI "static int \fBstartServiceByDesktopPath\fP (const \fBQString\fP &_name, const \fBQString\fP &URL, \fBQString\fP *error=0, \fBQCString\fP *dcopService=0, int *pid=0, const \fBQCString\fP &startup_id='', bool noWait=false)"
.br
.ti -1c
.RI "static int \fBstartServiceByDesktopPath\fP (const \fBQString\fP &_name, const \fBQStringList\fP &URLs=\fBQStringList\fP(), \fBQString\fP *error=0, \fBQCString\fP *dcopService=0, int *pid=0, const \fBQCString\fP &startup_id='', bool noWait=false)"
.br
.ti -1c
.RI "static int \fBstartServiceByDesktopName\fP (const \fBQString\fP &_name, const \fBQString\fP &URL, \fBQString\fP *error=0, \fBQCString\fP *dcopService=0, int *pid=0, const \fBQCString\fP &startup_id='', bool noWait=false)"
.br
.ti -1c
.RI "static int \fBstartServiceByDesktopName\fP (const \fBQString\fP &_name, const \fBQStringList\fP &URLs=\fBQStringList\fP(), \fBQString\fP *error=0, \fBQCString\fP *dcopService=0, int *pid=0, const \fBQCString\fP &startup_id='', bool noWait=false)"
.br
.ti -1c
.RI "static int \fBkdeinitExec\fP (const \fBQString\fP &name, const \fBQStringList\fP &args, \fBQString\fP *error, int *pid, const \fBQCString\fP &startup_id)"
.br
.ti -1c
.RI "static int \fBkdeinitExec\fP (const \fBQString\fP &name, const \fBQStringList\fP &args=\fBQStringList\fP(), \fBQString\fP *error=0, int *pid=0)"
.br
.ti -1c
.RI "static int \fBkdeinitExecWait\fP (const \fBQString\fP &name, const \fBQStringList\fP &args, \fBQString\fP *error, int *pid, const \fBQCString\fP &startup_id)"
.br
.ti -1c
.RI "static int \fBkdeinitExecWait\fP (const \fBQString\fP &name, const \fBQStringList\fP &args=\fBQStringList\fP(), \fBQString\fP *error=0, int *pid=0)"
.br
.ti -1c
.RI "static int \fBrandom\fP ()"
.br
.ti -1c
.RI "static \fBQString\fP \fBrandomString\fP (int length)"
.br
.ti -1c
.RI "static ButtonState \fBkeyboardMouseState\fP ()"
.br
.ti -1c
.RI "static uint \fBkeyboardModifiers\fP () KDE_DEPRECATED"
.br
.ti -1c
.RI "static uint \fBmouseState\fP () KDE_DEPRECATED"
.br
.ti -1c
.RI "static void \fBstartKdeinit\fP ()"
.br
.ti -1c
.RI "static \fBQPalette\fP \fBcreateApplicationPalette\fP ()"
.br
.ti -1c
.RI "static \fBQPalette\fP \fBcreateApplicationPalette\fP (\fBKConfig\fP *config, int contrast)"
.br
.ti -1c
.RI "static void \fBinstallSigpipeHandler\fP ()"
.br
.ti -1c
.RI "static bool \fBguiEnabled\fP ()"
.br
.in -1c
.SS "Static Public Attributes"

.in +1c
.ti -1c
.RI "static bool \fBloadedByKdeinit\fP = false"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "\fBKApplication\fP (bool allowStyles, bool GUIenabled, \fBKInstance\fP *_instance)"
.br
.ti -1c
.RI "\fBKApplication\fP (Display *display, Qt::HANDLE visual, Qt::HANDLE colormap, bool allowStyles, \fBKInstance\fP *_instance)"
.br
.ti -1c
.RI "bool \fBx11EventFilter\fP (XEvent *)"
.br
.ti -1c
.RI "void \fBinvokeEditSlot\fP (const char *slot)"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "Display * \fBdisplay\fP"
.br
.ti -1c
.RI "Atom \fBkipcCommAtom\fP"
.br
.ti -1c
.RI "int \fBkipcEventMask\fP"
.br
.ti -1c
.RI "int \fBpArgc\fP"
.br
.in -1c
.SS "Static Protected Attributes"

.in +1c
.ti -1c
.RI "static \fBKApplication\fP * \fBKApp\fP = 0L"
.br
.in -1c
.SH "Detailed Description"
.PP 
Controls and provides information to all \fBKDE\fP applications. Controls and provides information to all \fBKDE\fP applications. 

Only one object of this class can be instantiated in a single app. This instance is always accessible via the 'kapp' global variable. See \fBcut()\fP for an example.
.PP
This class provides the following services to all \fBKDE\fP applications.
.PP
.PD 0
.IP "\(bu" 2
It controls the event queue (see \fBQApplication\fP ). 
.IP "\(bu" 2
It provides the application with \fBKDE\fP resources such as accelerators, common menu entries, a \fBKConfig\fP object. session management events, help invocation etc. 
.IP "\(bu" 2
Installs a signal handler for the SIGCHLD signal in order to avoid zombie children. If you want to catch this signal yourself or don't want it to be caught at all, you have set a new signal handler (or SIG_IGN) after KApplication's constructor has run. 
.IP "\(bu" 2
Installs an empty signal handler for the SIGPIPE signal using \fBinstallSigpipeHandler()\fP. If you want to catch this signal yourself, you have set a new signal handler after KApplication's constructor has run. 
.IP "\(bu" 2
It can start new services
.PP
The way a service gets started depends on the 'X-DCOP-ServiceType' entry in the desktop file of the service:
.PP
There are three possibilities: 
.PD 0

.IP "\(bu" 2
X-DCOP-ServiceType=None (default) Always start a new service, don't wait till the service registers with dcop. 
.IP "\(bu" 2
X-DCOP-ServiceType=Multi Always start a new service, wait until the service has registered with dcop. 
.IP "\(bu" 2
X-DCOP-ServiceType=Unique Only start the service if it isn't already running, wait until the service has registered with dcop.
.PP
.PP
\fBAuthor:\fP
.RS 4
Matthias Kalle Dalheimer <kalle@kde.org> 
.RE
.PP

.PP
Definition at line 94 of file kapplication.h.
.SH "Member Enumeration Documentation"
.PP 
.SS "\fBenum\fP \fBKApplication::ShutdownConfirm\fP"
.PP
The possible values for the \fCconfirm\fP parameter of \fBrequestShutDown()\fP. 
.PP
\fBEnumeration values: \fP
.in +1c
.TP
\fB\fIShutdownConfirmDefault \fP\fP
Obey the user's confirmation setting. 
.TP
\fB\fIShutdownConfirmNo \fP\fP
Don't confirm, shutdown without asking. 
.TP
\fB\fIShutdownConfirmYes \fP\fP
Always confirm, ask even if the user turned it off. 
.PP
Definition at line 255 of file kapplication.h.
.SS "\fBenum\fP \fBKApplication::ShutdownType\fP"
.PP
The possible values for the \fCsdtype\fP parameter of \fBrequestShutDown()\fP. 
.PP
\fBEnumeration values: \fP
.in +1c
.TP
\fB\fIShutdownTypeDefault \fP\fP
Select previous action or the default if it's the first time. 
.TP
\fB\fIShutdownTypeNone \fP\fP
Only log out. 
.TP
\fB\fIShutdownTypeReboot \fP\fP
Log out and reboot the machine. 
.TP
\fB\fIShutdownTypeHalt \fP\fP
Log out and halt the machine. 
.PP
Definition at line 273 of file kapplication.h.
.SS "\fBenum\fP \fBKApplication::ShutdownMode\fP"
.PP
The possible values for the \fCsdmode\fP parameter of \fBrequestShutDown()\fP. 
.PP
\fBEnumeration values: \fP
.in +1c
.TP
\fB\fIShutdownModeDefault \fP\fP
Select previous mode or the default if it's the first time. 
.TP
\fB\fIShutdownModeSchedule \fP\fP
Schedule a shutdown (halt or reboot) for the time all active sessions have exited. 
.TP
\fB\fIShutdownModeTryNow \fP\fP
Shut down, if no sessions are active. 
.PP
Otherwise do nothing. 
.TP
\fB\fIShutdownModeForceNow \fP\fP
Force shutdown. 
.PP
Kill any possibly active sessions. 
.TP
\fB\fIShutdownModeInteractive \fP\fP
Pop up a dialog asking the user what to do if sessions are still active. 
.PP
Definition at line 295 of file kapplication.h.
.SS "anonymous \fBenum\fP"
.PP
\fBDeprecated\fP
.RS 4
Same values as Button1Mask etc. in X.h
.RE
.PP

.PP
Definition at line 1061 of file kapplication.h.
.SS "\fBenum\fP \fBKApplication::SettingsCategory\fP"
.PP
Valid values for the settingsChanged signal. 
.PP
Definition at line 1217 of file kapplication.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KApplication::KApplication (bool allowStyles = \fCtrue\fP, bool GUIenabled = \fCtrue\fP)"
.PP
This constructor takes aboutData and command line arguments from \fBKCmdLineArgs\fP. 
.PP
\fBParameters:\fP
.RS 4
\fIallowStyles\fP Set to false to disable the loading on plugin based styles. This is only useful to applications that do not display a GUI normally. If you do create an application with \fCallowStyles\fP set to false it normally runs in the background but under special circumstances displays widgets. Call \fBenableStyles()\fP before displaying any widgets.
.br
\fIGUIenabled\fP Set to false to disable all GUI stuff. This implies no styles either. 
.RE
.PP

.PP
Definition at line 618 of file kapplication.cpp.
.PP
References installSigpipeHandler(), and KInstance::instanceName().
.SS "KApplication::KApplication (Display * display, Qt::HANDLE visual = \fC0\fP, Qt::HANDLE colormap = \fC0\fP, bool allowStyles = \fCtrue\fP)"
.PP
Constructor. 
.PP
Parses command-line arguments. Use this constructor when you you need to use a non-default visual or colormap.
.PP
\fBParameters:\fP
.RS 4
\fIdisplay\fP Will be passed to \fBQt\fP as the X display. The display must be valid and already opened.
.br
\fIvisual\fP A pointer to the X11 visual that should be used by the appliction. Note that only TrueColor visuals are supported on depths greater than 8 bpp. If this parameter is NULL, the default visual will be used instead.
.br
\fIcolormap\fP The colormap that should be used by the application. If this parameter is 0, the default colormap will be used instead.
.br
\fIallowStyles\fP Set to false to disable the loading on plugin based styles. This is only useful to applications that do not display a GUI normally. If you do create an application with \fCallowStyles\fP set to false that normally runs in the background but under special circumstances displays widgets call \fBenableStyles()\fP before displaying any widgets.
.RE
.PP
\fBSince:\fP
.RS 4
\fBKDE\fP 3.3 
.RE
.PP

.PP
Definition at line 642 of file kapplication.cpp.
.PP
References installSigpipeHandler(), and KInstance::instanceName().
.SS "KApplication::KApplication (Display * display, int & argc, char ** argv, const \fBQCString\fP & rAppName, bool allowStyles = \fCtrue\fP, bool GUIenabled = \fCtrue\fP)"
.PP
Constructor. 
.PP
Parses command-line arguments. Use this constructor to use KApplication in a Motif or Xt program.
.PP
\fBParameters:\fP
.RS 4
\fIdisplay\fP Will be passed to \fBQt\fP as the X display. The display must be valid and already opened.
.br
\fIargc\fP command line argument count
.br
\fIargv\fP command line argument value(s)
.br
\fIrAppName\fP application name. Will be used for finding the associated message files and icon files, and as the default registration name for DCOP. This is a mandatory parameter.
.br
\fIallowStyles\fP Set to false to disable the loading on plugin based styles. This is only useful to applications that do not display a GUI normally. If you do create an application with \fCallowStyles\fP set to false that normally runs in the background but under special circumstances displays widgets call \fBenableStyles()\fP before displaying any widgets.
.br
\fIGUIenabled\fP Set to false to disable all GUI stuff. This implies no styles either. 
.RE
.PP

.PP
Definition at line 701 of file kapplication.cpp.
.PP
References installSigpipeHandler(), and QApplication::Q_ASSERT().
.SS "KApplication::KApplication (int & argc, char ** argv, const \fBQCString\fP & rAppName, bool allowStyles = \fCtrue\fP, bool GUIenabled = \fCtrue\fP)"
.PP
\fBDeprecated\fP
.RS 4
do not use it at all, it will make your application crash, use \fBKCmdLineArgs\fP 
.RE
.PP
Constructor. Parses command-line arguments.
.PP
\fBParameters:\fP
.RS 4
\fIargc\fP command line argument count
.br
\fIargv\fP command line argument value(s)
.br
\fIrAppName\fP application name. Will be used for finding the associated message files and icon files, and as the default registration name for DCOP. This is a mandatory parameter.
.br
\fIallowStyles\fP Set to false to disable the loading on plugin based styles. This is only useful to applications that do not display a GUI normally. If you do create an application with \fCallowStyles\fP set to false that normally runs in the background but under special circumstances displays widgets call \fBenableStyles()\fP before displaying any widgets.
.br
\fIGUIenabled\fP Set to false to disable all GUI stuff. This implies no styles either. 
.RE
.PP

.PP
Definition at line 594 of file kapplication.cpp.
.PP
References installSigpipeHandler(), and QApplication::Q_ASSERT().
.SH "Member Function Documentation"
.PP 
.SS "void KApplication::addCmdLineOptions ()\fC [static]\fP"
.PP
Add \fBQt\fP and \fBKDE\fP command line options to \fBKCmdLineArgs\fP. 
.PP
Reimplemented in \fBKUniqueApplication\fP.
.PP
Definition at line 1464 of file kapplication.cpp.
.PP
References KCmdLineArgs::addCmdLineOptions().
.PP
Referenced by KCmdLineArgs::init().
.SS "static \fBKApplication\fP* KApplication::kApplication ()\fC [inline, static]\fP"
.PP
Returns the current application object. 
.PP
This is similar to the global \fBQApplication\fP pointer qApp. It allows access to the single global KApplication object, since more than one cannot be created in the same application. It saves you the trouble of having to pass the pointer explicitly to every function that may require it. 
.PP
\fBReturns:\fP
.RS 4
the current application object 
.RE
.PP

.PP
Definition at line 215 of file kapplication.h.
.SS "\fBKConfig\fP * KApplication::sessionConfig ()"
.PP
Returns the application session config object. 
.PP
\fBReturns:\fP
.RS 4
A pointer to the application's instance specific \fBKConfig\fP object. 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBKConfig\fP 
.RE
.PP

.PP
Definition at line 1035 of file kapplication.cpp.
.SS "bool KApplication::isRestored () const\fC [inline]\fP"
.PP
Is the application restored from the session manager? 
.PP
\fBReturns:\fP
.RS 4
If true, this application was restored by the session manager. Note that this may mean the config object returned by \fBsessionConfig()\fP contains data saved by a session closedown. 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsessionConfig()\fP 
.RE
.PP

.PP
Definition at line 234 of file kapplication.h.
.PP
References QApplication::isSessionRestored().
.PP
Referenced by KUniqueApplication::restoringSession().
.SS "void KApplication::disableSessionManagement ()"
.PP
Disables session management for this application. 
.PP
Useful in case your application is started by the initial 'startkde' script. 
.PP
Definition at line 1081 of file kapplication.cpp.
.SS "void KApplication::enableSessionManagement ()"
.PP
Enables again session management for this application, formerly disabled by calling \fBdisableSessionManagement()\fP. 
.PP
You usually shouldn't call this function, as the session management is enabled by default. 
.PP
Definition at line 1085 of file kapplication.cpp.
.SS "bool KApplication::requestShutDown (\fBShutdownConfirm\fP confirm = \fCShutdownConfirmDefault\fP, \fBShutdownType\fP sdtype = \fCShutdownTypeDefault\fP, \fBShutdownMode\fP sdmode = \fCShutdownModeDefault\fP)"
.PP
Asks the session manager to shut the session down. 
.PP
Using \fCconfirm\fP == ShutdownConfirmYes or \fCsdtype\fP != ShutdownTypeDefault or \fCsdmode\fP != ShutdownModeDefault causes the use of ksmserver's DCOP interface. The remaining two combinations use the standard XSMP and will work with any session manager compliant with it.
.PP
\fBParameters:\fP
.RS 4
\fIconfirm\fP Whether to ask the user if he really wants to log out. ShutdownConfirm 
.br
\fIsdtype\fP The action to take after logging out. ShutdownType 
.br
\fIsdmode\fP If/When the action should be taken. ShutdownMode 
.RE
.PP
\fBReturns:\fP
.RS 4
true on success, false if the session manager could not be contacted. 
.RE
.PP

.PP
Definition at line 1109 of file kapplication.cpp.
.PP
References dcopClient(), QCString::isEmpty(), propagateSessionManager(), DCOPClient::send(), ShutdownConfirmNo, ShutdownConfirmYes, ShutdownModeDefault, ShutdownTypeDefault, and QApplication::syncX().
.SS "void KApplication::propagateSessionManager ()"
.PP
Propagates the network address of the session manager in the SESSION_MANAGER environment variable so that child processes can pick it up. 
.PP
If SESSION_MANAGER isn't defined yet, the address is searched in $HOME/.KSMserver.
.PP
This function is called by clients that are started outside the session ( i.e. before ksmserver is started), but want to launch other processes that should participate in the session. Examples are kdesktop or kicker. 
.PP
Definition at line 1172 of file kapplication.cpp.
.PP
References QFile::close(), QFile::encodeName(), QCString::find(), QCString::isEmpty(), QFileInfo::lastModified(), QString::latin1(), QFile::open(), QTextStream::readLine(), QCString::replace(), and QTextStream::setEncoding().
.PP
Referenced by requestShutDown().
.SS "bool KApplication::sessionSaving () const"
.PP
Returns true if the application is currently saving its session data (most probably before \fBKDE\fP logout). 
.PP
This is intended for use mainly in \fBKMainWindow::queryClose()\fP and \fBKMainWindow::queryExit()\fP.
.PP
\fBSee also:\fP
.RS 4
\fBKMainWindow::queryClose\fP 
.PP
\fBKMainWindow::queryExit\fP 
.RE
.PP
\fBSince:\fP
.RS 4
3.1.1 
.RE
.PP

.PP
Definition at line 1347 of file kapplication.cpp.
.SS "\fBDCOPClient\fP * KApplication::dcopClient ()\fC [static]\fP"
.PP
Returns a pointer to a \fBDCOPClient\fP for the application. 
.PP
If a client does not exist yet, it is created when this function is called. 
.PP
\fBReturns:\fP
.RS 4
the \fBDCOPClient\fP for the application 
.RE
.PP

.PP
Definition at line 985 of file kapplication.cpp.
.PP
References KCmdLineArgs::getOption(), KCmdLineArgs::isSet(), KCmdLineArgs::parsedArgs(), and DCOPClient::setMainClient().
.PP
Referenced by invokeHelp(), invokeHTMLHelp(), requestShutDown(), and KUniqueApplication::start().
.SS "void KApplication::disableAutoDcopRegistration ()\fC [static]\fP"
.PP
Disable automatic dcop registration Must be called before creating a KApplication instance to have an effect. 
.PP
Definition at line 1030 of file kapplication.cpp.
.SS "\fBQPixmap\fP KApplication::icon () const"
.PP
Returns a \fBQPixmap\fP with the application icon. 
.PP
\fBReturns:\fP
.RS 4
the application icon 
.RE
.PP

.PP
Referenced by setTopWidget().
.SS "\fBQString\fP KApplication::iconName () const"
.PP
Returns the name of the application icon. 
.PP
\fBReturns:\fP
.RS 4
the icon's name 
.RE
.PP

.PP
Definition at line 1592 of file kapplication.cpp.
.PP
References KInstance::instanceName(), and QString::isNull().
.SS "\fBQPixmap\fP KApplication::miniIcon () const"
.PP
Returns the mini-icon for the application as a \fBQPixmap\fP. 
.PP
\fBReturns:\fP
.RS 4
the application's mini icon 
.RE
.PP

.PP
Referenced by setTopWidget().
.SS "\fBQString\fP KApplication::miniIconName () const"
.PP
Returns the name of the mini-icon for the application. 
.PP
\fBReturns:\fP
.RS 4
the mini icon's name 
.RE
.PP

.PP
Definition at line 1608 of file kapplication.cpp.
.PP
References KInstance::instanceName(), and QString::isNull().
.SS "void KApplication::setTopWidget (\fBQWidget\fP * topWidget)"
.PP
Sets the top widget of the application. 
.PP
This means basically applying the right window caption and icon. An application may have several top widgets. You don't need to call this function manually when using \fBKMainWindow\fP.
.PP
\fBParameters:\fP
.RS 4
\fItopWidget\fP A top widget of the application.
.RE
.PP
\fBSee also:\fP
.RS 4
\fBicon()\fP, \fBcaption()\fP 
.RE
.PP

.PP
Definition at line 2857 of file kapplication.cpp.
.PP
References caption(), icon(), miniIcon(), KStartupInfo::setWindowStartupId(), and startupId().
.SS "void KApplication::invokeHelp (const \fBQString\fP & anchor, const \fBQString\fP & appname, const \fBQCString\fP & startup_id) const"
.PP
Invokes the KHelpCenter HTML help viewer from docbook sources. 
.PP
\fBParameters:\fP
.RS 4
\fIanchor\fP This has to be a defined anchor in your docbook sources. If empty the main index is loaded 
.br
\fIappname\fP This allows you to show the help of another application. If empty the current name() is used 
.br
\fIstartup_id\fP for app startup notification, '0' for none, '' ( empty string ) is the default 
.RE
.PP

.PP
Definition at line 2201 of file kapplication.cpp.
.PP
References QString::arg(), QMessageBox::critical(), dcopClient(), endl(), and startServiceByDesktopName().
.SS "void KApplication::invokeHTMLHelp (const \fBQString\fP & aFilename, const \fBQString\fP & aTopic = \fCQString::null\fP) const"
.PP
\fBDeprecated\fP
.RS 4
Invoke the khelpcenter HTML help viewer from HTML sources. Please use \fBinvokeHelp()\fP instead. 
.RE
.PP
\fBParameters:\fP
.RS 4
\fIaFilename\fP The filename that is to be loaded. Its location is computed automatically according to the KFSSTND. If \fCaFilename\fP is empty, the logical appname with .html appended to it is used. 
.br
\fIaTopic\fP This allows context-sensitive help. Its value will be appended to the filename, prefixed with a '#' (hash) character. 
.RE
.PP

.PP
Definition at line 2235 of file kapplication.cpp.
.PP
References QString::arg(), QMessageBox::critical(), dcopClient(), endl(), and startServiceByDesktopName().
.SS "void KApplication::invokeMailer (const \fBQString\fP & address, const \fBQString\fP & subject, const \fBQCString\fP & startup_id)"
.PP
Convenience method; invokes the standard email application. 
.PP
\fBParameters:\fP
.RS 4
\fIaddress\fP The destination address 
.br
\fIsubject\fP Subject string. Can be QString::null. 
.br
\fIstartup_id\fP for app startup notification, '0' for none, '' ( empty string ) is the default 
.RE
.PP

.PP
Definition at line 2275 of file kapplication.cpp.
.PP
Referenced by invokeMailer().
.SS "void KApplication::invokeMailer (const \fBKURL\fP & mailtoURL, const \fBQCString\fP & startup_id, bool allowAttachments)"
.PP
Invokes the standard email application. 
.PP
\fBParameters:\fP
.RS 4
\fImailtoURL\fP A mailto URL. 
.br
\fIstartup_id\fP for app startup notification, '0' for none, '' ( empty string ) is the default 
.br
\fIallowAttachments\fP whether attachments specified in mailtoURL should be honoured. The default is false; do not honour requests for attachments. 
.RE
.PP

.PP
Definition at line 2291 of file kapplication.cpp.
.PP
References KURL::decode_string(), invokeMailer(), QString::isEmpty(), QString::lower(), QStringList::split(), and QString::startsWith().
.SS "void KApplication::invokeMailer (const \fBQString\fP & to, const \fBQString\fP & cc, const \fBQString\fP & bcc, const \fBQString\fP & subject, const \fBQString\fP & body, const \fBQString\fP & messageFile, const \fBQStringList\fP & attachURLs, const \fBQCString\fP & startup_id)"
.PP
Convenience method; invokes the standard email application. 
.PP
All parameters are optional.
.PP
\fBParameters:\fP
.RS 4
\fIto\fP The destination address. 
.br
\fIcc\fP The Cc field 
.br
\fIbcc\fP The Bcc field 
.br
\fIsubject\fP Subject string 
.br
\fIbody\fP A string containing the body of the mail (exclusive with messageFile) 
.br
\fImessageFile\fP A file (URL) containing the body of the mail (exclusive with body) - currently unsupported 
.br
\fIattachURLs\fP List of URLs to be attached to the mail. 
.br
\fIstartup_id\fP for app startup notification, '0' for none, '' ( empty string ) is the default 
.RE
.PP

.PP
Definition at line 2406 of file kapplication.cpp.
.PP
References QString::arg(), QMap::begin(), KInstance::config(), QMessageBox::critical(), QMap::end(), endl(), QString::endsWith(), KMacroExpander::expandMacros(), QString::fromLatin1(), QMap::insert(), QString::isEmpty(), QStringList::join(), kdeinitExec(), KConfigBase::readBoolEntry(), KConfigBase::readEntry(), KConfigBase::readPathEntry(), KConfigBase::setGroup(), KURL::setPath(), KURL::setProtocol(), KURL::setQuery(), KShell::splitArgs(), and KURL::url().
.SS "void KApplication::invokeBrowser (const \fBQString\fP & url, const \fBQCString\fP & startup_id)\fC [slot]\fP"
.PP
Invokes the standard browser. 
.PP
Note that you should only do this when you know for sure that the browser can handle the URL (i.e. its mimetype). In doubt, if the URL can point to an image or anything else than directory or HTML, prefer to use new KRun( url ).
.PP
\fBParameters:\fP
.RS 4
\fIurl\fP The destination address 
.br
\fIstartup_id\fP for app startup notification, '0' for none, '' ( empty string ) is the default 
.RE
.PP

.PP
Definition at line 2537 of file kapplication.cpp.
.PP
References QString::arg(), QMessageBox::critical(), endl(), and startServiceByDesktopName().
.SS "void KApplication::cut ()\fC [slot]\fP"
.PP
If the widget with focus provides a \fBcut()\fP slot, call that slot. 
.PP
Thus for a simple application cut can be implemented as: 
.PP
.nf
 KStdAction::cut( kapp, SLOT( cut() ), actionCollection() );

.fi
.PP
 
.PP
Definition at line 2553 of file kapplication.cpp.
.PP
References invokeEditSlot().
.SS "void KApplication::copy ()\fC [slot]\fP"
.PP
If the widget with focus provides a \fBcopy()\fP slot, call that slot. 
.PP
Thus for a simple application copy can be implemented as: 
.PP
.nf
 KStdAction::copy( kapp, SLOT( copy() ), actionCollection() );

.fi
.PP
 
.PP
Definition at line 2558 of file kapplication.cpp.
.PP
References invokeEditSlot().
.SS "void KApplication::paste ()\fC [slot]\fP"
.PP
If the widget with focus provides a \fBpaste()\fP slot, call that slot. 
.PP
Thus for a simple application copy can be implemented as: 
.PP
.nf
 KStdAction::paste( kapp, SLOT( paste() ), actionCollection() );

.fi
.PP
 
.PP
Definition at line 2563 of file kapplication.cpp.
.PP
References invokeEditSlot().
.SS "void KApplication::clear ()\fC [slot]\fP"
.PP
If the widget with focus provides a \fBclear()\fP slot, call that slot. 
.PP
Thus for a simple application \fBclear()\fP can be implemented as: 
.PP
.nf
 new KAction( i18n( 'Clear' ), 'editclear', 0, kapp, SLOT( clear() ), actionCollection(), 'clear' );

.fi
.PP
.PP
Note that for some widgets, this may not provide the intended bahavior. For example if you make use of the code above and a \fBKListView\fP has the focus, \fBclear()\fP will clear all of the items in the list. If this is not the intened behavior and you want to make use of this slot, you can subclass \fBKListView\fP and reimplement this slot. For example the following code would implement a \fBKListView\fP without this behavior:
.PP
.PP
.nf
 class MyListView : public KListView {
   Q_OBJECT
 public:
   MyListView( QWidget * parent = 0, const char * name = 0, WFlags f = 0 ) : KListView( parent, name, f ) {}
   virtual ~MyListView() {}
 public slots:
   virtual void clear() {}
 };
.fi
.PP
 
.PP
Definition at line 2568 of file kapplication.cpp.
.PP
References invokeEditSlot().
.SS "void KApplication::selectAll ()\fC [slot]\fP"
.PP
If the widget with focus provides a \fBselectAll()\fP slot, call that slot. 
.PP
Thus for a simple application select all can be implemented as: 
.PP
.nf
 KStdAction::selectAll( kapp, SLOT( selectAll() ), actionCollection() );

.fi
.PP
 
.PP
Definition at line 2573 of file kapplication.cpp.
.PP
References invokeEditSlot().
.SS "\fBQCString\fP KApplication::launcher ()\fC [static]\fP"
.PP
Returns the DCOP name of the service launcher. 
.PP
This will be something like klaucher_$host_$uid. 
.PP
\fBReturns:\fP
.RS 4
the name of the service launcher 
.RE
.PP

.PP
Definition at line 2579 of file kapplication.cpp.
.SS "int KApplication::startServiceByName (const \fBQString\fP & _name, const \fBQString\fP & URL, \fBQString\fP * error = \fC0\fP, \fBQCString\fP * dcopService = \fC0\fP, int * pid = \fC0\fP, const \fBQCString\fP & startup_id = \fC''\fP, bool noWait = \fCfalse\fP)\fC [static]\fP"
.PP
Starts a service based on the (translated) name of the service. 
.PP
E.g. 'Web Browser'
.PP
\fBParameters:\fP
.RS 4
\fI_name\fP the name of the service 
.br
\fIURL\fP if not empty this URL is passed to the service 
.br
\fIerror\fP On failure, \fCerror\fP contains a description of the error that occurred. If the pointer is 0, the argument will be ignored 
.br
\fIdcopService\fP On success, \fCdcopService\fP contains the DCOP name under which this service is available. If empty, the service does not provide DCOP services. If the pointer is 0 the argument will be ignored 
.br
\fIpid\fP On success, the process id of the new service will be written here. If the pointer is 0, the argument will be ignored. 
.br
\fIstartup_id\fP for app startup notification, '0' for none, '' ( empty string ) is the default 
.br
\fInoWait\fP if set, the function does not wait till the service is running. 
.RE
.PP
\fBReturns:\fP
.RS 4
an error code indicating success (== 0) or failure (> 0). 
.RE
.PP

.PP
Definition at line 2665 of file kapplication.cpp.
.SS "int KApplication::startServiceByName (const \fBQString\fP & _name, const \fBQStringList\fP & URLs = \fC\fBQStringList\fP()\fP, \fBQString\fP * error = \fC0\fP, \fBQCString\fP * dcopService = \fC0\fP, int * pid = \fC0\fP, const \fBQCString\fP & startup_id = \fC''\fP, bool noWait = \fCfalse\fP)\fC [static]\fP"
.PP
Starts a service based on the (translated) name of the service. 
.PP
E.g. 'Web Browser'
.PP
\fBParameters:\fP
.RS 4
\fI_name\fP the name of the service 
.br
\fIURLs\fP if not empty these URLs will be passed to the service 
.br
\fIerror\fP On failure, \fCerror\fP contains a description of the error that occurred. If the pointer is 0, the argument will be ignored 
.br
\fIdcopService\fP On success, \fCdcopService\fP contains the DCOP name under which this service is available. If empty, the service does not provide DCOP services. If the pointer is 0 the argument will be ignored 
.br
\fIpid\fP On success, the process id of the new service will be written here. If the pointer is 0, the argument will be ignored. 
.br
\fIstartup_id\fP for app startup notification, '0' for none, '' ( empty string ) is the default 
.br
\fInoWait\fP if set, the function does not wait till the service is running. 
.RE
.PP
\fBReturns:\fP
.RS 4
an error code indicating success (== 0) or failure (> 0). 
.RE
.PP

.PP
Definition at line 2677 of file kapplication.cpp.
.SS "int KApplication::startServiceByDesktopPath (const \fBQString\fP & _name, const \fBQString\fP & URL, \fBQString\fP * error = \fC0\fP, \fBQCString\fP * dcopService = \fC0\fP, int * pid = \fC0\fP, const \fBQCString\fP & startup_id = \fC''\fP, bool noWait = \fCfalse\fP)\fC [static]\fP"
.PP
Starts a service based on the desktop path of the service. 
.PP
E.g. 'Applications/konqueror.desktop' or '/home/user/bla/myfile.desktop'
.PP
\fBParameters:\fP
.RS 4
\fI_name\fP the path of the desktop file 
.br
\fIURL\fP if not empty this URL is passed to the service 
.br
\fIerror\fP On failure, \fCerror\fP contains a description of the error that occurred. If the pointer is 0, the argument will be ignored 
.br
\fIdcopService\fP On success, \fCdcopService\fP contains the DCOP name under which this service is available. If empty, the service does not provide DCOP services. If the pointer is 0 the argument will be ignored 
.br
\fIpid\fP On success, the process id of the new service will be written here. If the pointer is 0, the argument will be ignored. 
.br
\fIstartup_id\fP for app startup notification, '0' for none, '' ( empty string ) is the default 
.br
\fInoWait\fP if set, the function does not wait till the service is running. 
.RE
.PP
\fBReturns:\fP
.RS 4
an error code indicating success (== 0) or failure (> 0). 
.RE
.PP

.PP
Definition at line 2686 of file kapplication.cpp.
.SS "int KApplication::startServiceByDesktopPath (const \fBQString\fP & _name, const \fBQStringList\fP & URLs = \fC\fBQStringList\fP()\fP, \fBQString\fP * error = \fC0\fP, \fBQCString\fP * dcopService = \fC0\fP, int * pid = \fC0\fP, const \fBQCString\fP & startup_id = \fC''\fP, bool noWait = \fCfalse\fP)\fC [static]\fP"
.PP
Starts a service based on the desktop path of the service. 
.PP
E.g. 'Applications/konqueror.desktop' or '/home/user/bla/myfile.desktop'
.PP
\fBParameters:\fP
.RS 4
\fI_name\fP the path of the desktop file 
.br
\fIURLs\fP if not empty these URLs will be passed to the service 
.br
\fIerror\fP On failure, \fCerror\fP contains a description of the error that occurred. If the pointer is 0, the argument will be ignored 
.br
\fIdcopService\fP On success, \fCdcopService\fP contains the DCOP name under which this service is available. If empty, the service does not provide DCOP services. If the pointer is 0 the argument will be ignored 
.br
\fIpid\fP On success, the process id of the new service will be written here. If the pointer is 0, the argument will be ignored. 
.br
\fIstartup_id\fP for app startup notification, '0' for none, '' ( empty string ) is the default 
.br
\fInoWait\fP if set, the function does not wait till the service is running. 
.RE
.PP
\fBReturns:\fP
.RS 4
an error code indicating success (== 0) or failure (> 0). 
.RE
.PP

.PP
Definition at line 2698 of file kapplication.cpp.
.SS "int KApplication::startServiceByDesktopName (const \fBQString\fP & _name, const \fBQString\fP & URL, \fBQString\fP * error = \fC0\fP, \fBQCString\fP * dcopService = \fC0\fP, int * pid = \fC0\fP, const \fBQCString\fP & startup_id = \fC''\fP, bool noWait = \fCfalse\fP)\fC [static]\fP"
.PP
Starts a service based on the desktop name of the service. 
.PP
E.g. 'konqueror'
.PP
\fBParameters:\fP
.RS 4
\fI_name\fP the desktop name of the service 
.br
\fIURL\fP if not empty this URL is passed to the service 
.br
\fIerror\fP On failure, \fCerror\fP contains a description of the error that occurred. If the pointer is 0, the argument will be ignored 
.br
\fIdcopService\fP On success, \fCdcopService\fP contains the DCOP name under which this service is available. If empty, the service does not provide DCOP services. If the pointer is 0 the argument will be ignored 
.br
\fIpid\fP On success, the process id of the new service will be written here. If the pointer is 0, the argument will be ignored. 
.br
\fIstartup_id\fP for app startup notification, '0' for none, '' ( empty string ) is the default 
.br
\fInoWait\fP if set, the function does not wait till the service is running. 
.RE
.PP
\fBReturns:\fP
.RS 4
an error code indicating success (== 0) or failure (> 0). 
.RE
.PP

.PP
Definition at line 2707 of file kapplication.cpp.
.PP
Referenced by invokeBrowser(), invokeHelp(), invokeHTMLHelp(), and KNotifyClient::startDaemon().
.SS "int KApplication::startServiceByDesktopName (const \fBQString\fP & _name, const \fBQStringList\fP & URLs = \fC\fBQStringList\fP()\fP, \fBQString\fP * error = \fC0\fP, \fBQCString\fP * dcopService = \fC0\fP, int * pid = \fC0\fP, const \fBQCString\fP & startup_id = \fC''\fP, bool noWait = \fCfalse\fP)\fC [static]\fP"
.PP
Starts a service based on the desktop name of the service. 
.PP
E.g. 'konqueror'
.PP
\fBParameters:\fP
.RS 4
\fI_name\fP the desktop name of the service 
.br
\fIURLs\fP if not empty these URLs will be passed to the service 
.br
\fIerror\fP On failure, \fCerror\fP contains a description of the error that occurred. If the pointer is 0, the argument will be ignored 
.br
\fIdcopService\fP On success, \fCdcopService\fP contains the DCOP name under which this service is available. If empty, the service does not provide DCOP services. If the pointer is 0 the argument will be ignored 
.br
\fIpid\fP On success, the process id of the new service will be written here. If the pointer is 0, the argument will be ignored. 
.br
\fIstartup_id\fP for app startup notification, '0' for none, '' ( empty string ) is the default 
.br
\fInoWait\fP if set, the function does not wait till the service is running. 
.RE
.PP
\fBReturns:\fP
.RS 4
an error code indicating success (== 0) or failure (> 0). 
.RE
.PP

.PP
Definition at line 2719 of file kapplication.cpp.
.SS "int KApplication::kdeinitExec (const \fBQString\fP & name, const \fBQStringList\fP & args, \fBQString\fP * error, int * pid, const \fBQCString\fP & startup_id)\fC [static]\fP"
.PP
Starts a program via kdeinit. 
.PP
There will be no application startup notification, so you should use it only for starting internal processes.
.PP
program name and arguments are converted to according to the local encoding and passed as is to kdeinit.
.PP
\fBParameters:\fP
.RS 4
\fIname\fP Name of the program to start 
.br
\fIargs\fP Arguments to pass to the program 
.br
\fIerror\fP On failure, \fCerror\fP contains a description of the error that occurred. If the pointer is 0, the argument will be ignored 
.br
\fIpid\fP On success, the process id of the new service will be written here. If the pointer is 0, the argument will be ignored. 
.br
\fIstartup_id\fP for app startup notification, '0' for none, '' ( empty string ) is the default 
.RE
.PP
\fBReturns:\fP
.RS 4
an error code indicating success (== 0) or failure (> 0). 
.RE
.PP

.PP
Definition at line 2735 of file kapplication.cpp.
.PP
Referenced by invokeMailer().
.SS "int KApplication::kdeinitExecWait (const \fBQString\fP & name, const \fBQStringList\fP & args, \fBQString\fP * error, int * pid, const \fBQCString\fP & startup_id)\fC [static]\fP"
.PP
Starts a program via kdeinit and wait for it to finish. 
.PP
Like \fBkdeinitExec()\fP, but it waits till the program is finished. As such it behaves similar to the system(...) function.
.PP
\fBParameters:\fP
.RS 4
\fIname\fP Name of the program to start 
.br
\fIargs\fP Arguments to pass to the program 
.br
\fIerror\fP On failure, \fCerror\fP contains a description of the error that occurred. If the pointer is 0, the argument will be ignored 
.br
\fIpid\fP On success, the process id of the new service will be written here. If the pointer is 0, the argument will be ignored. 
.br
\fIstartup_id\fP for app startup notification, '0' for none, '' ( empty string ) is the default 
.RE
.PP
\fBReturns:\fP
.RS 4
an error code indicating success (== 0) or failure (> 0). 
.RE
.PP

.PP
Definition at line 2750 of file kapplication.cpp.
.PP
Referenced by KConfig::checkUpdate().
.SS "\fBQString\fP KApplication::caption () const"
.PP
Returns a text for the window caption. 
.PP
This may be set by '-caption', otherwise it will be equivalent to the name of the executable. 
.PP
\fBReturns:\fP
.RS 4
the text for the window caption 
.RE
.PP

.PP
Definition at line 1926 of file kapplication.cpp.
.PP
References KInstance::aboutData(), KGlobal::instance(), QString::isNull(), and KAboutData::programName().
.PP
Referenced by makeStdCaption(), and setTopWidget().
.SS "KDE_DEPRECATED KStyle* KApplication::kstyle () const\fC [inline]\fP"
.PP
\fBDeprecated\fP
.RS 4
.RE
.PP

.PP
Definition at line 800 of file kapplication.h.
.SS "\fBQString\fP KApplication::makeStdCaption (const \fBQString\fP & userCaption, bool withAppName = \fCtrue\fP, bool modified = \fCfalse\fP) const"
.PP
Builds a caption that contains the application name along with the userCaption using a standard layout. 
.PP
To make a compliant caption for your window, simply do: \fCsetCaption\fP(kapp->makeStdCaption(yourCaption));
.PP
\fBParameters:\fP
.RS 4
\fIuserCaption\fP The caption string you want to display in the window caption area. Do not include the application name! 
.br
\fIwithAppName\fP Indicates that the method shall include or ignore the application name when making the caption string. You are not compliant if you set this to \fCfalse\fP. 
.br
\fImodified\fP If true, a 'modified' sign will be included in the returned string. This is useful when indicating that a file is modified, i.e., it contains data that has not been saved. 
.RE
.PP
\fBReturns:\fP
.RS 4
the created caption 
.RE
.PP

.PP
Definition at line 1945 of file kapplication.cpp.
.PP
References caption(), QString::endsWith(), QString::fromUtf8(), and QString::isEmpty().
.SS "\fBQString\fP KApplication::tempSaveName (const \fBQString\fP & pFilename) const"
.PP
Get a file name in order to make a temporary copy of your document. 
.PP
\fBParameters:\fP
.RS 4
\fIpFilename\fP The full path to the current file of your document. 
.RE
.PP
\fBReturns:\fP
.RS 4
A new filename for auto-saving. 
.RE
.PP

.PP
Definition at line 2757 of file kapplication.cpp.
.PP
References QDir::absPath(), QString::append(), endl(), QDir::exists(), QDir::isRelativePath(), QDir::mkdir(), QString::prepend(), QString::replace(), and QDir::setPath().
.SS "\fBQString\fP KApplication::checkRecoverFile (const \fBQString\fP & pFilename, bool & bRecover) const"
.PP
Check whether an auto-save file exists for the document you want to open. 
.PP
\fBParameters:\fP
.RS 4
\fIpFilename\fP The full path to the document you want to open. 
.br
\fIbRecover\fP This gets set to true if there was a recover file. 
.RE
.PP
\fBReturns:\fP
.RS 4
The full path of the file to open. 
.RE
.PP

.PP
Definition at line 2785 of file kapplication.cpp.
.PP
References QDir::absPath(), QString::append(), endl(), QDir::exists(), QDir::isRelativePath(), QDir::mkdir(), QString::prepend(), QString::replace(), and QDir::setPath().
.SS "Display* KApplication::getDisplay ()\fC [inline]\fP"
.PP
Get the X11 display. 
.PP
\fBReturns:\fP
.RS 4
the X11 Display 
.RE
.PP

.PP
Definition at line 847 of file kapplication.h.
.SS "void KApplication::enableStyles ()"
.PP
Enables style plugins. 
.PP
This is useful only to applications that normally do not display a GUI and create the KApplication with allowStyles set to false. 
.PP
Definition at line 1885 of file kapplication.cpp.
.SS "void KApplication::disableStyles ()"
.PP
Disables style plugins. 
.PP
Current style plugins do not get unloaded.
.PP
This is only useful when used in combination with \fBenableStyles()\fP. 
.PP
Definition at line 1894 of file kapplication.cpp.
.SS "void KApplication::installX11EventFilter (\fBQWidget\fP * filter)"
.PP
Installs widget filter as global X11 event filter. 
.PP
The widget filter receives XEvents in its standard \fBQWidget::x11Event()\fP function.
.PP
Warning: Only do this when absolutely necessary. An installed X11 filter can slow things down. 
.PP
Definition at line 408 of file kapplication.cpp.
.PP
References QPtrList::append().
.SS "void KApplication::removeX11EventFilter (const \fBQWidget\fP * filter)"
.PP
Removes global X11 event filter previously installed by \fBinstallX11EventFilter()\fP. 
.PP
Definition at line 423 of file kapplication.cpp.
.PP
References QPtrList::isEmpty(), and QPtrList::removeRef().
.SS "int KApplication::random ()\fC [static]\fP"
.PP
Generates a uniform random number. 
.PP
\fBReturns:\fP
.RS 4
A truly unpredictable number in the range [0, RAND_MAX) 
.RE
.PP

.PP
Definition at line 2916 of file kapplication.cpp.
.PP
Referenced by KTempDir::create(), KLockFile::lock(), randomString(), and KRandomSequence::setSeed().
.SS "\fBQString\fP KApplication::randomString (int length)\fC [static]\fP"
.PP
Generates a random string. 
.PP
It operates in the range [A-Za-z0-9] 
.PP
\fBParameters:\fP
.RS 4
\fIlength\fP Generate a string of this length. 
.RE
.PP
\fBReturns:\fP
.RS 4
the random string 
.RE
.PP

.PP
Definition at line 2936 of file kapplication.cpp.
.PP
References random(), and QString::setLength().
.SS "void KApplication::addKipcEventMask (int id)"
.PP
Adds a message type to the \fBKIPC\fP event mask. 
.PP
You can only add 'system messages' to the event mask. These are the messages with id < 32. Messages with id >= 32 are user messages. 
.PP
\fBParameters:\fP
.RS 4
\fIid\fP The message id. See \fBKIPC::Message\fP. 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBKIPC\fP 
.PP
\fBremoveKipcEventMask()\fP 
.PP
\fBkipcMessage()\fP 
.RE
.PP

.PP
Definition at line 1865 of file kapplication.cpp.
.SS "void KApplication::removeKipcEventMask (int id)"
.PP
Removes a message type from the \fBKIPC\fP event mask. 
.PP
This message will not be handled anymore. 
.PP
\fBParameters:\fP
.RS 4
\fIid\fP The message id. 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBKIPC\fP 
.PP
\fBaddKipcEventMask()\fP 
.PP
\fBkipcMessage()\fP 
.RE
.PP

.PP
Definition at line 1875 of file kapplication.cpp.
.SS "\fBQCString\fP KApplication::startupId () const"
.PP
Returns the app startup notification identifier for this running application. 
.PP
\fBReturns:\fP
.RS 4
the startup notification identifier 
.RE
.PP

.PP
Definition at line 2878 of file kapplication.cpp.
.PP
Referenced by setTopWidget().
.SS "void KApplication::updateUserTimestamp (unsigned long time = \fC0\fP)"
.PP
Updates the last user action timestamp to the given time, or to the current time, if 0 is given. 
.PP
Do not use unless you're really sure what you're doing. Consult focus stealing prevention section in kdebase/kwin/README. 
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 1812 of file kapplication.cpp.
.SS "unsigned long KApplication::userTimestamp () const"
.PP
Returns the last user action timestamp or 0 if no user activity has taken place yet. 
.PP
\fBSince:\fP
.RS 4
3.2.3 
.RE
.PP
\fBSee also:\fP
.RS 4
updateuserTimestamp 
.RE
.PP

.PP
Definition at line 1832 of file kapplication.cpp.
.SS "void KApplication::updateRemoteUserTimestamp (const \fBQCString\fP & dcopId, unsigned long time = \fC0\fP)"
.PP
Updates the last user action timestamp in the application registered to DCOP with dcopId to the given time, or to this application's user time, if 0 is given. 
.PP
Use before causing user interaction in the remote application, e.g. invoking a dialog in the application using a DCOP call. Consult focus stealing prevention section in kdebase/kwin/README. 
.PP
\fBSince:\fP
.RS 4
3.3 
.RE
.PP

.PP
Definition at line 1841 of file kapplication.cpp.
.SS "\fBQString\fP KApplication::geometryArgument () const"
.PP
Returns the argument to --geometry if any, so the geometry can be set wherever necessary. 
.PP
\fBReturns:\fP
.RS 4
the geometry argument, or QString::null if there is none 
.RE
.PP

.PP
Definition at line 1576 of file kapplication.cpp.
.SS "void KApplication::installKDEPropertyMap ()"
.PP
Install a \fBQt\fP SQL property map with entries for all \fBKDE\fP widgets Call this in any application using \fBKDE\fP widgets in \fBQSqlForm\fP or \fBQDataView\fP. 
.PP
If you are adding a widget that was missing please make sure to also add it to KConfigDialogManager's retrieveSettings() function. Thanks. 
.PP
Definition at line 2145 of file kapplication.cpp.
.PP
References QSqlPropertyMap::insert(), and QSqlPropertyMap::installDefaultMap().
.SS "bool KApplication::authorize (const \fBQString\fP & genericAction)"
.PP
Returns whether a certain action is authorized. 
.PP
\fBParameters:\fP
.RS 4
\fIgenericAction\fP The name of a generic action 
.RE
.PP
\fBReturns:\fP
.RS 4
true if the action is authorized 
.RE
.PP

.PP
Definition at line 2954 of file kapplication.cpp.
.PP
References KGlobal::config(), and KConfigBase::readBoolEntry().
.PP
Referenced by authorizeKAction().
.SS "bool KApplication::authorizeKAction (const char * action)"
.PP
Returns whether a certain \fBKAction\fP is authorized. 
.PP
\fBParameters:\fP
.RS 4
\fIaction\fP The name of a \fBKAction\fP action. The name is prepended with 'action/' before being passed to \fBauthorize()\fP 
.RE
.PP
\fBReturns:\fP
.RS 4
true if the \fBKAction\fP is authorized 
.RE
.PP

.PP
Definition at line 2964 of file kapplication.cpp.
.PP
References authorize(), and KGlobal::staticQString().
.SS "bool KApplication::authorizeURLAction (const \fBQString\fP & action, const \fBKURL\fP & baseURL, const \fBKURL\fP & destURL)"
.PP
Returns whether a certain URL related action is authorized. 
.PP
\fBParameters:\fP
.RS 4
\fIaction\fP The name of the action. Known actions are list (may be listed (e.g. in file selection dialog)), link (may be linked to), open (may open) and redirect (may be redirected to) 
.br
\fIbaseURL\fP The url where the action originates from 
.br
\fIdestURL\fP The object of the action 
.RE
.PP
\fBReturns:\fP
.RS 4
true when the action is authorized, false otherwise. 
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 3084 of file kapplication.cpp.
.PP
References KURL::path(), KURL::protocol(), KProtocolInfo::protocolClass(), and KURL::setPath().
.PP
Referenced by allowURLAction().
.SS "void KApplication::allowURLAction (const \fBQString\fP & action, const \fBKURL\fP & _baseURL, const \fBKURL\fP & _destURL)"
.PP
Allow a certain URL action. 
.PP
This can be useful if your application needs to ensure access to an application specific directory that may otherwise be subject to KIOSK restrictions. 
.PP
\fBParameters:\fP
.RS 4
\fIaction\fP The name of the action. 
.br
\fI_baseURL\fP The url where the action originates from 
.br
\fI_destURL\fP The object of the action 
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 3074 of file kapplication.cpp.
.PP
References QString::append(), and authorizeURLAction().
.SS "bool KApplication::authorizeControlModule (const \fBQString\fP & menuId)"
.PP
Returns whether access to a certain control module is authorized. 
.PP
\fBParameters:\fP
.RS 4
\fImenuId\fP identifying the control module, e.g. kde-mouse.desktop 
.RE
.PP
\fBReturns:\fP
.RS 4
true if access to the module is authorized, false otherwise. 
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 2974 of file kapplication.cpp.
.PP
References KGlobal::config(), and KConfigBase::readBoolEntry().
.SS "\fBQStringList\fP KApplication::authorizeControlModules (const \fBQStringList\fP & menuIds)"
.PP
Returns whether access to a certain control modules is authorized. 
.PP
\fBParameters:\fP
.RS 4
\fImenuIds\fP list of menu-ids of control module, an example of a menu-id is kde-mouse.desktop. 
.RE
.PP
\fBReturns:\fP
.RS 4
Those control modules for which access has been authorized. 
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 2983 of file kapplication.cpp.
.PP
References KGlobal::config(), and KConfigBase::readBoolEntry().
.SS "Qt::ButtonState KApplication::keyboardMouseState ()\fC [static]\fP"
.PP
Returns the state of the currently pressed keyboard modifiers (e.g. 
.PP
shift, control, etc.) and mouse buttons, similarly to \fBQKeyEvent::state()\fP and \fBQMouseEvent::state()\fP. You usually should simply use the information provided by \fBQKeyEvent\fP and \fBQMouseEvent\fP, but it can be useful to query for the status of the modifiers at another moment (e.g. some \fBKDE\fP apps do that upon a drop event). 
.PP
\fBReturns:\fP
.RS 4
the keyboard modifiers and mouse buttons state 
.RE
.PP
\fBSince:\fP
.RS 4
3.4 
.RE
.PP

.PP
Definition at line 3158 of file kapplication.cpp.
.PP
References KKeyNative::modX().
.SS "uint KApplication::keyboardModifiers ()\fC [static]\fP"
.PP
\fBDeprecated\fP
.RS 4
Use \fBkeyboardMouseState()\fP 
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP
.RE
.PP

.PP
Definition at line 3115 of file kapplication.cpp.
.SS "uint KApplication::mouseState ()\fC [static]\fP"
.PP
\fBDeprecated\fP
.RS 4
Use \fBkeyboardMouseState()\fP 
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP
.RE
.PP

.PP
Definition at line 3133 of file kapplication.cpp.
.SS "void KApplication::ref ()\fC [slot]\fP"
.PP
Tells KApplication about one more operation that should be finished before the application exits. 
.PP
The standard behavior is to exit on the 'last window closed' event, but some events should outlive the last window closed (e.g. a file copy for a file manager, or 'compacting folders on exit' for a mail client). 
.PP
Definition at line 1045 of file kapplication.cpp.
.SS "void KApplication::deref ()\fC [slot]\fP"
.PP
Tells KApplication that one operation such as those described in \fBref()\fP just finished. 
.PP
The application exits if the counter is back to 0. 
.PP
Definition at line 1051 of file kapplication.cpp.
.PP
References QApplication::quit().
.SS "bool KApplication::x11EventFilter (XEvent *)\fC [protected]\fP"
.PP
Used to catch X11 events. 
.PP
Reimplemented from \fBQApplication\fP.
.PP
Definition at line 1683 of file kapplication.cpp.
.PP
References backgroundChanged(), QPixmapCache::clear(), KGlobal::config(), QPtrList::first(), iconChanged(), KGlobal::instance(), kipcMessage(), KInstance::newIconLoader(), QPtrList::next(), KConfig::reparseConfiguration(), and toolbarAppearanceChanged().
.SS "void KApplication::invokeEditSlot (const char * slot)\fC [protected]\fP"
.PP
This method is used internally to determine which edit slots are implemented by the widget that has the focus, and to invoke those slots if available. 
.PP
\fBParameters:\fP
.RS 4
\fIslot\fP is the slot as returned using the SLOT() macro, for example SLOT( \fBcut()\fP )
.RE
.PP
This method can be used in KApplication subclasses to implement application wide edit actions not supported by the KApplication class. For example (in your subclass):
.PP
.PP
.nf
 void MyApplication::deselect()
 {
   invokeEditSlot( SLOT( deselect() ) );
 }
.fi
.PP
.PP
Now in your application calls to MyApplication::deselect() will call this slot on the focused widget if it provides this slot. You can combine this with \fBKAction\fP with:
.PP
.PP
.nf
 KStdAction::deselect( static_cast<MyApplication *>( kapp ), SLOT( cut() ), actionCollection() );
.fi
.PP
.PP
\fBSee also:\fP
.RS 4
\fBcut()\fP 
.PP
\fBcopy()\fP 
.PP
\fBpaste()\fP 
.PP
\fBclear()\fP 
.PP
\fBselectAll()\fP
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 1850 of file kapplication.cpp.
.PP
References QApplication::focusWidget(), and QObject::metaObject().
.PP
Referenced by clear(), copy(), cut(), paste(), and selectAll().
.SS "\fBQPalette\fP KApplication::createApplicationPalette ()\fC [static]\fP"
.PP
Used to obtain the \fBQPalette\fP that will be used to set the application palette. 
.PP
This is only useful for configuration modules such as krdb and should not be used in normal circumstances. 
.PP
\fBReturns:\fP
.RS 4
the \fBQPalette\fP 
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 1964 of file kapplication.cpp.
.PP
References KGlobal::config().
.SS "void KApplication::installSigpipeHandler ()\fC [static]\fP"
.PP
Installs a handler for the SIGPIPE signal. 
.PP
It is thrown when you write to a pipe or socket that has been closed. The handler is installed automatically in the constructor, but you may need it if your application or component does not have a KApplication instance. 
.PP
Definition at line 3205 of file kapplication.cpp.
.PP
Referenced by KApplication().
.SS "void KApplication::kdisplayPaletteChanged ()\fC [signal]\fP"
.PP
Emitted when KApplication has changed its palette due to a KControl request. 
.PP
Normally, widgets will update their palette automatically, but you should connect to this to program special behavior. 
.SS "void KApplication::kdisplayStyleChanged ()\fC [signal]\fP"
.PP
Emitted when KApplication has changed its GUI style in response to a KControl request. 
.PP
Normally, widgets will update their styles automatically (as they would respond to an explicit setGUIStyle() call), but you should connect to this to program special behavior. 
.SS "void KApplication::kdisplayFontChanged ()\fC [signal]\fP"
.PP
Emitted when KApplication has changed its font in response to a KControl request. 
.PP
Normally widgets will update their fonts automatically, but you should connect to this to monitor global font changes, especially if you are using explicit fonts.
.PP
Note: If you derive from a QWidget-based class, a faster method is to reimplement \fBQWidget::fontChange()\fP. This is the preferred way to get informed about font updates. 
.SS "void KApplication::appearanceChanged ()\fC [signal]\fP"
.PP
Emitted when KApplication has changed either its GUI style, its font or its palette in response to a kdisplay request. 
.PP
Normally, widgets will update their styles automatically, but you should connect to this to program special behavior. 
.SS "void KApplication::toolbarAppearanceChanged (int)\fC [signal]\fP"
.PP
Emitted when the settings for toolbars have been changed. 
.PP
\fBKToolBar\fP will know what to do. 
.PP
Referenced by x11EventFilter().
.SS "void KApplication::backgroundChanged (int desk)\fC [signal]\fP"
.PP
Emitted when the desktop background has been changed by \fCkcmdisplay\fP. 
.PP
\fBParameters:\fP
.RS 4
\fIdesk\fP The desktop whose background has changed. 
.RE
.PP

.PP
Referenced by x11EventFilter().
.SS "void KApplication::settingsChanged (int category)\fC [signal]\fP"
.PP
Emitted when the global settings have been changed - see \fBKGlobalSettings\fP KApplication takes care of calling reparseConfiguration on \fBKGlobal::config()\fP so that applications/classes using this only have to re-read the configuration. 
.PP
\fBParameters:\fP
.RS 4
\fIcategory\fP the category among the enum above 
.RE
.PP

.SS "void KApplication::iconChanged (int group)\fC [signal]\fP"
.PP
Emitted when the global icon settings have been changed. 
.PP
\fBParameters:\fP
.RS 4
\fIgroup\fP the new group 
.RE
.PP

.PP
Referenced by x11EventFilter().
.SS "void KApplication::kipcMessage (int id, int data)\fC [signal]\fP"
.PP
Emitted when a \fBKIPC\fP user message has been received. 
.PP
\fBParameters:\fP
.RS 4
\fIid\fP the message id 
.br
\fIdata\fP the data 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBKIPC\fP 
.PP
\fBKIPC::Message\fP 
.PP
\fBaddKipcEventMask\fP 
.PP
\fBremoveKipcEventMask\fP 
.RE
.PP

.PP
Referenced by x11EventFilter().
.SS "void KApplication::saveYourself ()\fC [signal]\fP"
.PP
Session management asks you to save the state of your application. 
.PP
This signal is provided for compatibility only. For new applications, simply use \fBKMainWindow\fP. By reimplementing \fBKMainWindow::queryClose()\fP, \fBKMainWindow::saveProperties()\fP and \fBKMainWindow::readProperties()\fP you can simply handle session management for applications with multiple toplevel windows.
.PP
For purposes without \fBKMainWindow\fP, create an instance of \fBKSessionManaged\fP and reimplement the functions \fBKSessionManaged::commitData()\fP and/or \fBKSessionManaged::saveState()\fP
.PP
If you still want to use this signal, here is what you should do:
.PP
Connect to this signal in order to save your data. Do NOT manipulate the UI in that slot, it is blocked by the session manager.
.PP
Use the \fBsessionConfig()\fP \fBKConfig\fP object to store all your instance specific data.
.PP
Do not do any closing at this point! The user may still select Cancel wanting to continue working with your application. Cleanups could be done after \fBshutDown()\fP (see the following). 
.SS "void KApplication::shutDown ()\fC [signal]\fP"
.PP
Your application is killed. 
.PP
Either by your program itself, \fCxkill\fP or (the usual case) by KDE's logout.
.PP
The signal is particularly useful if your application has to do some last-second cleanups. Note that no user interaction is possible at this state. 
.SH "Member Data Documentation"
.PP 
.SS "\fBKApplication\fP * \fBKApplication::KApp\fP = 0L\fC [static, protected]\fP"
.PP
Current application object. 
.PP
Definition at line 155 of file kapplication.cpp.

.SH "Author"
.PP 
Generated automatically by Doxygen for kdecore Library from the source code.
