mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
24 lines
433 B
C++
24 lines
433 B
C++
#pragma once
|
|
|
|
#include <functional>
|
|
|
|
class QNetworkReply;
|
|
|
|
namespace chatterino {
|
|
|
|
class Outcome;
|
|
class NetworkResult;
|
|
|
|
using NetworkSuccessCallback = std::function<Outcome(NetworkResult)>;
|
|
using NetworkErrorCallback = std::function<void(NetworkResult)>;
|
|
using NetworkReplyCreatedCallback = std::function<void(QNetworkReply *)>;
|
|
|
|
enum class NetworkRequestType {
|
|
Get,
|
|
Post,
|
|
Put,
|
|
Delete,
|
|
};
|
|
|
|
} // namespace chatterino
|