X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fpeer.cpp;h=9a9e3f58e148e63fcb0e38f9618ce251d248a0ba;hb=b12b02f1bd5ee8a68bda20622b7ec3eac84f000c;hp=c076806f3c3d3eca134055de859baf29381716cc;hpb=d3dcda30c8cbee75c0c8f500f4ab552bde513036;p=quassel.git diff --git a/src/common/peer.cpp b/src/common/peer.cpp index c076806f..9a9e3f58 100644 --- a/src/common/peer.cpp +++ b/src/common/peer.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2016 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -33,6 +33,45 @@ AuthHandler *Peer::authHandler() const return _authHandler; } +QDateTime Peer::connectedSince() const { + return _connectedSince; +} + +void Peer::setConnectedSince(const QDateTime &connectedSince) { + _connectedSince = connectedSince; +} + +QString Peer::buildDate() const { + return _buildDate; +} + +void Peer::setBuildDate(const QString &buildDate) { + _buildDate = buildDate; +} + +QString Peer::clientVersion() const { + return _clientVersion; +} + +void Peer::setClientVersion(const QString &clientVersion) { + _clientVersion = clientVersion; +} + +Quassel::Features Peer::features() const { + return _features; +} + +void Peer::setFeatures(Quassel::Features features) { + _features = features; +} + +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.