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