You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1016 B
36 lines
1016 B
4 years ago
|
#ifndef DATABASEMANAGER_H
|
||
|
#define DATABASEMANAGER_H
|
||
|
|
||
|
#include <QtSql>
|
||
|
#include <QMutex>
|
||
|
|
||
|
#include "model/ultrasoundModule/UsModule.h"
|
||
|
#include "config/Configuration.h"
|
||
|
#include "model/databaseManager/core/DatabaseManagerCore.h"
|
||
|
|
||
|
/*************************************************************************************************/
|
||
|
/**
|
||
|
* @brief Is responsible for database management i.e. CRUD operations on tables
|
||
|
* @details This module will take commands from other classes and does the database stuff, for
|
||
|
* example it will read requested data or writes new ones, at the first run it also creates the DB
|
||
|
* scheme with provided files
|
||
|
* @author Mohammad Mohsen Talaie
|
||
|
* @date 20 sep 2020
|
||
|
*/
|
||
|
/*************************************************************************************************/
|
||
|
class DatabaseManager : public UsModule
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
US_MODULE
|
||
|
SINGLETON(DatabaseManager)
|
||
|
|
||
|
private:
|
||
|
DatabaseManagerCore* _core;
|
||
|
|
||
|
public:
|
||
|
DatabaseManager();
|
||
|
~DatabaseManager() override;
|
||
|
};
|
||
|
|
||
|
#endif //DATABASEMANAGER_H
|