1 #ifndef H_EXTENSIONS_CUTEHMI_SHAREDDATABASE_0_INCLUDE_CUTEHMI_SHAREDDATABASE_INTERNAL_DATABASECONNECTIONHANDLER_HPP
2 #define H_EXTENSIONS_CUTEHMI_SHAREDDATABASE_0_INCLUDE_CUTEHMI_SHAREDDATABASE_INTERNAL_DATABASECONNECTIONHANDLER_HPP
5 #include "DatabaseConfig.hpp"
7 #include <cutehmi/InplaceError.hpp>
10 #include <QBasicTimer>
11 #include <QSqlDatabase>
15 namespace shareddatabase {
26 static constexpr
int INITIAL_MONITOR_INTERVAL = 1000;
28 static constexpr
int INITIAL_MAINTENANCE_INTERVAL = 1000 * 60 * 60 * 12;
38 void connected(
QString connectionName);
40 void disconnected(
QString connectionName);
61 monitorInterval(INITIAL_MONITOR_INTERVAL),