split project with app & doric module
This commit is contained in:
28
doric-Qt/example/doric/plugin/DoricModalPlugin.h
Normal file
28
doric-Qt/example/doric/plugin/DoricModalPlugin.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef DORICMODALPLUGIN_H
|
||||
#define DORICMODALPLUGIN_H
|
||||
|
||||
#include "DoricNativePlugin.h"
|
||||
|
||||
class DoricModalPlugin : public DoricNativePlugin {
|
||||
Q_OBJECT
|
||||
public:
|
||||
using DoricNativePlugin::DoricNativePlugin;
|
||||
|
||||
Q_INVOKABLE void toast(QString jsValueString, QString callbackId);
|
||||
|
||||
Q_INVOKABLE void alert(QString jsValueString, QString callbackId);
|
||||
|
||||
Q_INVOKABLE void confirm(QString jsValueString, QString callbackId);
|
||||
|
||||
Q_INVOKABLE void prompt(QString jsValueString, QString callbackId);
|
||||
|
||||
void onAccepted(QString callbackId);
|
||||
|
||||
void onAcceptedWithInput(QString callbackId, QString input);
|
||||
|
||||
void onRejected(QString callbackId);
|
||||
|
||||
void onRejectedWithInput(QString callbackId, QString input);
|
||||
};
|
||||
|
||||
#endif // DORICMODALPLUGIN_H
|
||||
Reference in New Issue
Block a user