defuze.me  Client
Public Member Functions
DB::DBCore Class Reference

This is the database access wrapper, It manage database and backups locations. More...

#include <dbcore.hpp>

Inheritance diagram for DB::DBCore:
Inheritance graph
[legend]
Collaboration diagram for DB::DBCore:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

This is the database access wrapper, It manage database and backups locations.

Definition at line 36 of file dbcore.hpp.


Member Function Documentation

void DBCore::init ( Cores cores) [virtual]

Called once, after all CORES are loaded.

Parameters:
coresThe already loaded CORES.

Implements Core.

Definition at line 59 of file dbcore.cpp.


The documentation for this class was generated from the following files: