ASAPCabinetFE
 
Loading...
Searching...
No Matches
iconfig_service.h
Go to the documentation of this file.
1
12#ifndef ICONFIG_SERVICE_H
13#define ICONFIG_SERVICE_H
14
15#include <filesystem>
16#include "settings.h"
18#include <string>
19
31public:
35 virtual ~IConfigService() = default;
36
42 virtual const Settings& getSettings() const = 0;
43
52
61
69 virtual bool isConfigValid() const = 0;
70
76 virtual void loadConfig() = 0;
77
83 virtual void saveConfig() = 0;
84
108 virtual void updateWindowSetup(int& playfieldX, int& playfieldY, int& playfieldWidth, int& playfieldHeight,
109 int& backglassX, int& backglassY, int& backglassWidth, int& backglassHeight,
110 int& dmdX, int& dmdY, int& dmdWidth, int& dmdHeight,
111 int& topperX, int& topperY, int& topperWidth, int& topperHeight) = 0;
112};
113
114#endif // ICONFIG_SERVICE_H
Interface for configuration services (forward declaration).
Definition iconfig_service.h:30
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.
virtual const Settings & getSettings() const =0
Gets the current application settings (read-only).
virtual void loadConfig()=0
Loads configuration data from the JSON file.
virtual Settings & getMutableSettings()=0
Gets the current application settings (mutable).
virtual ~IConfigService()=default
Virtual destructor for proper cleanup of derived classes.
virtual bool isConfigValid() const =0
Checks if the configuration is valid.
virtual IKeybindProvider & getKeybindProvider()=0
Gets the keybinding provider.
Interface for keybind providers (forward declaration).
Definition ikeybind_provider.h:30
Defines the IKeybindProvider interface for managing input bindings in ASAPCabinetFE.
Definition settings.h:12