|
tuned-switcher 1.1.0
Performance profile manager
|
#include <settingsmanager.h>


Public Member Functions | |
| bool | IsGeometrySavingSupported () const |
| bool | GetGeometrySavingEnabled () const |
| void | SetGeometrySavingEnabled (const bool) |
| QByteArray | GetWidgetGeometry () const |
| void | SetWidgetGeometry (const QByteArray &) |
| QByteArray | GetSettingsGeometry () const |
| void | SetSettingsGeometry (const QByteArray &) |
| QByteArray | GetAboutGeometry () const |
| void | SetAboutGeometry (const QByteArray &) |
| bool | GetSoundEnabled () const |
| void | SetSoundEnabled (const bool) |
| bool | IsAutorunSupported () const |
| bool | GetAutorunEnabled () const |
| void | SetAutorunEnabled (const bool) const |
| void | Reset () const |
| void | ResetGeometry () const |
| SettingsManager (QObject *parent=nullptr) | |
Private Attributes | |
| QSettings * | Settings |
| AutorunManager * | Autorun |
| bool | IsWayland |
| const QString | GeometrySavingEnabledName = QStringLiteral("common/saveGeometry") |
| const QString | WidgetGeometryName = QStringLiteral("widget/geometry") |
| const QString | SettingsGeometryName = QStringLiteral("settings/geometry") |
| const QString | AboutGeometryName = QStringLiteral("about/geometry") |
| const QString | AutorunEnabledName = QStringLiteral("common/autorunEnabled") |
| const QString | SoundEnabledName = QStringLiteral("common/soundEnabled") |
Class for working with program settings.
|
explicit |
Main constructor of the SettingsManager class.
| parent | Parent. |
| QByteArray SettingsManager::GetAboutGeometry | ( | ) | const |
| bool SettingsManager::GetAutorunEnabled | ( | ) | const |
Get whether the autorun feature is enabled.
| bool SettingsManager::GetGeometrySavingEnabled | ( | ) | const |
Get whether saving the form geometry is enabled.
| QByteArray SettingsManager::GetSettingsGeometry | ( | ) | const |
Get the geometry of the settings form.
| bool SettingsManager::GetSoundEnabled | ( | ) | const |
Get the notification sound configuration.
| QByteArray SettingsManager::GetWidgetGeometry | ( | ) | const |
Get the geometry of the widget form.
| bool SettingsManager::IsAutorunSupported | ( | ) | const |
Get whether the autorun feature is supported.
| bool SettingsManager::IsGeometrySavingSupported | ( | ) | const |
Get whether saving the form geometry is supported.
| void SettingsManager::Reset | ( | ) | const |
Reset all settings to default values.
| void SettingsManager::ResetGeometry | ( | ) | const |
Reset the geometry settings to default values.
| void SettingsManager::SetAboutGeometry | ( | const QByteArray & | value | ) |
| void SettingsManager::SetAutorunEnabled | ( | const bool | value | ) | const |
Set whether the autorun feature is enabled.
| value | Enable or disable the autorun feature. |
| void SettingsManager::SetGeometrySavingEnabled | ( | const bool | value | ) |
Set whether saving the form geometry is enabled.
| value | Enable or disable saving the form geometry. |
| void SettingsManager::SetSettingsGeometry | ( | const QByteArray & | value | ) |
Set the geometry of the settings form.
| value | New settings form geometry value. |
| void SettingsManager::SetSoundEnabled | ( | const bool | value | ) |
Set the notification sound configuration.
| value | New notification sound configuration value. |
| void SettingsManager::SetWidgetGeometry | ( | const QByteArray & | value | ) |
Set the geometry of the widget form.
| value | New widget form geometry value. |
|
private |
Stores the geometry of the About form option name.
|
private |
Stores a pointer to the AutorunManager class instance.
|
private |
Stores whether the autorun feature is enabled.
|
private |
Stores whether saving the form geometry is enabled.
|
private |
Stores whether the application is running on Wayland platform.
|
private |
Stores a pointer to the QSettings class instance.
|
private |
Stores the geometry of the settings form option name.
|
private |
Stores the notification sound configuration option name.
|
private |
Stores the geometry of the widget form option name.