aboutsummaryrefslogtreecommitdiff
path: root/connection.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2016-09-06 12:11:19 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2016-09-06 12:11:19 +0900
commitbd5ef6e3d9d4105be2f4eea16c774c01c8a84379 (patch)
treed17bc7d76178bdaa79db4547f054f3163d5471e0 /connection.cpp
parent4e70dd91bb70fa2b9b338686e4d5ab2560947723 (diff)
downloadlibquotient-bd5ef6e3d9d4105be2f4eea16c774c01c8a84379.tar.gz
libquotient-bd5ef6e3d9d4105be2f4eea16c774c01c8a84379.zip
Settings, SettingsGroup, AccountSettings
Settings is a trivial wrapper around QSettings that makes value() and setValue() available from QML (Tensor has the same class atm). SettingsGroup is a cleaner way to reach for sections inside QSettings. It doesn't refer to another QSettings class, rather derives from it and overrides functions that deal with groups. AccountSettings, contrary to the two above, is by no means generic: it serves the specific purpose of storing settings of a single account in a uniform way. Rationale of it is that key literals like "keep_logged_in" cannot be enforced, while function names can; and the same goes for QVariants stored inside - the class enforces specific types while allowing further extension by clients. Note that functions in QSettings are not virtual, so all these classes are not polymorphic.
Diffstat (limited to 'connection.cpp')
0 files changed, 0 insertions, 0 deletions