From 15d3a1cbf7eabc2fd45bd46a31873cd8d0cc7e30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Fri, 20 Dec 2019 11:20:38 +0800 Subject: [PATCH] add custom callback for async result --- doric/template/custom_callback.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doric/template/custom_callback.h b/doric/template/custom_callback.h index d0c20667..bc3da675 100644 --- a/doric/template/custom_callback.h +++ b/doric/template/custom_callback.h @@ -1,6 +1,8 @@ #ifndef CUSTOM_CALLBACK_H #define CUSTOM_CALLBACK_H +#include + #include "async/callback.h" template @@ -8,11 +10,11 @@ class CustomCallback : public Callback { public: void onResult(R result) override { - + qDebug() << result; } void onError(QException exception) override { - + qDebug() << exception.what(); } void onFinish() override {