KDEUI
kuniqueapplication.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KUNIQUEAPP_H
00022 #define KUNIQUEAPP_H
00023
00024 #include <kapplication.h>
00025
00047 class KDEUI_EXPORT KUniqueApplication : public KApplication
00048 {
00049 Q_OBJECT
00050 public:
00060 explicit KUniqueApplication( bool GUIenabled=true,
00061 bool configUnique=false);
00062
00063 #ifdef Q_WS_X11
00064
00080 explicit KUniqueApplication( Display *display,
00081 Qt::HANDLE visual=0,
00082 Qt::HANDLE colormap=0,
00083 bool configUnique=false);
00084 #endif
00085
00092 static void addCmdLineOptions();
00093
00126 static bool start();
00127
00131 virtual ~KUniqueApplication();
00132
00153 virtual int newInstance();
00154
00159 bool restoringSession();
00160
00164 static void setHandleAutoStarted();
00165
00166 private:
00167 friend class KUniqueApplicationAdaptor;
00168 class Private;
00169 Private * const d;
00170
00171 Q_PRIVATE_SLOT(d, void _k_newInstanceNoFork())
00172 };
00173
00174 #endif