Heart
1.4.918.d927d9c
Heart is base back end library for your c++ Qt projects.
Toggle main menu visibility
Loading...
Searching...
No Matches
datasender.h
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
9
#ifndef DATASENDER_H
10
#define DATASENDER_H
11
12
#include "
async.h
"
13
14
15
class
QAbstractSocket;
16
17
namespace
QH
{
18
22
class
DataSender
:
public
Async
23
{
24
Q_OBJECT
25
public
:
26
DataSender
(QThread *thread);
27
34
bool
sendData
(
const
QByteArray &array,
void
*target,
bool
await =
false
)
const
;
35
36
private
:
37
43
bool
sendPackagePrivate(QByteArray array,
void
*target)
const
;
44
};
45
}
46
#endif
// DATASENDER_H
async.h
QH::Async::Async
Async(QThread *thread)
Async This is default constructor of the async object.
Definition
async.cpp:38
QH::DataSender::DataSender
DataSender(QThread *thread)
Definition
datasender.cpp:16
QH::DataSender::sendData
bool sendData(const QByteArray &array, void *target, bool await=false) const
sendPackagePrivate This slot move send package to a main thread.
Definition
datasender.cpp:21
QH
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition
heart.cpp:13
src
private
datasender.h
Generated by
1.18.0