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

16 lines
239 B
C
Raw Normal View History

2019-12-19 19:54:58 +08:00
#ifndef CALLBACK_H
#define CALLBACK_H
2021-01-28 17:06:40 +08:00
#include <QJSValue>
2019-12-19 19:54:58 +08:00
class Callback {
public:
2021-01-28 17:06:40 +08:00
virtual void onResult(QJSValue result) = 0;
2019-12-19 19:54:58 +08:00
2021-01-28 17:06:40 +08:00
virtual void onError(QJSValue error) = 0;
2019-12-19 19:54:58 +08:00
virtual void onFinish() = 0;
};
#endif // CALLBACK_H