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