mirror of
https://github.com/lubosz/overte.git
synced 2025-04-25 18:15:26 +02:00
Add LimitedNodeList::canAdjustLocksChanged signal
This commit is contained in:
parent
0638459052
commit
64cb517856
2 changed files with 11 additions and 2 deletions
|
@ -96,6 +96,13 @@ void LimitedNodeList::setSessionUUID(const QUuid& sessionUUID) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LimitedNodeList::setThisNodeCanAdjustLocks(bool canAdjustLocks) {
|
||||||
|
if (_thisNodeCanAdjustLocks != canAdjustLocks) {
|
||||||
|
_thisNodeCanAdjustLocks = canAdjustLocks;
|
||||||
|
emit canAdjustLocksChanged(canAdjustLocks);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
QUdpSocket& LimitedNodeList::getDTLSSocket() {
|
QUdpSocket& LimitedNodeList::getDTLSSocket() {
|
||||||
if (!_dtlsSocket) {
|
if (!_dtlsSocket) {
|
||||||
// DTLS socket getter called but no DTLS socket exists, create it now
|
// DTLS socket getter called but no DTLS socket exists, create it now
|
||||||
|
|
|
@ -82,8 +82,8 @@ public:
|
||||||
const QUuid& getSessionUUID() const { return _sessionUUID; }
|
const QUuid& getSessionUUID() const { return _sessionUUID; }
|
||||||
void setSessionUUID(const QUuid& sessionUUID);
|
void setSessionUUID(const QUuid& sessionUUID);
|
||||||
|
|
||||||
bool getThisNodeCanAdjustLocks() { return _thisNodeCanAdjustLocks; }
|
bool getThisNodeCanAdjustLocks() const { return _thisNodeCanAdjustLocks; }
|
||||||
void setThisNodeCanAdjustLocks(bool canAdjustLocks) { _thisNodeCanAdjustLocks = canAdjustLocks; }
|
void setThisNodeCanAdjustLocks(bool canAdjustLocks);
|
||||||
|
|
||||||
void rebindNodeSocket();
|
void rebindNodeSocket();
|
||||||
QUdpSocket& getNodeSocket() { return _nodeSocket; }
|
QUdpSocket& getNodeSocket() { return _nodeSocket; }
|
||||||
|
@ -194,6 +194,8 @@ signals:
|
||||||
void localSockAddrChanged(const HifiSockAddr& localSockAddr);
|
void localSockAddrChanged(const HifiSockAddr& localSockAddr);
|
||||||
void publicSockAddrChanged(const HifiSockAddr& publicSockAddr);
|
void publicSockAddrChanged(const HifiSockAddr& publicSockAddr);
|
||||||
|
|
||||||
|
void canAdjustLocksChanged(bool canAdjustLocks);
|
||||||
|
|
||||||
void dataSent(const quint8 channel_type, const int bytes);
|
void dataSent(const quint8 channel_type, const int bytes);
|
||||||
void dataReceived(const quint8 channel_type, const int bytes);
|
void dataReceived(const quint8 channel_type, const int bytes);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue