Changeset 139 for trunk/include
- Timestamp:
- Oct 20, 2006, 11:44:52 PM (19 years ago)
- Location:
- trunk/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/qt_os2.h
r8 r139 45 45 #include <os2.h> 46 46 47 // OS/2 system exception handler callback interface 48 49 #if !defined(QT_OS2_NO_SYSEXCEPTIONS) 50 51 enum QtOS2SysXcptReq 52 { 53 QtOS2SysXcptReq_AppName = 0, 54 QtOS2SysXcptReq_AppVer = 1, 55 QtOS2SysXcptReq_ReportTo = 2, 56 QtOS2SysXcptReq_ReportSubj = 3, 57 }; 58 59 typedef void (*QtOS2SysXcptWriter)( const char *str ); 60 typedef int (*QtOS2SysXcptCallback)( QtOS2SysXcptReq req, 61 QtOS2SysXcptWriter writer, 62 int reserved ); 63 64 class Q_EXPORT QtOS2SysXcptMainHandler 65 { 66 public: 67 QtOS2SysXcptMainHandler( QtOS2SysXcptCallback cb = NULL ); 68 ~QtOS2SysXcptMainHandler(); 69 70 class Private; 71 72 private: 73 EXCEPTIONREGISTRATIONRECORD rec; 74 75 static bool installed; 76 static QtOS2SysXcptCallback callback; 77 static ERR libcHandler; 78 79 static ULONG APIENTRY handler( PEXCEPTIONREPORTRECORD pReportRec, 80 PEXCEPTIONREGISTRATIONRECORD pRegRec, 81 PCONTEXTRECORD pContextRec, 82 PVOID pv ); 83 84 friend class QtOS2SysXcptMainHandlerInternal; 85 friend class QThreadInstance; 86 87 // these are private to allow only stack-based instances 88 QtOS2SysXcptMainHandler( QtOS2SysXcptMainHandler &/*that*/ ) {} 89 QtOS2SysXcptMainHandler &operator =( QtOS2SysXcptMainHandler &/*that*/) { 90 return *this; 91 } 92 static void *operator new( size_t /*size*/ ) throw() { return NULL; } 93 static void operator delete( void */*memory*/ ) {} 94 }; 95 96 #endif // !defined(QT_OS2_NO_SYSEXCEPTIONS) 97 47 98 #endif // QT_OS2_H -
trunk/include/qwindowdefs_pm.h
r136 r139 124 124 }; 125 125 126 // OS/2 system exception handler callback interface127 128 enum QtSysXcptReq129 {130 QtSysXcptReq_AppName = 0,131 QtSysXcptReq_AppVer = 1,132 QtSysXcptReq_ReportTo = 2,133 QtSysXcptReq_ReportSubj = 3,134 };135 136 typedef void (*QtSysXcptWriter)( const char *str );137 typedef int (*QtSysXcptCallback)( QtSysXcptReq req, QtSysXcptWriter writer,138 int reserved );139 140 Q_EXPORT QtSysXcptCallback qInstallSysXcptCallback( QtSysXcptCallback cb );141 142 126 #endif
Note:
See TracChangeset
for help on using the changeset viewer.