projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement a basic UI for showing connected clients
[quassel.git]
/
src
/
common
/
signalproxy.cpp
diff --git
a/src/common/signalproxy.cpp
b/src/common/signalproxy.cpp
index
45f3b50
..
68ac6fb
100644
(file)
--- a/
src/common/signalproxy.cpp
+++ b/
src/common/signalproxy.cpp
@@
-290,6
+290,7
@@
bool SignalProxy::addPeer(Peer *peer)
if (peer->_id < 0) {
peer->_id = nextPeerId();
if (peer->_id < 0) {
peer->_id = nextPeerId();
+ peer->_connectedSince = QDateTime::currentDateTimeUtc();
}
_peers.insert(peer);
}
_peers.insert(peer);
@@
-821,9
+822,10
@@
QVariantList SignalProxy::peerData() {
for (auto peer : _peers) {
QVariantMap data;
data["id"] = peer->_id;
for (auto peer : _peers) {
QVariantMap data;
data["id"] = peer->_id;
- data["buildData"] = peer->_buildDate;
data["clientVersion"] = peer->_clientVersion;
data["clientVersion"] = peer->_clientVersion;
- data["description"] = peer->description();
+ data["clientVersionDate"] = peer->_buildDate;
+ data["remoteAddress"] = peer->address();
+ data["connectedSince"] = peer->_connectedSince;
data["secure"] = peer->isSecure();
result << data;
}
data["secure"] = peer->isSecure();
result << data;
}