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
2021-07-21 19:03:29 +08:00

14 lines
433 B
C++

#include "DoricAsyncResult.h"
DoricAsyncResult::DoricAsyncResult() {}
void DoricAsyncResult::setResult(QString result) { this->result = result; }
void DoricAsyncResult::setError(QString exception) { this->result = exception; }
bool DoricAsyncResult::hasResult() { return !(result == EMPTY); }
QJSValue DoricAsyncResult::getResult() { return this->result; }
DoricSettableFuture *DoricAsyncResult::synchronous() { return NULL; }