#ifndef CUSTOM_CALLBACK_H #define CUSTOM_CALLBACK_H #include #include "async/callback.h" template class CustomCallback : public Callback { public: void onResult(R result) override { qDebug() << result; } void onError(QException exception) override { qDebug() << exception.what(); } void onFinish() override { } }; #endif // CUSTOM_CALLBACK_H