diff -r 3738fe97f027 -r 8aed59de29f9 videocollection/videocollectionwrapper/tsrc/testvideomodel_p/stub/inc/videolistdatamodel.h --- a/videocollection/videocollectionwrapper/tsrc/testvideomodel_p/stub/inc/videolistdatamodel.h Thu Apr 01 23:32:44 2010 +0300 +++ b/videocollection/videocollectionwrapper/tsrc/testvideomodel_p/stub/inc/videolistdatamodel.h Fri Apr 16 18:13:14 2010 +0300 @@ -30,7 +30,7 @@ */ Q_DISABLE_COPY(VideoListDataModel) - friend class VideoListDataModelPrivate; + friend class VideoListDataModelPrivate; public: @@ -104,6 +104,10 @@ QModelIndex index(int row, int column, const QModelIndex & parent = QModelIndex()) const { Q_UNUSED(parent); + if(mIndexReturnsInvalid) + { + return QModelIndex(); + } return createIndex(row, column); } @@ -139,6 +143,12 @@ mStatus = status; mStatusData = data; } + + void itemModified(const TMPXItemId itemId) + { + mModifiedItemId = itemId; + } + /** * dummy collectionclient */ @@ -178,10 +188,17 @@ * setted in reportAsyncStatus */ static QVariant mStatusData; + + /** + * setted in itemModified + */ + static TMPXItemId mModifiedItemId; + + /** + * Flag if index() should return invalid index. + */ + static bool mIndexReturnsInvalid; }; #endif // __STUBTESTMODEL_H__ // End of file - - -