Interface for configuration services (forward declaration). More...
#include <process_handler.h>
Public Member Functions | |
virtual | ~IConfigService ()=default |
Virtual destructor for proper cleanup of derived classes. | |
virtual const Settings & | getSettings () const =0 |
Gets the current application settings (read-only). | |
virtual Settings & | getMutableSettings ()=0 |
Gets the current application settings (mutable). | |
virtual IKeybindProvider & | getKeybindProvider ()=0 |
Gets the keybinding provider. | |
virtual bool | isConfigValid () const =0 |
Checks if the configuration is valid. | |
virtual void | loadConfig ()=0 |
Loads configuration data from the JSON file. | |
virtual void | saveConfig ()=0 |
Saves the current configuration data to the JSON file. | |
virtual void | updateWindowSetup (int &playfieldX, int &playfieldY, int &playfieldWidth, int &playfieldHeight, int &backglassX, int &backglassY, int &backglassWidth, int &backglassHeight, int &dmdX, int &dmdY, int &dmdWidth, int &dmdHeight, int &topperX, int &topperY, int &topperWidth, int &topperHeight)=0 |
Updates window setup coordinates and dimensions. | |
Interface for configuration services (forward declaration).
Interface for managing application configuration and keybindings in ASAPCabinetFE.
This pure virtual class defines methods for retrieving and modifying application settings, validating configuration, loading and saving JSON-based configuration data, managing keybindings via IKeybindProvider, and updating window positions for playfield, backglass, DMD, and topper displays. Implementers handle JSON configuration file operations and provide a standardized interface for configuration management.
|
pure virtual |
Gets the keybinding provider.
Provides access to the IKeybindProvider for managing input mappings.
Implemented in ConfigService.
|
pure virtual |
Gets the current application settings (mutable).
Provides mutable access to settings for updating configuration (e.g., via ConfigUI).
Implemented in ConfigService.
|
pure virtual |
Gets the current application settings (read-only).
Implemented in ConfigService.
|
pure virtual |
Checks if the configuration is valid.
Validates essential configuration parameters such as file paths and permissions.
Implemented in ConfigService.
|
pure virtual |
Loads configuration data from the JSON file.
Reads and parses the configuration file, applying defaults if the file is missing.
Implemented in ConfigService.
|
pure virtual |
Saves the current configuration data to the JSON file.
Writes the current settings and keybindings to the configuration file.
Implemented in ConfigService.
|
pure virtual |
Updates window setup coordinates and dimensions.
Updates the configuration with the current window positions and sizes for playfield, backglass, DMD, and topper displays, then saves the changes.
playfieldX | Reference to the playfield window X coordinate. |
playfieldY | Reference to the playfield window Y coordinate. |
playfieldWidth | Reference to the playfield window width. |
playfieldHeight | Reference to the playfield window height. |
backglassX | Reference to the backglass window X coordinate. |
backglassY | Reference to the backglass window Y coordinate. |
backglassWidth | Reference to the backglass window width. |
backglassHeight | Reference to the backglass window height. |
dmdX | Reference to the DMD window X coordinate. |
dmdY | Reference to the DMD window Y coordinate. |
dmdWidth | Reference to the DMD window width. |
dmdHeight | Reference to the DMD window height. |
topperX | Reference to the topper window X coordinate. |
topperY | Reference to the topper window Y coordinate. |
topperWidth | Reference to the topper window width. |
topperHeight | Reference to the topper window height. |
Implemented in ConfigService.