diff --git a/Heart/AbstractSpace/abstractnodeinfo.h b/Heart/AbstractSpace/abstractnodeinfo.h index 4919e1a7..3b1b2508 100644 --- a/Heart/AbstractSpace/abstractnodeinfo.h +++ b/Heart/AbstractSpace/abstractnodeinfo.h @@ -73,7 +73,6 @@ class HEARTSHARED_EXPORT AbstractNodeInfo: public QObject */ AbstractNodeInfo(QAbstractSocket *sct = nullptr, const HostAddress* address = nullptr); - /** * @brief ~AbstractNodeInfo */ @@ -206,19 +205,19 @@ public slots: * @brief sigConnected This is wrapper signal for the QAbstractSocket::connetced signal. * @param thisNode This is pointer to current object. */ - void sigConnected(AbstractNodeInfo* thisNode); + void sigConnected(QH::AbstractNodeInfo* thisNode); /** * @brief sigDisconnected This is wrapper signal for the QAbstractSocket::disconnected signal. * @param thisNode This is pointer to current object. */ - void sigDisconnected(AbstractNodeInfo* thisNode); + void sigDisconnected(QH::AbstractNodeInfo* thisNode); /** * @brief sigReadyRead This is wrapper signal for the QAbstractSocket::readyRead signal. * @param thisNode This is pointer to current object. */ - void sigReadyRead(AbstractNodeInfo* thisNode); + void sigReadyRead(QH::AbstractNodeInfo* thisNode); /** * @brief sigErrorOccurred This is wrapper signal for the QAbstractSocket::errorOccurred signal. @@ -227,7 +226,7 @@ public slots: * @param message This is a error string message. * For more information see the QAbstractSocket::SocketError enum class. */ - void sigErrorOccurred(AbstractNodeInfo* thisNode, + void sigErrorOccurred(QH::AbstractNodeInfo* thisNode, QAbstractSocket::SocketError socketError, QString message); @@ -235,14 +234,14 @@ public slots: * @brief sigConfirmed This signal emitted when node is confirmnd. The confirm status sets in the confirmData method. * @param thisNode This is pointer to current object. */ - void sigConfirmed(AbstractNodeInfo* thisNode); + void sigConfirmed(QH::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 of node. For more information see the NodeCoonectionStatus enum. */ - void statusChaned(AbstractNodeInfo* thisNode, NodeCoonectionStatus status); + void statusChaned(QH::AbstractNodeInfo* thisNode, QH::NodeCoonectionStatus status); protected: diff --git a/Heart/AbstractSpace/packages/datapack.h b/Heart/AbstractSpace/packages/datapack.h index 3240daf7..29622083 100644 --- a/Heart/AbstractSpace/packages/datapack.h +++ b/Heart/AbstractSpace/packages/datapack.h @@ -53,6 +53,14 @@ class DataPack final: public AbstractData _packData.push_back(data); }; + /** + * @brief push This method append @a data to end of list. + * @param data This is new data pacakge that will be added into back of this list. + */ + void push(const Package& data) { + _packData.push_back(QSharedPointer::create(data)); + }; + /** * @brief isValid This implementation check all items of the pack to valid and packa size. The pack size should be more then 0. * @return true if the pack of items is valid else flase..