LeechCraft
0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
networkreply.h
Go to the documentation of this file.
1
/**********************************************************************
2
* LeechCraft - modular cross-platform feature rich internet client.
3
* Copyright (C) 2006-2014 Georg Rudoy
4
*
5
* Distributed under the Boost Software License, Version 1.0.
6
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7
**********************************************************************/
8
9
#pragma once
10
11
#include <coroutine>
12
#include "
../threadsconfig.h
"
13
14
class
QNetworkReply;
15
16
namespace
LC::Util
17
{
18
class
NetworkResult
;
19
20
namespace
detail
21
{
22
struct
UTIL_THREADS_API
NRAwaiter
23
{
24
QNetworkReply&
Reply_
;
25
26
bool
await_ready
() const noexcept;
27
void
await_suspend
(
std
::coroutine_handle<> handle) noexcept;
28
NetworkResult
await_resume
() const noexcept;
29
};
30
}
31
}
32
33
namespace
LC
34
{
35
UTIL_THREADS_API
Util::detail::NRAwaiter
operator
co_await
(QNetworkReply& reply);
36
}
LC::Util::NetworkResult
Definition
networkresult.h:50
LC::Util::detail
Definition
fancytrayiconfreedesktop.cpp:24
LC::Util
Definition
icoreproxy.h:34
LC
Definition
constants.h:15
std
STL namespace.
LC::Util::detail::NRAwaiter
Definition
networkreply.h:23
LC::Util::detail::NRAwaiter::await_resume
NetworkResult await_resume() const noexcept
Definition
networkreply.cpp:39
LC::Util::detail::NRAwaiter::Reply_
QNetworkReply & Reply_
Definition
networkreply.h:24
LC::Util::detail::NRAwaiter::await_ready
bool await_ready() const noexcept
Definition
networkreply.cpp:15
LC::Util::detail::NRAwaiter::await_suspend
void await_suspend(std::coroutine_handle<> handle) noexcept
Definition
networkreply.cpp:20
threadsconfig.h
UTIL_THREADS_API
#define UTIL_THREADS_API
Definition
threadsconfig.h:16
src
util
threads
coro
networkreply.h
Generated by
1.13.1