_codecForDecoding(0)
{
updateObjectName();
+
+ #ifdef HAVE_QCA2
+ _cipher = 0;
+ #endif
}
IrcUser::~IrcUser() {
void IrcUser::setNick(const QString &nick) {
if(!nick.isEmpty() && nick != _nick) {
- qDebug() << "setNick" << this << _nick << nick;
_nick = nick;
updateObjectName();
SYNC(ARG(nick))
_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