-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
Settings and config | ||
=================== | ||
|
||
Settings and global configurations are both global and accessible from anywhere in the application. They differ only by the intended lifespan. | ||
|
||
Settings | ||
-------- | ||
|
||
Settings are stored in a file and are saved accross sessions. | ||
|
||
It uses the QSettings interface, with a file named ``settings.conf`` at the standard path ``QStandardPaths::AppDataLocation``. | ||
Thus, it's most probably corresponds to ``$HOME/.local/share/pprzgcs/settings.conf``. | ||
|
||
|
||
Use the helper function ``QSettings getAppSettings()`` from ``gcs_utils.h`` to start using them. | ||
|
||
|
||
GlobalConfig | ||
------------ | ||
|
||
The global config is a singleton holding a key/value configuration. | ||
|
||
It lives only for the current session. | ||
|
||
Use the helper function ``GlobalConfig* appConfig()`` from ``gcs_utils.h`` to start using it. | ||
|
||
Like the settings, it uses QVariant type to hold its items. | ||
|
||
|
||
|