class KCrash

This class handles segmentation-faults. More...

Definition#include <kcrash.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Static Methods

Public Members

Protected Members


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.

void  defaultCrashHandler (int signal)

defaultCrashHandler

[static]

typedef void  (*HandlerType) (int)

(*HandlerType)

void  setCrashHandler (HandlerType handler = defaultCrashHandler)

setCrashHandler

[static]

Install a function to be called in case a SIGSEGV is caught.

Parameters:
HandlerTypehandler can be one of

HandlerType  crashHandler ()

crashHandler

[static]

Returns the installed crash handler

void  setEmergencySaveFunction (HandlerType saveFunction = (HandlerType)0)

setEmergencySaveFunction

[static]

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.

HandlerType  emergencySaveFunction ()

emergencySaveFunction

[static]

Return the currently set emergency save function.

void  setApplicationPath (QString path)

setApplicationPath

[static]

Sets the application path path which should be passed to Dr. Konqi, our nice crash display application.

void  setApplicationName (QString name)

setApplicationName

[static]

Sets the application name name which should be passed to Dr. Konqi, our nice crash display application.

static HandlerType _crashHandler

_crashHandler

[protected]

static HandlerType _emergencySaveFunction

_emergencySaveFunction

[protected]


Generated by: dfaure on faure on Tue Apr 16 08:49:00 2002, using kdoc 2.0a53.