wavelength 1.0.0
Loading...
Searching...
No Matches
filegetattributestask.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
16public:
23 ~FileGetAttributesTask() override = default;
24
33#ifdef VIDEO_STANDARD_PAL
43 FileGetAttributesTask(String *pName, int *pnSize, int *pnPermissions)
44 : mName(pName), mSize(pnSize), mPermissions(pnPermissions) {
45 }
46#else
47 FileGetAttributesTask(String *pName, int *pnSize) : mName(pName), mSize(pnSize) {
48 }
49#endif
50
63 static void OnResponse(int nConnection,
64 int nType,
65 int nSize,
66 const rtMediusFileAttributesResponse *pResponse);
67
68#ifdef VIDEO_STANDARD_PAL
69#endif
70
71protected:
78 void OnStart() override;
79
80private:
81 String *mName;
82 int *mSize;
83 int *mPermissions;
84};
void OnStart() override
Send the request.
static void OnResponse(int nConnection, int nType, int nSize, const rtMediusFileAttributesResponse *pResponse)
Take the size and finish the step the response is tagged with.
~FileGetAttributesTask() override=default
Destroy the object.
FileGetAttributesTask(String *pName, int *pnSize)
Construct a step.
Definition filegetattributestask.h:47
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24
Growable text buffer that is also a PrnStream.
Definition string.h:19