callback test

This commit is contained in:
王劲鹏
2019-12-19 20:24:44 +08:00
parent 3b287974ab
commit 7443e5c1c9
4 changed files with 47 additions and 6 deletions

View File

@@ -0,0 +1,23 @@
#ifndef CUSTOM_CALLBACK_H
#define CUSTOM_CALLBACK_H
#include "async/callback.h"
template <class R>
class CustomCallback : public Callback<R> {
public:
void onResult(R result) override {
}
void onError(QException exception) override {
}
void onFinish() override {
}
};
#endif // CUSTOM_CALLBACK_H