• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

  • tdecore
tdeuniqueapplication.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 _TDEUNIQUEAPP_H
22#define _TDEUNIQUEAPP_H
23
24#include <tdeapplication.h>
25#include <dcopobject.h>
26
27class TDEUniqueApplicationPrivate;
28
48class TDECORE_EXPORT TDEUniqueApplication : public TDEApplication, public DCOPObject
49{
50 TQ_OBJECT
51public:
67 TDEUniqueApplication( bool allowStyles=true,
68 bool GUIenabled=true,
69 bool configUnique=false);
70
71#ifdef TQ_WS_X11
92 TDEUniqueApplication( Display *display,
93 TQt::HANDLE visual=0,
94 TQt::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 ~TDEUniqueApplication();
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
193private:
197 void delayRequest(const TQCString &fun, const TQByteArray &data);
198
199private slots:
203 void processDelayed();
204
205 void newInstanceNoFork();
206
207 static TDEInstance* initHack( bool configUnique );
208
209private:
210 static bool s_nofork;
211 static bool s_multipleInstances;
212 static bool s_uniqueTestDone;
213 static bool s_handleAutoStarted;
214
215protected:
216 virtual void virtual_hook( int id, void* data );
217private:
218 TDEUniqueApplicationPrivate *d;
219};
220
221#endif
DCOPObject
DCOPObject::process
virtual bool process(const TQCString &fun, const TQByteArray &data, TQCString &replyType, TQByteArray &replyData)
TDEApplication
Controls and provides information to all KDE applications.
Definition: tdeapplication.h:95
TDEApplication::addCmdLineOptions
static void addCmdLineOptions()
Add Qt and KDE command line options to TDECmdLineArgs.
Definition: tdeapplication.cpp:1690
TDEInstance
Access to KDE global objects for use in shared libraries.
Definition: kinstance.h:48
TDEUniqueApplication
Maintains only a single instance of a running application at a time.
Definition: tdeuniqueapplication.h:49

tdecore

Skip menu "tdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.