mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -08:00
* [Client] Improve card database update visibility Addresses Cockatrice/Cockatrice#7431. Cockatrice previously offered no in-client feedback while the card database updater ran: the only progress UI lived in the first-run wizard, stderr/stdout were not parsed in interactive runs, and starting a second update with Oracle already open or with a hidden background run active just showed a confusing 'already running' guard - even though Oracle is launched as a separate process with no lifecycle tracking. - Add a status-bar widget (CardDatabaseUpdateStatusBar) that appears while an update runs and shows the Downloading/Parsing/Importing stages with percent progress; it is also used in the quit-confirm prompt so users see an unfinished update before cancelling it. - Parse the updater's PROGRESS lines (new CardUpdateProgressParser, unit-tested) in both foreground and background runs and log stage changes to the new card_database.update category, throttled to at most one line per second; forward Oracle stderr to the logs. - Show a tray balloon when a background update starts and on finish or failure instead of staying silent. - Request a running Oracle instance to raise itself (QLocalServer CockatriceOracleRaise-<user>) when the user starts another update, and demote the 'already running' guard to an informative message only when no running instance can be found. - Emit download/scan/import progress unconditionally from Oracle so interactive and background runs behave the same. - Document the new log category in the troubleshooting guide. * [Client] Address card database update review feedback * [Client] Add setting to control card database update tray notifications * [Client] Address remaining card database update review nits - Rename card_update_progress_parser.{h,cpp} to card_update_progress.{h,cpp} - Store the CardUpdateProgress struct in the status bar widget * Lint. --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
51 lines
1.8 KiB
CMake
51 lines
1.8 KiB
CMake
cmake_minimum_required(VERSION 3.16)
|
|
project(Utility VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_AUTOUIC ON)
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
set(UTILITY_SOURCES
|
|
libcockatrice/utility/cryptoutil.cpp
|
|
libcockatrice/utility/expression.cpp
|
|
libcockatrice/utility/levenshtein.cpp
|
|
libcockatrice/utility/passwordhasher.cpp
|
|
libcockatrice/utility/report_categories.cpp
|
|
libcockatrice/utility/server_rate_limiter.cpp
|
|
libcockatrice/utility/translation_loader.cpp
|
|
libcockatrice/utility/warning_categories.cpp
|
|
)
|
|
|
|
set(UTILITY_HEADERS
|
|
libcockatrice/utility/card_ref.h
|
|
libcockatrice/utility/color.h
|
|
libcockatrice/utility/cryptoutil.h
|
|
libcockatrice/utility/expression.h
|
|
libcockatrice/utility/levenshtein.h
|
|
libcockatrice/utility/local_server_name.h
|
|
libcockatrice/utility/macros.h
|
|
libcockatrice/utility/passwordhasher.h
|
|
libcockatrice/utility/playmat_params.h
|
|
libcockatrice/utility/report_categories.h
|
|
libcockatrice/utility/string_limits.h
|
|
libcockatrice/utility/dice_limits.h
|
|
libcockatrice/utility/counter_limits.h
|
|
libcockatrice/utility/clamped_arithmetic.h
|
|
libcockatrice/utility/zone_names.h
|
|
libcockatrice/utility/days_years_between.h
|
|
libcockatrice/utility/server_rate_limiter.h
|
|
libcockatrice/utility/translation_loader.h
|
|
libcockatrice/utility/warning_categories.h
|
|
)
|
|
|
|
add_library(libcockatrice_utility STATIC ${UTILITY_SOURCES} ${UTILITY_HEADERS})
|
|
|
|
target_include_directories(libcockatrice_utility PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
find_package(OpenSSL REQUIRED)
|
|
|
|
target_link_libraries(libcockatrice_utility PUBLIC libcockatrice_rng OpenSSL::Crypto ${QT_CORE_MODULE})
|
|
|
|
set(ORACLE_LIBS)
|
|
|
|
include_directories(${${COCKATRICE_QT_VERSION_NAME}Core_INCLUDE_DIRS})
|