LeechCraft
0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
ljutils.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 <QByteArray>
12
#include <QString>
13
#include <
util/threads/coro/taskfwd.h
>
14
#include <
util/sll/eitherfwd.h
>
15
#include "
svcauthconfig.h
"
16
17
class
QNetworkAccessManager;
18
19
namespace
LC::Util::LJ
20
{
21
struct
ChallengeError
22
{
23
QString
Text_
;
24
};
25
26
struct
RequestChallengeConfig
27
{
28
QNetworkAccessManager&
NAM_
;
29
QByteArray
UserAgent_
;
30
};
31
32
using
RequestChallengeResult
=
Either<ChallengeError, QString>
;
33
34
UTIL_SVCAUTH_API
Task<RequestChallengeResult>
RequestChallenge
(
RequestChallengeConfig
config);
35
}
LC::Util::Either
Definition
either.h:33
LC::Util::Task
Definition
task.h:96
eitherfwd.h
LC::Util::LJ
Definition
ljutils.cpp:21
LC::Util::LJ::RequestChallenge
Task< RequestChallengeResult > RequestChallenge(RequestChallengeConfig config)
Definition
ljutils.cpp:56
LC::Util::LJ::RequestChallengeResult
Either< ChallengeError, QString > RequestChallengeResult
Definition
ljutils.h:32
LC::Util::LJ::ChallengeError
Definition
ljutils.h:22
LC::Util::LJ::ChallengeError::Text_
QString Text_
Definition
ljutils.h:23
LC::Util::LJ::RequestChallengeConfig
Definition
ljutils.h:27
LC::Util::LJ::RequestChallengeConfig::UserAgent_
QByteArray UserAgent_
Definition
ljutils.h:29
LC::Util::LJ::RequestChallengeConfig::NAM_
QNetworkAccessManager & NAM_
Definition
ljutils.h:28
svcauthconfig.h
UTIL_SVCAUTH_API
#define UTIL_SVCAUTH_API
Definition
svcauthconfig.h:16
taskfwd.h
src
util
svcauth
ljutils.h
Generated by
1.14.0