mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-14 05:12:25 +08:00

- Separated program args parsing and validation from initialization code - Application's main body in it's own class Signed-off-by: Alexis Maiquez <almamu@almamu.com>
34 lines
812 B
C++
34 lines
812 B
C++
#pragma once
|
|
|
|
#include <FreeImage.h>
|
|
#include <filesystem>
|
|
#include <map>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace WallpaperEngine::Application
|
|
{
|
|
class CApplicationContext
|
|
{
|
|
public:
|
|
CApplicationContext (int argc, char* argv[]);
|
|
|
|
std::vector <std::string> screens;
|
|
std::map <std::string, std::string> properties;
|
|
std::string background;
|
|
std::filesystem::path assets;
|
|
std::filesystem::path screenshot;
|
|
bool takeScreenshot;
|
|
int maximumFPS;
|
|
int audioVolume;
|
|
bool audioEnabled;
|
|
bool onlyListProperties;
|
|
FREE_IMAGE_FORMAT screenshotFormat;
|
|
|
|
private:
|
|
void validatePath ();
|
|
void validateAssets ();
|
|
void validateScreenshot ();
|
|
void printHelp (const char* route);
|
|
};
|
|
} |