Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
bigdatapart.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021-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 BIGDATAPART_H
10#define BIGDATAPART_H
11
12#include "bigdatabase.h"
13
14
15namespace QH {
16namespace PKG {
17
22{
23 QH_PACKAGE("BigDataPart")
24
25public:
27
32 int getPakckageNumber() const;
33
38 void setPakckageNumber(int newPakckageNumber);
39
40 bool isValid() const override;
41 QString toString() const override;
42
47 const QByteArray &data() const;
48
53 void setData(const QByteArray &newData);
54
55protected:
56 QDataStream &fromStream(QDataStream &stream) override;
57 QDataStream &toStream(QDataStream &stream) const override;
58
59private:
60 int _pakckageNumber = 0;
61 QByteArray _data;
62};
63}
64}
65#endif // BIGDATAPART_H
#define QH_PACKAGE(S)
QH_PACKAGE This macross prepare data to send and create a global id for package. For get global id us...
The BigDataBase class This is base class of big data parts. This class contains id of movving pacakge...
Definition bigdatabase.h:21
The BigDataPart class This data class used for transporting big data files greater than 64kb.
Definition bigdatapart.h:22
#define HEARTSHARED_EXPORT
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13