parent
a431906ecd
commit
c8f8101f72
@ -1,19 +1,28 @@
|
|||||||
#ifndef QSCRCPYEVENT_H
|
#ifndef QSCRCPYEVENT_H
|
||||||
#define QSCRCPYEVENT_H
|
#define QSCRCPYEVENT_H
|
||||||
#include <QEvent>
|
#include <QEvent>
|
||||||
#include <QMouseEvent>
|
|
||||||
class QScrcpyEvent : public QEvent
|
class QScrcpyEvent : public QEvent
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum Type {
|
enum Type {
|
||||||
DeviceSocket = QEvent::User + 1,
|
DeviceSocket = QEvent::User + 1,
|
||||||
|
Control,
|
||||||
};
|
};
|
||||||
QScrcpyEvent(Type type) : QEvent(QEvent::Type(type)){}
|
QScrcpyEvent(Type type) : QEvent(QEvent::Type(type)){}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// DeviceSocketEvent
|
||||||
class DeviceSocketEvent : public QScrcpyEvent
|
class DeviceSocketEvent : public QScrcpyEvent
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DeviceSocketEvent() : QScrcpyEvent(DeviceSocket){}
|
DeviceSocketEvent() : QScrcpyEvent(DeviceSocket){}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// ControlEvent
|
||||||
|
class ControlEvent : public QScrcpyEvent
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ControlEvent() : QScrcpyEvent(Control){}
|
||||||
|
};
|
||||||
#endif // QSCRCPYEVENT_H
|
#endif // QSCRCPYEVENT_H
|
||||||
|
|||||||
Loading…
Reference in new issue