13#include <QHostAddress>
36 unsigned short port()
const;
42 void setPort(
unsigned short port);
44 friend QDataStream& operator << (QDataStream& stream,
const HostAddress& address);
45 friend QDataStream& operator >> (QDataStream& stream,
HostAddress& address);
47 friend bool& operator == (QDataStream& stream,
HostAddress& address);
48 friend bool& operator != (QDataStream& stream,
HostAddress& address);
56 static bool isIP(
const QString& address);
68 QString toString()
const;
74 QByteArray toBytes()
const;
81 bool fromBytes(
const QByteArray& array);
84 unsigned short _port = 0;
The Host Address class this is wrapper of QHostAddress. Contains the NetworkAddress and network port.
#define HEARTSHARED_EXPORT
Q_DECLARE_METATYPE(QH::HostAddress)
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
uint qHash(NodeCoonectionStatus status)
qHash - Simple hash function of NodeCoonectionStatus