wavelength 1.0.0
Loading...
Searching...
No Matches
getannouncementstask.h
Go to the documentation of this file.
1#pragma once
2
3#include <librtmedius.h>
4
5#include "netflow/nettask.h"
6
14public:
21 ~GetAnnouncementsTask() override = default;
22
35 static void
36 OnResponse(int nConnection, int nType, int nSize, rtMediusAnnouncementResponse *pResponse);
37
47 static void ReplaceBreaks(char *pszText);
48
49protected:
56 void OnStart() override;
57};
Step that reads the news of the lobby server into LobbyRT::mAnnouncement.
Definition getannouncementstask.h:13
~GetAnnouncementsTask() override=default
Destroy the object.
static void OnResponse(int nConnection, int nType, int nSize, rtMediusAnnouncementResponse *pResponse)
Take the news and finish the step the response is tagged with.
void OnStart() override
Clear the news and send the request.
static void ReplaceBreaks(char *pszText)
Replace each <br> of a text by a line break, in place.
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24