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

Registry of all environment variable mappings for the config dialog. More...

#include <env_var_mapping.h>

Static Public Member Functions

static const std::vector< EnvVarMapping > & getBaseMappings ()
static const std::vector< QString > & getHandledEnvVarKeys ()
static bool isHandledEnvVar (const QString &key)
static bool isHandledEnvVar (const std::string &key)

Detailed Description

Registry of all environment variable mappings for the config dialog.

Provides centralized access to checkbox-to-envvar mappings. Usage: for (const auto& m : EnvVarMappingRegistry::getMappings()) { (*m.checkbox)->setChecked(m.isSetIn(envVars)); }

Definition at line 51 of file env_var_mapping.h.

Member Function Documentation

◆ getBaseMappings()

const std::vector< EnvVarMapping > & EnvVarMappingRegistry::getBaseMappings ( )
static

Definition at line 16 of file env_var_mapping.cpp.

◆ getHandledEnvVarKeys()

const std::vector< QString > & EnvVarMappingRegistry::getHandledEnvVarKeys ( )
static

Definition at line 28 of file env_var_mapping.cpp.

Referenced by isHandledEnvVar().

◆ isHandledEnvVar() [1/2]

bool EnvVarMappingRegistry::isHandledEnvVar ( const QString & key)
static

Definition at line 78 of file env_var_mapping.cpp.

References getHandledEnvVarKeys().

Referenced by isHandledEnvVar().

◆ isHandledEnvVar() [2/2]

bool EnvVarMappingRegistry::isHandledEnvVar ( const std::string & key)
static

Definition at line 84 of file env_var_mapping.cpp.

References isHandledEnvVar().


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