Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
datasender.h
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
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
The Async class This is bundle of async templates and async wrappers.
Definition async.h:26
The DataSender class this class create a queue for sendet data to network.
Definition datasender.h:23
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