#include <kcrash.h>
Public Types | |
| typedef void(* | HandlerType )(int) |
Static Public Methods | |
| void | defaultCrashHandler (int signal) |
| void | setCrashHandler (HandlerType handler=defaultCrashHandler) |
| HandlerType | crashHandler () |
| void | setEmergencySaveFunction (HandlerType saveFunction=(HandlerType) 0) |
| HandlerType | emergencySaveFunction () |
| void | setApplicationPath (QString path) |
| void | setApplicationName (QString name) |
Static Protected Attributes | |
| HandlerType | _crashHandler |
| HandlerType | _emergencySaveFunction |
Definition at line 36 of file kcrash.h.
|
|
This function type is a pointer to a crash handler function. The function's argument is the number of the signal. Definition at line 53 of file kcrash.h. Referenced by crashHandler(), and emergencySaveFunction(). |
|
|
Returns the installed crash handler.
Definition at line 72 of file kcrash.h. References _crashHandler, and HandlerType. |
|
|
The default crash handler.
|
|
|
Return the currently set emergency save function.
Definition at line 86 of file kcrash.h. References _emergencySaveFunction, and HandlerType. |
|
|
Sets the application name
|
|
|
Sets the application
|
|
|
Install a function to be called in case a SIGSEGV is caught.
|
|
|
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.
|
|
|
Pointer to the crash handler. Definition at line 106 of file kcrash.h. Referenced by crashHandler(). |
|
|
Pointer to the emergency save function. Definition at line 110 of file kcrash.h. Referenced by emergencySaveFunction(). |
1.2.18