30 static unsigned short version(){
return 0;}
32 static QString
commandText(){
return "PROTOCKOL_VERSION_COMMAND";}
50 QDataStream &
fromStream(QDataStream &stream)
override;
51 QDataStream &
toStream(QDataStream &stream)
const override;
#define PROTOCKOL_VERSION_COMMAND
PROTOCKOL_VERSION_COMMAND is command for exchange versions number betwin nodes.
The APIVersion class This is base pacakge class that send information about supported api version on ...
static QString commandText()
void setPackagesVersions(const PackagesVersionData &newPackagesVersions)
static unsigned short command()
void setApisVersions(const VersionData &newApisVersions)
bool isValid() const override
isValid This method check current object to valid.
VersionData apisVersions() const
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)
QString cmdString() const override
cmdString - This is command string of this object, (for generate cmd use macross QH_PACKAGE)
static unsigned short version()
PackagesVersionData packagesVersions() const
packagesVersions This method return list of available multi-version packages on the node.
QDataStream & toStream(QDataStream &stream) const override
fromStream This method should be write all members of the current object to the stream object.
The AbstractData class is provide base functions for transport data by network For create you own pac...
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
QHash< QString, DistVersion > VersionData
VersionData This is array of all available apis and supported its versions.
QHash< unsigned short, DistVersion > PackagesVersionData
PackagesVersionData This is some as VersionData but for int commands.