X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fnetworkmodel.h;h=b2d3a3b8db8f6f56f2c85c3f9c7aee8726d4272c;hb=10e6f4629e39c66cfb8db6ab2806bf8f13ec700b;hp=cc230d02f49ae56dff2126e269427f7be6ec9fa8;hpb=b60e07cf184dc374b135489c4d5ec7db1e5f3651;p=quassel.git diff --git a/src/client/networkmodel.h b/src/client/networkmodel.h index cc230d02..b2d3a3b8 100644 --- a/src/client/networkmodel.h +++ b/src/client/networkmodel.h @@ -213,6 +213,14 @@ public: void attachIrcChannel(IrcChannel *ircChannel); + /** + * Gets the list of channel modes for a given nick. + * + * @param[in] nick IrcUser nickname to check + * @returns Channel modes as a string if any, otherwise empty string + */ + QString nickChannelModes(const QString &nick) const; + public slots: void join(const QList &ircUsers); void part(IrcUser *ircUser); @@ -279,6 +287,13 @@ public : virtual QVariant data(int column, int role) const; virtual QString toolTip(int column) const; + /** + * Gets the list of channel modes for this nick if parented to channel. + * + * @returns Channel modes as a string if any, otherwise empty string + */ + QString channelModes() const; + private slots: inline void ircUserQuited() { parent()->removeChild(this); }