engine/collectionframework/plugins/glxcollectionpluginalbums/src/glxcollectionpluginalbums.cpp
changeset 49 f291796e213d
parent 26 c499df2dbb33
child 62 36d93b4dc635
equal deleted inserted replaced
48:d0b4e67b3a60 49:f291796e213d
    43 #include <glxrequest.h>
    43 #include <glxrequest.h>
    44 #include <glxidlistrequest.h>
    44 #include <glxidlistrequest.h>
    45 #include <glxfilterfactory.h>
    45 #include <glxfilterfactory.h>
    46 #include <glxlog.h>
    46 #include <glxlog.h>
    47 
    47 
       
    48 #include "glxsymbianlocalisationstrings.h"
       
    49 
    48 // CONSTANTS
    50 // CONSTANTS
    49 const TInt KFavoriteAlbumId = 1 ;
    51 const TInt KFavoriteAlbumId = 1 ;
    50 const TInt KCapturedAlbumId = 2 ;
    52 const TInt KCapturedAlbumId = 2 ;
    51 
    53 
    52 
    54 
   212             	}
   214             	}
   213             else
   215             else
   214             	{
   216             	{
   215             	if(0 == usageCount)
   217             	if(0 == usageCount)
   216             		{
   218             		{
   217                 	tempTitle = LoadLocalizedStringLC(KResourceFile, R_ALBUM_ITEM_SUB_TITLE_EMPTY);
   219                 	tempTitle = LoadLocalizedStringLC(KNoImages); 
       
   220          
   218                 	
   221                 	
   219                 	// Set the title in the response.
   222                 	// Set the title in the response.
   220             		aResponse->SetTextValueL(attr, *tempTitle);  
   223             		aResponse->SetTextValueL(attr, *tempTitle);  
   221             		CleanupStack::PopAndDestroy(tempTitle);
   224             		CleanupStack::PopAndDestroy(tempTitle);
   222             		continue;                	
   225             		continue;                	
   274                 {
   277                 {
   275                 if( aResponse->IsSupported(KGlxMediaCollectionInternalSystemItemType) )
   278                 if( aResponse->IsSupported(KGlxMediaCollectionInternalSystemItemType) )
   276 					{
   279 					{
   277 					if( TGlxMediaId(KCapturedAlbumId) == aMediaId )
   280 					if( TGlxMediaId(KCapturedAlbumId) == aMediaId )
   278 						{
   281 						{
   279 					     _LIT(KCameraText,"txt_photos_dblist_my_camera");
       
   280 						 HBufC* title = LoadLocalizedStringLC(KCameraText);
   282 						 HBufC* title = LoadLocalizedStringLC(KCameraText);
   281 						 aResponse->SetTextValueL(attr, *title);  
   283 						 aResponse->SetTextValueL(attr, *title);  
   282 						 CleanupStack::PopAndDestroy(title);						
   284 						 CleanupStack::PopAndDestroy(title);						
   283 						}
   285 						}
   284 					else if (TGlxMediaId(KFavoriteAlbumId) == aMediaId  )
   286 					else if (TGlxMediaId(KFavoriteAlbumId) == aMediaId  )
   285 						{
   287 						{
   286 					    _LIT(KMyFavText,"txt_photos_dblist_my_favorites");				                                    					                  
       
   287 						HBufC* title = LoadLocalizedStringLC(KMyFavText);
   288 						HBufC* title = LoadLocalizedStringLC(KMyFavText);
   288 						aResponse->SetTextValueL(attr, *title);  
   289 						aResponse->SetTextValueL(attr, *title);  
   289 						CleanupStack::PopAndDestroy(title);						
   290 						CleanupStack::PopAndDestroy(title);						
   290 						}
   291 						}
   291 					}                                             
   292 					}