FluentUI/src/FluRegister.h

42 lines
908 B
C
Raw Normal View History

2023-03-13 21:18:51 +08:00
#ifndef FLUREGISTER_H
#define FLUREGISTER_H
#include <QObject>
2023-04-11 23:12:31 +08:00
#include <QQuickWindow>
2023-03-13 21:18:51 +08:00
#include <QJsonObject>
#include "stdafx.h"
2023-04-27 17:29:39 +08:00
/**
* @brief The FluRegister class
*/
2023-03-13 21:18:51 +08:00
class FluRegister : public QObject
{
Q_OBJECT
2023-04-11 23:12:31 +08:00
Q_PROPERTY_AUTO(QQuickWindow*,from)
Q_PROPERTY_AUTO(QQuickWindow*,to)
2023-03-13 21:18:51 +08:00
Q_PROPERTY_AUTO(QString,path);
public:
explicit FluRegister(QObject *parent = nullptr);
2023-04-27 17:29:39 +08:00
/**
* @brief launch
* @param argument
*/
2023-03-13 21:18:51 +08:00
Q_INVOKABLE void launch(const QJsonObject& argument = {});
2023-04-27 17:29:39 +08:00
/**
* @brief onResult
* @param data
*/
2023-03-13 21:18:51 +08:00
Q_INVOKABLE void onResult(const QJsonObject& data = {});
2023-04-27 17:29:39 +08:00
/**
* @brief result
* @param data
*/
2023-03-13 21:18:51 +08:00
Q_SIGNAL void result(const QJsonObject& data);
};
#endif // FLUREGISTER_H