refactor: replace plugin system with native pacman manager

Remove the dynamic plugin loader (pacman/apt/pkg/universal) and drive
the UI directly through PacmanManager. Rename sources and headers to
kebab-case to match the project's file naming convention.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
BlackAngelTV committed 2026-08-27 19:29:24 +02:00
1 parent 4a773c63ce
commit 5054f04c54
23 files changed
+276 -1735

No files matched your search

+14 -18
View File
@@ -13,18 +13,18 @@ find_package(Qt6 REQUIRED COMPONENTS Widgets)
# Main executable
set(SOURCES
src/main.cpp
src/MainWindow.cpp
src/PluginManager.cpp
src/HistoryManager.cpp
src/PackageModel.cpp
src/main-window.cpp
src/pacman-manager.cpp
src/history-manager.cpp
src/package-model.cpp
)
set(HEADERS
include/IPackageManager.h
include/MainWindow.h
include/PluginManager.h
include/HistoryManager.h
include/PackageModel.h
include/package-manager.h
include/pacman-manager.h
include/main-window.h
include/history-manager.h
include/package-model.h
)
add_executable(${PROJECT_NAME} ${SOURCES} ${HEADERS})
@@ -32,16 +32,12 @@ add_executable(${PROJECT_NAME} ${SOURCES} ${HEADERS})
target_include_directories(${PROJECT_NAME} PRIVATE include)
target_link_libraries(${PROJECT_NAME} PRIVATE Qt6::Widgets)
# Plugins
add_subdirectory(plugins/pacman)
add_subdirectory(plugins/apt)
add_subdirectory(plugins/pkg)
add_subdirectory(plugins/universal)
# Install
install(TARGETS ${PROJECT_NAME} DESTINATION bin)
install(DIRECTORY include/ DESTINATION include/${PROJECT_NAME})
# Plugin install directory
set(PLUGIN_DIR "${CMAKE_INSTALL_PREFIX}/lib/${PROJECT_NAME}/plugins")
install(CODE "file(MAKE_DIRECTORY \"\${PLUGIN_DIR}\")")
# Tests
enable_testing()
add_executable(pacman-manager-test tests/pacman-manager.test.cpp src/pacman-manager.cpp)
target_include_directories(pacman-manager-test PRIVATE include)
add_test(NAME pacman-manager-test COMMAND pacman-manager-test)