/* * 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 */ #ifndef JELLYFIN_SUPPORT_JSONCONV_H #define JELLYFIN_SUPPORT_JSONCONV_H #include "jsonconvimpl.h" #include "parseexception.h" namespace Jellyfin { namespace Support { extern template int fromJsonValue(const QJsonValue &source, convertType); extern template qint64 fromJsonValue(const QJsonValue &source, convertType); extern template bool fromJsonValue(const QJsonValue &source, convertType); extern template QString fromJsonValue(const QJsonValue &source, convertType); extern template QStringList fromJsonValue(const QJsonValue &source, convertType); extern template QJsonObject fromJsonValue(const QJsonValue &source, convertType); extern template double fromJsonValue(const QJsonValue &source, convertType); extern template float fromJsonValue(const QJsonValue &source, convertType); extern template QDateTime fromJsonValue(const QJsonValue &source, convertType); extern template QVariant fromJsonValue(const QJsonValue &source, convertType); extern template QUuid fromJsonValue(const QJsonValue &source, convertType); extern template QJsonValue toJsonValue(const int &source, convertType); extern template QJsonValue toJsonValue(const qint64 &source, convertType); extern template QJsonValue toJsonValue(const bool &source, convertType); extern template QJsonValue toJsonValue(const QString &source, convertType); extern template QJsonValue toJsonValue(const QStringList &source, convertType); extern template QJsonValue toJsonValue(const QJsonObject &source, convertType); extern template QJsonValue toJsonValue(const double &source, convertType); extern template QJsonValue toJsonValue(const float &source, convertType); extern template QJsonValue toJsonValue(const QDateTime &source, convertType); extern template QJsonValue toJsonValue(const QVariant &source, convertType); extern template QJsonValue toJsonValue(const QUuid &source, convertType); extern template QString toString(const QUuid &source, convertType); extern template QString toString(const qint32 &source, convertType); extern template QString toString(const qint64 &source, convertType); extern template QString toString(const float &source, convertType); extern template QString toString(const double &source, convertType); extern template QString toString(const bool &source, convertType); extern template QString toString(const QString &source, convertType); extern template QString toString(const QStringList &source, convertType); } // NS Support } // NS Jellyfin #endif // JSONCONV_H