mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Settings DB
This commit is contained in:
@@ -6,6 +6,14 @@
|
||||
#include "interfacedatabaselms.h"
|
||||
#include "tasksAmmFim.h"
|
||||
|
||||
class CheckResult
|
||||
{
|
||||
public:
|
||||
bool resDriver = false;
|
||||
bool resUser = false;
|
||||
bool resDB = false;
|
||||
};
|
||||
|
||||
class ProviderDBLMS : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -80,10 +88,16 @@ signals:
|
||||
void signal_ResultTryConnectDb(bool result);
|
||||
void signal_ResultTryDisConnectDb(bool result);
|
||||
|
||||
void signal_CheckDBResult(CheckResult result);
|
||||
void signal_RepareDBResult(CheckResult result);
|
||||
|
||||
public slots:
|
||||
void slot_TryConnectionToDB();
|
||||
void slot_TryDisConnectionFromDB();
|
||||
|
||||
void slot_CheckDB();
|
||||
void slot_RepareDB(CheckResult result);
|
||||
|
||||
private:
|
||||
bool ConnectionToDB();
|
||||
void DisConnectionFromDB();
|
||||
@@ -93,8 +107,8 @@ public:
|
||||
DataBaseSettings getDBSettings();
|
||||
|
||||
//PostgreSQL
|
||||
bool setUserPasswordPostgres(QString userName, QString password);
|
||||
bool checkDriverQPSQLavailable();
|
||||
static bool checkDriverQPSQLavailable();
|
||||
static bool setUserPasswordPostgres(QString userName, QString password);
|
||||
bool checkUserLMSexist();
|
||||
bool checkDataBaseLMSexist();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user