Skip to content
Snippets Groups Projects
Commit 8a28a98f authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Some documentation for the settings database

parent c9e88a96
No related branches found
No related tags found
No related merge requests found
......@@ -179,6 +179,19 @@
You can use it to retrieve or set application wide settings
(in contrast to session or project specific settings).
\see settingsDatabase()
*/
/*!
\fn SettingsDatabase *ICore::settingsDatabase() const
\brief Returns the application's settings database.
The settings database is meant as an alternative to the regular settings
object. It is more suitable for storing large amounts of data. The settings
are application wide.
\see SettingsDatabase
*/
/*!
......@@ -186,7 +199,7 @@
\brief Returns the application's printer object.
Always use this printer object for printing, so the different parts of the
application re-use it's settings.
application re-use its settings.
*/
/*!
......@@ -251,7 +264,7 @@
\brief Registers an additional \a context object.
After registration this context object gets automatically the
current context object whenever it's widget gets focus.
current context object whenever its widget gets focus.
\sa ICore::removeContextObject()
\sa ICore::addAdditionalContext()
......@@ -324,11 +337,11 @@
/*!
\fn void ICore::contextAboutToChange(Core::IContext *context)
\brief Sent just before a new \a context becomes the current context
(meaning that it's widget got focus).
(meaning that its widget got focus).
*/
/*!
\fn void ICore::contextChanged(Core::IContext *context)
\brief Sent just after a new \a context became the current context
(meaning that it's widget got focus).
(meaning that its widget got focus).
*/
......@@ -34,6 +34,18 @@
#include <QtSql/QSqlQuery>
#include <QDebug>
/*!
\class Core::SettingsDatabase
\brief An alternative to the application-wide QSettings that is more
suitable for storing large amounts of data.
The settings database is SQLite based, and lazily retrieves data when it
is asked for. It also does incremental updates of the database rather than
rewriting the whole file each time one of the settings change.
The SettingsDatabase API mimics that of QSettings.
*/
using namespace Core;
using namespace Core::Internal;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment