+int BufferViewConfig::bufferViewId() const
+{
+ return _bufferViewId;
+}
+
+QString BufferViewConfig::bufferViewName() const
+{
+ return _bufferViewName;
+}
+
+NetworkId BufferViewConfig::networkId() const
+{
+ return _networkId;
+}
+
+bool BufferViewConfig::addNewBuffersAutomatically() const
+{
+ return _addNewBuffersAutomatically;
+}
+
+bool BufferViewConfig::sortAlphabetically() const
+{
+ return _sortAlphabetically;
+}
+
+bool BufferViewConfig::disableDecoration() const
+{
+ return _disableDecoration;
+}
+
+int BufferViewConfig::allowedBufferTypes() const
+{
+ return _allowedBufferTypes;
+}
+
+int BufferViewConfig::minimumActivity() const
+{
+ return _minimumActivity;
+}
+
+bool BufferViewConfig::hideInactiveBuffers() const
+{
+ return _hideInactiveBuffers;
+}
+
+bool BufferViewConfig::hideInactiveNetworks() const
+{
+ return _hideInactiveNetworks;
+}
+
+bool BufferViewConfig::showSearch() const
+{
+ return _showSearch;
+}
+
+QList<BufferId> BufferViewConfig::bufferList() const
+{
+ return _buffers;
+}
+
+QSet<BufferId> BufferViewConfig::removedBuffers() const
+{
+ return _removedBuffers;
+}
+
+QSet<BufferId> BufferViewConfig::temporarilyRemovedBuffers() const
+{
+ return _temporarilyRemovedBuffers;
+}
+
+QVariantList BufferViewConfig::initBufferList() const
+{
+ QVariantList buffers;
+
+ foreach (BufferId bufferId, _buffers) {
+ buffers << QVariant::fromValue(bufferId);
+ }
+
+ return buffers;
+}
+
+void BufferViewConfig::initSetBufferList(const QVariantList& buffers)
+{
+ _buffers.clear();
+
+ foreach (QVariant buffer, buffers) {
+ _buffers << buffer.value<BufferId>();
+ }
+
+ emit configChanged(); // used to track changes in the settingspage
+}
+
+QVariantList BufferViewConfig::initRemovedBuffers() const
+{
+ QVariantList removedBuffers;
+
+ foreach (BufferId bufferId, _removedBuffers) {
+ removedBuffers << QVariant::fromValue(bufferId);
+ }
+
+ return removedBuffers;
+}
+
+void BufferViewConfig::initSetRemovedBuffers(const QVariantList& buffers)
+{
+ _removedBuffers.clear();
+
+ foreach (QVariant buffer, buffers) {
+ _removedBuffers << buffer.value<BufferId>();
+ }
+}
+
+QVariantList BufferViewConfig::initTemporarilyRemovedBuffers() const
+{
+ QVariantList temporarilyRemovedBuffers;
+
+ foreach (BufferId bufferId, _temporarilyRemovedBuffers) {
+ temporarilyRemovedBuffers << QVariant::fromValue(bufferId);
+ }
+
+ return temporarilyRemovedBuffers;
+}
+
+void BufferViewConfig::initSetTemporarilyRemovedBuffers(const QVariantList& buffers)
+{
+ _temporarilyRemovedBuffers.clear();
+
+ foreach (QVariant buffer, buffers) {
+ _temporarilyRemovedBuffers << buffer.value<BufferId>();
+ }
+}