This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-Qt/doric/template/custom_callback.h
2019-12-21 21:55:53 +08:00

26 lines
412 B
C++

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