add alert
This commit is contained in:
20
doric-Qt/doric/engine/DoricPromise.h
Normal file
20
doric-Qt/doric/engine/DoricPromise.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef DORICPROMISE_H
|
||||
#define DORICPROMISE_H
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
#include "DoricContext.h"
|
||||
#include "utils/DoricConstant.h"
|
||||
|
||||
class DoricPromise {
|
||||
public:
|
||||
static void resolve(DoricContext *context, QString callbackId) {
|
||||
QVariantList params;
|
||||
params.append(context->getContextId());
|
||||
params.append(callbackId);
|
||||
context->getDriver()->invokeDoricMethod(DoricConstant::DORIC_BRIDGE_RESOLVE,
|
||||
params);
|
||||
}
|
||||
};
|
||||
|
||||
#endif // DORICPROMISE_H
|
Reference in New Issue
Block a user