Heart 1.4.918.d927d9c
Heart is base back end library for your c++ Qt projects.
Loading...
Searching...
No Matches
versionisreceived.h
Go to the documentation of this file.
1//#
2//# Copyright (C) 2020-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 VERSIONISRECEIVED_H
10#define VERSIONISRECEIVED_H
11
12#include <abstractdata.h>
13
14namespace QH {
15namespace PKG {
16
21{
22
23public:
25 static unsigned short version(){return 0;}
26
27 static unsigned short command(){return PROTOCKOL_VERSION_RECEIVED_COMMAND;}
28 static QString commandText(){return "PROTOCKOL_VERSION_RECEIVED_COMMAND";}
29 unsigned short cmd() const override {return VersionIsReceived::command();}
30 QString cmdString() const override {return VersionIsReceived::commandText();}
31
32
33 // StreamBase interface
34protected:
35 QDataStream &fromStream(QDataStream &stream) override;
36 QDataStream &toStream(QDataStream &stream) const override;
37};
38}
39}
40#endif // VERSIONISRECEIVED_H
#define PROTOCKOL_VERSION_RECEIVED_COMMAND
PROTOCKOL_VERSION_RECEIVED_COMMAND is command for check delivered version.
The AbstractData class is provide base functions for transport data by network For create you own pac...
QDataStream & fromStream(QDataStream &stream) override
fromStream This method should be read all bytes from the stream object and full the current object.
unsigned short cmd() const override
cmd - This is command of this object, (for generate cmd use macross QH_PACKAGE)
static unsigned short command()
QDataStream & toStream(QDataStream &stream) const override
fromStream This method should be write all members of the current object to the stream object.
QString cmdString() const override
cmdString - This is command string of this object, (for generate cmd use macross QH_PACKAGE)
static unsigned short version()
The PKG namesapce - this namespace contains all default packages of the Heart library....
Definition heart.h:211
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13