X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fremotepeer.cpp;h=60c8b63d999cd5051cb29cbc5c27893ed465ea2e;hb=8fe8accd73abf77ab21d2d1c1346d2bc5c4de2ff;hp=e8fa578d90f6bb0b001acef2954f4bee8288f408;hpb=1cb02004ee5973b89368bd84f234d4652794690d;p=quassel.git diff --git a/src/common/remotepeer.cpp b/src/common/remotepeer.cpp index e8fa578d..60c8b63d 100644 --- a/src/common/remotepeer.cpp +++ b/src/common/remotepeer.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 * @@ -91,6 +91,22 @@ QString RemotePeer::description() const return QString(); } +QString RemotePeer::address() const +{ + if (socket()) + return socket()->peerAddress().toString(); + + return QString(); +} + +quint16 RemotePeer::port() const +{ + if (socket()) + return socket()->peerPort(); + + return 0; +} + ::SignalProxy *RemotePeer::signalProxy() const {