common: Make frequently called util methods more efficient
[quassel.git] / src / common / bufferviewconfig.h
index 6d02452..59164bb 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2013 by the Quassel Project                        *
+ *   Copyright (C) 2005-2016 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -35,9 +35,11 @@ class BufferViewConfig : public SyncableObject
     Q_PROPERTY(bool addNewBuffersAutomatically READ addNewBuffersAutomatically WRITE setAddNewBuffersAutomatically)
     Q_PROPERTY(bool sortAlphabetically READ sortAlphabetically WRITE setSortAlphabetically)
     Q_PROPERTY(bool hideInactiveBuffers READ hideInactiveBuffers WRITE setHideInactiveBuffers)
+    Q_PROPERTY(bool hideInactiveNetworks READ hideInactiveNetworks WRITE setHideInactiveNetworks)
     Q_PROPERTY(bool disableDecoration READ disableDecoration WRITE setDisableDecoration)
     Q_PROPERTY(int allowedBufferTypes READ allowedBufferTypes WRITE setAllowedBufferTypes)
     Q_PROPERTY(int minimumActivity READ minimumActivity WRITE setMinimumActivity)
+    Q_PROPERTY(bool showSearch READ showSearch WRITE setShowSearch)
 
 public :
         BufferViewConfig(int bufferViewId, QObject *parent = 0);
@@ -72,6 +74,12 @@ public slots:
     inline bool hideInactiveBuffers() const { return _hideInactiveBuffers; }
     void setHideInactiveBuffers(bool hideInactiveBuffers);
 
+    inline bool hideInactiveNetworks() const { return _hideInactiveNetworks; }
+    void setHideInactiveNetworks(bool hideInactiveNetworks);
+
+    inline bool showSearch() const { return _showSearch; }
+    void setShowSearch(bool showSearch);
+
     virtual inline void requestSetBufferViewName(const QString &bufferViewName) { REQUEST(ARG(bufferViewName)) }
 
     const QList<BufferId> &bufferList() const { return _buffers; }
@@ -127,9 +135,11 @@ private:
     bool _addNewBuffersAutomatically;
     bool _sortAlphabetically;
     bool _hideInactiveBuffers;
+    bool _hideInactiveNetworks;
     bool _disableDecoration;
     int _allowedBufferTypes;
     int _minimumActivity;
+    bool _showSearch;
     QList<BufferId> _buffers;
     QSet<BufferId> _removedBuffers;
     QSet<BufferId> _temporarilyRemovedBuffers;