X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcoresession.h;h=72843a5ff13a25efc7ccfbe42b650587ce46343a;hb=436cb365db846985ef5ce508cb5bf925cd903480;hp=3bc7cd0ac4c07f2e8bc1ec8d2005d54f1c56eacf;hpb=16f22647e6890d3eb8c3e94f7a0700e12fa29e44;p=quassel.git diff --git a/src/core/coresession.h b/src/core/coresession.h index 3bc7cd0a..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 * @@ -26,12 +26,12 @@ #include "corecoreinfo.h" #include "corealiasmanager.h" +#include "corehighlightrulemanager.h" #include "coreignorelistmanager.h" #include "peer.h" #include "protocol.h" #include "message.h" #include "storage.h" -#include "corehighlightrulemanager.h" class CoreBacklogManager; class CoreBufferSyncer; @@ -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;