~ubuntu-branches/ubuntu/wily/kdebase/wily

« back to all changes in this revision

Viewing changes to apps/nsplugins/viewer/qxteventloop.h

  • Committer: Bazaar Package Importer
  • Author(s): Philip Muškovac, Jonathan Riddell, Felix Geyer
  • Date: 2011-03-03 16:25:47 UTC
  • mfrom: (1.1.58 upstream)
  • Revision ID: james.westby@ubuntu.com-20110303162547-2zf9j33cu6j5gj0a
Tags: 4:4.6.1a-0ubuntu1
[ Jonathan Riddell ]
* New upstream release
* Update kde-sc-dev-latest version

[ Felix Geyer ]
* Reduce the x-www-browser priority for konqueror to 30 as rekonq is the
  default Kubuntu browser.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/****************************************************************************
2
 
**
3
 
** Implementation of QWidget class
4
 
**
5
 
** Created : 931031
6
 
**
7
 
** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
8
 
**
9
 
** This file is part of the xt extension of the Qt GUI Toolkit.
10
 
**
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.
14
 
**
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.
19
 
**
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.
23
 
**
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.
26
 
**
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.
31
 
**
32
 
** Contact info@trolltech.com if any conditions of this licensing are
33
 
** not clear to you.
34
 
**
35
 
**********************************************************************/
36
 
#ifndef QXTEVENTLOOP_H
37
 
#define QXTEVENTLOOP_H
38
 
 
39
 
#include <QtCore/QBool>
40
 
 
41
 
#include <QEventLoop>
42
 
#include <QSocketNotifier>
43
 
 
44
 
 
45
 
 
46
 
#include <X11/Intrinsic.h>
47
 
 
48
 
class QXtEventLoopPrivate;
49
 
 
50
 
class QXtEventLoop : public QEventLoop
51
 
{
52
 
    Q_OBJECT
53
 
 
54
 
public:
55
 
    explicit QXtEventLoop( const char *applicationClass, XtAppContext context = NULL, XrmOptionDescRec *options = 0, int numOptions = 0);
56
 
    ~QXtEventLoop();
57
 
 
58
 
    XtAppContext applicationContext() const;
59
 
 
60
 
    void registerSocketNotifier( QSocketNotifier * );
61
 
    void unregisterSocketNotifier( QSocketNotifier * );
62
 
 
63
 
    static void registerWidget( QWidget* );
64
 
    static void unregisterWidget( QWidget* );
65
 
    static bool redeliverEvent( XEvent *event );
66
 
    static XEvent* lastEvent();
67
 
 
68
 
protected:
69
 
    bool processEvents( ProcessEventsFlags flags );
70
 
 
71
 
private:
72
 
    void appStartingUp();
73
 
    void appClosingDown();
74
 
    QXtEventLoopPrivate *d;
75
 
 
76
 
};
77
 
 
78
 
 
79
 
#endif // QMOTIF_H