Heart
1.3.848.aa44c26
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-2025 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
16
namespace
QH
{
17
18
using namespace
PKG;
19
20
AsyncSqlDBWriter::AsyncSqlDBWriter
(QObject *ptr):
21
SqlDBWriter
(new QThread(), ptr) {
22
thread()->setObjectName(
"AsyncSqlDbWriter"
);
23
thread()->start();
24
}
25
26
AsyncSqlDBWriter::~AsyncSqlDBWriter
() {
27
thread()->quit();
28
thread()->wait();
29
30
thread()->deleteLater();
31
}
32
}
asyncsqldbwriter.h
QH::AsyncSqlDBWriter::AsyncSqlDBWriter
AsyncSqlDBWriter(QObject *ptr=nullptr)
Definition
asyncsqldbwriter.cpp:20
QH::AsyncSqlDBWriter::~AsyncSqlDBWriter
~AsyncSqlDBWriter()
Definition
asyncsqldbwriter.cpp:26
QH::SqlDBWriter
The SqlDBWriter class. This class write and read objects from database (hard level)....
Definition
sqldbwriter.h:36
dbobject.h
QH
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition
heart.cpp:13
src
public
asyncsqldbwriter.cpp
Generated by
1.9.8