wavelength 1.0.0
Loading...
Searching...
No Matches
dnastask.h
Go to the documentation of this file.
1#pragma once
2
3#ifdef VIDEO_STANDARD_PAL
4
5#include <libdnas2.h>
6
7#include "netflow/nettask.h"
8
17class DNASTask : public NetTask {
18public:
24 ~DNASTask() override = default;
25
34 static void GetError(int *pnSubCode, const char **ppszError, const char **ppszHint);
35
41 static int sStatusCode;
42
48 static int sSubCode;
49
50protected:
56 void OnStart() override;
57
63 void OnStop() override;
64
70 void OnPoll() override;
71
72private:
73 float mStartMs;
74 int mLastCode;
75 int mLastSubCode;
76 int mLastProgress;
77 int mSkipped;
78};
79
80#endif
A step of a request to the online library, run by a NetMultiTask.
Definition nettask.h:17
void OnStop() override
Remove the tag of the task.
virtual void OnStart()
Begin the work.
Definition task.h:87
virtual void OnPoll()
Advance the work, and set mState to kStateDone when it finishes.
Definition task.h:105