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

#include <app_controller.h>

Public Member Functions

 AppController ()
 AppController (const AppController &)=delete
 ~AppController ()
void forceExit ()
 Force exit without confirmation.
std::string getCacheDirectory () const
 Get application cache directory.
std::string getConfigDirectory () const
 Get application config directory.
std::string getDataDirectory () const
 Get application data directory.
std::string getLogFilePath () const
 Get log file path.
bool hasBlockingProcesses () const
 Check if there are running games that would block exit.
bool initialize (std::shared_ptr< INotificationService > notificationService)
 Initialize the application Must be called before using any controllers.
bool isInitialized () const
 Check if application is initialized.
LaunchController & launcher ()
 Get the launch controller.
const LaunchController & launcher () const
GameLibraryController & library ()
 Get the game library controller.
const GameLibraryController & library () const
AppController & operator= (const AppController &)=delete
bool requestExit ()
 Request application exit Returns true if safe to exit, false if user should confirm (running games).
SettingsController & settings ()
 Get the settings controller.
const SettingsController & settings () const
void shutdown ()
 Shutdown the application Saves state, stops processes, cleans up resources.
SteamController & steam ()
 Get the Steam integration controller.
const SteamController & steam () const
void update ()
 Process background tasks and update state UI should call this periodically (e.g., each frame or on a timer).

Static Public Member Functions

static std::string getAppName ()
 Get application name.
static std::string getVersion ()
 Get application version string.

Detailed Description

Definition at line 32 of file app_controller.h.

Constructor & Destructor Documentation

◆ AppController() [1/2]

core::AppController::AppController ( )

Referenced by AppController(), and operator=().

◆ ~AppController()

core::AppController::~AppController ( )

◆ AppController() [2/2]

core::AppController::AppController ( const AppController & )
delete

References AppController().

Member Function Documentation

◆ forceExit()

void core::AppController::forceExit ( )

Force exit without confirmation.

◆ getAppName()

std::string core::AppController::getAppName ( )
static

Get application name.

◆ getCacheDirectory()

std::string core::AppController::getCacheDirectory ( ) const

Get application cache directory.

◆ getConfigDirectory()

std::string core::AppController::getConfigDirectory ( ) const

Get application config directory.

◆ getDataDirectory()

std::string core::AppController::getDataDirectory ( ) const

Get application data directory.

◆ getLogFilePath()

std::string core::AppController::getLogFilePath ( ) const

Get log file path.

◆ getVersion()

std::string core::AppController::getVersion ( )
static

Get application version string.

◆ hasBlockingProcesses()

bool core::AppController::hasBlockingProcesses ( ) const

Check if there are running games that would block exit.

◆ initialize()

bool core::AppController::initialize ( std::shared_ptr< INotificationService > notificationService)

Initialize the application Must be called before using any controllers.

Parameters
notificationServiceUI's notification implementation
Returns
true if initialization successful

◆ isInitialized()

bool core::AppController::isInitialized ( ) const

Check if application is initialized.

◆ launcher() [1/2]

LaunchController & core::AppController::launcher ( )

Get the launch controller.

◆ launcher() [2/2]

const LaunchController & core::AppController::launcher ( ) const

◆ library() [1/2]

GameLibraryController & core::AppController::library ( )

Get the game library controller.

◆ library() [2/2]

const GameLibraryController & core::AppController::library ( ) const

◆ operator=()

AppController & core::AppController::operator= ( const AppController & )
delete

References AppController().

◆ requestExit()

bool core::AppController::requestExit ( )

Request application exit Returns true if safe to exit, false if user should confirm (running games).

◆ settings() [1/2]

SettingsController & core::AppController::settings ( )

Get the settings controller.

◆ settings() [2/2]

const SettingsController & core::AppController::settings ( ) const

◆ shutdown()

void core::AppController::shutdown ( )

Shutdown the application Saves state, stops processes, cleans up resources.

◆ steam() [1/2]

SteamController & core::AppController::steam ( )

Get the Steam integration controller.

◆ steam() [2/2]

const SteamController & core::AppController::steam ( ) const

◆ update()

void core::AppController::update ( )

Process background tasks and update state UI should call this periodically (e.g., each frame or on a timer).


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