[Kde-bindings] KDE/kdepimlibs/akonadi

Laurent Montel montel at kde.org
Thu Jun 24 13:37:46 UTC 2010


SVN commit 1142242 by mlaurent:

Add API to show or not unsubscribed entity
Ok'ed by Stephen Kelly

CCMAIL: kde-bindings at kde.org


 M  +13 -0     entitytreemodel.cpp  
 M  +14 -0     entitytreemodel.h  


--- trunk/KDE/kdepimlibs/akonadi/entitytreemodel.cpp #1142241:1142242
@@ -83,6 +83,19 @@
   delete d_ptr;
 }
 
+bool EntityTreeModel::includeUnsubscribed() const
+{
+  Q_D( const EntityTreeModel );
+  return d->m_includeUnsubscribed;
+}
+
+void EntityTreeModel::setIncludeUnsubscribed( bool show )
+{
+  Q_D( EntityTreeModel );
+  d->m_includeUnsubscribed = show;
+}
+
+
 bool EntityTreeModel::systemEntitiesShown() const
 {
   Q_D( const EntityTreeModel );
--- trunk/KDE/kdepimlibs/akonadi/entitytreemodel.h #1142241:1142242
@@ -403,7 +403,21 @@
      */
     bool systemEntitiesShown() const;
 
+
     /**
+     * Returns @c true if insubscribed entity are shown, and @c false otherwise.
+     * @since 4.5
+     */
+    bool includeUnsubscribed() const;
+
+    /**
+     * Display unsubscribed entity. By default it's true
+     * @since 4.5
+     */
+    void setIncludeUnsubscribed( bool show );
+
+
+    /**
      * Sets the item population @p strategy of the model.
      */
     void setItemPopulationStrategy( ItemPopulationStrategy strategy );



More information about the Kde-bindings mailing list