Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
jsonconv.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#ifndef JELLYFIN_SUPPORT_JSONCONV_H
20#define JELLYFIN_SUPPORT_JSONCONV_H
21
22#include "jsonconvimpl.h"
23#include "parseexception.h"
24
25namespace Jellyfin {
26namespace Support {
27
28extern template int fromJsonValue<int>(const QJsonValue &source, convertType<int>);
29extern template qint64 fromJsonValue<qint64>(const QJsonValue &source, convertType<qint64>);
30extern template bool fromJsonValue<bool>(const QJsonValue &source, convertType<bool>);
31extern template QString fromJsonValue<QString>(const QJsonValue &source, convertType<QString>);
32extern template QStringList fromJsonValue<QStringList>(const QJsonValue &source, convertType<QStringList>);
33extern template QJsonObject fromJsonValue<QJsonObject>(const QJsonValue &source, convertType<QJsonObject>);
34extern template double fromJsonValue<double>(const QJsonValue &source, convertType<double>);
35extern template float fromJsonValue<float>(const QJsonValue &source, convertType<float>);
36extern template QDateTime fromJsonValue<QDateTime>(const QJsonValue &source, convertType<QDateTime>);
37extern template QVariant fromJsonValue<QVariant>(const QJsonValue &source, convertType<QVariant>);
38extern template QUuid fromJsonValue<QUuid>(const QJsonValue &source, convertType<QUuid>);
39
40extern template QJsonValue toJsonValue<int>(const int &source, convertType<int>);
41extern template QJsonValue toJsonValue<qint64>(const qint64 &source, convertType<qint64>);
42extern template QJsonValue toJsonValue<bool>(const bool &source, convertType<bool>);
43extern template QJsonValue toJsonValue<QString>(const QString &source, convertType<QString>);
44extern template QJsonValue toJsonValue<QStringList>(const QStringList &source, convertType<QStringList>);
45extern template QJsonValue toJsonValue<QJsonObject>(const QJsonObject &source, convertType<QJsonObject>);
46extern template QJsonValue toJsonValue<double>(const double &source, convertType<double>);
47extern template QJsonValue toJsonValue<float>(const float &source, convertType<float>);
48extern template QJsonValue toJsonValue<QDateTime>(const QDateTime &source, convertType<QDateTime>);
49extern template QJsonValue toJsonValue<QVariant>(const QVariant &source, convertType<QVariant>);
50extern template QJsonValue toJsonValue<QUuid>(const QUuid &source, convertType<QUuid>);
51
52
53extern template QString toString(const QUuid &source, convertType<QUuid>);
54extern template QString toString(const qint32 &source, convertType<qint32>);
55extern template QString toString(const qint64 &source, convertType<qint64>);
56extern template QString toString(const float &source, convertType<float>);
57extern template QString toString(const double &source, convertType<double>);
58extern template QString toString(const bool &source, convertType<bool>);
59extern template QString toString(const QString &source, convertType<QString>);
60extern template QString toString(const QStringList &source, convertType<QStringList>);
61
62} // NS Support
63} // NS Jellyfin
64
65#endif // JSONCONV_H
template QJsonValue toJsonValue< float >(const float &source, convertType< float >)
Definition jsonconv.cpp:176
template bool fromJsonValue< bool >(const QJsonValue &source, convertType< bool >)
Definition jsonconv.cpp:81
template qint64 fromJsonValue< qint64 >(const QJsonValue &source, convertType< qint64 >)
Definition jsonconv.cpp:69
template QJsonValue toJsonValue< bool >(const bool &source, convertType< bool >)
Definition jsonconv.cpp:87
template QJsonObject fromJsonValue< QJsonObject >(const QJsonValue &source, convertType< QJsonObject >)
Definition jsonconv.cpp:140
template QStringList fromJsonValue< QStringList >(const QJsonValue &source, convertType< QStringList >)
Definition jsonconv.cpp:110
template QDateTime fromJsonValue< QDateTime >(const QJsonValue &source, convertType< QDateTime >)
Definition jsonconv.cpp:182
template QJsonValue toJsonValue< QVariant >(const QVariant &source, convertType< QVariant >)
Definition jsonconv.cpp:206
template float fromJsonValue< float >(const QJsonValue &source, convertType< float >)
Definition jsonconv.cpp:170
template int fromJsonValue< int >(const QJsonValue &source, convertType< int >)
Definition jsonconv.cpp:57
template QJsonValue toJsonValue< QJsonObject >(const QJsonObject &source, convertType< QJsonObject >)
Definition jsonconv.cpp:152
template double fromJsonValue< double >(const QJsonValue &source, convertType< double >)
Definition jsonconv.cpp:158
template QJsonValue toJsonValue< QString >(const QString &source, convertType< QString >)
Definition jsonconv.cpp:104
template QString fromJsonValue< QString >(const QJsonValue &source, convertType< QString >)
Definition jsonconv.cpp:93
template QJsonValue toJsonValue< QUuid >(const QUuid &source, convertType< QUuid >)
Definition jsonconv.cpp:221
template QJsonValue toJsonValue< QDateTime >(const QDateTime &source, convertType< QDateTime >)
Definition jsonconv.cpp:195
template QJsonValue toJsonValue< QStringList >(const QStringList &source, convertType< QStringList >)
Definition jsonconv.cpp:130
template QJsonValue toJsonValue< int >(const int &source, convertType< int >)
Definition jsonconv.cpp:63
template QVariant fromJsonValue< QVariant >(const QJsonValue &source, convertType< QVariant >)
Definition jsonconv.cpp:201
template QJsonValue toJsonValue< double >(const double &source, convertType< double >)
Definition jsonconv.cpp:164
template QString toString(const QUuid &source, convertType< QUuid >)
Definition jsonconv.cpp:227
template QJsonValue toJsonValue< qint64 >(const qint64 &source, convertType< qint64 >)
Definition jsonconv.cpp:75
template QUuid fromJsonValue< QUuid >(const QJsonValue &source, convertType< QUuid >)
Definition jsonconv.cpp:212