|
VGamepad PC
The PC app for the virtual game controller.
|
#include <settings_singleton.hpp>
Public Member Functions | |
| QSettings * | qsettings () |
| int | mouseSensitivity () const |
| void | setMouseSensitivity (int value) |
| int | port () const |
| void | setPort (int value) |
| ExecutorType | executorType () const |
| void | setExecutorType (ExecutorType type) |
| void | loadAll () |
| void | saveSetting (const QString &key, const QVariant &value) |
| QVariant | loadSetting (const QString &key) |
| void | resetToDefaults () |
| QString | activeProfileName () const |
| void | setActiveProfileName (const QString &name) |
| KeymapProfile & | activeKeymapProfile () |
| QString | getProfilesDir () const |
| QStringList | listAvailableProfiles () const |
| bool | createProfile (const QString &profileName) |
| bool | deleteProfile (const QString &profileName) |
| bool | profileExists (const QString &profileName) const |
| bool | loadProfile (const QString &profileName) |
| bool | saveActiveProfile () |
Static Public Member Functions | |
| static SettingsSingleton & | instance () |
Static Public Attributes | |
| static constexpr int | DEFAULT_MOUSE_SENSITIVITY = 10 |
| static constexpr int | MOUSE_SENSITIVITY_MULTIPLIER = 10 |
| static constexpr int | DEFAULT_PORT_NUMBER = 0 |
| static constexpr ExecutorType | DEFAULT_EXECUTOR_TYPE = ExecutorType::KeyboardMouseExecutor |
Private Member Functions | |
| SettingsSingleton () | |
| ~SettingsSingleton () override=default | |
| SettingsSingleton (const SettingsSingleton &)=delete | |
| SettingsSingleton & | operator= (const SettingsSingleton &)=delete |
| void | loadMouseSensitivity () |
| void | loadPort () |
| void | loadExecutorType () |
Private Attributes | |
| QSettings | settings |
| int | mouse_sensitivity |
| int | port_number |
| ExecutorType | executor_type |
| QString | m_activeProfileName |
| KeymapProfile | m_activeKeymapProfile |
|
private |
|
privatedelete |
| KeymapProfile & SettingsSingleton::activeKeymapProfile | ( | ) |
| QString SettingsSingleton::activeProfileName | ( | ) | const |
| bool SettingsSingleton::createProfile | ( | const QString & | profileName | ) |
| bool SettingsSingleton::deleteProfile | ( | const QString & | profileName | ) |
|
inline |
| QString SettingsSingleton::getProfilesDir | ( | ) | const |
|
inlinestatic |
| QStringList SettingsSingleton::listAvailableProfiles | ( | ) | const |
| void SettingsSingleton::loadAll | ( | ) |
|
private |
|
private |
|
private |
| bool SettingsSingleton::loadProfile | ( | const QString & | profileName | ) |
| QVariant SettingsSingleton::loadSetting | ( | const QString & | key | ) |
|
inline |
|
privatedelete |
|
inline |
| bool SettingsSingleton::profileExists | ( | const QString & | profileName | ) | const |
|
inline |
| void SettingsSingleton::resetToDefaults | ( | ) |
| bool SettingsSingleton::saveActiveProfile | ( | ) |
| void SettingsSingleton::saveSetting | ( | const QString & | key, |
| const QVariant & | value ) |
| void SettingsSingleton::setActiveProfileName | ( | const QString & | name | ) |
| void SettingsSingleton::setExecutorType | ( | ExecutorType | type | ) |
| void SettingsSingleton::setMouseSensitivity | ( | int | value | ) |
| void SettingsSingleton::setPort | ( | int | value | ) |
|
overrideprivatedefault |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
private |
|
private |
|
private |
|
private |
|
staticconstexpr |
|
private |
|
private |