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/plugin/DoricModalPlugin.h

31 lines
767 B
C
Raw Permalink Normal View History

#ifndef DORICMODALPLUGIN_H
#define DORICMODALPLUGIN_H
2021-05-18 16:15:28 +08:00
#include "DoricExport.h"
#include "DoricNativePlugin.h"
2021-05-18 16:15:28 +08:00
class DORIC_EXPORT DoricModalPlugin : public DoricNativePlugin {
Q_OBJECT
public:
using DoricNativePlugin::DoricNativePlugin;
Q_INVOKABLE void toast(QString jsValueString, QString callbackId);
2021-04-22 11:43:48 +08:00
Q_INVOKABLE void alert(QString jsValueString, QString callbackId);
2021-04-22 13:42:38 +08:00
Q_INVOKABLE void confirm(QString jsValueString, QString callbackId);
2021-04-22 14:48:16 +08:00
Q_INVOKABLE void prompt(QString jsValueString, QString callbackId);
2021-04-22 13:42:38 +08:00
void onAccepted(QString callbackId);
2021-04-22 14:48:16 +08:00
void onAcceptedWithInput(QString callbackId, QString input);
2021-04-22 13:42:38 +08:00
void onRejected(QString callbackId);
2021-04-22 14:48:16 +08:00
void onRejectedWithInput(QString callbackId, QString input);
};
#endif // DORICMODALPLUGIN_H