/***************************************************************************
- * Copyright (C) 2005-2016 by the Quassel Project *
+ * Copyright (C) 2005-2018 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
void setActivityLevel(BufferInfo::ActivityLevel level);
void clearActivityLevel();
void updateActivityLevel(const Message &msg);
+ void setActivity(Message::Types msg, bool highlight);
+ bool addActivity(Message::Types msg, bool highlight);
inline const MsgId &firstUnreadMsgId() const { return _firstUnreadMsgId; }
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<IrcUser *> &ircUsers);
void part(IrcUser *ircUser);
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); }
void clearBufferActivity(const BufferId &bufferId);
void updateBufferActivity(Message &msg);
void networkRemoved(const NetworkId &networkId);
+ void bufferActivityChanged(BufferId, Message::Types);
signals:
void requestSetLastSeenMsg(BufferId buffer, MsgId msg);