game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
ContextMenuManager Class Reference

#include <context_menu_manager.h>

Inheritance diagram for ContextMenuManager:
Collaboration diagram for ContextMenuManager:

Classes

class  Impl

Public Member Functions

 ContextMenuManager (QMainWindow *mainWindow, core::GameLibraryController *libraryController, DetailsPanelManager *detailsPanelManager, GameActionFactory *actionFactory, std::shared_ptr< QtNotificationService > notificationService, ThemeManager *themeManager, QObject *qparent=nullptr)
 ~ContextMenuManager () override
void gamesBatchRemoveRequested (const std::vector< std::string > &gameIds)
 Multi-select "Remove N Games" confirmed; caller should loop libraryController->removeGame + run updateSourceFilters, updateCategoryCounts, refreshGameList.
void install (QListView *gameList)
 Hook the manager's right-click handler onto gameList.
void steamUninstallCompleted (const std::string &gameId, bool success, const std::string &gameName, std::uint32_t appId)
 Steam Uninstall worker completed on the UI thread.

Detailed Description

Definition at line 57 of file context_menu_manager.h.

Constructor & Destructor Documentation

◆ ContextMenuManager()

ContextMenuManager::ContextMenuManager ( QMainWindow * mainWindow,
core::GameLibraryController * libraryController,
DetailsPanelManager * detailsPanelManager,
GameActionFactory * actionFactory,
std::shared_ptr< QtNotificationService > notificationService,
ThemeManager * themeManager,
QObject * qparent = nullptr )

Definition at line 68 of file context_menu_manager.cpp.

◆ ~ContextMenuManager()

ContextMenuManager::~ContextMenuManager ( )
overridedefault

Member Function Documentation

◆ gamesBatchRemoveRequested()

void ContextMenuManager::gamesBatchRemoveRequested ( const std::vector< std::string > & gameIds)

Multi-select "Remove N Games" confirmed; caller should loop libraryController->removeGame + run updateSourceFilters, updateCategoryCounts, refreshGameList.

◆ install()

void ContextMenuManager::install ( QListView * gameList)

◆ steamUninstallCompleted()

void ContextMenuManager::steamUninstallCompleted ( const std::string & gameId,
bool success,
const std::string & gameName,
std::uint32_t appId )

Steam Uninstall worker completed on the UI thread.

MainWindow handles the refresh cascade + opens steam:// nav URL on success.


The documentation for this class was generated from the following files: