X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fircuser.cpp;h=1dbb0f08a177e958df9f5538af7d6c82b425533a;hp=522002548260be95bb7a522964eced61fb46b2ea;hb=2fde026f4e0509e164be0ccd50174cb6b1103d55;hpb=3da47d9186d1d40dc8fe998a130813b84345760d diff --git a/src/common/ircuser.cpp b/src/common/ircuser.cpp index 52200254..1dbb0f08 100644 --- a/src/common/ircuser.cpp +++ b/src/common/ircuser.cpp @@ -47,6 +47,10 @@ IrcUser::IrcUser(const QString &hostmask, Network *network) : SyncableObject(net _codecForDecoding(0) { updateObjectName(); + + #ifdef HAVE_QCA2 + _cipher = 0; + #endif } IrcUser::~IrcUser() { @@ -310,3 +314,16 @@ void IrcUser::setLastSpokenTo(BufferId buffer, const QDateTime &time) { _lastSpokenTo[buffer] = time; emit lastSpokenToUpdated(buffer, time); } + +#ifdef HAVE_QCA2 +Cipher* IrcUser::cipher() { + if(!_cipher) + _cipher = new Cipher(); + return _cipher; +} +#endif + +void IrcUser::setEncrypted(bool e) { + Q_UNUSED(e); + // TODO +} \ No newline at end of file