KDEUI
kcrash.cpp File Reference
#include "kcrash.h"
#include <kcmdlineargs.h>
#include <kstandarddirs.h>
#include <config-kstandarddirs.h>
#include <config.h>
#include <string.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/wait.h>
#include <sys/un.h>
#include <sys/socket.h>
#include <errno.h>
#include <qwindowdefs.h>
#include <kglobal.h>
#include <kcomponentdata.h>
#include <kaboutdata.h>
#include <kdebug.h>
#include <kapplication.h>
#include <../kinit/klauncher_cmds.h>
#include <qx11info_x11.h>
#include <X11/Xlib.h>

Go to the source code of this file.
Namespaces | |
namespace | KCrash |
Defines | |
#define | MAX_SOCK_FILE 255 |
Functions | |
static void | closeAllFDs () |
KCrash::HandlerType | KCrash::crashHandler () |
void | KCrash::defaultCrashHandler (int signal) |
KCrash::HandlerType | KCrash::emergencySaveFunction () |
static char * | getDisplay () |
static int | openSocket () |
static int | read_socket (int sock, char *buffer, int len) |
void | KCrash::setApplicationName (const QString &name) |
void | KCrash::setApplicationPath (const QString &path) |
void | KCrash::setCrashHandler (HandlerType handler=defaultCrashHandler) |
void | KCrash::setEmergencySaveFunction (HandlerType saveFunction=0) |
void | KCrash::setFlags (KCrash::CrashFlags flags) |
void | KCrash::startDirectly (const char *argv[], int argc) |
void | KCrash::startDrKonqi (const char *argv[], int argc) |
static int | write_socket (int sock, char *buffer, int len) |
Variables | |
char ** | environ |
static char * | s_appName = 0 |
static char * | s_appPath = 0 |
static char * | s_autoRestartCommand = 0 |
static KCrash::HandlerType | s_crashHandler = 0 |
static char * | s_drkonqiPath = 0 |
static KCrash::HandlerType | s_emergencySaveFunction = 0 |
static KCrash::CrashFlags | s_flags = 0 |
static bool | s_launchDrKonqi = true |
Define Documentation
#define MAX_SOCK_FILE 255 |
Function Documentation
static void closeAllFDs | ( | ) | [static] |
Definition at line 201 of file kcrash.cpp.
static char* getDisplay | ( | ) | [static] |
Definition at line 443 of file kcrash.cpp.
static int openSocket | ( | ) | [static] |
static int read_socket | ( | int | sock, | |
char * | buffer, | |||
int | len | |||
) | [static] |
Definition at line 509 of file kcrash.cpp.
static int write_socket | ( | int | sock, | |
char * | buffer, | |||
int | len | |||
) | [static] |
Definition at line 485 of file kcrash.cpp.
Variable Documentation
char** environ |
char* s_appName = 0 [static] |
Definition at line 65 of file kcrash.cpp.
char* s_appPath = 0 [static] |
Definition at line 67 of file kcrash.cpp.
char* s_autoRestartCommand = 0 [static] |
Definition at line 66 of file kcrash.cpp.
KCrash::HandlerType s_crashHandler = 0 [static] |
Definition at line 64 of file kcrash.cpp.
char* s_drkonqiPath = 0 [static] |
Definition at line 68 of file kcrash.cpp.
KCrash::HandlerType s_emergencySaveFunction = 0 [static] |
Definition at line 63 of file kcrash.cpp.
KCrash::CrashFlags s_flags = 0 [static] |
Definition at line 69 of file kcrash.cpp.
bool s_launchDrKonqi = true [static] |
Definition at line 70 of file kcrash.cpp.