1 /****************************************************************************
3 ** Implementation of QWidget class
7 ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
9 ** This file is part of the xt extension of the Qt GUI Toolkit.
11 ** This file may be distributed under the terms of the Q Public License
12 ** as defined by Trolltech AS of Norway and appearing in the file
13 ** LICENSE.QPL included in the packaging of this file.
15 ** This file may be distributed and/or modified under the terms of the
16 ** GNU General Public License version 2 as published by the Free Software
17 ** Foundation and appearing in the file LICENSE.GPL included in the
18 ** packaging of this file.
20 ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
21 ** licenses may use this file in accordance with the Qt Commercial License
22 ** Agreement provided with the Software.
24 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
25 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
27 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
28 ** information about Qt Commercial License Agreements.
29 ** See http://www.trolltech.com/qpl/ for QPL licensing information.
30 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
32 ** Contact info@trolltech.com if any conditions of this licensing are
35 **********************************************************************/
36 #ifndef QXTEVENTLOOP_H
37 #define QXTEVENTLOOP_H
39 #include <QtCore/QBool>
42 #include <QSocketNotifier>
46 #include <X11/Intrinsic.h>
48 class QXtEventLoopPrivate
;
50 class QXtEventLoop
: public QEventLoop
55 explicit QXtEventLoop( const char *applicationClass
, XtAppContext context
= NULL
, XrmOptionDescRec
*options
= 0, int numOptions
= 0);
58 XtAppContext
applicationContext() const;
60 void registerSocketNotifier( QSocketNotifier
* );
61 void unregisterSocketNotifier( QSocketNotifier
* );
63 static void registerWidget( QWidget
* );
64 static void unregisterWidget( QWidget
* );
65 static bool redeliverEvent( XEvent
*event
);
66 static XEvent
* lastEvent();
69 bool processEvents( ProcessEventsFlags flags
);
73 void appClosingDown();
74 QXtEventLoopPrivate
*d
;