| 1 |
// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. |
| 2 |
// |
| 3 |
// SPDX-License-Identifier: LGPL-3.0-or-later |
| 4 |
|
| 5 |
#ifndef XEVENTMONITOR_INTERFACE_H |
| 6 |
#define XEVENTMONITOR_INTERFACE_H |
| 7 |
|
| 8 |
#include <QtCore/QObject> |
| 9 |
#include <QtCore/QByteArray> |
| 10 |
#include <QtCore/QList> |
| 11 |
#include <QtCore/QMap> |
| 12 |
#include <QtCore/QString> |
| 13 |
#include <QtCore/QStringList> |
| 14 |
#include <QtCore/QVariant> |
| 15 |
#include <QtDBus/QtDBus> |
| 16 |
|
| 17 |
class ComDeepinApiXEventMonitorInterface: public QDBusAbstractInterface |
| 18 |
{ |
| 19 |
Q_OBJECT |
| 20 |
public: |
| 21 |
typedef QList<QRect> AreaList; |
| 22 |
ComDeepinApiXEventMonitorInterface(const QString &service, const QString &path, const char *interface, QObject *parent = nullptr, |
| 23 |
const QDBusConnection &con = QDBusConnection::sessionBus()); |
| 24 |
|
| 25 |
~ComDeepinApiXEventMonitorInterface(); |
| 26 |
|
| 27 |
public Q_SLOTS: // METHODS |
| 28 |
inline QDBusPendingReply<QString> RegisterArea(int in0, int in1, int in2, int in3, int in4) |
| 29 |
{ |
| 30 |
QList<QVariant> argumentList; |
| 31 |
argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2) << QVariant::fromValue(in3) << QVariant::fromValue(in4); |
| 32 |
return asyncCallWithArgumentList(QStringLiteral("RegisterArea"), argumentList); |
| 33 |
} |
| 34 |
|
| 35 |
inline QDBusPendingReply<QString> RegisterAreas(AreaList in0, int in1) |
| 36 |
{ |
| 37 |
QList<QVariant> argumentList; |
| 38 |
argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1); |
| 39 |
return asyncCallWithArgumentList(QStringLiteral("RegisterAreas"), argumentList); |
| 40 |
} |
| 41 |
|
| 42 |
inline QDBusPendingReply<QString> RegisterFullScreen() |
| 43 |
{ |
| 44 |
QList<QVariant> argumentList; |
| 45 |
return asyncCallWithArgumentList(QStringLiteral("RegisterFullScreen"), argumentList); |
| 46 |
} |
| 47 |
|
| 48 |
inline QDBusPendingReply<bool> UnregisterArea(const QString &in0) |
| 49 |
{ |
| 50 |
QList<QVariant> argumentList; |
| 51 |
argumentList << QVariant::fromValue(in0); |
| 52 |
return asyncCallWithArgumentList(QStringLiteral("UnregisterArea"), argumentList); |
| 53 |
} |
| 54 |
|
| 55 |
Q_SIGNALS: // SIGNALS |
| 56 |
void ButtonPress(int in0, int in1, int in2, const QString &in3); |
| 57 |
void ButtonRelease(int in0, int in1, int in2, const QString &in3); |
| 58 |
void CancelAllArea(); |
| 59 |
void CursorInto(int in0, int in1, const QString &in2); |
| 60 |
void CursorMove(int in0, int in1, const QString &in2); |
| 61 |
void CursorOut(int in0, int in1, const QString &in2); |
| 62 |
void KeyPress(const QString &in0, int in1, int in2, const QString &in3); |
| 63 |
void KeyRelease(const QString &in0, int in1, int in2, const QString &in3); |
| 64 |
}; |
| 65 |
|
| 66 |
namespace com { |
| 67 |
namespace deepin { |
| 68 |
namespace api { |
| 69 |
typedef ::ComDeepinApiXEventMonitorInterface XEventMonitor; |
| 70 |
} |
| 71 |
} |
| 72 |
} |
| 73 |
#endif |