mirror of
https://github.com/QuasarApp/Heart.git
synced 2025-05-04 21:49:40 +00:00
25 lines
478 B
C++
25 lines
478 B
C++
#include "basenodeinfo.h"
|
|
#include <QTcpSocket>
|
|
#include <QHostAddress>
|
|
|
|
namespace ClientProtocol {
|
|
|
|
bool BaseNodeInfo::isValid() const {
|
|
return AbstractNodeInfo::isValid() && !_token.isEmpty();
|
|
}
|
|
|
|
BaseNodeInfo::BaseNodeInfo(QAbstractSocket *tcp, NodeType type):
|
|
AbstractNodeInfo(tcp, type){}
|
|
|
|
BaseNodeInfo::~BaseNodeInfo(){}
|
|
|
|
QByteArray BaseNodeInfo::token() const {
|
|
return _token;
|
|
}
|
|
|
|
void BaseNodeInfo::setToken(const QByteArray &token) {
|
|
_token = token;
|
|
}
|
|
|
|
}
|