_codecForDecoding(0)
{
updateObjectName();
+
+ #ifdef HAVE_QCA2
+ _cipher = 0;
+ #endif
}
IrcUser::~IrcUser() {
void IrcUser::setAway(const bool &away) {
if(away != _away) {
_away = away;
- emit awaySet(away);
SYNC(ARG(away))
+ emit awaySet(away);
}
}
if(!nick.isEmpty() && nick != _nick) {
_nick = nick;
updateObjectName();
- emit nickSet(nick);
SYNC(ARG(nick))
+ emit nickSet(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