20 unsigned short midMax = std::min(distVersion.
max(), _max);
21 unsigned short midMin = std::max(distVersion.
min(), _min);
30 unsigned short midMax = std::min(distVersion.
max(), _max);
31 unsigned short midMin = std::max(distVersion.
min(), _min);
40 return _min <= version && version <= _max;
44 return QString(
"%0:%1").arg(_min).arg(_max);
60DistVersion::operator bool()
const {
The DistVersion class This is information of supported versions of the destinations api.
int getMinCompatible(const DistVersion &distVersion) const
getMinСompatible return maximum available on booth nodes version.
void setMax(unsigned short newMax)
bool isSupport(unsigned short version) const
isSupport This method return true if the version is supported of this versions range.
void setMin(unsigned short newMin)
QDataStream & toStream(QDataStream &stream) const override
fromStream This method should be write all members of the current object to the stream object.
unsigned short min() const
unsigned short max() const
QDataStream & fromStream(QDataStream &stream) override
fromStream This method should be read all bytes from the stream object and full the current object.
QString toString() const override
int getMaxCompatible(const DistVersion &distVersion) const
getMaxСompatible return maximum available on booth nodes version.
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...