#ifndef APIUTILS_H #define APIUTILS_H #include #include #include "apiDefs.h" #include "core/defs.h" namespace apiUtils { bool isServerFromApi(const QJsonObject &serverConfigObject); bool isSubscriptionExpired(const QString &subscriptionEndDate); apiDefs::ConfigType getConfigType(const QJsonObject &serverConfigObject); apiDefs::ConfigSource getConfigSource(const QJsonObject &serverConfigObject); amnezia::ErrorCode checkNetworkReplyErrors(const QList &sslErrors, QNetworkReply *reply); } #endif // APIUTILS_H