Since: BlackBerry 10.0.0

#include <bb/cascades/DataModelChangeType>

Represents different types of data model changes.

These types of data model changes are used by the DataModel::itemsChanged() signal, and can be seen as a hint to the listener about how to visualize the model change (for example, what animations, if any, to use).


Public Types Index

enum Type

Init, AddRemove, Update

Public Types


Data model change types.


BlackBerry 10.0.0


Indicates that all items might have been removed from the DataModel.


Specifies that items in the ListView cache will remain there unless they were removed from the DataModel.

Must be combined with a DataModel::IndexMapper so that the ListView can determine which items it can keep in its cache. Otherwise this option is treated just like Init.

This option can for example be used when a batch of items have been added to or removed from a DataModel.


BlackBerry 10.0.0


Specifies that no items have been added or removed, but the ListView needs to call DataModel::data() again for all cached items.

This option can for example be used when all strings in the application must be reloaded due to a change of locale.


BlackBerry 10.0.0

Last modified: 2015-03-26

Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus