LeechCraft
0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
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::LJ
Definition:
ljutils.cpp:20
LC::Util::LJ::ChallengeError::Text_
QString Text_
Definition:
ljutils.h:23
taskfwd.h
svcauthconfig.h
LC::Util::LJ::RequestChallengeConfig::NAM_
QNetworkAccessManager & NAM_
Definition:
ljutils.h:28
UTIL_SVCAUTH_API
#define UTIL_SVCAUTH_API
Definition:
svcauthconfig.h:16
LC::Util::LJ::RequestChallengeConfig
Definition:
ljutils.h:26
eitherfwd.h
LC::Util::LJ::RequestChallenge
Task< RequestChallengeResult > RequestChallenge(RequestChallengeConfig config)
Definition:
ljutils.cpp:56
LC::Util::LJ::RequestChallengeConfig::UserAgent_
QByteArray UserAgent_
Definition:
ljutils.h:29
LC::Util::Either
Definition:
either.h:32
LC::Util::Task
Definition:
task.h:154
LC::Util::LJ::ChallengeError
Definition:
ljutils.h:21
src
util
svcauth
ljutils.h
Generated by
1.8.14