X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fircuser.cpp;h=95892c49b2c258bc032ad64b19b263a0b6999670;hp=e42bea7d0003c68c7e89ad34a77e1df53517a7db;hb=4ae8f86c1ce452582d6fe576956c7c1bc1460adf;hpb=2a00e8f57d66d9913a10c30408b89676a74010a1 diff --git a/src/common/ircuser.cpp b/src/common/ircuser.cpp index e42bea7d..95892c49 100644 --- a/src/common/ircuser.cpp +++ b/src/common/ircuser.cpp @@ -47,6 +47,7 @@ IrcUser::IrcUser(const QString &hostmask, Network *network) : SyncableObject(net _codecForDecoding(0) { updateObjectName(); + } IrcUser::~IrcUser() { @@ -125,6 +126,7 @@ void IrcUser::setAway(const bool &away) { if(away != _away) { _away = away; SYNC(ARG(away)) + emit awaySet(away); } } @@ -183,6 +185,7 @@ void IrcUser::setNick(const QString &nick) { _nick = nick; updateObjectName(); SYNC(ARG(nick)) + emit nickSet(nick); } } @@ -218,7 +221,7 @@ void IrcUser::joinChannel(IrcChannel *channel) { Q_ASSERT(channel); if(!_channels.contains(channel)) { _channels.insert(channel); - channel->joinIrcUsers(this); + channel->joinIrcUser(this); } } @@ -231,7 +234,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 +258,7 @@ void IrcUser::quit() { channel->part(this); } network()->removeIrcUser(this); + SYNC(NO_ARG) emit quited(); } @@ -270,6 +275,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 +288,7 @@ void IrcUser::addUserModes(const QString &modes) { } SYNC(ARG(modes)) + emit userModesAdded(modes); } void IrcUser::removeUserModes(const QString &modes) { @@ -292,6 +299,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) {