add shared ptr wrap for async result
This commit is contained in:
@@ -208,7 +208,8 @@ QList<QString> DoricViewNode::getIdList() {
|
||||
|
||||
void DoricViewNode::requestLayout() {}
|
||||
|
||||
void DoricViewNode::callJSResponse(QString funcId, QVariantList args) {
|
||||
std::shared_ptr<DoricAsyncResult>
|
||||
DoricViewNode::callJSResponse(QString funcId, QVariantList args) {
|
||||
QVariantList nArgs;
|
||||
QList<QString> idList = getIdList();
|
||||
nArgs.append(QVariant(idList));
|
||||
@@ -219,7 +220,8 @@ void DoricViewNode::callJSResponse(QString funcId, QVariantList args) {
|
||||
return getContext()->callEntity(DoricConstant::DORIC_ENTITY_RESPONSE, nArgs);
|
||||
}
|
||||
|
||||
void DoricViewNode::pureCallJSResponse(QString funcId, QVariantList args) {
|
||||
std::shared_ptr<DoricAsyncResult>
|
||||
DoricViewNode::pureCallJSResponse(QString funcId, QVariantList args) {
|
||||
QVariantList nArgs;
|
||||
nArgs.append(getContext()->getContextId());
|
||||
nArgs.append(DoricConstant::DORIC_ENTITY_RESPONSE);
|
||||
|
@@ -77,8 +77,10 @@ public:
|
||||
|
||||
void onClick();
|
||||
|
||||
void callJSResponse(QString funcId, QVariantList args);
|
||||
std::shared_ptr<DoricAsyncResult> callJSResponse(QString funcId,
|
||||
QVariantList args);
|
||||
|
||||
void pureCallJSResponse(QString funcId, QVariantList args);
|
||||
std::shared_ptr<DoricAsyncResult> pureCallJSResponse(QString funcId,
|
||||
QVariantList args);
|
||||
};
|
||||
#endif // DORICVIEWNODE_H
|
||||
|
Reference in New Issue
Block a user