diff -r 45e72b57a2fd -r e3cecb93e76a videocollection/tsrc/stubs/src/videothumbnaildata.cpp --- a/videocollection/tsrc/stubs/src/videothumbnaildata.cpp Tue Jul 06 14:17:50 2010 +0300 +++ b/videocollection/tsrc/stubs/src/videothumbnaildata.cpp Wed Aug 18 09:50:14 2010 +0300 @@ -21,8 +21,9 @@ int VideoThumbnailTestData::mInstanceCallCount = 0; int VideoThumbnailTestData::mFreeThumbnailDataCallCount = 0; -int VideoThumbnailTestData::mBackgroundThumbnailFetchingEnabled = 0; +bool VideoThumbnailTestData::mBackgroundThumbnailFetchingEnabled = false; int VideoThumbnailTestData::mStartBackgroundFetchingCallCount = 0; +int VideoThumbnailTestData::mFetchIndex = -1; VideoThumbnailData &VideoThumbnailData::instance() { @@ -62,9 +63,8 @@ void VideoThumbnailData::startBackgroundFetching(VideoSortFilterProxyModel *model, int fetchIndex) { Q_UNUSED(model); - Q_UNUSED(fetchIndex); - VideoThumbnailTestData::mStartBackgroundFetchingCallCount++; + VideoThumbnailTestData::mFetchIndex = fetchIndex; } void VideoThumbnailData::enableBackgroundFetching(bool enable) @@ -72,6 +72,11 @@ VideoThumbnailTestData::mBackgroundThumbnailFetchingEnabled = enable; } +bool VideoThumbnailData::backgroundFetchingEnabled() +{ + return VideoThumbnailTestData::mBackgroundThumbnailFetchingEnabled; +} + void VideoThumbnailData::enableThumbnailCreation(bool enable) { Q_UNUSED(enable);