mirror of
https://github.com/QuasarApp/Heart.git
synced 2025-05-10 16:39:41 +00:00
update data packa object
This commit is contained in:
parent
9a3e09bec7
commit
4c4f40a286
Heart/AbstractSpace
@ -73,7 +73,6 @@ public:
|
||||
*/
|
||||
AbstractNodeInfo(QAbstractSocket *sct = nullptr,
|
||||
const HostAddress* address = nullptr);
|
||||
|
||||
/**
|
||||
* @brief ~AbstractNodeInfo
|
||||
*/
|
||||
@ -206,19 +205,19 @@ signals:
|
||||
* @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 @@ signals:
|
||||
* @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 @@ signals:
|
||||
* @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:
|
||||
|
||||
|
@ -53,6 +53,14 @@ public:
|
||||
_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<Package>::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..
|
||||
|
Loading…
x
Reference in New Issue
Block a user