X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fpeer.cpp;h=25ff8145f9b4318279a9bbc14c5eb1f9667faf73;hp=54e0c59eec5de64bb2ee3abaa31a85d488871e77;hb=28cee4568aeb1ce3014d11234e40f19e7aeae5bd;hpb=44428e76a8b2ad9617bef927edd01dd3a1a5caaf diff --git a/src/common/peer.cpp b/src/common/peer.cpp index 54e0c59e..25ff8145 100644 --- a/src/common/peer.cpp +++ b/src/common/peer.cpp @@ -33,6 +33,37 @@ AuthHandler *Peer::authHandler() const return _authHandler; } +const QDateTime &Peer::connectedSince() const { + return _connectedSince; +} + +void Peer::setConnectedSince(const QDateTime &connectedSince) { + _connectedSince = connectedSince; +} + +const QString &Peer::buildDate() const { + return _buildDate; +} + +void Peer::setBuildDate(const QString &buildDate) { + _buildDate = buildDate; +} + +const QString &Peer::clientVersion() const { + return _clientVersion; +} + +void Peer::setClientVersion(const QString &clientVersion) { + _clientVersion = clientVersion; +} + +int Peer::id() const { + return _id; +} + +void Peer::setId(int id) { + _id = id; +} // PeerPtr is used in RPC signatures for enabling receivers to send replies // to a particular peer rather than broadcast to all connected ones.