34 lines
736 B
C++
34 lines
736 B
C++
#ifndef CONFIG_MANAGER_H
|
|
#define CONFIG_MANAGER_H
|
|
|
|
#include <string>
|
|
|
|
class ConfigManager {
|
|
public:
|
|
ConfigManager();
|
|
|
|
// Load configuration
|
|
void load();
|
|
|
|
// Save configuration
|
|
void save();
|
|
|
|
// Getters and setters
|
|
int getWindowWidth() const { return windowWidth; }
|
|
int getWindowHeight() const { return windowHeight; }
|
|
int getPollingTime() const { return pollingTime; }
|
|
|
|
void setWindowWidth(int w) { windowWidth = w; }
|
|
void setWindowHeight(int h) { windowHeight = h; }
|
|
void setPollingTime(int t) { pollingTime = t; }
|
|
|
|
private:
|
|
std::string getConfigFilePath() const;
|
|
|
|
int windowWidth;
|
|
int windowHeight;
|
|
int pollingTime;
|
|
};
|
|
|
|
#endif // CONFIG_MANAGER_H
|