X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fnetwork.h;h=bf430f8eef38e94e3ff02fc7a29a8e830800590c;hb=d474ca8e41ebb9b4f057876560ec93a60d06d0da;hp=29d57492a40b4b33dfd727bb723e149bfde04488;hpb=3ed7d3bb6e9123ff0aa77023b264a39d1f63bd90;p=quassel.git diff --git a/src/common/network.h b/src/common/network.h index 29d57492..bf430f8e 100644 --- a/src/common/network.h +++ b/src/common/network.h @@ -95,6 +95,7 @@ public: QString networkName() const; QString currentServer() const; QString myNick() const; + inline IrcUser *me() const { return ircUser(myNick()); } IdentityId identity() const; QStringList nicks() const; QStringList channels() const; @@ -181,6 +182,7 @@ public slots: void removeSupport(const QString ¶m); inline void addIrcUser(const QString &hostmask) { newIrcUser(hostmask); } + inline void addIrcChannel(const QString &channel) { newIrcChannel(channel); } void removeIrcUser(const QString &nick); void removeIrcChannel(const QString &channel); @@ -208,6 +210,7 @@ public slots: void emitConnectionError(const QString &); private slots: + void ircUserDestroyed(); void channelDestroyed(); void removeIrcUser(IrcUser *ircuser); void removeIrcChannel(IrcChannel *ircChannel);