2021-03-24 19:04:03 +00:00
|
|
|
/*
|
|
|
|
* Sailfin: a Jellyfin client written using Qt
|
|
|
|
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
2021-03-20 02:30:50 +00:00
|
|
|
#ifndef JELLYFIN_SUPPORT_JSONCONV_H
|
|
|
|
#define JELLYFIN_SUPPORT_JSONCONV_H
|
|
|
|
|
2021-07-31 13:06:17 +00:00
|
|
|
#include "jsonconvimpl.h"
|
|
|
|
#include "parseexception.h"
|
2021-03-20 02:30:50 +00:00
|
|
|
|
|
|
|
namespace Jellyfin {
|
|
|
|
namespace Support {
|
|
|
|
|
2021-07-31 13:06:17 +00:00
|
|
|
extern template int fromJsonValue<int>(const QJsonValue &source, convertType<int>);
|
|
|
|
extern template qint64 fromJsonValue<qint64>(const QJsonValue &source, convertType<qint64>);
|
|
|
|
extern template bool fromJsonValue<bool>(const QJsonValue &source, convertType<bool>);
|
|
|
|
extern template QString fromJsonValue<QString>(const QJsonValue &source, convertType<QString>);
|
|
|
|
extern template QStringList fromJsonValue<QStringList>(const QJsonValue &source, convertType<QStringList>);
|
|
|
|
extern template QJsonObject fromJsonValue<QJsonObject>(const QJsonValue &source, convertType<QJsonObject>);
|
|
|
|
extern template double fromJsonValue<double>(const QJsonValue &source, convertType<double>);
|
|
|
|
extern template float fromJsonValue<float>(const QJsonValue &source, convertType<float>);
|
|
|
|
extern template QDateTime fromJsonValue<QDateTime>(const QJsonValue &source, convertType<QDateTime>);
|
|
|
|
extern template QVariant fromJsonValue<QVariant>(const QJsonValue &source, convertType<QVariant>);
|
|
|
|
extern template QUuid fromJsonValue<QUuid>(const QJsonValue &source, convertType<QUuid>);
|
|
|
|
|
|
|
|
extern template QString toString(const QUuid &source, convertType<QUuid>);
|
|
|
|
extern template QString toString(const qint32 &source, convertType<qint32>);
|
|
|
|
extern template QString toString(const qint64 &source, convertType<qint64>);
|
|
|
|
extern template QString toString(const float &source, convertType<float>);
|
|
|
|
extern template QString toString(const double &source, convertType<double>);
|
|
|
|
extern template QString toString(const bool &source, convertType<bool>);
|
|
|
|
extern template QString toString(const QString &source, convertType<QString>);
|
2021-03-25 16:32:00 +00:00
|
|
|
|
|
|
|
} // NS Support
|
|
|
|
} // NS Jellyfin
|
2021-03-20 02:30:50 +00:00
|
|
|
|
|
|
|
#endif // JSONCONV_H
|