Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
asyncsqldbwriter.cpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018-2024 QuasarApp.
3 * Distributed under the lgplv3 software license, see the accompanying
4 * Everyone is permitted to copy and distribute verbatim copies
5 * of this license document, but changing it is not allowed.
6*/
7
8#include "asyncsqldbwriter.h"
9
10#include <QDateTime>
11#include <QMetaMethod>
12#include <QThread>
13#include <dbobject.h>
14#include <quasarapp.h>
15
16namespace QH {
17
18using namespace PKG;
19
21 SqlDBWriter(new QThread(), ptr) {
22 thread()->setObjectName("AsyncSqlDbWriter");
23 thread()->start();
24}
25
27 thread()->quit();
28 thread()->wait();
29
30 thread()->deleteLater();
31}
32}
AsyncSqlDBWriter(QObject *ptr=nullptr)
The SqlDBWriter class. This class write and read objects from database (hard level)....
Definition sqldbwriter.h:36
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13