wavelength 1.0.0
Loading...
Searching...
No Matches
textfiltertask.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 TextFilterTask : public NetTask {
17public:
24 ~TextFilterTask() override = default;
25
35 TextFilterTask(String *pText, String *pFiltered, int nReplaceStars)
36 : mText(pText), mFiltered(pFiltered), mReplaceStars(nReplaceStars) {
37 }
38
51 static void
52 OnResponse(int nConnection, int nType, int nSize, const rtMediusTextFilterResponse *pResponse);
53
54protected:
61 void OnStart() override;
62
63private:
64 String *mText;
65 String *mFiltered;
66 int mReplaceStars;
67};
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24
Growable text buffer that is also a PrnStream.
Definition string.h:19
TextFilterTask(String *pText, String *pFiltered, int nReplaceStars)
Construct a step.
Definition textfiltertask.h:35
void OnStart() override
Send the request.
~TextFilterTask() override=default
Destroy the object.
static void OnResponse(int nConnection, int nType, int nSize, const rtMediusTextFilterResponse *pResponse)
Take the filtered text and finish the step the response is tagged with.