libquentier
0.8.0
The library for rich desktop clients of Evernote service
Loading...
Searching...
No Matches
headers
quentier
synchronization
types
IAuthenticationInfoBuilder.h
1
/*
2
* Copyright 2023 Dmitry Ivanov
3
*
4
* This file is part of libquentier
5
*
6
* libquentier is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU Lesser General Public License as published by
8
* the Free Software Foundation, version 3 of the License.
9
*
10
* libquentier is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU Lesser General Public License for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public License
16
* along with libquentier. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#pragma once
20
21
#include <quentier/synchronization/types/Fwd.h>
22
#include <quentier/utility/Linkage.h>
23
24
#include <qevercloud/types/TypeAliases.h>
25
26
#include <QList>
27
#include <QNetworkCookie>
28
#include <QString>
29
30
namespace
quentier::synchronization {
31
32
class
QUENTIER_EXPORT
IAuthenticationInfoBuilder
33
{
34
public
:
35
virtual
~IAuthenticationInfoBuilder
()
noexcept
;
36
37
virtual
IAuthenticationInfoBuilder
& setUserId(
38
qevercloud::UserID userId) = 0;
39
40
virtual
IAuthenticationInfoBuilder
& setAuthToken(
QString
token
) = 0;
41
42
virtual
IAuthenticationInfoBuilder
& setAuthTokenExpirationTime(
43
qevercloud::Timestamp
expirationTime
) = 0;
44
45
virtual
IAuthenticationInfoBuilder
& setAuthenticationTime(
46
qevercloud::Timestamp authenticationTime) = 0;
47
48
virtual
IAuthenticationInfoBuilder
& setShardId(
QString
shardId) = 0;
49
50
virtual
IAuthenticationInfoBuilder
& setNoteStoreUrl(
51
QString
noteStoreUrl) = 0;
52
53
virtual
IAuthenticationInfoBuilder
& setWebApiUrlPrefix(
54
QString
webApiUrlPrefix) = 0;
55
56
virtual
IAuthenticationInfoBuilder
& setUserStoreCookies(
57
QList<QNetworkCookie>
cookies
) = 0;
58
59
[[
nodiscard
]]
virtual
IAuthenticationInfoPtr build() = 0;
60
};
61
62
[[
nodiscard
]]
QUENTIER_EXPORT
IAuthenticationInfoBuilderPtr
63
createAuthenticationInfoBuilder();
64
65
}
// namespace quentier::synchronization
quentier::Result
Definition
Result.h:34
quentier::synchronization::IAuthenticationInfoBuilder
Definition
IAuthenticationInfoBuilder.h:33
Generated on Sun Jan 26 2025 00:00:00 for libquentier by
1.10.0