+ /**
+ * Expands the item with the index \a index if \a expanded is true.
+ * If \a expanded is false the item will be collapsed.
+ *
+ * Per default no expanding of items is implemented. When implementing
+ * this method it is mandatory to overwrite KItemModelBase::isExpandable()
+ * and KItemListView::supportsExpandableItems() to return true.
+ *
+ * @return True if the operation has been successful.
+ */
+ virtual bool setExpanded(int index, bool expanded);
+
+ /**
+ * @return True if the item with the index \a index is expanded.
+ * Per default no expanding of items is implemented. When implementing
+ * this method it is mandatory to overwrite KItemModelBase::isExpandable()
+ * and KItemListView::supportsExpandableItems() to return true.
+ */
+ virtual bool isExpanded(int index) const;
+
+ /**
+ * @return True if expanding and collapsing of the item with the index \a index
+ * is supported. Per default false is returned.
+ */
+ virtual bool isExpandable(int index) const;
+
+ /**
+ * @return Number of expanded parent items for the item with the given index.
+ * Per default 0 is returned.
+ */
+ virtual int expandedParentsCount(int index) const;
+
+ /**
+ * @return MIME-data for the items given by \a indexes. The default implementation
+ * returns 0. The ownership of the returned instance is in the hand of the
+ * caller of this method. The method must be implemented if dragging of
+ * items should be possible.
+ */
+ virtual QMimeData* createMimeData(const KItemSet& indexes) const;
+
+ /**
+ * @return Reimplement this to return the index for the first item
+ * beginning with string typed in through the keyboard, -1 if not found.
+ * @param text the text which has been typed in through the keyboard
+ * @param startFromIndex the index from which to start searching from
+ */
+ virtual int indexForKeyboardSearch(const QString& text, int startFromIndex = 0) const;
+
+ /**
+ * @return True, if the item with the index \a index basically supports dropping.
+ * Per default false is returned.
+ *
+ * The information is used only to give a visual feedback during a drag operation
+ * and not to decide whether a drop event gets emitted. It is it is still up to
+ * the receiver of KItemListController::itemDropEvent() to decide how to handle
+ * the drop event.
+ */
+ // TODO: Should the MIME-data be passed too so that the model can do a more specific
+ // decision whether it accepts the drop?
+ virtual bool supportsDropping(int index) const;
+
+ /**
+ * @return An internal mimetype to signal that an itemDropEvent() should be rejected by
+ * the receiving model.
+ *
+ * This mimeType can be used in createMimeData() to notify that the
+ * drop-onto-items events should be ignored, while the drop-between-items
+ * ones should be still accepted.
+ */
+ QString blacklistItemDropEventMimeType() const;