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

tdecore

  • tdecore
tdecrash.h
1 /*
2  * This file is part of the TDE Libraries
3  * Copyright (C) 2000 Timo Hummel <timo.hummel@sap.com>
4  * Tom Braun <braunt@fh-konstanz.de>
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 
22 #ifndef __TDECRASH_H
23 #define __TDECRASH_H
24 
25 #include <tqstring.h>
26 #include "tdelibs_export.h"
27 
37 class TDECORE_EXPORT TDECrash
38 {
39  private: // ;o)
40  static const char *appName;
41  static const char *appPath;
42  static bool safer;
43 
44  public:
49  static void defaultCrashHandler (int signal);
50 
55  typedef void (*HandlerType)(int);
56 
68  static void setCrashHandler (HandlerType handler = defaultCrashHandler);
69 
74  static HandlerType crashHandler() { return _crashHandler; }
75 
83  static void setEmergencySaveFunction (HandlerType saveFunction = (HandlerType)0);
88  static HandlerType emergencySaveFunction() { return _emergencySaveFunction; }
89 
93  static void setSafer( bool on ) { safer = on; }
94 
100  static void setApplicationPath (TQString path) { appPath = tqstrdup(path.local8Bit().data()); }
101  /* Future: Make it const TQString & */
102 
108  static void setApplicationName (TQString name) { appName = tqstrdup(name.local8Bit().data()); }
109  /* Future: Make it const TQString & */
110 
111  protected:
115  static HandlerType _crashHandler;
119  static HandlerType _emergencySaveFunction;
120 
121  private:
122  static void startDrKonqi( const char* argv[], int argc );
123  static void startDirectly( const char* argv[], int argc );
124 };
125 
126 #endif
127 
TDECrash
This class handles segmentation-faults.
Definition: tdecrash.h:38
TDECrash::_crashHandler
static HandlerType _crashHandler
Pointer to the crash handler.
Definition: tdecrash.h:115
TDECrash::emergencySaveFunction
static HandlerType emergencySaveFunction()
Return the currently set emergency save function.
Definition: tdecrash.h:88
TDECrash::_emergencySaveFunction
static HandlerType _emergencySaveFunction
Pointer to the emergency save function.
Definition: tdecrash.h:119
TDECrash::setSafer
static void setSafer(bool on)
Set whether to start drkonqi without arbitrary disk access.
Definition: tdecrash.h:93
TDECrash::setApplicationName
static void setApplicationName(TQString name)
Sets the application name name which should be passed to Dr.
Definition: tdecrash.h:108
TDECrash::setApplicationPath
static void setApplicationPath(TQString path)
Sets the application path which should be passed to Dr.
Definition: tdecrash.h:100
TDECrash::crashHandler
static HandlerType crashHandler()
Returns the installed crash handler.
Definition: tdecrash.h:74

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.1
This website is maintained by Timothy Pearson.