SCENE C++ API  2.0.22
lsfuturetask.h
1 #pragma once
2 
3 #include <core_api/lsglobaldefinitions.h>
4 #include <core_api/lsinterface.h>
5 #include <core_api/lsreftype.h>
6 #include <core_api/lsresult.h>
7 
8 namespace SCENE_API {
9 
10 // Forward declarations
11 class LSFutureTask_Implementation;
12 
15 class LSFutureTask : public LSInterface, public LSRefType
16 {
17  LS_UNCOPYABLE(LSFutureTask)
18 
19 public:
20 
23  SCANNER_API_EXPORT void abort();
24 
28  SCANNER_API_EXPORT bool isFinished() const;
29 
33  SCANNER_API_EXPORT int getProgress() const;
34 
38  SCANNER_API_EXPORT LSResult::Result getResult() const;
39 
40 protected:
41  LS_INTERFACE(LSFutureTask, LSInterface);
42  friend class LSScanner_Implementation;
43 };
44 
45 }