Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
quickconnectresult.h
Go to the documentation of this file.
1/*
2 * Sailfin: a Jellyfin client written using Qt
3 * Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library 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 GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19/*
20 * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
21 * OVERWRITTEN AT SOME POINT!
22 *
23 * If there is a bug in this file, please fix the code generator used to generate this file found in
24 * core/openapigenerator.d.
25 *
26 * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
27 * file with a newer file if needed instead of manually updating the files.
28 */
29
30#ifndef JELLYFIN_DTO_QUICKCONNECTRESULT_H
31#define JELLYFIN_DTO_QUICKCONNECTRESULT_H
32
33#include <QDateTime>
34#include <QJsonObject>
35#include <QJsonValue>
36#include <QString>
37#include <optional>
38
40
41namespace Jellyfin {
42// Forward declaration
43class ApiClient;
44}
45namespace Jellyfin {
46namespace DTO {
47
48
50public:
52 bool authenticated
53 );
54
56
61
62 static QuickConnectResult fromJson(QJsonObject source);
63 void setFromJson(QJsonObject source);
64 QJsonObject toJson() const;
65
66 // Properties
70 bool authenticated() const;
74 void setAuthenticated(bool newAuthenticated);
75
79 QString secret() const;
83 void setSecret(QString newSecret);
84 bool secretNull() const;
85 void setSecretNull();
86
90 QString code() const;
94 void setCode(QString newCode);
95 bool codeNull() const;
96 void setCodeNull();
97
101 QString authentication() const;
105 void setAuthentication(QString newAuthentication);
106 bool authenticationNull() const;
108
112 QString error() const;
116 void setError(QString newError);
117 bool errorNull() const;
118 void setErrorNull();
119
123 QDateTime dateAdded() const;
127 void setDateAdded(QDateTime newDateAdded);
128 bool dateAddedNull() const;
129 void setDateAddedNull();
130
131
132protected:
134 QString m_secret;
135 QString m_code;
137 QString m_error;
138 QDateTime m_dateAdded;
139
140private:
141 // Private constructor which generates an invalid object, for use withing QuickConnectResult::fromJson();
143};
144
145
146} // NS DTO
147
148namespace Support {
149
151
152template <>
154
155template<>
157
158} // NS DTO
159} // NS Jellyfin
160
161#endif // JELLYFIN_DTO_QUICKCONNECTRESULT_H
Definition quickconnectresult.h:49
static QuickConnectResult fromJson(QJsonObject source)
Definition quickconnectresult.cpp:62
QDateTime m_dateAdded
Definition quickconnectresult.h:138
void setErrorNull()
Definition quickconnectresult.cpp:165
void setAuthentication(QString newAuthentication)
Gets or sets the private access token.
Definition quickconnectresult.cpp:145
QJsonObject toJson() const
Definition quickconnectresult.cpp:79
QString error() const
Gets or sets an error message.
Definition quickconnectresult.cpp:156
void setDateAddedNull()
Definition quickconnectresult.cpp:178
QString m_authentication
Definition quickconnectresult.h:136
QString m_code
Definition quickconnectresult.h:135
bool m_authenticated
Definition quickconnectresult.h:133
QString authentication() const
Gets or sets the private access token.
Definition quickconnectresult.cpp:143
void setCodeNull()
Definition quickconnectresult.cpp:139
void setDateAdded(QDateTime newDateAdded)
Gets or sets the DateTime that this request was created.
Definition quickconnectresult.cpp:171
void setCode(QString newCode)
Gets or sets the user facing code used so the user can quickly differentiate this request from others...
Definition quickconnectresult.cpp:132
bool codeNull() const
Definition quickconnectresult.cpp:135
void setAuthenticated(bool newAuthenticated)
Gets a value indicating whether this request is authorized.
Definition quickconnectresult.cpp:113
QString secret() const
Gets or sets the secret value used to uniquely identify this request. Can be used to retrieve authent...
Definition quickconnectresult.cpp:117
void setError(QString newError)
Gets or sets an error message.
Definition quickconnectresult.cpp:158
void setFromJson(QJsonObject source)
Definition quickconnectresult.cpp:69
QString code() const
Gets or sets the user facing code used so the user can quickly differentiate this request from others...
Definition quickconnectresult.cpp:130
bool dateAddedNull() const
Definition quickconnectresult.cpp:174
void setAuthenticationNull()
Definition quickconnectresult.cpp:152
QString m_error
Definition quickconnectresult.h:137
bool authenticationNull() const
Definition quickconnectresult.cpp:148
QString m_secret
Definition quickconnectresult.h:134
void setSecret(QString newSecret)
Gets or sets the secret value used to uniquely identify this request. Can be used to retrieve authent...
Definition quickconnectresult.cpp:119
void replaceData(QuickConnectResult &other)
Definition quickconnectresult.cpp:53
void setSecretNull()
Definition quickconnectresult.cpp:126
bool errorNull() const
Definition quickconnectresult.cpp:161
bool authenticated() const
Gets a value indicating whether this request is authorized.
Definition quickconnectresult.cpp:111
QDateTime dateAdded() const
Gets or sets the DateTime that this request was created.
Definition quickconnectresult.cpp:169
bool secretNull() const
Definition quickconnectresult.cpp:122
AccessSchedule fromJsonValue(const QJsonValue &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:133
QJsonValue toJsonValue(const AccessSchedule &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:139
Definition jsonconvimpl.h:45