This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-Qt/example/doric/utils/DoricDialogBridge.h
2021-05-20 18:27:45 +08:00

31 lines
807 B
C++

#ifndef DORICDIALOGBRIDGE_H
#define DORICDIALOGBRIDGE_H
#include <QObject>
#include "DoricExport.h"
class DORIC_EXPORT DoricDialogBridge : public QObject {
Q_OBJECT
public:
explicit DoricDialogBridge(QObject *parent = nullptr);
Q_INVOKABLE
void onAccepted(QString windowPointer, QString pluginPointer,
QString callbackId);
Q_INVOKABLE
void onAcceptedWithInput(QString windowPointer, QString pluginPointer,
QString callbackId, QString input);
Q_INVOKABLE
void onRejected(QString windowPointer, QString pluginPointer,
QString callbackId);
Q_INVOKABLE
void onRejectedWithInput(QString windowPointer, QString pluginPointer,
QString callbackId, QString input);
};
#endif // DORICDIALOGBRIDGE_H