diff --git a/CMakeLists.txt b/CMakeLists.txt index 1cd7893..b902d35 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ # -# Copyright (C) 2018-2020 QuasarApp. +# Copyright (C) 2018-2021 QuasarApp. # Distributed under the lgplv3 software license, see the accompanying # Everyone is permitted to copy and distribute verbatim copies # of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/Private/packadata.cpp b/Heart/AbstractSpace/Private/packadata.cpp index 3dcf57f..c8025e6 100644 --- a/Heart/AbstractSpace/Private/packadata.cpp +++ b/Heart/AbstractSpace/Private/packadata.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/Private/packadata.h b/Heart/AbstractSpace/Private/packadata.h index 7111a2f..a9a5660 100644 --- a/Heart/AbstractSpace/Private/packadata.h +++ b/Heart/AbstractSpace/Private/packadata.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/Private/receivedata.cpp b/Heart/AbstractSpace/Private/receivedata.cpp index f4dc1ab..c4bbc19 100644 --- a/Heart/AbstractSpace/Private/receivedata.cpp +++ b/Heart/AbstractSpace/Private/receivedata.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/Private/receivedata.h b/Heart/AbstractSpace/Private/receivedata.h index 9d71304..44f17c8 100644 --- a/Heart/AbstractSpace/Private/receivedata.h +++ b/Heart/AbstractSpace/Private/receivedata.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/abstractnode.cpp b/Heart/AbstractSpace/abstractnode.cpp index 36a5cb8..5b3e12d 100644 --- a/Heart/AbstractSpace/abstractnode.cpp +++ b/Heart/AbstractSpace/abstractnode.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. @@ -178,12 +178,6 @@ void AbstractNode::addNode(const HostAddress &nodeAdderess) { void AbstractNode::removeNode(const HostAddress &nodeAdderess) { - for (int status = static_cast(NodeCoonectionStatus::NotConnected); - status < static_cast(NodeCoonectionStatus::Confirmed); ++status) { - - takeFromQueue(nodeAdderess, static_cast(status)); - } - if (AbstractNodeInfo *ptr = getInfoPtr(nodeAdderess)) { if (ptr->isLocal()) { @@ -362,23 +356,18 @@ bool AbstractNode::registerSocket(QAbstractSocket *socket, const HostAddress* cl _connectionsMutex.unlock(); - connect(info, &AbstractNodeInfo::sigReadyRead, this, &AbstractNode::avelableBytes); + connect(info, &AbstractNodeInfo::sigReadyRead, + this, &AbstractNode::avelableBytes); // using direct connection because socket clear all data of ip and port after disconnected. - connect(info, &AbstractNodeInfo::sigDisconnected, this, &AbstractNode::handleDisconnected, - Qt::DirectConnection); - - connect(info, &AbstractNodeInfo::sigConnected, this, &AbstractNode::handleConnected, + connect(info, &AbstractNodeInfo::statusChaned, + this, &AbstractNode::handleNodeStatusChanged, Qt::QueuedConnection); - if (info->isConnected()) { - emit socket->connected(); - } - - // check node confirmed - QTimer::singleShot(WAIT_TIME, this, - std::bind(&AbstractNode::handleCheckConfirmendOfNode, this, cliAddress)); + QTimer::singleShot(WAIT_TIME, [this, info]() { + checkConfirmendOfNode(info); + }); connectionRegistered(info); @@ -766,51 +755,6 @@ void AbstractNode::avelableBytes(AbstractNodeInfo *sender) { } } -void AbstractNode::handleDisconnected(AbstractNodeInfo* sender) { - if (!sender) { - QuasarAppUtils::Params::log("system error in void Server::handleDisconected()" - " address not valid", - QuasarAppUtils::Error); - return; - } - - sender->setStatus(NodeCoonectionStatus::NotConnected); - nodeStatusChanged(sender->networkAddress(), NodeCoonectionStatus::NotConnected); - - return; -} - -void AbstractNode::handleConnected(AbstractNodeInfo *sender) { - - if (!sender) { - QuasarAppUtils::Params::log("system error in void Server::handleDisconected()" - " address not valid", - QuasarAppUtils::Error); - return; - } - - sender->setStatus(NodeCoonectionStatus::Connected); - nodeStatusChanged(sender->networkAddress(), NodeCoonectionStatus::Connected); - - return; -} - -void AbstractNode::nodeConfirmet(AbstractNodeInfo *sender) { - if (!sender) { - QuasarAppUtils::Params::log("system error in void Server::handleDisconected()" - " address not valid", - QuasarAppUtils::Error); - return; - } - - sender->setStatus(NodeCoonectionStatus::Confirmed); - nodeStatusChanged(sender->networkAddress(), NodeCoonectionStatus::Confirmed); -} - -void AbstractNode::handleCheckConfirmendOfNode(HostAddress node) { - checkConfirmendOfNode(node); -} - void AbstractNode::handleWorkerStoped() { auto senderObject = dynamic_cast*>(sender()); @@ -857,12 +801,7 @@ void AbstractNode::newWork(const Package &pkg, AbstractNodeInfo *sender, } _confirmNodeMutex.lock(); - - bool fConfirmed = sender->confirmData(); - if (fConfirmed && sender->status() != NodeCoonectionStatus::Confirmed) { - nodeConfirmet(sender); - } - + sender->updateConfirmStatus(); _confirmNodeMutex.unlock(); @@ -928,44 +867,11 @@ void AbstractNode::connectionRegistered(const AbstractNodeInfo *info) { Q_UNUSED(info) } -void AbstractNode::pushToQueue(const std::function& action, - const HostAddress &node, - NodeCoonectionStatus triggerStatus) { - - _actionCacheMutex.lock(); - _actionCache[node][triggerStatus].push_back(action); - _actionCacheMutex.unlock(); - -} - -QList > -AbstractNode::takeFromQueue(const HostAddress &node, - NodeCoonectionStatus triggerStatus) { - - _actionCacheMutex.lock(); - - auto list = _actionCache[node][triggerStatus]; - _actionCache[node].remove(triggerStatus); - - if (_actionCache[node].size() == 0) - _actionCache.remove(node); - - _actionCacheMutex.unlock(); - - return list; -} - void AbstractNode::prepareForDelete() { stop(); } -void AbstractNode::nodeStatusChanged(const HostAddress &node, NodeCoonectionStatus status) { - - auto list = takeFromQueue(node, status); - - for (const auto &action : list) { - action(); - } +void AbstractNode::handleNodeStatusChanged(AbstractNodeInfo *node, NodeCoonectionStatus status) { if (status == NodeCoonectionStatus::NotConnected) { nodeDisconnected(node); @@ -976,26 +882,25 @@ void AbstractNode::nodeStatusChanged(const HostAddress &node, NodeCoonectionStat } } -void AbstractNode::nodeConfirmend(const HostAddress &node) { +void AbstractNode::nodeConfirmend(AbstractNodeInfo *node) { Q_UNUSED(node) } -void AbstractNode::nodeConnected(const HostAddress &node) { +void AbstractNode::nodeConnected(AbstractNodeInfo *node) { Q_UNUSED(node) } -void AbstractNode::nodeDisconnected(const HostAddress &node) { +void AbstractNode::nodeDisconnected(AbstractNodeInfo *node) { Q_UNUSED(node) } -void AbstractNode::checkConfirmendOfNode(const HostAddress &node) { - auto info = getInfoPtr(node); +void AbstractNode::checkConfirmendOfNode(AbstractNodeInfo *info) { if(!info) return; if (info->status() != NodeCoonectionStatus::Confirmed) { - removeNode(node); + removeNode(info->networkAddress()); } } diff --git a/Heart/AbstractSpace/abstractnode.h b/Heart/AbstractSpace/abstractnode.h index 530165e..482d33d 100644 --- a/Heart/AbstractSpace/abstractnode.h +++ b/Heart/AbstractSpace/abstractnode.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. @@ -457,56 +457,26 @@ protected: */ virtual void connectionRegistered(const AbstractNodeInfo *info); - /** - * @brief nodeStatusChanged This method invoked when status of node chganged. - * Base implementation do nothing. Override this method for add own functionality. - * @param node This is address of changed node. - * @param status This is new status of node. - * - */ - void nodeStatusChanged(const HostAddress& node, NodeCoonectionStatus status); - /** * @brief nodeConfirmend This method invocked when the node status changed to "confirmend" * default implementatio do nothing * @param node This is address of changed node */ - virtual void nodeConfirmend(const HostAddress& node); + virtual void nodeConfirmend(AbstractNodeInfo *node); /** * @brief nodeConnected This method invocked when the node status changed to "connected" * default implementatio do nothing * @param node This is address of changed node */ - virtual void nodeConnected(const HostAddress& node); + virtual void nodeConnected(AbstractNodeInfo *node); /** * @brief nodeConnected This method invocked when the node status changed to "disconnected" * default implementatio do nothing * @param node This is address of changed node */ - virtual void nodeDisconnected(const HostAddress& node); - - - /** - * @brief pushToQueue - This method add action to queue. When the node status will be equal 'triggerStatus' then node run a action method. - * @param node This is address of node that changed status. - * @param action This is lyamda function with action. - * @param triggerStatus This is awaiting status of node. - */ - void pushToQueue(const std::function &action, - const HostAddress& node, - NodeCoonectionStatus triggerStatus); - - /** - * @brief takeFromQueue This method take the list of actions of node. - * After invoke take elements will be removed. - * @param node This is address of node that changed status. - * @param triggerStatus This is awaiting status of node. - * @return The list of an actions - */ - QList> takeFromQueue(const HostAddress& node, - NodeCoonectionStatus triggerStatus); + virtual void nodeDisconnected(AbstractNodeInfo *node); void prepareForDelete() override; @@ -514,9 +484,14 @@ protected: private slots: void avelableBytes(AbstractNodeInfo* sender); - void handleDisconnected(AbstractNodeInfo* sender); - void handleConnected(AbstractNodeInfo* sender); - void handleCheckConfirmendOfNode(HostAddress node); + + /** + * @brief handleNodeStatusChanged This method invoked when status of peer node chganged. + * @param node This is address of changed node. + * @param status This is new status of node. + * + */ + void handleNodeStatusChanged(AbstractNodeInfo* node, NodeCoonectionStatus status); /** * @brief handleWorkerStoped @@ -549,32 +524,22 @@ private: */ void newWork(const Package &pkg, AbstractNodeInfo *sender, const HostAddress &id); - - /** - * @brief nodeConfirmet - this metthod invoked when node is confirment. - * @param sender - node with new status; - */ - void nodeConfirmet(AbstractNodeInfo *sender); - /** * @brief checkConfirmendOfNode - this method remove old not confirmed node. * @param node - node address */ - void checkConfirmendOfNode(const HostAddress& node); + void checkConfirmendOfNode(AbstractNodeInfo *node); SslMode _mode = SslMode::NoSSL; QSslConfiguration _ssl; QHash _connections; QHash _receiveData; - QHash>>> _actionCache; - DataSender * _dataSender = nullptr; QSet*> _workers; mutable QMutex _connectionsMutex; - mutable QMutex _actionCacheMutex; mutable QMutex _confirmNodeMutex; QThreadPool *_threadPool = nullptr; diff --git a/Heart/AbstractSpace/abstractnodeinfo.cpp b/Heart/AbstractSpace/abstractnodeinfo.cpp index 992e3d8..0573984 100644 --- a/Heart/AbstractSpace/abstractnodeinfo.cpp +++ b/Heart/AbstractSpace/abstractnodeinfo.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. @@ -27,16 +27,16 @@ QAbstractSocket *AbstractNodeInfo::sct() const { return _sct; } -void AbstractNodeInfo::disconnect(bool disableEvents) { +void AbstractNodeInfo::disconnect() { if (_sct) { auto socketPtr = _sct; - - if (disableEvents) - socketPtr->disconnect(); + socketPtr->disconnect(); _sct = nullptr; socketPtr->close(); socketPtr->deleteLater(); + + setStatus(NodeCoonectionStatus::NotConnected); } } @@ -54,20 +54,37 @@ void AbstractNodeInfo::unBan() { } void AbstractNodeInfo::setSct(QAbstractSocket *sct) { - QObject::disconnect(_sct, nullptr, this, nullptr); + + AbstractNodeInfo::disconnect(); _sct = sct; - if (_sct && !_sct->peerAddress().isNull()) { + + if (!_sct) + return; + + + if (!_sct->peerAddress().isNull()) { setNetworkAddress(HostAddress{_sct->peerAddress(), _sct->peerPort()}); } + auto connectedF = [this] () { + + setStatus(NodeCoonectionStatus::Connected); + emit sigConnected(this); + }; + + auto diconnectedF = [this] () { + + disconnect(); + setStatus(NodeCoonectionStatus::NotConnected); + emit sigDisconnected(this); + }; + connect(_sct, &QAbstractSocket::connected, - this, [this] (){ emit sigConnected(this);}, - Qt::DirectConnection); + this, connectedF, Qt::DirectConnection); connect(_sct, &QAbstractSocket::disconnected, - this, [this] (){ disconnect(), emit sigDisconnected(this);}, - Qt::DirectConnection); + this, diconnectedF, Qt::DirectConnection); connect(_sct, &QAbstractSocket::errorOccurred, this, [this] (QAbstractSocket::SocketError err){emit sigErrorOccurred(this, err);}, @@ -76,6 +93,10 @@ void AbstractNodeInfo::setSct(QAbstractSocket *sct) { connect(_sct, &QAbstractSocket::readyRead, this, [this] (){ emit sigReadyRead(this);}, Qt::DirectConnection); + + if (_sct->state() == QAbstractSocket::ConnectedState) { + connectedF(); + } } void AbstractNodeInfo::setIsLocal(bool isLocal) { @@ -87,13 +108,24 @@ NodeCoonectionStatus AbstractNodeInfo::status() const { } void AbstractNodeInfo::setStatus(const NodeCoonectionStatus &status) { + if (status == _status) { + return; + } + _status = status; + + emit statusChaned(this, _status); } bool AbstractNodeInfo::confirmData() const { return _status != NodeCoonectionStatus::NotConnected; } +void AbstractNodeInfo::updateConfirmStatus() { + if (confirmData()) + setStatus(NodeCoonectionStatus::Confirmed); +} + bool AbstractNodeInfo::isLocal() const { return _isLocal; } @@ -146,7 +178,7 @@ bool AbstractNodeInfo::isValid() const { } bool AbstractNodeInfo::isConnected() const { - return isValid() && _sct->state() == QAbstractSocket::ConnectedState; + return isValid() && status() != NodeCoonectionStatus::NotConnected; } QDataStream &AbstractNodeInfo::fromStream(QDataStream &stream) { diff --git a/Heart/AbstractSpace/abstractnodeinfo.h b/Heart/AbstractSpace/abstractnodeinfo.h index 5221783..5b7e519 100644 --- a/Heart/AbstractSpace/abstractnodeinfo.h +++ b/Heart/AbstractSpace/abstractnodeinfo.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. @@ -89,7 +89,7 @@ public: * @brief disconnect This method disconnect device from host * @param disableEvents This argument force nodeInfo object invoke a QObject::disconect method of socket object befor close connection. This using on the poweroff signals. By Default this arguments = false. */ - virtual void disconnect(bool disableEvents = false); + virtual void disconnect(); /** * @brief ban this node, set trust value to 0. @@ -184,11 +184,9 @@ public: void setStatus(const NodeCoonectionStatus &status); /** - * @brief confirmData This method check all data of node and return true - * if node is confirmed. - * @return true if node is confirmed + * @brief updateConfirmStatus This method invoked after process a received pacakge and update confitm status of the node. */ - virtual bool confirmData() const; + void updateConfirmStatus(); /** * @brief isLocal return true if connectuion opened on this node. @@ -230,7 +228,28 @@ signals: */ void sigErrorOccurred(AbstractNodeInfo* thisNode, QAbstractSocket::SocketError socketError); + /** + * @brief sigConfirmed This signal emitted when node is confirmend. The confirm status sets in the confirmData method. + * @param thisNode This is pointer to current object. + */ + void sigConfirmed(AbstractNodeInfo* thisNode); + + /** + * @brief statusChaned This signal emitted when nodes status is changed. + * @param thisNode This is pointer to current object. + * @param status This is status og node. For more information see the NodeCoonectionStatus enum. + */ + void statusChaned(AbstractNodeInfo* thisNode, NodeCoonectionStatus status); + protected: + + /** + * @brief confirmData This method check all data of node and return true + * if node is confirmed. + * @return true if node is confirmed + */ + virtual bool confirmData() const; + /** * @brief setSct - set socket for this node or client * @param sct @@ -250,4 +269,7 @@ private: }; } + +Q_DECLARE_METATYPE(QH::NodeCoonectionStatus) + #endif // ABSTRACTNODEINFO_H diff --git a/Heart/AbstractSpace/atomicmetatypes.h b/Heart/AbstractSpace/atomicmetatypes.h index b1f81d1..457f412 100644 --- a/Heart/AbstractSpace/atomicmetatypes.h +++ b/Heart/AbstractSpace/atomicmetatypes.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/config.h b/Heart/AbstractSpace/config.h index 0e8a495..e314517 100644 --- a/Heart/AbstractSpace/config.h +++ b/Heart/AbstractSpace/config.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/cryptopairkeys.cpp b/Heart/AbstractSpace/cryptopairkeys.cpp index 6cd6290..7179332 100644 --- a/Heart/AbstractSpace/cryptopairkeys.cpp +++ b/Heart/AbstractSpace/cryptopairkeys.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/cryptopairkeys.h b/Heart/AbstractSpace/cryptopairkeys.h index 9035a5f..5700408 100644 --- a/Heart/AbstractSpace/cryptopairkeys.h +++ b/Heart/AbstractSpace/cryptopairkeys.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/datasender.cpp b/Heart/AbstractSpace/datasender.cpp index 6664265..bfb6b4d 100644 --- a/Heart/AbstractSpace/datasender.cpp +++ b/Heart/AbstractSpace/datasender.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/datasender.h b/Heart/AbstractSpace/datasender.h index 6a1e258..3ca067c 100644 --- a/Heart/AbstractSpace/datasender.h +++ b/Heart/AbstractSpace/datasender.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/header.cpp b/Heart/AbstractSpace/header.cpp index b707296..c9987d5 100644 --- a/Heart/AbstractSpace/header.cpp +++ b/Heart/AbstractSpace/header.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/header.h b/Heart/AbstractSpace/header.h index f147eaa..3c16809 100644 --- a/Heart/AbstractSpace/header.h +++ b/Heart/AbstractSpace/header.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/hostaddress.cpp b/Heart/AbstractSpace/hostaddress.cpp index 5d4aba1..3d051e4 100644 --- a/Heart/AbstractSpace/hostaddress.cpp +++ b/Heart/AbstractSpace/hostaddress.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/hostaddress.h b/Heart/AbstractSpace/hostaddress.h index 3a5da96..70d68aa 100644 --- a/Heart/AbstractSpace/hostaddress.h +++ b/Heart/AbstractSpace/hostaddress.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/icrypto.cpp b/Heart/AbstractSpace/icrypto.cpp index d1b11c6..db899f4 100644 --- a/Heart/AbstractSpace/icrypto.cpp +++ b/Heart/AbstractSpace/icrypto.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/icrypto.h b/Heart/AbstractSpace/icrypto.h index dc2a6e2..8582ab0 100644 --- a/Heart/AbstractSpace/icrypto.h +++ b/Heart/AbstractSpace/icrypto.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/keystorage.cpp b/Heart/AbstractSpace/keystorage.cpp index 792b860..4399289 100644 --- a/Heart/AbstractSpace/keystorage.cpp +++ b/Heart/AbstractSpace/keystorage.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/keystorage.h b/Heart/AbstractSpace/keystorage.h index 7931211..99cd6e6 100644 --- a/Heart/AbstractSpace/keystorage.h +++ b/Heart/AbstractSpace/keystorage.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/package.cpp b/Heart/AbstractSpace/package.cpp index 8504246..c2ee73b 100644 --- a/Heart/AbstractSpace/package.cpp +++ b/Heart/AbstractSpace/package.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/package.h b/Heart/AbstractSpace/package.h index a90cc6e..c939f92 100644 --- a/Heart/AbstractSpace/package.h +++ b/Heart/AbstractSpace/package.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/packagemanager.cpp b/Heart/AbstractSpace/packagemanager.cpp index 2ecf732..df9da98 100644 --- a/Heart/AbstractSpace/packagemanager.cpp +++ b/Heart/AbstractSpace/packagemanager.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/packagemanager.h b/Heart/AbstractSpace/packagemanager.h index bc2069d..1b5bc60 100644 --- a/Heart/AbstractSpace/packagemanager.h +++ b/Heart/AbstractSpace/packagemanager.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/packages/abstractdata.cpp b/Heart/AbstractSpace/packages/abstractdata.cpp index 3a55802..7c1ea9e 100644 --- a/Heart/AbstractSpace/packages/abstractdata.cpp +++ b/Heart/AbstractSpace/packages/abstractdata.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/packages/abstractdata.h b/Heart/AbstractSpace/packages/abstractdata.h index 870a96d..62b7df2 100644 --- a/Heart/AbstractSpace/packages/abstractdata.h +++ b/Heart/AbstractSpace/packages/abstractdata.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/packages/badrequest.cpp b/Heart/AbstractSpace/packages/badrequest.cpp index 41e486e..96e33e5 100644 --- a/Heart/AbstractSpace/packages/badrequest.cpp +++ b/Heart/AbstractSpace/packages/badrequest.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/packages/badrequest.h b/Heart/AbstractSpace/packages/badrequest.h index 63fe336..97065e8 100644 --- a/Heart/AbstractSpace/packages/badrequest.h +++ b/Heart/AbstractSpace/packages/badrequest.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/packages/closeconnection.cpp b/Heart/AbstractSpace/packages/closeconnection.cpp index 77be81b..644ed45 100644 --- a/Heart/AbstractSpace/packages/closeconnection.cpp +++ b/Heart/AbstractSpace/packages/closeconnection.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/packages/closeconnection.h b/Heart/AbstractSpace/packages/closeconnection.h index 9bd1312..76fa1f7 100644 --- a/Heart/AbstractSpace/packages/closeconnection.h +++ b/Heart/AbstractSpace/packages/closeconnection.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/packages/ping.cpp b/Heart/AbstractSpace/packages/ping.cpp index 9e04d32..5cde99a 100644 --- a/Heart/AbstractSpace/packages/ping.cpp +++ b/Heart/AbstractSpace/packages/ping.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/packages/ping.h b/Heart/AbstractSpace/packages/ping.h index 89561e6..9bc0cc9 100644 --- a/Heart/AbstractSpace/packages/ping.h +++ b/Heart/AbstractSpace/packages/ping.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/request.cpp b/Heart/AbstractSpace/request.cpp index c1374e7..0799d3a 100644 --- a/Heart/AbstractSpace/request.cpp +++ b/Heart/AbstractSpace/request.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/request.h b/Heart/AbstractSpace/request.h index 539caf7..1d2d880 100644 --- a/Heart/AbstractSpace/request.h +++ b/Heart/AbstractSpace/request.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/softdelete.cpp b/Heart/AbstractSpace/softdelete.cpp index 49271c7..ae67ccb 100644 --- a/Heart/AbstractSpace/softdelete.cpp +++ b/Heart/AbstractSpace/softdelete.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/softdelete.h b/Heart/AbstractSpace/softdelete.h index c6a1a56..f719e9f 100644 --- a/Heart/AbstractSpace/softdelete.h +++ b/Heart/AbstractSpace/softdelete.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/streambase.cpp b/Heart/AbstractSpace/streambase.cpp index 30546d1..dd63cd3 100644 --- a/Heart/AbstractSpace/streambase.cpp +++ b/Heart/AbstractSpace/streambase.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/streambase.h b/Heart/AbstractSpace/streambase.h index e20cda3..3b3cf6a 100644 --- a/Heart/AbstractSpace/streambase.h +++ b/Heart/AbstractSpace/streambase.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/workstate.cpp b/Heart/AbstractSpace/workstate.cpp index 8c2a45c..a3754c4 100644 --- a/Heart/AbstractSpace/workstate.cpp +++ b/Heart/AbstractSpace/workstate.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/AbstractSpace/workstate.h b/Heart/AbstractSpace/workstate.h index 7d58747..d58486f 100644 --- a/Heart/AbstractSpace/workstate.h +++ b/Heart/AbstractSpace/workstate.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/CMakeLists.txt b/Heart/CMakeLists.txt index f85fb51..54c587e 100644 --- a/Heart/CMakeLists.txt +++ b/Heart/CMakeLists.txt @@ -1,5 +1,5 @@ # -# Copyright (C) 2018-2020 QuasarApp. +# Copyright (C) 2018-2021 QuasarApp. # Distributed under the lgplv3 software license, see the accompanying # Everyone is permitted to copy and distribute verbatim copies # of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/abstractkey.cpp b/Heart/DataBaseSpace/abstractkey.cpp index 9430396..47bd3f1 100644 --- a/Heart/DataBaseSpace/abstractkey.cpp +++ b/Heart/DataBaseSpace/abstractkey.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/abstractkey.h b/Heart/DataBaseSpace/abstractkey.h index 3840241..354fcb1 100644 --- a/Heart/DataBaseSpace/abstractkey.h +++ b/Heart/DataBaseSpace/abstractkey.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/accesstoken.cpp b/Heart/DataBaseSpace/accesstoken.cpp index df883b6..92af779 100644 --- a/Heart/DataBaseSpace/accesstoken.cpp +++ b/Heart/DataBaseSpace/accesstoken.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/accesstoken.h b/Heart/DataBaseSpace/accesstoken.h index bb5d631..8e729ce 100644 --- a/Heart/DataBaseSpace/accesstoken.h +++ b/Heart/DataBaseSpace/accesstoken.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/asyncsqldbwriter.cpp b/Heart/DataBaseSpace/asyncsqldbwriter.cpp index 20b2f21..a201755 100644 --- a/Heart/DataBaseSpace/asyncsqldbwriter.cpp +++ b/Heart/DataBaseSpace/asyncsqldbwriter.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/asyncsqldbwriter.h b/Heart/DataBaseSpace/asyncsqldbwriter.h index 53efa87..c55d9a7 100644 --- a/Heart/DataBaseSpace/asyncsqldbwriter.h +++ b/Heart/DataBaseSpace/asyncsqldbwriter.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/basedefines.h b/Heart/DataBaseSpace/basedefines.h index 3178859..df8fe9b 100644 --- a/Heart/DataBaseSpace/basedefines.h +++ b/Heart/DataBaseSpace/basedefines.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/basenodeinfo.cpp b/Heart/DataBaseSpace/basenodeinfo.cpp index 6534869..4d934a0 100644 --- a/Heart/DataBaseSpace/basenodeinfo.cpp +++ b/Heart/DataBaseSpace/basenodeinfo.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/basenodeinfo.h b/Heart/DataBaseSpace/basenodeinfo.h index 27547b3..64f4e98 100644 --- a/Heart/DataBaseSpace/basenodeinfo.h +++ b/Heart/DataBaseSpace/basenodeinfo.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/databasenode.cpp b/Heart/DataBaseSpace/databasenode.cpp index 8000b11..7e49f2d 100644 --- a/Heart/DataBaseSpace/databasenode.cpp +++ b/Heart/DataBaseSpace/databasenode.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. @@ -125,7 +125,7 @@ void DataBaseNode::initDefaultDbObjects(ISqlDBCache *cache, } -bool DataBaseNode::welcomeAddress(const HostAddress&) { +bool DataBaseNode::welcomeAddress(AbstractNodeInfo *) { return true; } @@ -146,7 +146,7 @@ QSet DataBaseNode::systemTables() const { return {"NetworkMembers", "MemberPermisions"}; } -void DataBaseNode::nodeConnected(const HostAddress &node) { +void DataBaseNode::nodeConnected(AbstractNodeInfo *node) { AbstractNode::nodeConnected(node); welcomeAddress(node); } diff --git a/Heart/DataBaseSpace/databasenode.h b/Heart/DataBaseSpace/databasenode.h index f9ddb3c..5eec82d 100644 --- a/Heart/DataBaseSpace/databasenode.h +++ b/Heart/DataBaseSpace/databasenode.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. @@ -147,7 +147,7 @@ protected: */ virtual QByteArray hashgenerator(const QByteArray &data); - void nodeConnected(const HostAddress &node) override; + void nodeConnected(AbstractNodeInfo *node) override; /** * @brief db this node return pointer to database object. @@ -296,12 +296,12 @@ protected: QString dbLocation() const; /** - * @brief welcomeAddress This method send to the ip information about yaster self. + * @brief welcomeAddress This method send to the node information about yaster self. * Override this method if you want send custom data to incomming connection. - * @param ip This is host address of the peer node obeject + * @param node This is info object of the peer node * @return true if all iformation sendet succesful */ - virtual bool welcomeAddress(const HostAddress &ip); + virtual bool welcomeAddress(AbstractNodeInfo *node); /** * @brief isBanned This method check trust of node, if node trus is lover of 0 return true. diff --git a/Heart/DataBaseSpace/dbaddress.cpp b/Heart/DataBaseSpace/dbaddress.cpp index f748b2c..55d99e1 100644 --- a/Heart/DataBaseSpace/dbaddress.cpp +++ b/Heart/DataBaseSpace/dbaddress.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/dbaddress.h b/Heart/DataBaseSpace/dbaddress.h index fd19eb2..ffd0e02 100644 --- a/Heart/DataBaseSpace/dbaddress.h +++ b/Heart/DataBaseSpace/dbaddress.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/dbaddresskey.cpp b/Heart/DataBaseSpace/dbaddresskey.cpp index cb3f5a5..71f47e7 100644 --- a/Heart/DataBaseSpace/dbaddresskey.cpp +++ b/Heart/DataBaseSpace/dbaddresskey.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/dbaddresskey.h b/Heart/DataBaseSpace/dbaddresskey.h index 43a9fa0..972e25f 100644 --- a/Heart/DataBaseSpace/dbaddresskey.h +++ b/Heart/DataBaseSpace/dbaddresskey.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/dbcachekey.cpp b/Heart/DataBaseSpace/dbcachekey.cpp index 5872d59..1323d33 100644 --- a/Heart/DataBaseSpace/dbcachekey.cpp +++ b/Heart/DataBaseSpace/dbcachekey.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/dbcachekey.h b/Heart/DataBaseSpace/dbcachekey.h index e321cf9..d8376cf 100644 --- a/Heart/DataBaseSpace/dbcachekey.h +++ b/Heart/DataBaseSpace/dbcachekey.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/iobjectprovider.cpp b/Heart/DataBaseSpace/iobjectprovider.cpp index 4b1981b..32db01d 100644 --- a/Heart/DataBaseSpace/iobjectprovider.cpp +++ b/Heart/DataBaseSpace/iobjectprovider.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/iobjectprovider.h b/Heart/DataBaseSpace/iobjectprovider.h index 6ecd00f..a24ae41 100644 --- a/Heart/DataBaseSpace/iobjectprovider.h +++ b/Heart/DataBaseSpace/iobjectprovider.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/isqldbcache.cpp b/Heart/DataBaseSpace/isqldbcache.cpp index 6eb058d..18f20fd 100644 --- a/Heart/DataBaseSpace/isqldbcache.cpp +++ b/Heart/DataBaseSpace/isqldbcache.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/isqldbcache.h b/Heart/DataBaseSpace/isqldbcache.h index 810b6fc..d8b371f 100644 --- a/Heart/DataBaseSpace/isqldbcache.h +++ b/Heart/DataBaseSpace/isqldbcache.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/authrequest.cpp b/Heart/DataBaseSpace/packages/authrequest.cpp index 5cab090..bafc163 100644 --- a/Heart/DataBaseSpace/packages/authrequest.cpp +++ b/Heart/DataBaseSpace/packages/authrequest.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/authrequest.h b/Heart/DataBaseSpace/packages/authrequest.h index 2ee62f3..8e69f6a 100644 --- a/Heart/DataBaseSpace/packages/authrequest.h +++ b/Heart/DataBaseSpace/packages/authrequest.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/cacheddbobjectsrequest.cpp b/Heart/DataBaseSpace/packages/cacheddbobjectsrequest.cpp index 899a3b5..c9551d5 100644 --- a/Heart/DataBaseSpace/packages/cacheddbobjectsrequest.cpp +++ b/Heart/DataBaseSpace/packages/cacheddbobjectsrequest.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/cacheddbobjectsrequest.h b/Heart/DataBaseSpace/packages/cacheddbobjectsrequest.h index 82fc4de..287e599 100644 --- a/Heart/DataBaseSpace/packages/cacheddbobjectsrequest.h +++ b/Heart/DataBaseSpace/packages/cacheddbobjectsrequest.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/dbobject.cpp b/Heart/DataBaseSpace/packages/dbobject.cpp index 2bfddd1..4a10e6f 100644 --- a/Heart/DataBaseSpace/packages/dbobject.cpp +++ b/Heart/DataBaseSpace/packages/dbobject.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/dbobject.h b/Heart/DataBaseSpace/packages/dbobject.h index 627c808..b9e48cf 100644 --- a/Heart/DataBaseSpace/packages/dbobject.h +++ b/Heart/DataBaseSpace/packages/dbobject.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/dbobjectset.cpp b/Heart/DataBaseSpace/packages/dbobjectset.cpp index 55aa865..5c5b700 100644 --- a/Heart/DataBaseSpace/packages/dbobjectset.cpp +++ b/Heart/DataBaseSpace/packages/dbobjectset.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/dbobjectset.h b/Heart/DataBaseSpace/packages/dbobjectset.h index 2cb603c..6ec3950 100644 --- a/Heart/DataBaseSpace/packages/dbobjectset.h +++ b/Heart/DataBaseSpace/packages/dbobjectset.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/dbobjectsrequest.cpp b/Heart/DataBaseSpace/packages/dbobjectsrequest.cpp index 7ac8d42..7e36b0f 100644 --- a/Heart/DataBaseSpace/packages/dbobjectsrequest.cpp +++ b/Heart/DataBaseSpace/packages/dbobjectsrequest.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/dbobjectsrequest.h b/Heart/DataBaseSpace/packages/dbobjectsrequest.h index 72bb421..eb96ee9 100644 --- a/Heart/DataBaseSpace/packages/dbobjectsrequest.h +++ b/Heart/DataBaseSpace/packages/dbobjectsrequest.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/deleteobject.cpp b/Heart/DataBaseSpace/packages/deleteobject.cpp index 0c5917d..6479e45 100644 --- a/Heart/DataBaseSpace/packages/deleteobject.cpp +++ b/Heart/DataBaseSpace/packages/deleteobject.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/deleteobject.h b/Heart/DataBaseSpace/packages/deleteobject.h index 8b44ee1..b475d10 100644 --- a/Heart/DataBaseSpace/packages/deleteobject.h +++ b/Heart/DataBaseSpace/packages/deleteobject.h @@ -1,7 +1,7 @@ #ifndef DELETEOBJECT_H #define DELETEOBJECT_H /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/getmaxintegerid.h b/Heart/DataBaseSpace/packages/getmaxintegerid.h index 2dbc1cc..5cdae59 100644 --- a/Heart/DataBaseSpace/packages/getmaxintegerid.h +++ b/Heart/DataBaseSpace/packages/getmaxintegerid.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/getsinglevalue.cpp b/Heart/DataBaseSpace/packages/getsinglevalue.cpp index f162e2f..0680237 100644 --- a/Heart/DataBaseSpace/packages/getsinglevalue.cpp +++ b/Heart/DataBaseSpace/packages/getsinglevalue.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/getsinglevalue.h b/Heart/DataBaseSpace/packages/getsinglevalue.h index 3b2a489..2867265 100644 --- a/Heart/DataBaseSpace/packages/getsinglevalue.h +++ b/Heart/DataBaseSpace/packages/getsinglevalue.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/memberpermisionobject.cpp b/Heart/DataBaseSpace/packages/memberpermisionobject.cpp index de3f3e4..2652873 100644 --- a/Heart/DataBaseSpace/packages/memberpermisionobject.cpp +++ b/Heart/DataBaseSpace/packages/memberpermisionobject.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/memberpermisionobject.h b/Heart/DataBaseSpace/packages/memberpermisionobject.h index ce724b4..d028871 100644 --- a/Heart/DataBaseSpace/packages/memberpermisionobject.h +++ b/Heart/DataBaseSpace/packages/memberpermisionobject.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/networkmember.cpp b/Heart/DataBaseSpace/packages/networkmember.cpp index a49d30b..5f70f76 100644 --- a/Heart/DataBaseSpace/packages/networkmember.cpp +++ b/Heart/DataBaseSpace/packages/networkmember.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/networkmember.h b/Heart/DataBaseSpace/packages/networkmember.h index dfc04db..9039794 100644 --- a/Heart/DataBaseSpace/packages/networkmember.h +++ b/Heart/DataBaseSpace/packages/networkmember.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/permisioncontrolmember.cpp b/Heart/DataBaseSpace/packages/permisioncontrolmember.cpp index ee21988..05be75c 100644 --- a/Heart/DataBaseSpace/packages/permisioncontrolmember.cpp +++ b/Heart/DataBaseSpace/packages/permisioncontrolmember.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/permisioncontrolmember.h b/Heart/DataBaseSpace/packages/permisioncontrolmember.h index b522ec4..8e89249 100644 --- a/Heart/DataBaseSpace/packages/permisioncontrolmember.h +++ b/Heart/DataBaseSpace/packages/permisioncontrolmember.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/websocket.cpp b/Heart/DataBaseSpace/packages/websocket.cpp index c55b66b..644cddb 100644 --- a/Heart/DataBaseSpace/packages/websocket.cpp +++ b/Heart/DataBaseSpace/packages/websocket.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/websocket.h b/Heart/DataBaseSpace/packages/websocket.h index e11f72b..9d7ebda 100644 --- a/Heart/DataBaseSpace/packages/websocket.h +++ b/Heart/DataBaseSpace/packages/websocket.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/websocketsubscriptions.cpp b/Heart/DataBaseSpace/packages/websocketsubscriptions.cpp index e7b3e20..92793de 100644 --- a/Heart/DataBaseSpace/packages/websocketsubscriptions.cpp +++ b/Heart/DataBaseSpace/packages/websocketsubscriptions.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/packages/websocketsubscriptions.h b/Heart/DataBaseSpace/packages/websocketsubscriptions.h index 20f5add..6e9e3b8 100644 --- a/Heart/DataBaseSpace/packages/websocketsubscriptions.h +++ b/Heart/DataBaseSpace/packages/websocketsubscriptions.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/permisiondata.cpp b/Heart/DataBaseSpace/permisiondata.cpp index a4f4b61..da7f457 100644 --- a/Heart/DataBaseSpace/permisiondata.cpp +++ b/Heart/DataBaseSpace/permisiondata.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/permisiondata.h b/Heart/DataBaseSpace/permisiondata.h index 327aadb..a2e0f58 100644 --- a/Heart/DataBaseSpace/permisiondata.h +++ b/Heart/DataBaseSpace/permisiondata.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/permission.h b/Heart/DataBaseSpace/permission.h index 6f80f27..3f526ba 100644 --- a/Heart/DataBaseSpace/permission.h +++ b/Heart/DataBaseSpace/permission.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/singleserver.cpp b/Heart/DataBaseSpace/singleserver.cpp index 8fa459e..d1024b2 100644 --- a/Heart/DataBaseSpace/singleserver.cpp +++ b/Heart/DataBaseSpace/singleserver.cpp @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2018-2021 QuasarApp. + * Distributed under the lgplv3 software license, see the accompanying + * Everyone is permitted to copy and distribute verbatim copies + * of this license document, but changing it is not allowed. +*/ + #include "singleserver.h" #include diff --git a/Heart/DataBaseSpace/singleserver.h b/Heart/DataBaseSpace/singleserver.h index 149a9b9..8cf81d4 100644 --- a/Heart/DataBaseSpace/singleserver.h +++ b/Heart/DataBaseSpace/singleserver.h @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2018-2021 QuasarApp. + * Distributed under the lgplv3 software license, see the accompanying + * Everyone is permitted to copy and distribute verbatim copies + * of this license document, but changing it is not allowed. +*/ + #ifndef SINGLESERVER_H #define SINGLESERVER_H diff --git a/Heart/DataBaseSpace/singleserverclient.cpp b/Heart/DataBaseSpace/singleserverclient.cpp new file mode 100644 index 0000000..0a870be --- /dev/null +++ b/Heart/DataBaseSpace/singleserverclient.cpp @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2018-2021 QuasarApp. + * Distributed under the lgplv3 software license, see the accompanying + * Everyone is permitted to copy and distribute verbatim copies + * of this license document, but changing it is not allowed. +*/ + +#include "singleserverclient.h" +#include "quasarapp.h" + +namespace QH { + +SingleServerClient::SingleServerClient() { + +} + +ParserResult SingleServerClient::parsePackage(const Package &pkg, const AbstractNodeInfo *sender) { + +} + +ClientStatus SingleServerClient::getStatus() const { + return _status; +} + +bool SingleServerClient::login(const QString &userId, const QString &rawPassword) { + +} + +bool SingleServerClient::signup(const QString &userId, const QString &rawPassword) { + +} + +void SingleServerClient::setStatus(const ClientStatus &status) { + if (status == _status) + return; + + _status = status; + emit statusChanged(_status); +} + +void SingleServerClient::handleError(unsigned char, const QString &error) { + QuasarAppUtils::Params::log(error, QuasarAppUtils::Error); +} + +bool SingleServerClient::p_login(const QString &userId, const QByteArray &hashPassword) { + +} + +bool SingleServerClient::p_signIn(const QString &userId, const QByteArray &hashPassword) { + +} +} diff --git a/Heart/DataBaseSpace/singleserverclient.h b/Heart/DataBaseSpace/singleserverclient.h new file mode 100644 index 0000000..28a3aff --- /dev/null +++ b/Heart/DataBaseSpace/singleserverclient.h @@ -0,0 +1,135 @@ +/* + * Copyright (C) 2018-2020 QuasarApp. + * Distributed under the lgplv3 software license, see the accompanying + * Everyone is permitted to copy and distribute verbatim copies + * of this license document, but changing it is not allowed. +*/ + +#ifndef SINGLESERVERCLIENT_H +#define SINGLESERVERCLIENT_H + +#include "databasenode.h" +#include + + +namespace QH { + +/** + * @brief The ClientStatus enum contains network statuses of the client. + */ +enum class ClientStatus: unsigned char { + /// The Client is offline and do not tried connecting to server. (offline mode) + Dissconnected, + /// The Client is offline but the connectToServer method has been invoked. + /// This is mode of wait to connecting . + Connecting, + /// The Client successfully connected to server. + /// This is Online mode. In This mode client is ready to work with server but in read only mode. + Connected, + /// The Client successfully connected to server and the login method has been invoked. + /// This is mode of wait of logging. + Loginning, + /// The client successfully Loggined and ready to work with server. + Logined +}; + +/** + * @brief The SingleServerClient class This class provide login and singup user functionality for the SingleServer class. + */ +class SingleServerClient: public DataBaseNode +{ + Q_OBJECT +public: + SingleServerClient(); + + QH::ParserResult parsePackage(const QH::Package &pkg, + const QH::AbstractNodeInfo *sender) override; + + /** + * @brief getStatus This method return current status of the client. + * For get more information see the ClientStatus enum. + * @return status of the client. + */ + ClientStatus getStatus() const; + + /** + * @brief login This method try to loggin client. + * @param userId This is userID. In The base implementation it is String value. + * The userId must be unique for all users. + * If You want you can use the email address of the user as a user id. + * @param rawPassword This is raw passwork of the userId. This method calc hash from the rawPassword and send getting value to server. For calculated hash uses the hashgenerator method. If you want to oveeride own behaviof for hashing or add an own salt then you need to override the hashgenerator method. + * @return true if the user send autorisation request successful. + */ + bool login(const QString &userId, const QString &rawPassword = {}); + + /** + * @brief logout This method send to server request for logout. + * @return true if the user send logout request successful. + */ + bool logout(); + + /** + * @brief signup This method try to register new user. + * @param userId This is userID. In The base implementation it is String value. + * The userId must be unique for all users. + * If You want you can use the email address of the user as a user id. + * @param rawPassword This is raw passwork of the userId. + * This method calc hash from the rawPassword and send getting value to server. + * For calculated hash uses the hashgenerator method. + * If you want to oveeride own behaviof for hashing or add an own salt then you need to override the hashgenerator method. + * @return true if the user send registration request successful. + + */ + bool signup(const QString &userId, const QString &rawPassword = {}); + + /** + * @brief removeUser This method send to server the remove user and user datat request. + * @return true if the user send remove request successful. + */ + bool removeUser(); + + /** + * @brief connectToServer This method try connect client ot server. + * @return true if the connect request sendet successful. + */ + bool connectToServer(); + + /** + * @brief disconnectFromServer This method disconnect the clinet from server. + */ + void disconnectFromServer(); + + +signals: + /** + * @brief statusChanged This sigmnal emited when the client change an own status. + * @param status This is new status of the client. + * For more information about the statuses see the ClientStatus enum. + */ + void statusChanged(ClientStatus status); + +protected: + /** + * @brief setStatus This method sets a new status of the client. This method will be emited the statusChanged signal. + * @param status This is new status of the client. + */ + void setStatus(const ClientStatus &status); + +protected slots: + /** + * @brief handleError This handle method invoked when the client received the BadRequest from server. Ovveride this method for add actions for this event. + * @param code This is number of the error code. + * @param error This is test message from a server. + */ + virtual void handleError(unsigned char code, const QString& error); + +private: + + bool p_login(const QString &userId, const QByteArray &hashPassword = {}); + bool p_signIn(const QString &userId, const QByteArray &hashPassword); + + ClientStatus _status; + PKG::UserMember _member; +}; +} +#endif // SINGLESERVERCLIENT_H diff --git a/Heart/DataBaseSpace/sqldb.cpp b/Heart/DataBaseSpace/sqldb.cpp index a19589e..4e478d1 100644 --- a/Heart/DataBaseSpace/sqldb.cpp +++ b/Heart/DataBaseSpace/sqldb.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/sqldb.h b/Heart/DataBaseSpace/sqldb.h index 0e0d109..0f4b758 100644 --- a/Heart/DataBaseSpace/sqldb.h +++ b/Heart/DataBaseSpace/sqldb.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/sqldbcache.cpp b/Heart/DataBaseSpace/sqldbcache.cpp index 0f51ab5..ccce376 100644 --- a/Heart/DataBaseSpace/sqldbcache.cpp +++ b/Heart/DataBaseSpace/sqldbcache.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/sqldbcache.h b/Heart/DataBaseSpace/sqldbcache.h index 2581549..7cad6b8 100644 --- a/Heart/DataBaseSpace/sqldbcache.h +++ b/Heart/DataBaseSpace/sqldbcache.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/sqldbwriter.cpp b/Heart/DataBaseSpace/sqldbwriter.cpp index 2e775fc..925575c 100644 --- a/Heart/DataBaseSpace/sqldbwriter.cpp +++ b/Heart/DataBaseSpace/sqldbwriter.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/sqldbwriter.h b/Heart/DataBaseSpace/sqldbwriter.h index a14bbbc..4811b48 100644 --- a/Heart/DataBaseSpace/sqldbwriter.h +++ b/Heart/DataBaseSpace/sqldbwriter.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/sqlitedbcache.cpp b/Heart/DataBaseSpace/sqlitedbcache.cpp index 5a918c0..78c5d59 100644 --- a/Heart/DataBaseSpace/sqlitedbcache.cpp +++ b/Heart/DataBaseSpace/sqlitedbcache.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/sqlitedbcache.h b/Heart/DataBaseSpace/sqlitedbcache.h index 8d04d99..dd86382 100644 --- a/Heart/DataBaseSpace/sqlitedbcache.h +++ b/Heart/DataBaseSpace/sqlitedbcache.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/websocketcontroller.cpp b/Heart/DataBaseSpace/websocketcontroller.cpp index 06b391b..4d2a7c3 100644 --- a/Heart/DataBaseSpace/websocketcontroller.cpp +++ b/Heart/DataBaseSpace/websocketcontroller.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/DataBaseSpace/websocketcontroller.h b/Heart/DataBaseSpace/websocketcontroller.h index 42d3ef8..82b9f63 100644 --- a/Heart/DataBaseSpace/websocketcontroller.h +++ b/Heart/DataBaseSpace/websocketcontroller.h @@ -1,6 +1,6 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/consensus.cpp b/Heart/NetworkSpace/consensus.cpp index 3dcbd5e..e06c367 100644 --- a/Heart/NetworkSpace/consensus.cpp +++ b/Heart/NetworkSpace/consensus.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/consensus.h b/Heart/NetworkSpace/consensus.h index 8c47e7b..fcf37cb 100644 --- a/Heart/NetworkSpace/consensus.h +++ b/Heart/NetworkSpace/consensus.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/networknode.cpp b/Heart/NetworkSpace/networknode.cpp index 243f8e5..b0a1809 100644 --- a/Heart/NetworkSpace/networknode.cpp +++ b/Heart/NetworkSpace/networknode.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. @@ -195,11 +195,11 @@ QSet NetworkNode::myKnowAddresses() const { return res; } -bool NetworkNode::welcomeAddress(const HostAddress& ip) { +bool NetworkNode::welcomeAddress(AbstractNodeInfo *node) { NodeObject self; thisNode(self); - if (!sendData(&self, ip)) { + if (!sendData(&self, node->networkAddress())) { return false; } @@ -210,7 +210,7 @@ bool NetworkNode::welcomeAddress(const HostAddress& ip) { KnowAddresses addressesData; addressesData.setKnowAddresses(knowAddresses); - if (!sendData(&addressesData, ip)) { + if (!sendData(&addressesData, node->networkAddress())) { return false; } } @@ -220,17 +220,14 @@ bool NetworkNode::welcomeAddress(const HostAddress& ip) { } -void NetworkNode::nodeConnected(const HostAddress &node) { +void NetworkNode::nodeConnected(AbstractNodeInfo *node) { DataBaseNode::nodeConnected(node); - - welcomeAddress(node); - } -void NetworkNode::nodeConfirmend(const HostAddress &node) { +void NetworkNode::nodeConfirmend(AbstractNodeInfo *node) { DataBaseNode::nodeConfirmend(node); - auto nodeInfo = dynamic_cast(getInfoPtr(node)); + auto nodeInfo = dynamic_cast(node); if (!nodeInfo) { return; } @@ -240,7 +237,7 @@ void NetworkNode::nodeConfirmend(const HostAddress &node) { _connectionsMutex.unlock(); if (oldNodeInfo) { - removeNode(node); + removeNode(node->networkAddress()); return; } @@ -251,10 +248,10 @@ void NetworkNode::nodeConfirmend(const HostAddress &node) { } -void NetworkNode::nodeDisconnected(const HostAddress &node) { +void NetworkNode::nodeDisconnected(AbstractNodeInfo *node) { AbstractNode::nodeDisconnected(node); - auto nodeInfo = dynamic_cast(getInfoPtr(node)); + auto nodeInfo = dynamic_cast(node); if (!nodeInfo) { return; } diff --git a/Heart/NetworkSpace/networknode.h b/Heart/NetworkSpace/networknode.h index 1f95d17..12a3ba6 100644 --- a/Heart/NetworkSpace/networknode.h +++ b/Heart/NetworkSpace/networknode.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. @@ -186,30 +186,25 @@ protected: */ QSet myKnowAddresses() const; - /** - * @brief welcomeAddress - this method send to the ip information about yaster self. - * @param ip - host address of the peer node obeject - * @return true if all iformation sendet succesful - */ - bool welcomeAddress(const HostAddress &ip) override; + bool welcomeAddress(AbstractNodeInfo *node) override; /** * @brief connectionRegistered - this impletation send incomming node welcom message with information about yaster self. * @param info incominng node info. */ - void nodeConnected(const HostAddress& node) override; + void nodeConnected(AbstractNodeInfo *node) override; /** * @brief nodeConfirmend - this implementation test nodes to double connections * @param mode */ - void nodeConfirmend(const HostAddress& sender) override; + void nodeConfirmend(AbstractNodeInfo *sender) override; /** * @brief nodeDisconnected - this implementation remove nodes info from connection cache * @param sender */ - void nodeDisconnected(const HostAddress& node) override; + void nodeDisconnected(AbstractNodeInfo *node) override; /** * @brief incomingData - this signal invoked when node get command or ansver diff --git a/Heart/NetworkSpace/networknodeinfo.cpp b/Heart/NetworkSpace/networknodeinfo.cpp index 8374916..9acee66 100644 --- a/Heart/NetworkSpace/networknodeinfo.cpp +++ b/Heart/NetworkSpace/networknodeinfo.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/networknodeinfo.h b/Heart/NetworkSpace/networknodeinfo.h index a3d9ba2..3eefc10 100644 --- a/Heart/NetworkSpace/networknodeinfo.h +++ b/Heart/NetworkSpace/networknodeinfo.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/nodeid.cpp b/Heart/NetworkSpace/nodeid.cpp index 3f9fed9..a288ba2 100644 --- a/Heart/NetworkSpace/nodeid.cpp +++ b/Heart/NetworkSpace/nodeid.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/nodeid.h b/Heart/NetworkSpace/nodeid.h index 22615fe..2d4e37f 100644 --- a/Heart/NetworkSpace/nodeid.h +++ b/Heart/NetworkSpace/nodeid.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/packages/badnoderequest.cpp b/Heart/NetworkSpace/packages/badnoderequest.cpp index 5f49b52..8b26e49 100644 --- a/Heart/NetworkSpace/packages/badnoderequest.cpp +++ b/Heart/NetworkSpace/packages/badnoderequest.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/packages/badnoderequest.h b/Heart/NetworkSpace/packages/badnoderequest.h index e07cbfe..6a10fba 100644 --- a/Heart/NetworkSpace/packages/badnoderequest.h +++ b/Heart/NetworkSpace/packages/badnoderequest.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/packages/knowaddresses.cpp b/Heart/NetworkSpace/packages/knowaddresses.cpp index 48f8361..e1d3229 100644 --- a/Heart/NetworkSpace/packages/knowaddresses.cpp +++ b/Heart/NetworkSpace/packages/knowaddresses.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/packages/knowaddresses.h b/Heart/NetworkSpace/packages/knowaddresses.h index ec77528..3ca15d6 100644 --- a/Heart/NetworkSpace/packages/knowaddresses.h +++ b/Heart/NetworkSpace/packages/knowaddresses.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/packages/longping.cpp b/Heart/NetworkSpace/packages/longping.cpp index dabdcff..ec2f311 100644 --- a/Heart/NetworkSpace/packages/longping.cpp +++ b/Heart/NetworkSpace/packages/longping.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/packages/longping.h b/Heart/NetworkSpace/packages/longping.h index e8c6913..1eed8db 100644 --- a/Heart/NetworkSpace/packages/longping.h +++ b/Heart/NetworkSpace/packages/longping.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/packages/networkrequest.cpp b/Heart/NetworkSpace/packages/networkrequest.cpp index f5ab918..43cf179 100644 --- a/Heart/NetworkSpace/packages/networkrequest.cpp +++ b/Heart/NetworkSpace/packages/networkrequest.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/packages/networkrequest.h b/Heart/NetworkSpace/packages/networkrequest.h index abdadf9..4450bae 100644 --- a/Heart/NetworkSpace/packages/networkrequest.h +++ b/Heart/NetworkSpace/packages/networkrequest.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/packages/nodeobject.cpp b/Heart/NetworkSpace/packages/nodeobject.cpp index 15067e1..04c0221 100644 --- a/Heart/NetworkSpace/packages/nodeobject.cpp +++ b/Heart/NetworkSpace/packages/nodeobject.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/packages/nodeobject.h b/Heart/NetworkSpace/packages/nodeobject.h index d609923..b43eaac 100644 --- a/Heart/NetworkSpace/packages/nodeobject.h +++ b/Heart/NetworkSpace/packages/nodeobject.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/packages/transportdata.cpp b/Heart/NetworkSpace/packages/transportdata.cpp index f2f490b..b838174 100644 --- a/Heart/NetworkSpace/packages/transportdata.cpp +++ b/Heart/NetworkSpace/packages/transportdata.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/packages/transportdata.h b/Heart/NetworkSpace/packages/transportdata.h index e3095fa..6f2681d 100644 --- a/Heart/NetworkSpace/packages/transportdata.h +++ b/Heart/NetworkSpace/packages/transportdata.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/qsecretrsa2048.cpp b/Heart/NetworkSpace/qsecretrsa2048.cpp index 3500a0e..3c98ea2 100644 --- a/Heart/NetworkSpace/qsecretrsa2048.cpp +++ b/Heart/NetworkSpace/qsecretrsa2048.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/qsecretrsa2048.h b/Heart/NetworkSpace/qsecretrsa2048.h index e434b1e..729bb50 100644 --- a/Heart/NetworkSpace/qsecretrsa2048.h +++ b/Heart/NetworkSpace/qsecretrsa2048.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/router.cpp b/Heart/NetworkSpace/router.cpp index 738172c..5233a6c 100644 --- a/Heart/NetworkSpace/router.cpp +++ b/Heart/NetworkSpace/router.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/router.h b/Heart/NetworkSpace/router.h index 319a630..8a560c0 100644 --- a/Heart/NetworkSpace/router.h +++ b/Heart/NetworkSpace/router.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/senderdata.cpp b/Heart/NetworkSpace/senderdata.cpp index 4918375..59cdb69 100644 --- a/Heart/NetworkSpace/senderdata.cpp +++ b/Heart/NetworkSpace/senderdata.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/senderdata.h b/Heart/NetworkSpace/senderdata.h index 53c89fc..0de7474 100644 --- a/Heart/NetworkSpace/senderdata.h +++ b/Heart/NetworkSpace/senderdata.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/sign.cpp b/Heart/NetworkSpace/sign.cpp index 1ec2647..dbe793d 100644 --- a/Heart/NetworkSpace/sign.cpp +++ b/Heart/NetworkSpace/sign.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/NetworkSpace/sign.h b/Heart/NetworkSpace/sign.h index 928e92c..269a390 100644 --- a/Heart/NetworkSpace/sign.h +++ b/Heart/NetworkSpace/sign.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/heart.cpp b/Heart/heart.cpp index 219699b..128b143 100644 --- a/Heart/heart.cpp +++ b/Heart/heart.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/heart.h b/Heart/heart.h index 77c8787..1e6e530 100644 --- a/Heart/heart.h +++ b/Heart/heart.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/Heart/heart_global.h b/Heart/heart_global.h index 75edd9c..c3ab7ee 100644 --- a/Heart/heart_global.h +++ b/Heart/heart_global.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/AbstractSpace/abstractnodetest.cpp b/HeartTests/AbstractSpace/abstractnodetest.cpp index 2823a13..e7253bf 100644 --- a/HeartTests/AbstractSpace/abstractnodetest.cpp +++ b/HeartTests/AbstractSpace/abstractnodetest.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/AbstractSpace/abstractnodetest.h b/HeartTests/AbstractSpace/abstractnodetest.h index 9da9bbc..d6ae965 100644 --- a/HeartTests/AbstractSpace/abstractnodetest.h +++ b/HeartTests/AbstractSpace/abstractnodetest.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/AbstractSpace/keystoragetest.h b/HeartTests/AbstractSpace/keystoragetest.h index 8e998b0..7d8450a 100644 --- a/HeartTests/AbstractSpace/keystoragetest.h +++ b/HeartTests/AbstractSpace/keystoragetest.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/AbstractSpace/test.cpp b/HeartTests/AbstractSpace/test.cpp index eb72c0d..ed8adc9 100644 --- a/HeartTests/AbstractSpace/test.cpp +++ b/HeartTests/AbstractSpace/test.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/AbstractSpace/test.h b/HeartTests/AbstractSpace/test.h index 7a67c6b..833632d 100644 --- a/HeartTests/AbstractSpace/test.h +++ b/HeartTests/AbstractSpace/test.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/AbstractSpace/testutils.cpp b/HeartTests/AbstractSpace/testutils.cpp index 542996a..9946cbb 100644 --- a/HeartTests/AbstractSpace/testutils.cpp +++ b/HeartTests/AbstractSpace/testutils.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/AbstractSpace/testutils.h b/HeartTests/AbstractSpace/testutils.h index b7ea9af..991e21b 100644 --- a/HeartTests/AbstractSpace/testutils.h +++ b/HeartTests/AbstractSpace/testutils.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/CMakeLists.txt b/HeartTests/CMakeLists.txt index 43ebefa..b13d711 100644 --- a/HeartTests/CMakeLists.txt +++ b/HeartTests/CMakeLists.txt @@ -1,5 +1,5 @@ # -# Copyright (C) 2018-2020 QuasarApp. +# Copyright (C) 2018-2021 QuasarApp. # Distributed under the lgplv3 software license, see the accompanying # Everyone is permitted to copy and distribute verbatim copies # of this license document, but changing it is not allowed. diff --git a/HeartTests/DataBaseSpace/basenodetest.cpp b/HeartTests/DataBaseSpace/basenodetest.cpp index 6f24bbf..78062a3 100644 --- a/HeartTests/DataBaseSpace/basenodetest.cpp +++ b/HeartTests/DataBaseSpace/basenodetest.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/DataBaseSpace/basenodetest.h b/HeartTests/DataBaseSpace/basenodetest.h index bb22926..3032bba 100644 --- a/HeartTests/DataBaseSpace/basenodetest.h +++ b/HeartTests/DataBaseSpace/basenodetest.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/DataBaseSpace/basetestutils.cpp b/HeartTests/DataBaseSpace/basetestutils.cpp index 82ba8a7..a4761ea 100644 --- a/HeartTests/DataBaseSpace/basetestutils.cpp +++ b/HeartTests/DataBaseSpace/basetestutils.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/DataBaseSpace/basetestutils.h b/HeartTests/DataBaseSpace/basetestutils.h index cdeda83..f74c1b3 100644 --- a/HeartTests/DataBaseSpace/basetestutils.h +++ b/HeartTests/DataBaseSpace/basetestutils.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/DataBaseSpace/databasenodeunittests.cpp b/HeartTests/DataBaseSpace/databasenodeunittests.cpp index 299fafb..d81ada8 100644 --- a/HeartTests/DataBaseSpace/databasenodeunittests.cpp +++ b/HeartTests/DataBaseSpace/databasenodeunittests.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/DataBaseSpace/databasenodeunittests.h b/HeartTests/DataBaseSpace/databasenodeunittests.h index 6894704..0f08944 100644 --- a/HeartTests/DataBaseSpace/databasenodeunittests.h +++ b/HeartTests/DataBaseSpace/databasenodeunittests.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/DataBaseSpace/templatedatabasenodeunittests.cpp b/HeartTests/DataBaseSpace/templatedatabasenodeunittests.cpp index e2bd790..5d78adb 100644 --- a/HeartTests/DataBaseSpace/templatedatabasenodeunittests.cpp +++ b/HeartTests/DataBaseSpace/templatedatabasenodeunittests.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/DataBaseSpace/templatedatabasenodeunittests.h b/HeartTests/DataBaseSpace/templatedatabasenodeunittests.h index ead6789..2de91a8 100644 --- a/HeartTests/DataBaseSpace/templatedatabasenodeunittests.h +++ b/HeartTests/DataBaseSpace/templatedatabasenodeunittests.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/NetworkSpace/networknodetest.cpp b/HeartTests/NetworkSpace/networknodetest.cpp index 3ce9e8f..5f1daa9 100644 --- a/HeartTests/NetworkSpace/networknodetest.cpp +++ b/HeartTests/NetworkSpace/networknodetest.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/NetworkSpace/networknodetest.h b/HeartTests/NetworkSpace/networknodetest.h index 861722e..8275d89 100644 --- a/HeartTests/NetworkSpace/networknodetest.h +++ b/HeartTests/NetworkSpace/networknodetest.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/NetworkSpace/networknodeunittests.cpp b/HeartTests/NetworkSpace/networknodeunittests.cpp index f22cfed..34c9fe9 100644 --- a/HeartTests/NetworkSpace/networknodeunittests.cpp +++ b/HeartTests/NetworkSpace/networknodeunittests.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/NetworkSpace/networknodeunittests.h b/HeartTests/NetworkSpace/networknodeunittests.h index 0ab582b..40aa24c 100644 --- a/HeartTests/NetworkSpace/networknodeunittests.h +++ b/HeartTests/NetworkSpace/networknodeunittests.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/NetworkSpace/networktestutils.cpp b/HeartTests/NetworkSpace/networktestutils.cpp index b5b1666..dc4c995 100644 --- a/HeartTests/NetworkSpace/networktestutils.cpp +++ b/HeartTests/NetworkSpace/networktestutils.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/NetworkSpace/networktestutils.h b/HeartTests/NetworkSpace/networktestutils.h index 76cf8f7..1e62c21 100644 --- a/HeartTests/NetworkSpace/networktestutils.h +++ b/HeartTests/NetworkSpace/networktestutils.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. diff --git a/HeartTests/tst_testprotockol.cpp b/HeartTests/tst_testprotockol.cpp index d28d494..341f07e 100644 --- a/HeartTests/tst_testprotockol.cpp +++ b/HeartTests/tst_testprotockol.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2020 QuasarApp. + * Copyright (C) 2018-2021 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed.