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