#ifndef ASYNCRESULT_H #define ASYNCRESULT_H #include #include "DoricExport.h" class DORIC_EXPORT DoricAsyncResult { private: QString result; public: std::function resultCallback = [] {}; std::function exceptionCallback; std::function finishCallback; DoricAsyncResult(); void setResult(QString result); void setError(QString exception); bool hasResult(); QString getResult(); QString waitUntilResult(); }; #endif // ASYNCRESULT_H