-void BufferSyncer::removeBuffer(BufferId buffer) {
- if(_lastSeenMsg.contains(buffer))
- _lastSeenMsg.remove(buffer);
- if(_markerLines.contains(buffer))
- _markerLines.remove(buffer);
- SYNC(ARG(buffer))
- emit bufferRemoved(buffer);
+
+Message::Types BufferSyncer::activity(BufferId buffer) const
+{
+ return _bufferActivities.value(buffer, Message::Types());
+}
+
+
+void BufferSyncer::removeBuffer(BufferId buffer)
+{
+ if (_lastSeenMsg.contains(buffer))
+ _lastSeenMsg.remove(buffer);
+ if (_markerLines.contains(buffer))
+ _markerLines.remove(buffer);
+ if (_bufferActivities.contains(buffer))
+ _bufferActivities.remove(buffer);
+ SYNC(ARG(buffer))
+ emit bufferRemoved(buffer);