![]() |
cutelyst 4.9.0
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
|
The AppSettings class. More...
#include <appsettings.h>

Signals | |
| void | valueChanged (const QString &key, const QVariant &value) |
Static Public Member Functions | |
| static AppSettings & | instance () |
| static void | setDefaultValue (const QString &key, const QVariant &value) |
| static void | setValue (const QString &key, const QVariant &value) |
| static QVariant | value (const QString &key) |
| static QVariantHash | values () |
A thread local storage for dynamic application settings.
Settings can be set and easily retrieved using the static methods, and once new values are set
Definition at line 22 of file appsettings.h.
|
static |
Definition at line 9 of file appsettings.cpp.
|
static |
Stores a default value for the given key, if there is already a value associated with the given key nothing is done else
Definition at line 25 of file appsettings.cpp.
References value().
|
static |
Stores a value for the given key, if value is different than what is stored
Definition at line 20 of file appsettings.cpp.
References value().
|
static |
Returns the value associated with the given key for the current thread storage
Definition at line 30 of file appsettings.cpp.
Referenced by setDefaultValue(), and setValue().
|
static |
Returns all values for the current thread storage
Definition at line 15 of file appsettings.cpp.