defuze.me
Client
|
This is the database access wrapper, It manage database and backups locations. More...
#include <dbcore.hpp>
Public Member Functions | |
DBCore (QStringList &arguments) | |
void | init (Cores *cores) |
Called once, after all CORES are loaded. | |
void | aboutToQuit () |
Called just before to quit, when CORES are still loaded. | |
bool | openLocation (Location *loc) |
Try to open the database at loc. | |
QVariant | setting (const QString &key) const |
Get the value of a setting. | |
QHash< QString, QVariant > | settingsStartingWith (const QString &key) const |
Get the settings where the key start LIKE 'key'. | |
bool | setSetting (const QString &key, const QVariant value) const |
Set the value of a setting. | |
int | currentMigration () const |
Get the current migration number. | |
void | backupAll () |
Will copy currentLocation over each other location. | |
void | test () |
Some tests. |
This is the database access wrapper, It manage database and backups locations.
Definition at line 36 of file dbcore.hpp.
void DBCore::init | ( | Cores * | cores | ) | [virtual] |
Called once, after all CORES are loaded.
cores | The already loaded CORES. |
Implements Core.
Definition at line 59 of file dbcore.cpp.