CXWindowsUtil::CErrorLock Class Reference

X11 error handler. More...

#include <CXWindowsUtil.h>

Collaboration diagram for CXWindowsUtil::CErrorLock:

Collaboration graph
[legend]
List of all members.

Public Types

typedef void(*) ErrorHandler (Display *, XErrorEvent *, void *userData)
 Error handler type.

Public Member Functions

 CErrorLock (Display *)
 CErrorLock (Display *, bool *errorFlag)
 CErrorLock (Display *, ErrorHandler handler, void *userData)
 ~CErrorLock ()

Detailed Description

X11 error handler.

This class sets an X error handler in the c'tor and restores the previous error handler in the d'tor. A lock should only be installed while the display is locked by the thread.

CErrorLock() ignores errors CErrorLock(bool* flag) sets *flag to true if any error occurs

Definition at line 128 of file CXWindowsUtil.h.


Constructor & Destructor Documentation

CXWindowsUtil::CErrorLock::CErrorLock ( Display *   ) 

Ignore X11 errors.

Definition at line 1702 of file CXWindowsUtil.cpp.

CXWindowsUtil::CErrorLock::CErrorLock ( Display *  ,
bool *  errorFlag 
)

Set *errorFlag if any error occurs.

Definition at line 1708 of file CXWindowsUtil.cpp.

CXWindowsUtil::CErrorLock::CErrorLock ( Display *  ,
ErrorHandler  handler,
void *  userData 
)

Call handler on each error.

Definition at line 1714 of file CXWindowsUtil.cpp.


The documentation for this class was generated from the following files:
Generated on Fri Nov 6 00:19:17 2009 for synergy-plus by  doxygen 1.4.7