diff -r 67eb01668b0e -r baf439b22ddd videocollection/mpxmyvideoscollection/src/vcxmyvideosopenhandler.cpp --- a/videocollection/mpxmyvideoscollection/src/vcxmyvideosopenhandler.cpp Wed Jun 09 09:44:23 2010 +0300 +++ b/videocollection/mpxmyvideoscollection/src/vcxmyvideosopenhandler.cpp Mon Jun 21 15:43:03 2010 +0300 @@ -126,7 +126,7 @@ { //we are at root level, return main level items (categories + albums) -#ifndef VIDEO_COLLECTION_PLUGIN_TB92 +#ifdef VCX_ALBUMS iCollection.AlbumsL().CreateAlbumListL(); //async #endif @@ -146,7 +146,7 @@ !iCache.IsComplete() ); TVcxMyVideosCollectionUtil::AppendToListL( *itemList, *iCollection.CategoriesL().iList ); -#ifndef VIDEO_COLLECTION_PLUGIN_TB92 +#ifdef VCX_ALBUMS TVcxMyVideosCollectionUtil::AppendToListL( *itemList, *iCollection.AlbumsL().iAlbumList ); #endif itemList->SetCObjectValueL( KMPXMediaGeneralContainerPath, iPath ); @@ -160,7 +160,7 @@ { //we are at second level, return video list from some category or album -#ifndef VIDEO_COLLECTION_PLUGIN_TB92 +#ifdef VCX_ALBUMS iCollection.AlbumsL().CreateAlbumListL(); //async #endif @@ -390,7 +390,7 @@ iCollection.CategoriesL().UpdateCategoriesNewVideoNamesL(); - iCollection.AlbumsL().CalculateAttributesL(); + iCollection.AlbumsL().CalculateAttributesL(); // adds events if attributes modified, does not send iCollection.iMessageList->AddEventL( KVcxMessageMyVideosListComplete ); } @@ -526,13 +526,13 @@ MPX_DEBUG3("CVcxMyVideosOpenHandler:: adding modify event for album %d, extra info = %d", aAlbumId, EVcxMyVideosVideoListOrderChanged ); - iCollection.iMessageList->AddEventL( TMPXItemId( aAlbumId, 2 ), EMPXItemModified, + iCollection.iMessageList->AddEventL( TMPXItemId( aAlbumId, KVcxMvcMediaTypeAlbum ), EMPXItemModified, EVcxMyVideosVideoListOrderChanged ); } else { //TODO: should add album id - iCollection.AlbumsL().CalculateAttributesL(); + iCollection.AlbumsL().CalculateAttributesL(); // adds events if attributes modified, does not send iCollection.iMessageList->AddEventL( KVcxMessageMyVideosListComplete );