X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fircuser.cpp;h=181f1109b89d02c3f977193f577f50c8788b5878;hb=f9f40188bcdbc787ad3e2f5e29ad5223c755b252;hp=e42bea7d0003c68c7e89ad34a77e1df53517a7db;hpb=2a00e8f57d66d9913a10c30408b89676a74010a1;p=quassel.git diff --git a/src/common/ircuser.cpp b/src/common/ircuser.cpp index e42bea7d..181f1109 100644 --- a/src/common/ircuser.cpp +++ b/src/common/ircuser.cpp @@ -124,6 +124,7 @@ void IrcUser::setRealName(const QString &realName) { void IrcUser::setAway(const bool &away) { if(away != _away) { _away = away; + emit awaySet(away); SYNC(ARG(away)) } } @@ -182,6 +183,7 @@ void IrcUser::setNick(const QString &nick) { if(!nick.isEmpty() && nick != _nick) { _nick = nick; updateObjectName(); + emit nickSet(nick); SYNC(ARG(nick)) } } @@ -218,7 +220,7 @@ void IrcUser::joinChannel(IrcChannel *channel) { Q_ASSERT(channel); if(!_channels.contains(channel)) { _channels.insert(channel); - channel->joinIrcUsers(this); + channel->joinIrcUser(this); } } @@ -231,7 +233,8 @@ void IrcUser::partChannel(IrcChannel *channel) { _channels.remove(channel); disconnect(channel, 0, this, 0); channel->part(this); - emit channelParted(channel->name()); + QString channelName = channel->name(); + SYNC_OTHER(partChannel, ARG(channelName)) if(_channels.isEmpty() && !network()->isMe(this)) quit(); } @@ -254,6 +257,7 @@ void IrcUser::quit() { channel->part(this); } network()->removeIrcUser(this); + SYNC(NO_ARG) emit quited(); } @@ -270,6 +274,7 @@ void IrcUser::channelDestroyed() { void IrcUser::setUserModes(const QString &modes) { _userModes = modes; SYNC(ARG(modes)) + emit userModesSet(modes); } void IrcUser::addUserModes(const QString &modes) { @@ -282,6 +287,7 @@ void IrcUser::addUserModes(const QString &modes) { } SYNC(ARG(modes)) + emit userModesAdded(modes); } void IrcUser::removeUserModes(const QString &modes) { @@ -292,6 +298,7 @@ void IrcUser::removeUserModes(const QString &modes) { _userModes.remove(modes[i]); } SYNC(ARG(modes)) + emit userModesRemoved(modes); } void IrcUser::setLastChannelActivity(BufferId buffer, const QDateTime &time) {