Project Documentation Manager BRIGADOON-0002
Project Documentation Manager
Loading...
Searching...
No Matches
databasemanager.h
Go to the documentation of this file.
1
6#ifndef DATABASEMANAGER_H
7#define DATABASEMANAGER_H
8
9#include <QObject>
10#include <ui_mainwindow.h>
11#include "logger.h"
12
13
18class DatabaseManager : public QObject
19{
20 Q_OBJECT
21public:
22
28 explicit DatabaseManager(Ui::MainWindow* UI_Window);
29
35
36private:
42 void LoadDatabaseDrivers(QComboBox *DriverList);
43
48 bool Open(void);
49
54 void RemoveDatabase(void);
55
64 bool CheckIfOpen(bool IsOpen);
65
73 void LogAdd(LOGGING_SEVERITY Severity, LOGGING_MODE Mode, QString Message);
74
79 Ui::MainWindow* ui;
80
85
90 bool is_open;
91
92public slots:
93
98 void ReconnectDatabase(void);
99
104 void LoadDefaultDBParameters(void);
105
106signals:
107
114};
115
116#endif // DATABASEMANAGER_H
void ReconnectDatabase(void)
Reconnect to the databse using the current parameters.
bool is_open
Flag to indicate if database is open.
Ui::MainWindow * ui
Pointer to the Main Window.
void LoadDatabaseDrivers(QComboBox *DriverList)
Load the know Database Drivers.
bool Open(void)
Open the Database witht selected parameters.
DatabaseManager(Ui::MainWindow *UI_Window)
Database Class Constructor.
void LoadDefaultDBParameters(void)
Load the default Database Paranmeters.
bool is_database
Flag to indicate if there is a database.
void RemoveDatabase(void)
Remove the current active database.
bool CheckIfOpen(bool IsOpen)
Set the Database Image based on IsOpenFlag.
void SendLogEntry(REMOTE_LOG_ENTRY LogEntry)
Send Log Entry via the Signal-Slot Method.
void LogAdd(LOGGING_SEVERITY Severity, LOGGING_MODE Mode, QString Message)
Send Message to the Log.
~DatabaseManager()
Database Manager Deconstructor.
LOGGING_SEVERITY
Log Severity allow the selection of logging events based on Severity.
Definition logger.h:48
LOGGING_MODE
Log Severity allow the selection of logging events based on the mode.
Definition logger.h:21
Definition logger.h:60