wavelength 1.0.0
Loading...
Searching...
No Matches
cleargamelistfiltertask.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include <librtmedius.h>
6
7#include "netflow/nettask.h"
8#include "netflow/rtfilter.h"
9
18public:
25 ~ClearGameListFilterTask() override = default;
26
40 static void
41 OnResponse(int nConnection, int nType, int nSize, const rtMediusResponse *pResponse);
42
54 static bool HasField(int nField, const std::vector<RTFilter> *pFilters);
55
56protected:
63 void OnStart() override;
64
65private:
66 int mPending;
67};
Step that clears each filter of LobbyRT::mActiveFilters whose field LobbyRT::mFilters does not filter...
Definition cleargamelistfiltertask.h:17
static void OnResponse(int nConnection, int nType, int nSize, const rtMediusResponse *pResponse)
Count down the requests of the step the response is tagged with, and finish it after an error or the ...
static bool HasField(int nField, const std::vector< RTFilter > *pFilters)
Report whether a list of filters filters a field.
~ClearGameListFilterTask() override=default
Destroy the object.
void OnStart() override
Send a request for each filter to clear, or finish when there is none.
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24