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

tdecore

  • tdecore
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 <tdeapplication.h>
25 #include <dcopobject.h>
26 
27 class KUniqueApplicationPrivate;
28 
48 class TDECORE_EXPORT KUniqueApplication : public TDEApplication, 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 TDEInstance* 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
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:96
KUniqueApplication
Maintains only a single instance of a running application at a time.
Definition: kuniqueapplication.h:48
TDEApplication::addCmdLineOptions
static void addCmdLineOptions()
Add Qt and KDE command line options to TDECmdLineArgs.
Definition: tdeapplication.cpp:1692
DCOPObject
TDEInstance
Access to KDE global objects for use in shared libraries.
Definition: kinstance.h:47

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
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.8.8
This website is maintained by Timothy Pearson.