Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqnxscreeneventthread.h
Go to the documentation of this file.
1// Copyright (C) 2017 QNX Software Systems. All rights reserved.
2// Copyright (C) 2011 - 2012 Research In Motion
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef QQNXSCREENEVENTTHREAD_H
6#define QQNXSCREENEVENTTHREAD_H
7
8#include <QtCore/QThread>
9#include <QtCore/QMutex>
10
11#include <screen/screen.h>
12#include <sys/siginfo.h>
13
15
17{
19
20public:
21 QQnxScreenEventThread(screen_context_t context);
23
24 screen_context_t context() const { return m_screenContext; }
25 void armEventsPending(int count);
26
27protected:
28 void run() override;
29
32
33private:
34 void handleScreenPulse(const struct _pulse &msg);
35 void handleArmPulse(const struct _pulse &msg);
36 void handlePulse(const struct _pulse &msg);
37 void shutdown();
38
39 int m_channelId;
40 int m_connectionId;
41 struct sigevent m_screenEvent;
42 screen_context_t m_screenContext;
43 bool m_emitNeededOnNextScreenPulse = true;
44 int m_screenPulsesSinceLastArmPulse = 0;
45};
46
48
49#endif // QQNXSCREENEVENTTHREAD_H
QQnxScreenEventThread(screen_context_t context)
screen_context_t context() const
Combined button and popup list for selecting options.
GLenum GLenum GLsizei count
#define Q_OBJECT
#define Q_SIGNALS