Heart
1.4.918.d927d9c
Heart is base back end library for your c++ Qt projects.
Toggle main menu visibility
Loading...
Searching...
No Matches
bigdatarequest.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2021-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 "
bigdatarequest.h
"
9
10
namespace
QH
{
11
namespace
PKG
{
12
13
BigDataRequest::BigDataRequest
() {
14
15
}
16
17
QDataStream &
BigDataRequest::fromStream
(QDataStream &stream) {
18
BigDataBase::fromStream
(stream);
19
20
stream >> _currentPart;
21
22
return
stream;
23
}
24
25
QDataStream &
BigDataRequest::toStream
(QDataStream &stream)
const
{
26
BigDataBase::toStream
(stream);
27
28
stream << _currentPart;
29
30
return
stream;
31
}
32
33
int
BigDataRequest::currentPart
()
const
{
34
return
_currentPart;
35
}
36
37
void
BigDataRequest::setCurrentPart
(
int
newCurrentPart) {
38
_currentPart = newCurrentPart;
39
}
40
41
}
42
}
bigdatarequest.h
QH::PKG::BigDataBase::fromStream
QDataStream & fromStream(QDataStream &stream) override
fromStream This method should be read all bytes from the stream object and full the current object.
Definition
bigdatabase.cpp:27
QH::PKG::BigDataBase::toStream
QDataStream & toStream(QDataStream &stream) const override
fromStream This method should be write all members of the current object to the stream object.
Definition
bigdatabase.cpp:34
QH::PKG::BigDataRequest::fromStream
QDataStream & fromStream(QDataStream &stream) override
fromStream This method should be read all bytes from the stream object and full the current object.
Definition
bigdatarequest.cpp:17
QH::PKG::BigDataRequest::BigDataRequest
BigDataRequest()
Definition
bigdatarequest.cpp:13
QH::PKG::BigDataRequest::currentPart
int currentPart() const
currentPart This method return current part number.
Definition
bigdatarequest.cpp:33
QH::PKG::BigDataRequest::toStream
QDataStream & toStream(QDataStream &stream) const override
fromStream This method should be write all members of the current object to the stream object.
Definition
bigdatarequest.cpp:25
QH::PKG::BigDataRequest::setCurrentPart
void setCurrentPart(int newCurrentPart)
setCurrentPart This method sets current new value of current page
Definition
bigdatarequest.cpp:37
QH::PKG
The PKG namesapce - this namespace contains all default packages of the Heart library....
Definition
heart.h:211
QH
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition
heart.cpp:13
src
public
packages
bigdatarequest.cpp
Generated by
1.18.0