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

kdecore

  • kdecore
kcrash.h
1 /*
2  * This file is part of the KDE 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 __KCRASH_H
23 #define __KCRASH_H
24 
25 #include <tqstring.h>
26 #include "kdelibs_export.h"
27 
37 class KDECORE_EXPORT KCrash
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 = qstrdup(path.local8Bit().data()); }
101  /* KDE 4: Make it const TQString & */
102 
108  static void setApplicationName (TQString name) { appName = qstrdup(name.local8Bit().data()); }
109  /* KDE 4: 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 

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
Generated for kdecore by doxygen 1.8.3.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |