add alert

This commit is contained in:
王劲鹏
2021-04-22 11:43:48 +08:00
committed by osborn
parent 7bcb711dfe
commit 70cf4acd5b
11 changed files with 166 additions and 0 deletions

View 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