Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
ping.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018-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 PING_H
10#define PING_H
11
12#include "abstractdata.h"
13
14
15namespace QH {
16namespace PKG {
17
22{
23 QH_PACKAGE("Ping")
24
25public:
26 Ping();
27 Ping(const Package& from);
28
29 // AbstractData interface
34 bool isValid() const override;
35
41 bool ansver() const;
42
43/* I thing you need to correct the name of this method. From "setAnsver" to "setAnswer" */
44
49 void setAnsver(bool ansver);
50
51protected:
52 // StreamBase interface
53 QDataStream &fromStream(QDataStream &stream) override;
54 QDataStream &toStream(QDataStream &stream) const override;
55
56private:
57 bool _ansver = false;
58};
59}
60}
61#endif // PING_H
62
63
64
#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 AbstractData class is provide base functions for transport data by network For create you own pac...
The Ping class - test class for translate data on network.
Definition ping.h:22
The Package struct. This is base structure for transporting data by network between QH nodes....
Definition package.h:23
#define HEARTSHARED_EXPORT
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13