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/async/callback.h
2019-12-21 21:55:53 +08:00

19 lines
261 B
C++

#ifndef CALLBACK_H
#define CALLBACK_H
#include <QException>
template <class R>
class Callback {
public:
virtual void onResult(R result) = 0;
virtual void onError(QException exception) = 0;
virtual void onFinish() = 0;
};
#endif // CALLBACK_H