diff -r 13331705e488 -r 229f037ce963 videocollection/videocollectionview/inc/videocollectionviewutils.h --- a/videocollection/videocollectionview/inc/videocollectionviewutils.h Fri Jun 11 09:44:20 2010 +0300 +++ b/videocollection/videocollectionview/inc/videocollectionviewutils.h Thu Jun 24 09:49:13 2010 +0300 @@ -85,19 +85,39 @@ static void sortModel(VideoSortFilterProxyModel *model, bool async, VideoCollectionCommon::TCollectionLevels target); /** - * Method saves the latest videolist widget level into activity manager db + * Method saves the latest videolist widget level into local activity manager + * data container. + * + * Note that collection id will be cleared in activity data in case level is + * all videos or collection list. * - * @param level type of widget + * @param level collection level */ - static void saveWidgetLevel(VideoCollectionCommon::TCollectionLevels &level); + static void setWidgetActivityLevel(const VideoCollectionCommon::TCollectionLevels &level); + + /** + * Method gets the latest videolist widget level from local activity manager + * data container. + * + * @param level, reference to level variable where value is saved + */ + static void getActivityWidgetLevel(VideoCollectionCommon::TCollectionLevels &level); /** - * Method loads the latest videolist widget level from activity manager db. - * Possible values are ELevelCategory or ELevelVideos + * method saves provided id and string into local activity + * manager data container. * - * @return VideoCollectionCommon::TCollectionLevels + * @param id. Id to save */ - static VideoCollectionCommon::TCollectionLevels loadWidgetLevel(); + static void setCollectionActivityData(const TMPXItemId &id, const QString &name); + + /** + * method reads id and string from from local activity manager data + * container and prepares MPX item id. + * + * @param id. Id to return + */ + static void getCollectionActivityData(TMPXItemId &id, QString &name); public slots: