--- a/photosgallery/contentharvesterplugin/src/glxcontentharvesterpluginmonths.cpp Thu Dec 17 08:45:44 2009 +0200
+++ b/photosgallery/contentharvesterplugin/src/glxcontentharvesterpluginmonths.cpp Thu Jan 07 12:46:23 2010 +0200
@@ -73,7 +73,9 @@
CGlxContentHarvesterPluginBase::ConstructL(EMbmGlxiconsQgn_prop_image_notcreated);
iPeriodic = CPeriodic::NewL( CActive::EPriorityLow );
- iThumbnailContext = CGlxThumbnailContext::NewL(&iThumbnailIterator);
+
+ iUriAttributeContext = new (ELeave) CGlxAttributeContext(&iThumbnailIterator);
+ iThumbnailAttributeContext = new (ELeave) CGlxAttributeContext(&iThumbnailIterator);
//Register/Subscribe with matrix menu for the notifications
GetInterfaceForNotificationL();
@@ -437,8 +439,12 @@
{
GLX_LOG_INFO("CGlxContentHarvesterPluginMonths::DestroyMedialist,media list deleted");
RemoveContextAndObserver();
- delete iThumbnailContext;
- iThumbnailContext = NULL;
+
+ delete iUriAttributeContext;
+ iUriAttributeContext = NULL;
+ delete iThumbnailAttributeContext;
+ iThumbnailAttributeContext = NULL;
+
iMediaList->Close();
iMediaList = NULL;
}
@@ -464,8 +470,9 @@
iThumbnailIterator.SetRange( KSinglePreviewThumbnail );
}
- iMediaList = CreateMedialistAndThumbnailContextL( TGlxMediaId(
- KGlxCollectionPluginMonthsImplementationUid ),iThumbnailContext);
+ iMediaList = CreateMedialistAndAttributeContextL( TGlxMediaId(
+ KGlxCollectionPluginMonthsImplementationUid ),
+ iUriAttributeContext,iThumbnailAttributeContext);
AddContextAndObserverL();
}
}
@@ -543,7 +550,8 @@
if(iMediaList)
{
iMediaList->AddMediaListObserverL( this );
- iMediaList->AddContextL(iThumbnailContext, KGlxFetchContextPriorityNormal);
+ iMediaList->AddContextL(iUriAttributeContext, KGlxFetchContextPriorityNormal);
+ iMediaList->AddContextL(iThumbnailAttributeContext, KGlxFetchContextPriorityLow);
}
}
@@ -557,7 +565,8 @@
if(iMediaList)
{
iMediaList->RemoveMediaListObserver( this );
- iMediaList->RemoveContext(iThumbnailContext);
+ iMediaList->RemoveContext(iUriAttributeContext);
+ iMediaList->RemoveContext(iThumbnailAttributeContext);
}
}