mirror of
https://github.com/QuasarApp/Heart.git
synced 2025-04-27 18:24:38 +00:00
30 lines
647 B
C++
30 lines
647 B
C++
#ifndef LONGPING_H
|
|
#define LONGPING_H
|
|
|
|
#include "ping.h"
|
|
#include <senderdata.h>
|
|
|
|
namespace QH {
|
|
|
|
/**
|
|
* @brief The LongPing class - test class for big network with return addresse
|
|
*/
|
|
class NETWORKPROTOCOLSHARED_EXPORT LongPing: public Ping, public SenderData
|
|
{
|
|
public:
|
|
LongPing(const BaseId &sender);
|
|
LongPing(const Package& from);
|
|
|
|
// AbstractData interface
|
|
bool isValid() const override;
|
|
bool copyFrom(const AbstractData *) override;
|
|
|
|
// StreamBase interface
|
|
protected:
|
|
QDataStream &fromStream(QDataStream &stream) override;
|
|
QDataStream &toStream(QDataStream &stream) const override;
|
|
|
|
};
|
|
}
|
|
#endif // LONGPING_H
|