wavelength 1.0.0
Loading...
Searching...
No Matches
ladderposition2task.h
Go to the documentation of this file.
1#pragma once
2
3#include <librtmedius.h>
4
5#include "netflow/nettask.h"
6
7class MsgSink;
8
17public:
24 ~LadderPosition2Task() override = default;
25
34 LadderPosition2Task(MsgSink *pSink, int nAccount) : mSink(pSink), mAccount(nAccount) {
35 }
36
49 static void OnResponse(int nConnection,
50 int nType,
51 int nSize,
52 const rtMediusLadderPositionResponse *pResponse);
53
54protected:
61 void OnStart() override;
62
63private:
64 MsgSink *mSink;
65 int mAccount;
66};
LadderPosition2Task(MsgSink *pSink, int nAccount)
Construct a step.
Definition ladderposition2task.h:34
~LadderPosition2Task() override=default
Destroy the object.
void OnStart() override
Send the request, or finish and report a position of 0 when it cannot be sent.
static void OnResponse(int nConnection, int nType, int nSize, const rtMediusLadderPositionResponse *pResponse)
Finish the step the response is tagged with, and report the position.
Receiver of engine messages.
Definition msgsink.h:21
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24