Implements the VpsDatabaseUpdater class for updating the VPS database in ASAPCabinetFE. More...
#include "vps_database_updater.h"
#include <curl/curl.h>
#include <filesystem>
#include <nlohmann/json.hpp>
#include "log/logging.h"
Implements the VpsDatabaseUpdater class for updating the VPS database in ASAPCabinetFE.
This file provides the implementation of the VpsDatabaseUpdater class, which checks and downloads updates for the VPS database (vpsdb.json) from a remote source using CURL. It compares local and remote timestamps via lastUpdated.json, supports multiple fallback URLs, validates JSON content, and tracks progress with LoadingProgress. The process is configurable via settings (e.g., update frequency), with potential for configUI enhancements (e.g., custom URLs or frequency settings) in the future.