X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fnetworkmodel.h;h=5326a4b3076c953c5739d0e361065e87a9fa6039;hp=821364846619815094a2ca2b897bed0b1cf1b2b5;hb=770b7ef54b03f3ebd1e29a58b4757505e1809b2d;hpb=efd5115ab858c22c2e679a1b59f925a0bdd6ff70 diff --git a/src/client/networkmodel.h b/src/client/networkmodel.h index 82136484..5326a4b3 100644 --- a/src/client/networkmodel.h +++ b/src/client/networkmodel.h @@ -53,6 +53,7 @@ public: const BufferInfo &bufferInfo() const; virtual quint64 id() const; virtual QVariant data(int column, int role) const; + virtual bool setData(int column, const QVariant &value, int role); void attachIrcChannel(IrcChannel *ircChannel); @@ -81,7 +82,7 @@ public: ActivityLevel activity() const; void setActivity(const ActivityLevel &level); - void addActivity(const ActivityLevel &level); + void updateActivity(const ActivityLevel &level); public slots: void setTopic(const QString &topic); @@ -202,6 +203,7 @@ public: enum myRoles { BufferTypeRole = Qt::UserRole, ItemActiveRole, + BufferActivityRole, BufferIdRole, NetworkIdRole, BufferInfoRole, @@ -233,7 +235,7 @@ public: public slots: void bufferUpdated(BufferInfo bufferInfo); - void bufferActivity(BufferItem::ActivityLevel, BufferInfo bufferInfo); + void updateBufferActivity(const Message &msg); private: QModelIndex networkIndex(NetworkId networkId);