• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KDEUI

kcrash.h

Go to the documentation of this file.
00001 /*
00002  * This file is part of the KDE Libraries
00003  * Copyright (C) 2000 Timo Hummel <timo.hummel@sap.com>
00004  *                    Tom Braun <braunt@fh-konstanz.de>
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Library General Public License
00016  * along with this library; see the file COPYING.LIB.  If not, write to
00017  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019  *
00020  */
00021 
00022 #ifndef KCRASH_H
00023 #define KCRASH_H
00024 
00025 #include <kdeui_export.h>
00026 
00027 class QString;
00028 
00046 namespace KCrash
00047 {
00057   KDEUI_EXPORT void defaultCrashHandler (int signal);
00058 
00063   typedef void (*HandlerType)(int);
00064 
00081   KDEUI_EXPORT void setCrashHandler (HandlerType handler = defaultCrashHandler);
00082 
00087   KDEUI_EXPORT HandlerType crashHandler();
00088 
00096   KDEUI_EXPORT void setEmergencySaveFunction (HandlerType saveFunction = 0);
00097 
00102   KDEUI_EXPORT HandlerType emergencySaveFunction();
00103 
00107   enum CrashFlag {
00108     KeepFDs = 1,          
00109     SaferDialog = 2,      
00110     AlwaysDirectly = 4,   
00111     AutoRestart = 8       
00112   };
00113   Q_DECLARE_FLAGS(CrashFlags, CrashFlag)
00114 
00115   
00119   KDEUI_EXPORT void setFlags( CrashFlags flags );
00120 
00126   KDEUI_EXPORT void setApplicationPath (const QString &path);
00127 
00133   KDEUI_EXPORT void setApplicationName (const QString &name);
00134 
00145   KDEUI_EXPORT void setDrKonqiEnabled(bool enabled);
00146 
00151   KDEUI_EXPORT bool isDrKonqiEnabled();
00152 }
00153 
00154 Q_DECLARE_OPERATORS_FOR_FLAGS(KCrash::CrashFlags)
00155 
00156 #endif
00157 

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal