summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/openkode/qopenkodeeventloopintegration.h
blob: 03f800c8efe86a0f869c904a1438be7a83b2db78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef QOPENKODEEVENTLOOPINTEGRATION_H
#define QOPENKODEEVENTLOOPINTEGRATION_H

#include <QtGui/QPlatformEventLoopIntegration>

class KDThread;
class KDEvent;

QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

class QOpenKODEEventLoopIntegration : public QPlatformEventLoopIntegration
{
public:
    QOpenKODEEventLoopIntegration();
    void processEvents(qint64 msec);
    void wakeup();

    void processInputEvent(const KDEvent *event);
private:

    KDThread *m_kdThread;
};

QT_END_NAMESPACE
QT_END_HEADER

#endif // QOPENKODEEVENTLOOPINTEGRATION_H