+ _allowedBufferTypes = bufferTypes;
+ SYNC(ARG(bufferTypes))
+ emit configChanged();
+}
+
+void BufferViewConfig::setMinimumActivity(int activity)
+{
+ if (_minimumActivity == activity)
+ return;
+
+ _minimumActivity = activity;
+ SYNC(ARG(activity))
+ emit configChanged();
+}
+
+void BufferViewConfig::setHideInactiveBuffers(bool hideInactiveBuffers)
+{
+ if (_hideInactiveBuffers == hideInactiveBuffers)
+ return;
+
+ _hideInactiveBuffers = hideInactiveBuffers;
+ SYNC(ARG(hideInactiveBuffers))
+ emit configChanged();
+}
+
+void BufferViewConfig::setHideInactiveNetworks(bool hideInactiveNetworks)
+{
+ if (_hideInactiveNetworks == hideInactiveNetworks)
+ return;
+
+ _hideInactiveNetworks = hideInactiveNetworks;
+ SYNC(ARG(hideInactiveNetworks))
+ emit configChanged();
+}
+
+void BufferViewConfig::setShowSearch(bool showSearch)
+{
+ if (_showSearch == showSearch) {
+ return;
+ }
+
+ _showSearch = showSearch;
+ SYNC(ARG(showSearch))
+ emit configChanged();
+}
+
+void BufferViewConfig::setBufferList(const QList<BufferId>& buffers)
+{
+ _buffers = buffers;
+ emit configChanged();
+}
+
+void BufferViewConfig::addBuffer(const BufferId& bufferId, int pos)
+{
+ if (_buffers.contains(bufferId))
+ return;
+
+ if (pos < 0)
+ pos = 0;
+ if (pos > _buffers.count())
+ pos = _buffers.count();
+
+ if (_removedBuffers.contains(bufferId))
+ _removedBuffers.remove(bufferId);