KDEUI
kxerrorhandler.cpp
Go to the documentation of this file.
62KXErrorHandler::KXErrorHandler( bool (*handler)( int request, int error_code, unsigned long resource_id ), Display* dpy )
94 handlers = static_cast< KXErrorHandler** >( qRealloc( handlers, size * sizeof( KXErrorHandler* )));
163 ret = QByteArray( "error: " ) + (const char*)tmp + '[' + QByteArray::number( event.error_code ) + ']';
166 ret += QByteArray( ", request: " ) + (const char*)tmp + '[' + QByteArray::number( event.request_code ) + ']';
233 ret = QByteArray( "error: " ) + (const char*)tmp + '[' + QByteArray::number( event.error_code ) + ']';
KXErrorHandler(Display *dpy=QX11Info::display())
Creates error handler that will set error flag after encountering any X error.
Definition kxerrorhandler.cpp:52
XErrorEvent errorEvent() const
This function returns the error event for the first X error that occurred.
Definition kxerrorhandler.cpp:106
static QByteArray errorMessage(const XErrorEvent &e, Display *dpy=QX11Info::display())
Returns error message for the given error.
Definition kxerrorhandler.cpp:150
bool error(bool sync) const
This function returns true if the error flag is set (i.e.
Definition kxerrorhandler.cpp:99
static int timestampCompare(unsigned long time1, unsigned long time2)
Compares two X timestamps, taking into account wrapping and 64bit architectures.
Definition netwm.cpp:4735
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.