/*
* Komplex Wallpaper Engine
* Copyright (C) 2026 @DigitalArtifex
* https://digitalartifex.dev - https://github.com/DigitalArtifex
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see
*/
#ifndef KOMPLEX_GLOBAL_H
#define KOMPLEX_GLOBAL_H
#include
#include
#include
#ifdef KOMPLEX_PLUGIN
#define KOMPLEX_EXPORT Q_DECL_EXPORT
#else
#define KOMPLEX_EXPORT Q_DECL_IMPORT
#endif
#define SLIDING_CACHE_WINDOW_SIZE 100
#define SLIDING_CACHE_PREFETCH_THRESHOLD 20
#define NETWORK_TIMEOUT 10000
#define NETWORK_RETRY_LIMIT 3
#ifdef KOMPLEX_LOCAL_DEV
#define KOMPLEX_API_HOST "https://komplexapi.hlab"
#else
#define KOMPLEX_API_HOST "https://api.komplex.dev"
#endif
#define KOMPLEX_API_VERSION "v2"
inline QString KOMPLEX_ENDPOINT_IMAGES_SEARCH = QStringLiteral("images/search");
inline QString KOMPLEX_ENDPOINT_IMAGES_FEATURED = QStringLiteral("featured/images");
inline QString KOMPLEX_ENDPOINT_IMAGES_ITEM = QStringLiteral("images/item");
inline QString KOMPLEX_ENDPOINT_VIDEOS_SEARCH = QStringLiteral("videos/search");
inline QString KOMPLEX_ENDPOINT_VIDEOS_FEATURED = QStringLiteral("featured/videos");
inline QString KOMPLEX_ENDPOINT_VIDEOS_ITEM = QStringLiteral("videos/item");
inline QString KOMPLEX_ENDPOINT_SHADERS_SEARCH = QStringLiteral("shaders/search");
inline QString KOMPLEX_ENDPOINT_SHADERS_FEATURED = QStringLiteral("shaders/featured");
inline QString KOMPLEX_ENDPOINT_SHADERS_ITEM = QStringLiteral("shaders/item");
inline QString KOMPLEX_ENDPOINT_SHADERS_NEWEST = QStringLiteral("shaders/newest");
inline QString KOMPLEX_ENDPOINT_CUBEMAPS_SEARCH = QStringLiteral("cubemaps/search");
inline QString KOMPLEX_ENDPOINT_CUBEMAPS_FEATURED = QStringLiteral("cubemaps/featured");
inline QString KOMPLEX_ENDPOINT_CUBEMAPS_ITEM = QStringLiteral("cubemaps/item");
inline QString KOMPLEX_ENDPOINT_CUBEMAPS_NEWEST = QStringLiteral("cubemaps/newest");
inline QString KOMPLEX_ENDPOINT_PACKS_SEARCH = QStringLiteral("packs/search");
inline QString KOMPLEX_ENDPOINT_PACKS_FEATURED = QStringLiteral("packs/featured");
inline QString KOMPLEX_ENDPOINT_PACKS_ITEM = QStringLiteral("packs/item");
inline QString KOMPLEX_ENDPOINT_PACKS_NEWEST = QStringLiteral("packs/newest");
inline QString KOMPLEX_ENDPOINT_USER_AUTH = QStringLiteral("user/auth");
inline qsizetype nullsize = std::numeric_limits::min();
inline std::chrono::milliseconds KOMPLEX_RATE_LIMIT(500);
inline QString KOMPLEX_KEYCHAIN_PASSWORD_KEY = QStringLiteral
(
"com.digitalartifex.komplex.keychain.password"
);
inline QString KOMPLEX_KEYCHAIN_TOKEN_KEY = QStringLiteral
(
"com.digitalartifex.komplex.keychain.token"
);
#endif // KOMPLEX_GLOBAL_H