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/example/doric/async/DoricAsyncResult.cpp

14 lines
433 B
C++
Raw Normal View History

2021-02-04 16:59:58 +08:00
#include "DoricAsyncResult.h"
DoricAsyncResult::DoricAsyncResult() {}
2021-05-25 10:45:45 +08:00
void DoricAsyncResult::setResult(QString result) { this->result = result; }
2021-02-04 16:59:58 +08:00
2021-05-25 10:45:45 +08:00
void DoricAsyncResult::setError(QString exception) { this->result = exception; }
2021-02-04 16:59:58 +08:00
2021-05-25 10:45:45 +08:00
bool DoricAsyncResult::hasResult() { return !(result == EMPTY); }
2021-02-04 16:59:58 +08:00
QJSValue DoricAsyncResult::getResult() { return this->result; }
DoricSettableFuture *DoricAsyncResult::synchronous() { return NULL; }