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

19 lines
261 B
C
Raw Normal View History

2019-12-19 19:54:58 +08:00
#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