wavelength 1.0.0
Loading...
Searching...
No Matches
filedeletetask.h
Go to the documentation of this file.
1#pragma once
2
3#include <librtmedius.h>
4
5#include "netflow/nettask.h"
6
7class String;
8
16class FileDeleteTask : public NetTask {
17public:
24 ~FileDeleteTask() override = default;
25
34 FileDeleteTask(String *pName, int *pnEnabled) : mName(pName), mEnabled(pnEnabled) {
35 }
36
49 static void
50 OnResponse(int nConnection, int nType, int nSize, const rtMediusFileDeleteResponse *pResponse);
51
52protected:
59 void OnStart() override;
60
61private:
62 String *mName;
63 int *mEnabled;
64};
static void OnResponse(int nConnection, int nType, int nSize, const rtMediusFileDeleteResponse *pResponse)
Finish the step the response is tagged with.
~FileDeleteTask() override=default
Destroy the object.
void OnStart() override
Send the request, or finish when the deletion is not enabled.
FileDeleteTask(String *pName, int *pnEnabled)
Construct a step.
Definition filedeletetask.h:34
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24
Growable text buffer that is also a PrnStream.
Definition string.h:19