KCrash Class Reference
#include <kcrash.h>
Detailed Description
This class handles segmentation-faults.By default it displays a message-box saying the application crashed. This default can be overridden by setting a custom crash handler with setCrashHandler(). If a function is specified with setEmergencySaveFunction() it will be called by the default crash handler, giving the application a chance to save its data.
Definition at line 37 of file kcrash.h.
Public Types | |
typedef void(* | HandlerType )(int) |
Static Public Member Functions | |
static void | defaultCrashHandler (int signal) |
static void | setCrashHandler (HandlerType handler=defaultCrashHandler) |
static HandlerType | crashHandler () |
static void | setEmergencySaveFunction (HandlerType saveFunction=(HandlerType) 0) |
static HandlerType | emergencySaveFunction () |
static void | setSafer (bool on) |
static void | setApplicationPath (QString path) |
static void | setApplicationName (QString name) |
Static Protected Attributes | |
static HandlerType | _crashHandler = 0 |
static HandlerType | _emergencySaveFunction = 0 |
Member Typedef Documentation
|
This function type is a pointer to a crash handler function. The function's argument is the number of the signal. |
Member Function Documentation
|
Returns the installed crash handler.
|
|
The default crash handler.
Definition at line 118 of file kcrash.cpp. |
|
Return the currently set emergency save function.
|
|
Sets the application name Konqi, our nice crash display application.
|
|
Sets the application Konqi, our nice crash display application.
|
|
Install a function to be called in case a SIGSEGV is caught.
Definition at line 85 of file kcrash.cpp. |
|
Installs a function which should try to save the applications data. It is the crash handler´s responsibility to call this function. Therefore, if no crash handler is set, the default crash handler is installed to ensure the save function is called.
Definition at line 69 of file kcrash.cpp. |
|
Set whether to start drkonqi without arbitrary disk access.
|
Member Data Documentation
|
Pointer to the crash handler.
|
|
Pointer to the emergency save function.
|
The documentation for this class was generated from the following files: