1 #ifndef H_EXTENSIONS_CUTEHMI_SHAREDDATABASE_0_INCLUDE_CUTEHMI_SHAREDDATABASE_DATAOBJECT_HPP
2 #define H_EXTENSIONS_CUTEHMI_SHAREDDATABASE_0_INCLUDE_CUTEHMI_SHAREDDATABASE_DATAOBJECT_HPP
4 #include "internal/common.hpp"
5 #include "DatabaseWorker.hpp"
7 #include <cutehmi/InplaceError.hpp>
17 namespace shareddatabase {
31 Q_PROPERTY(
QString connectionName READ connectionName WRITE setConnectionName RESET resetConnectionName NOTIFY connectionNameChanged)
36 Q_PROPERTY(
bool busy READ busy NOTIFY busyChanged)
54 void setConnectionName(const
QString & connectionName);
59 void resetConnectionName();
74 void connectionNameChanged();
112 void incrementBusy();
117 void decrementBusy();
125 virtual
void processErrors();
134 void onDatabaseWorkerRefused(const
QString & reason);
142 mutable QMutex sqlErrorsMutex;