X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcoresession.h;h=72843a5ff13a25efc7ccfbe42b650587ce46343a;hb=6a63070246d89aa2a2474e3a9a1035fa889ad77e;hp=c4bf9efacf83c243fb64ca5c309ad9417740bf09;hpb=71d3d0d705a853fa8fea3729e13dbddf52363417;p=quassel.git diff --git a/src/core/coresession.h b/src/core/coresession.h index c4bf9efa..72843a5f 100644 --- a/src/core/coresession.h +++ b/src/core/coresession.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -69,6 +69,7 @@ public: inline UserId user() const { return _user; } CoreNetwork *network(NetworkId) const; CoreIdentity *identity(IdentityId) const; + const QString strictSysident(); inline CoreNetworkConfig *networkConfig() const { return _networkConfig; } NetworkConnection *networkConnection(NetworkId) const; @@ -137,6 +138,9 @@ public slots: QHash persistentChannels(NetworkId) const; + QHash bufferCiphers(NetworkId id) const; + void setBufferCipher(NetworkId id, const QString &bufferName, const QByteArray &cipher) const; + /** * Marks us away (or unaway) on all networks * @@ -237,6 +241,20 @@ private: * @param bufferInfo The BufferInfo object of the buffer */ QString senderPrefixes(const QString &sender, const BufferInfo &bufferInfo) const; + + /** + * This method obtains the realname of the message's sender. + * @param sender The hostmask of the sender + * @param networkId The network the user is on + */ + QString realName(const QString &sender, NetworkId networkId) const; + + /** + * This method obtains the avatar of the message's sender. + * @param sender The hostmask of the sender + * @param networkId The network the user is on + */ + QString avatarUrl(const QString &sender, NetworkId networkId) const; QList _messageQueue; bool _processMessages; CoreIgnoreListManager _ignoreListManager;