source: trunk/src/corelib/kernel/qeventdispatcher_pm_p.h

Last change on this file was 659, checked in by Dmitry A. Kuminov, 15 years ago

global: Updated year to 2010 in OS/2-specific headers.

File size: 3.2 KB
Line 
1/****************************************************************************
2**
3** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4** All rights reserved.
5** Contact: Nokia Corporation ([email protected])
6**
7** Copyright (C) 2010 netlabs.org. OS/2 parts.
8**
9** This file is part of the QtCore module of the Qt Toolkit.
10**
11** $QT_BEGIN_LICENSE:LGPL$
12** Commercial Usage
13** Licensees holding valid Qt Commercial licenses may use this file in
14** accordance with the Qt Commercial License Agreement provided with the
15** Software or, alternatively, in accordance with the terms contained in
16** a written agreement between you and Nokia.
17**
18** GNU Lesser General Public License Usage
19** Alternatively, this file may be used under the terms of the GNU Lesser
20** General Public License version 2.1 as published by the Free Software
21** Foundation and appearing in the file LICENSE.LGPL included in the
22** packaging of this file. Please review the following information to
23** ensure the GNU Lesser General Public License version 2.1 requirements
24** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
25**
26** In addition, as a special exception, Nokia gives you certain additional
27** rights. These rights are described in the Nokia Qt LGPL Exception
28** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
29**
30** GNU General Public License Usage
31** Alternatively, this file may be used under the terms of the GNU
32** General Public License version 3.0 as published by the Free Software
33** Foundation and appearing in the file LICENSE.GPL included in the
34** packaging of this file. Please review the following information to
35** ensure the GNU General Public License version 3.0 requirements will be
36** met: http://www.gnu.org/copyleft/gpl.html.
37**
38** If you have questions regarding the use of this file, please contact
39** Nokia at [email protected].
40** $QT_END_LICENSE$
41**
42****************************************************************************/
43
44#ifndef QEVENTDISPATCHER_PM_P_H
45#define QEVENTDISPATCHER_PM_P_H
46
47//
48// W A R N I N G
49// -------------
50//
51// This file is not part of the Qt API. It exists purely as an
52// implementation detail. This header file may change from version to
53// version without notice, or even be removed.
54//
55// We mean it.
56//
57
58#include "QtCore/qabstracteventdispatcher.h"
59
60QT_BEGIN_NAMESPACE
61
62class QEventDispatcherPMPrivate;
63
64class Q_CORE_EXPORT QEventDispatcherPM : public QAbstractEventDispatcher
65{
66 Q_OBJECT
67 Q_DECLARE_PRIVATE(QEventDispatcherPM)
68
69 friend class QGuiEventDispatcherPM;
70
71public:
72 explicit QEventDispatcherPM(QObject *parent = 0);
73 ~QEventDispatcherPM();
74
75 bool processEvents(QEventLoop::ProcessEventsFlags flags);
76 bool hasPendingEvents();
77
78 void registerSocketNotifier(QSocketNotifier *notifier);
79 void unregisterSocketNotifier(QSocketNotifier *notifier);
80
81 void registerTimer(int timerId, int interval, QObject *object);
82 bool unregisterTimer(int timerId);
83 bool unregisterTimers(QObject *object);
84 QList<TimerInfo> registeredTimers(QObject *object) const;
85
86 void wakeUp();
87 void interrupt();
88 void flush();
89
90 void startingUp();
91 void closingDown();
92
93 void createMsgQueue();
94};
95
96QT_END_NAMESPACE
97
98#endif // QEVENTDISPATCHER_WIN_P_H
Note: See TracBrowser for help on using the repository browser.