Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
kdecore
kdecore
kdecore
kuniqueapplication.h
1
/* This file is part of the KDE libraries
2
Copyright (c) 1999 Preston Brown <pbrown@kde.org>
3
Copyright (c) 2000-2001 Waldo Bastian <bastian@kde.org>
4
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public
7
License as published by the Free Software Foundation; either
8
version 2 of the License, or (at your option) any later version.
9
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Library General Public License for more details.
14
15
You should have received a copy of the GNU Library General Public License
16
along with this library; see the file COPYING.LIB. If not, write to
17
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
Boston, MA 02110-1301, USA.
19
*/
20
21
#ifndef _KUNIQUEAPP_H
22
#define _KUNIQUEAPP_H
23
24
#include <kapplication.h>
25
#include <dcopobject.h>
26
27
class
KUniqueApplicationPrivate;
28
48
class
KDECORE_EXPORT
KUniqueApplication
:
public
KApplication
,
public
DCOPObject
49
{
50
Q_OBJECT
51
public
:
67
KUniqueApplication
(
bool
allowStyles=
true
,
68
bool
GUIenabled=
true
,
69
bool
configUnique=
false
);
70
71
#ifdef Q_WS_X11
72
92
KUniqueApplication
( Display *display,
93
Qt::HANDLE visual=0,
94
Qt::HANDLE colormap=0,
95
bool
allowStyles=
true
,
96
bool
configUnique=
false
);
97
#endif
98
105
static
void
addCmdLineOptions
();
106
136
static
bool
start();
137
141
virtual
~
KUniqueApplication
();
142
155
bool
process
(
const
TQCString &fun,
const
TQByteArray &data,
156
TQCString &replyType, TQByteArray &replyData);
157
178
virtual
int
newInstance();
179
186
bool
restoringSession();
187
191
static
void
setHandleAutoStarted();
192
193
private
:
197
void
delayRequest(
const
TQCString &fun,
const
TQByteArray &data);
198
199
private
slots:
203
void
processDelayed();
204
205
void
newInstanceNoFork();
206
207
static
KInstance
* initHack(
bool
configUnique );
208
209
private
:
210
static
bool
s_nofork;
211
static
bool
s_multipleInstances;
212
static
bool
s_uniqueTestDone;
213
static
bool
s_handleAutoStarted;
214
215
protected
:
216
virtual
void
virtual_hook
(
int
id
,
void
* data );
217
private
:
218
KUniqueApplicationPrivate *d;
219
};
220
221
#endif
kdecore
Skip menu "kdecore"
Main Page
Modules
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
kdecore
Skip menu "kdecore"
arts
dcop
dnssd
interfaces
interface
library
kspeech
ktexteditor
kabc
kate
kcmshell
kdecore
kded
kdefx
kdeprint
kdesu
kdeui
kdoctools
khtml
kimgio
kinit
kio
bookmarks
httpfilter
kfile
kio
kioexec
kpasswdserver
kssl
kioslave
http
kjs
kmdi
kmdi
knewstuff
kparts
krandr
kresources
kspell2
kunittest
kutils
kwallet
libkmid
libkscreensaver