photosgallery/viewframework/views/fullscreenview/src/glxsinglelinemetapanecontrol.cpp
changeset 2 7d9067c6fcb1
parent 0 4e91876724a2
equal deleted inserted replaced
1:9ba538e329bd 2:7d9067c6fcb1
    68 _LIT(KEmptyText, "");
    68 _LIT(KEmptyText, "");
    69 _LIT(KFormat, " ");
    69 _LIT(KFormat, " ");
    70 _LIT8(KTagLoc, "Loc");
    70 _LIT8(KTagLoc, "Loc");
    71 _LIT8(KTagFav, "Fav");
    71 _LIT8(KTagFav, "Fav");
    72 
    72 
    73 #define GetAppUi() (dynamic_cast<CAknAppUi*>(CEikonEnv::Static()->EikAppUi()))
       
    74 
       
    75 
       
    76 // ---------------------------------------------------------------------------
    73 // ---------------------------------------------------------------------------
    77 // NewL
    74 // NewL
    78 // ---------------------------------------------------------------------------
    75 // ---------------------------------------------------------------------------
    79 //  
    76 //  
    80 CGlxSinleLineMetaPane* CGlxSinleLineMetaPane::NewL(CGlxFullScreenViewImp& aFullscreenView,
    77 CGlxSingleLineMetaPane* CGlxSingleLineMetaPane::NewL(CGlxFullScreenViewImp& aFullscreenView,
    81         MGlxMediaList& aMediaList, CGlxUiUtility& aUiUtility)
    78         MGlxMediaList& aMediaList, CGlxUiUtility& aUiUtility)
    82     {
    79     {
    83     TRACER("CGlxSinleLineMetaPane* CGlxSinleLineMetaPane::NewL()");
    80     TRACER("CGlxSingleLineMetaPane* CGlxSingleLineMetaPane::NewL()");
    84     CGlxSinleLineMetaPane* self = new (ELeave) CGlxSinleLineMetaPane(aFullscreenView,
    81     CGlxSingleLineMetaPane* self = new (ELeave) CGlxSingleLineMetaPane(aFullscreenView,
    85             aMediaList, aUiUtility);
    82             aMediaList, aUiUtility);
    86     CleanupStack::PushL(self);
    83     CleanupStack::PushL(self);
    87     self->ConstructL();
    84     self->ConstructL();
    88     CleanupStack::Pop(self);
    85     CleanupStack::Pop(self);
    89     return self;
    86     return self;
    90     }
    87     }
    91 
    88 
    92 // ---------------------------------------------------------------------------
    89 // ---------------------------------------------------------------------------
    93 // CGlxSinleLineMetaPane() constructor
    90 // CGlxSingleLineMetaPane() constructor
    94 // ---------------------------------------------------------------------------
    91 // ---------------------------------------------------------------------------
    95 //  
    92 //  
    96 CGlxSinleLineMetaPane::CGlxSinleLineMetaPane(CGlxFullScreenViewImp& aFullscreenView, 
    93 CGlxSingleLineMetaPane::CGlxSingleLineMetaPane(CGlxFullScreenViewImp& aFullscreenView, 
    97         MGlxMediaList& aMediaList, CGlxUiUtility& aUiUtility) :iFullscreenView(aFullscreenView),
    94         MGlxMediaList& aMediaList, CGlxUiUtility& aUiUtility) :iFullscreenView(aFullscreenView),
    98         iMediaList(aMediaList), iUiUtility(aUiUtility)
    95         iMediaList(aMediaList), iUiUtility(aUiUtility)
    99     {
    96     {
   100     TRACER("CGlxSinleLineMetaPane* CGlxSinleLineMetaPane::NewL()");
    97     TRACER("CGlxSingleLineMetaPane* CGlxSingleLineMetaPane::NewL()");
   101     // No Implementation
    98     // No Implementation
   102     }
    99     }
   103 
   100 
   104 // ---------------------------------------------------------------------------
   101 // ---------------------------------------------------------------------------
   105 // ConstructL
   102 // ConstructL
   106 // ---------------------------------------------------------------------------
   103 // ---------------------------------------------------------------------------
   107 //  
   104 //  
   108 void CGlxSinleLineMetaPane::ConstructL()
   105 void CGlxSingleLineMetaPane::ConstructL()
   109     {
   106     {
   110     TRACER("CGlxSinleLineMetaPane::ConstructL()");
   107     TRACER("CGlxSingleLineMetaPane::ConstructL()");
   111     // Construct the base class.
   108     // Construct the base class.
   112     // Get the icon file
   109     // Get the icon file
   113     TFileName resFile(KDC_APP_BITMAP_DIR);
   110     TFileName resFile(KDC_APP_BITMAP_DIR);
   114     resFile.Append(KGlxIconsFilename);
   111     resFile.Append(KGlxIconsFilename);
   115 
   112 
   183     // Store the Current Screensize
   180     // Store the Current Screensize
   184     iScreenSize = GetScreenSize();
   181     iScreenSize = GetScreenSize();
   185     }
   182     }
   186 
   183 
   187 // ---------------------------------------------------------------------------
   184 // ---------------------------------------------------------------------------
   188 // ~CGlxSinleLineMetaPane Destructor
   185 // ~CGlxSingleLineMetaPane Destructor
   189 // ---------------------------------------------------------------------------
   186 // ---------------------------------------------------------------------------
   190 //  
   187 //  
   191 CGlxSinleLineMetaPane::~CGlxSinleLineMetaPane()
   188 CGlxSingleLineMetaPane::~CGlxSingleLineMetaPane()
   192     {
   189     {
   193     TRACER("CGlxSinleLineMetaPane::~CGlxSinleLineMetaPane()");
   190     TRACER("CGlxSingleLineMetaPane::~CGlxSingleLineMetaPane()");
   194     iMediaList.RemoveMediaListObserver(this);
   191     iMediaList.RemoveMediaListObserver(this);
   195     if( iAttribContext )
   192     if( iAttribContext )
   196         {
   193         {
   197         iMediaList.RemoveContext( iAttribContext );
   194         iMediaList.RemoveContext( iAttribContext );
   198         delete iAttribContext;
   195         delete iAttribContext;
   211 
   208 
   212 // ---------------------------------------------------------------------------
   209 // ---------------------------------------------------------------------------
   213 // CreateIconTextureAndUpdateVisualsL
   210 // CreateIconTextureAndUpdateVisualsL
   214 // ---------------------------------------------------------------------------
   211 // ---------------------------------------------------------------------------
   215 //  
   212 //  
   216 void CGlxSinleLineMetaPane::CreateIconTextureAndUpdateVisualsL()
   213 void CGlxSingleLineMetaPane::CreateIconTextureAndUpdateVisualsL()
   217     {
   214     {
   218     TRACER("CGlxSinleLineMetaPane::CreateIconTextureAndUpdateVisualsL()");
   215     TRACER("CGlxSingleLineMetaPane::CreateIconTextureAndUpdateVisualsL()");
   219     // Get the icon file
   216     // Get the icon file
   220     TFileName resFile(KDC_APP_BITMAP_DIR);
   217     TFileName resFile(KDC_APP_BITMAP_DIR);
   221     resFile.Append(KGlxIconsFilename);
   218     resFile.Append(KGlxIconsFilename);
   222     CGlxTextureManager& tm = (iUiUtility.GlxTextureManager());
   219     CGlxTextureManager& tm = (iUiUtility.GlxTextureManager());
   223     //Create the texture for broken thumbnail
   220     //Create the texture for broken thumbnail
   233 // ---------------------------------------------------------------------------
   230 // ---------------------------------------------------------------------------
   234 // CreateGridL
   231 // CreateGridL
   235 // @bug :tapadar :major :This function is using magic numbers, would be corrected with updated LAF docs
   232 // @bug :tapadar :major :This function is using magic numbers, would be corrected with updated LAF docs
   236 // ---------------------------------------------------------------------------
   233 // ---------------------------------------------------------------------------
   237 //  
   234 //  
   238 void CGlxSinleLineMetaPane::CreateGridL()
   235 void CGlxSingleLineMetaPane::CreateGridL()
   239     {
   236     {
   240     TRACER("CGlxSinleLineMetaPane::CreateGridL()");
   237     TRACER("CGlxSingleLineMetaPane::CreateGridL()");
   241 
   238 
   242     iGridVisual->SetPadding(TPoint(1,1));
   239     iGridVisual->SetPadding(TPoint(1,1));
   243     iGridVisual->SetInnerPadding( TPoint(1,1) );
   240     iGridVisual->SetInnerPadding( TPoint(1,1) );
   244     RArray<TInt> weights;
   241     RArray<TInt> weights;
   245     CleanupClosePushL(weights);
   242     CleanupClosePushL(weights);
   287 
   284 
   288 // ---------------------------------------------------------------------------
   285 // ---------------------------------------------------------------------------
   289 // ShowMetaPane
   286 // ShowMetaPane
   290 // ---------------------------------------------------------------------------
   287 // ---------------------------------------------------------------------------
   291 //  
   288 //  
   292 void CGlxSinleLineMetaPane::ShowMetaPane(TBool aShow)
   289 void CGlxSingleLineMetaPane::ShowMetaPane(TBool aShow)
   293     {
   290     {
   294     TRACER("CGlxSinleLineMetaPane::ShowMetaPane()");
   291     TRACER("CGlxSingleLineMetaPane::ShowMetaPane()");
   295     GLX_LOG_INFO1("CGlxSinleLineMetaPane::ShowMetaPane() value %d",aShow);
   292     GLX_LOG_INFO1("CGlxSingleLineMetaPane::ShowMetaPane() value %d",aShow);
   296     if(aShow)
   293     if(aShow)
   297         {
   294         {
   298         iMainVisual->SetOpacity(KOpacityOpaque);    
   295         iMainVisual->SetOpacity(KOpacityOpaque);    
   299         }
   296         }
   300     else
   297     else
   305 
   302 
   306 // ---------------------------------------------------------------------------
   303 // ---------------------------------------------------------------------------
   307 // OfferEventL
   304 // OfferEventL
   308 // ---------------------------------------------------------------------------
   305 // ---------------------------------------------------------------------------
   309 //  
   306 //  
   310 TBool CGlxSinleLineMetaPane::OfferEventL(const TAlfEvent &aEvent)
   307 TBool CGlxSingleLineMetaPane::OfferEventL(const TAlfEvent &aEvent)
   311     {
   308     {
   312     TRACER("CGlxSinleLineMetaPane::OfferEventL()");
   309     TRACER("CGlxSingleLineMetaPane::OfferEventL()");
   313     TBool consumed = EFalse;
   310     TBool consumed = EFalse;
   314     
   311     
   315     if (aEvent.IsKeyEvent())
   312     if (aEvent.IsKeyEvent())
   316         {
   313         {
   317         GLX_LOG_INFO( "CGlxSinleLineMetaPane::OfferEventL::KeyEvent");
   314         GLX_LOG_INFO( "CGlxSingleLineMetaPane::OfferEventL::KeyEvent");
   318         }
   315         }
   319 
   316 
   320     // Dont handle if not visible. [HACK ALERT]: This might probably be a hack. 
   317     // Dont handle if not visible. [HACK ALERT]: This might probably be a hack. 
   321 	// Further investigation needed. 
   318 	// Further investigation needed. 
   322     if (KOpacityTransparent == iMainVisual->Opacity().ValueNow())
   319     if (KOpacityTransparent == iMainVisual->Opacity().ValueNow())
   324         return consumed;
   321         return consumed;
   325         }
   322         }
   326     
   323     
   327     if(aEvent.IsPointerEvent() && aEvent.PointerDown() )
   324     if(aEvent.IsPointerEvent() && aEvent.PointerDown() )
   328         {
   325         {
   329         GLX_LOG_INFO( "CGlxSinleLineMetaPane::OfferEventL::PointerEvent");
   326         GLX_LOG_INFO( "CGlxSingleLineMetaPane::OfferEventL::PointerEvent");
   330         CAlfVisual* onVisual = NULL;
   327         CAlfVisual* onVisual = NULL;
   331         onVisual = aEvent.Visual();
   328         onVisual = aEvent.Visual();
   332         if(AlfUtil::TagMatches(onVisual->Tag(), KTagFav))
   329         if(AlfUtil::TagMatches(onVisual->Tag(), KTagFav))
   333             {
   330             {
   334             GLX_LOG_INFO( "CGlxSinleLineMetaPane::OfferEventL::PointerEvent - KTagFav");
   331             GLX_LOG_INFO( "CGlxSingleLineMetaPane::OfferEventL::PointerEvent - KTagFav");
   335             if (iFavIconStatus)
   332             if (iFavIconStatus)
   336                 {
   333                 {
   337                 GLX_LOG_INFO( "CGlxSinleLineMetaPane::OfferEventL::PointerEvent - Already Fav");
   334                 GLX_LOG_INFO( "CGlxSingleLineMetaPane::OfferEventL::PointerEvent - Already Fav");
   338                 iFullscreenView.HandleCommandL(EGlxCmdRemoveFromFavourites,this);
   335                 iFullscreenView.HandleCommandL(EGlxCmdRemoveFromFavourites,this);
   339                 }
   336                 }
   340             else
   337             else
   341                 {
   338                 {
   342                 GLX_LOG_INFO( "CGlxSinleLineMetaPane::OfferEventL::PointerEvent - Add to Fav");
   339                 GLX_LOG_INFO( "CGlxSingleLineMetaPane::OfferEventL::PointerEvent - Add to Fav");
   343                 iFullscreenView.HandleCommandL(EGlxCmdAddToFavourites,this);    
   340                 iFullscreenView.HandleCommandL(EGlxCmdAddToFavourites,this);    
   344                 }
   341                 }
   345             consumed = ETrue;
   342             consumed = ETrue;
   346             }
   343             }
   347         else if (AlfUtil::TagMatches(onVisual->Tag(), KTagLoc))
   344         else if (AlfUtil::TagMatches(onVisual->Tag(), KTagLoc))
   348             {
   345             {
   349             GLX_LOG_INFO( "CGlxSinleLineMetaPane::OfferEventL::PointerEvent - KTagLoc , Location info present");
   346             GLX_LOG_INFO( "CGlxSingleLineMetaPane::OfferEventL::PointerEvent - KTagLoc , Location info present");
   350             iFullscreenView.HandleCommandL(KGlxCmdMnShowMap,this); 
   347             iFullscreenView.HandleCommandL(KGlxCmdMnShowMap,this); 
   351             consumed = ETrue;
   348             consumed = ETrue;
   352             }
   349             }
   353         }
   350         }
   354     return consumed;
   351     return consumed;
   356 
   353 
   357 // ---------------------------------------------------------------------------
   354 // ---------------------------------------------------------------------------
   358 // VisualLayoutUpdated
   355 // VisualLayoutUpdated
   359 // ---------------------------------------------------------------------------
   356 // ---------------------------------------------------------------------------
   360 //  
   357 //  
   361 void CGlxSinleLineMetaPane::VisualLayoutUpdated(CAlfVisual&/* aVisual*/)
   358 void CGlxSingleLineMetaPane::VisualLayoutUpdated(CAlfVisual&/* aVisual*/)
   362     {
   359     {
   363     TRACER("CGlxSinleLineMetaPane::VisualLayoutUpdated()");
   360     TRACER("CGlxSingleLineMetaPane::VisualLayoutUpdated()");
   364     // Update the Screen positions only if the layout has changed.
   361     // Update the Screen positions only if the layout has changed.
   365     // For performace improvement
   362     // For performace improvement
   366     TRect presentScreenSize = GetScreenSize();
   363     TRect presentScreenSize = GetScreenSize();
   367     if (iScreenSize.Width() != presentScreenSize.Width())
   364     if (iScreenSize.Width() != presentScreenSize.Width())
   368         {
   365         {
   373 
   370 
   374 // ---------------------------------------------------------------------------
   371 // ---------------------------------------------------------------------------
   375 // DetermineOrientation
   372 // DetermineOrientation
   376 // ---------------------------------------------------------------------------
   373 // ---------------------------------------------------------------------------
   377 //  
   374 //  
   378 TInt CGlxSinleLineMetaPane::DetermineOrientation(TRect aRect)
   375 TInt CGlxSingleLineMetaPane::DetermineOrientation(TRect aRect)
   379     {
   376     {
   380     TRACER("CGlxSinleLineMetaPane::DetermineOrientation()");
   377     TRACER("CGlxSingleLineMetaPane::DetermineOrientation()");
   381     TInt orientationValue = (aRect.Width()>aRect.Height()?EMetaOrinentaionLandscape:
   378     TInt orientationValue = (aRect.Width()>aRect.Height()?EMetaOrinentaionLandscape:
   382                                                             EMetaOrinentaionPortrait);
   379                                                             EMetaOrinentaionPortrait);
   383     return orientationValue;
   380     return orientationValue;
   384     }
   381     }
   385 
   382 
   386 // ---------------------------------------------------------------------------
   383 // ---------------------------------------------------------------------------
   387 // GetScreenSize
   384 // GetScreenSize
   388 // ---------------------------------------------------------------------------
   385 // ---------------------------------------------------------------------------
   389 //  
   386 //  
   390 TRect CGlxSinleLineMetaPane::GetScreenSize()
   387 TRect CGlxSingleLineMetaPane::GetScreenSize()
   391     {
   388     {
   392     TRACER("CGlxSinleLineMetaPane::GetScreenSize()");
   389     TRACER("CGlxSingleLineMetaPane::GetScreenSize()");
   393     return AlfUtil::ScreenSize();
   390     return AlfUtil::ScreenSize();
   394     }
   391     }
   395 // ---------------------------------------------------------------------------
   392 // ---------------------------------------------------------------------------
   396 // UpdatePosition
   393 // UpdatePosition
   397 // @bug :tapadar :major :This function is using magic numbers, would be corrected with updated LAF docs
   394 // @bug :tapadar :major :This function is using magic numbers, would be corrected with updated LAF docs
   398 // @bug :tapadar :major :This function needs to be worked upon across corrolla and ivalo once LAF present
   395 // @bug :tapadar :major :This function needs to be worked upon across corrolla and ivalo once LAF present
   399 // ---------------------------------------------------------------------------
   396 // ---------------------------------------------------------------------------
   400 //  
   397 //  
   401 void CGlxSinleLineMetaPane::UpdatePosition()
   398 void CGlxSingleLineMetaPane::UpdatePosition()
   402     {
   399     {
   403     TRACER("CGlxSinleLineMetaPane::UpdatePosition()");
   400     TRACER("CGlxSingleLineMetaPane::UpdatePosition()");
   404     TRect rect = GetScreenSize();
   401     TRect rect = GetScreenSize();
   405     TInt screenWidth = rect.Width();
   402     TInt screenWidth = rect.Width();
   406     TInt screenHeight = rect.Height();
   403     TInt screenHeight = rect.Height();
   407     TInt orientation = DetermineOrientation(rect);
   404     TInt orientation = DetermineOrientation(rect);
   408     // Switch off the Flag for layout update notification, else a change in size/pos 
   405     // Switch off the Flag for layout update notification, else a change in size/pos 
   409     // will call VisualLayoutUpdated multiple times.
   406     // will call VisualLayoutUpdated multiple times.
   410     iMainVisual->ClearFlag( EAlfVisualFlagLayoutUpdateNotification);
   407     iMainVisual->ClearFlag( EAlfVisualFlagLayoutUpdateNotification);
   411     if (EMetaOrinentaionPortrait == orientation)
   408     if (EMetaOrinentaionPortrait == orientation)
   412         {
   409         {
   413         GLX_LOG_INFO("CGlxSinleLineMetaPane::UpdatePosition - EMetaOrinentaionPortrait Orientation");
   410         GLX_LOG_INFO("CGlxSingleLineMetaPane::UpdatePosition - EMetaOrinentaionPortrait Orientation");
   414         CAknToolbar* toolbar = GetAppUi()->CurrentFixedToolbar();
   411         CAknToolbar* toolbar = iAvkonAppUi->CurrentFixedToolbar();
   415         
   412         
   416         if (toolbar->IsToolbarDisabled())
   413         if (toolbar->IsToolbarDisabled())
   417             {
   414             {
   418             //set the control size
   415             //set the control size
   419             iMainVisual->SetSize(TSize(screenWidth-6,45));
   416             iMainVisual->SetSize(TSize(screenWidth-6,45));
   426             iMainVisual->SetPos(TAlfRealPoint(3,screenHeight-160));
   423             iMainVisual->SetPos(TAlfRealPoint(3,screenHeight-160));
   427             }
   424             }
   428         }
   425         }
   429     else if(EMetaOrinentaionLandscape == orientation)
   426     else if(EMetaOrinentaionLandscape == orientation)
   430         {
   427         {
   431         GLX_LOG_INFO("CGlxSinleLineMetaPane::UpdatePosition - EMetaOrinentaionLandscape Orientation");
   428         GLX_LOG_INFO("CGlxSingleLineMetaPane::UpdatePosition - EMetaOrinentaionLandscape Orientation");
   432         //set the control size
   429         //set the control size
   433         iMainVisual->SetSize(TSize(screenWidth-100,45));
   430         iMainVisual->SetSize(TSize(screenWidth-100,45));
   434         iMainVisual->SetPos(TAlfRealPoint(3,screenHeight-45));
   431         iMainVisual->SetPos(TAlfRealPoint(3,screenHeight-45));
   435         }
   432         }
   436     else
   433     else
   437         {
   434         {
   438         GLX_LOG_INFO("CGlxSinleLineMetaPane::UpdatePosition - Wrong Orientation");
   435         GLX_LOG_INFO("CGlxSingleLineMetaPane::UpdatePosition - Wrong Orientation");
   439         }
   436         }
   440     iMainVisual->SetFlag ( EAlfVisualFlagLayoutUpdateNotification);
   437     iMainVisual->SetFlag ( EAlfVisualFlagLayoutUpdateNotification);
   441     }
   438     }
   442 
   439 
   443 // ---------------------------------------------------------------------------
   440 // ---------------------------------------------------------------------------
   444 // UpdateMetaPaneL
   441 // UpdateMetaPaneL
   445 // ---------------------------------------------------------------------------
   442 // ---------------------------------------------------------------------------
   446 //  
   443 //  
   447 void CGlxSinleLineMetaPane::UpdateMetaPaneL(TInt aFocusIndex, MGlxMediaList* aList, 
   444 void CGlxSingleLineMetaPane::UpdateMetaPaneL(TInt aFocusIndex, MGlxMediaList* aList, 
   448             TBool aUpdateFavIcon)
   445             TBool aUpdateFavIcon)
   449     {
   446     {
   450     TRACER("CGlxSinleLineMetaPane::UpdateMetaPaneL()");
   447     TRACER("CGlxSingleLineMetaPane::UpdateMetaPaneL()");
   451     
   448     
   452     const TGlxMedia& item = aList->Item(aFocusIndex);
   449     const TGlxMedia& item = aList->Item(aFocusIndex);
   453     const CGlxMedia* media = item.Properties();
   450     const CGlxMedia* media = item.Properties();
   454     CGlxUStringConverter* stringConverter = CGlxUStringConverter::NewL();
   451     CGlxUStringConverter* stringConverter = CGlxUStringConverter::NewL();
   455     CleanupStack::PushL(stringConverter );
   452     CleanupStack::PushL(stringConverter );
   495 
   492 
   496 // ---------------------------------------------------------------------------
   493 // ---------------------------------------------------------------------------
   497 // HandleUpdateIconL
   494 // HandleUpdateIconL
   498 // ---------------------------------------------------------------------------
   495 // ---------------------------------------------------------------------------
   499 //  
   496 //  
   500 void CGlxSinleLineMetaPane::HandleUpdateIconL(TBool aModify)
   497 void CGlxSingleLineMetaPane::HandleUpdateIconL(TBool aModify)
   501     {
   498     {
   502     TRACER("CGlxSinleLineMetaPane::HandleUpdateIconL()");
   499     TRACER("CGlxSingleLineMetaPane::HandleUpdateIconL()");
   503     // Check if the item is added to favourites already
   500     // Check if the item is added to favourites already
   504     if (aModify)
   501     if (aModify)
   505         {
   502         {
   506         iFavIconStatus = ETrue;
   503         iFavIconStatus = ETrue;
   507         iFavIconImageVisual->SetImage(TAlfImage(*iFavAddedIconTexture));
   504         iFavIconImageVisual->SetImage(TAlfImage(*iFavAddedIconTexture));
   515 
   512 
   516 // ---------------------------------------------------------------------------
   513 // ---------------------------------------------------------------------------
   517 // HandleItemAddedL
   514 // HandleItemAddedL
   518 // ---------------------------------------------------------------------------
   515 // ---------------------------------------------------------------------------
   519 //  
   516 //  
   520 void CGlxSinleLineMetaPane::HandleItemAddedL( TInt /*aStartIndex*/, TInt /*aEndIndex*/,
   517 void CGlxSingleLineMetaPane::HandleItemAddedL( TInt /*aStartIndex*/, TInt /*aEndIndex*/,
   521         MGlxMediaList* /*aList*/ )
   518         MGlxMediaList* /*aList*/ )
   522     {
   519     {
   523     TRACER("CGlxSinleLineMetaPane::HandleItemAddedL()");
   520     TRACER("CGlxSingleLineMetaPane::HandleItemAddedL()");
   524     // No Implementation
   521     // No Implementation
   525     }
   522     }
   526 
   523 
   527 // ---------------------------------------------------------------------------
   524 // ---------------------------------------------------------------------------
   528 // HandleItemRemovedL
   525 // HandleItemRemovedL
   529 // ---------------------------------------------------------------------------
   526 // ---------------------------------------------------------------------------
   530 //  
   527 //  
   531 void CGlxSinleLineMetaPane::HandleItemRemovedL( TInt/* aStartIndex*/, 
   528 void CGlxSingleLineMetaPane::HandleItemRemovedL( TInt/* aStartIndex*/, 
   532         TInt/* aEndIndex*/, MGlxMediaList*/* aList */)
   529         TInt/* aEndIndex*/, MGlxMediaList*/* aList */)
   533     {
   530     {
   534     TRACER("CGlxSinleLineMetaPane::HandleItemRemovedL()");
   531     TRACER("CGlxSingleLineMetaPane::HandleItemRemovedL()");
   535     // No Implementation
   532     // No Implementation
   536     }
   533     }
   537 
   534 
   538 // ---------------------------------------------------------------------------
   535 // ---------------------------------------------------------------------------
   539 // HandleAttributesAvailableL
   536 // HandleAttributesAvailableL
   540 // ---------------------------------------------------------------------------
   537 // ---------------------------------------------------------------------------
   541 //  
   538 //  
   542 void CGlxSinleLineMetaPane::HandleAttributesAvailableL( TInt aItemIndex, 
   539 void CGlxSingleLineMetaPane::HandleAttributesAvailableL( TInt aItemIndex, 
   543     const RArray<TMPXAttribute>& /*aAttributes*/, MGlxMediaList* aList )
   540     const RArray<TMPXAttribute>& /*aAttributes*/, MGlxMediaList* aList )
   544     {
   541     {
   545     TRACER("CGlxSinleLineMetaPane::HandleAttributesAvailableL()");
   542     TRACER("CGlxSingleLineMetaPane::HandleAttributesAvailableL()");
   546 
   543 
   547     TInt focusIndex = iMediaList.FocusIndex();
   544     TInt focusIndex = iMediaList.FocusIndex();
   548     GLX_LOG_INFO2("CGlxSinleLineMetaPane::HandleAttributesAvailableL FocusIndex is : %d and ItemIdex is : %d", 
   545     GLX_LOG_INFO2("CGlxSingleLineMetaPane::HandleAttributesAvailableL FocusIndex is : %d and ItemIdex is : %d", 
   549             focusIndex, aItemIndex);
   546             focusIndex, aItemIndex);
   550     
   547     
   551     // Update the metapane only for the focus Index, do not make unnecessary calls.
   548     // Update the metapane only for the focus Index, do not make unnecessary calls.
   552     // for focus change, we would get calls to HandleFocusChange and thus would update
   549     // for focus change, we would get calls to HandleFocusChange and thus would update
   553     // metapane from there.
   550     // metapane from there.
   559 
   556 
   560 // ---------------------------------------------------------------------------
   557 // ---------------------------------------------------------------------------
   561 // HandleFocusChangedL
   558 // HandleFocusChangedL
   562 // ---------------------------------------------------------------------------
   559 // ---------------------------------------------------------------------------
   563 //  
   560 //  
   564 void CGlxSinleLineMetaPane::HandleFocusChangedL( NGlxListDefs::TFocusChangeType /*aType*/, 
   561 void CGlxSingleLineMetaPane::HandleFocusChangedL( NGlxListDefs::TFocusChangeType /*aType*/, 
   565 TInt aNewIndex, TInt /*aOldIndex*/, MGlxMediaList* aList )
   562 TInt aNewIndex, TInt /*aOldIndex*/, MGlxMediaList* aList )
   566     {
   563     {
   567     TRACER("CGlxSinleLineMetaPane::HandleFocusChangedL()");
   564     TRACER("CGlxSingleLineMetaPane::HandleFocusChangedL()");
   568     // Check the count here to ensure the medialist is present
   565     // Check the count here to ensure the medialist is present
   569     // this case may be occurred when the last item of the Fs view is deleted and it 
   566     // this case may be occurred when the last item of the Fs view is deleted and it 
   570     // wants to go back to the grid view
   567     // wants to go back to the grid view
   571     if (aList->Count())
   568     if (aList->Count())
   572         {
   569         {
   583 
   580 
   584 // ---------------------------------------------------------------------------
   581 // ---------------------------------------------------------------------------
   585 // HandleItemSelectedL
   582 // HandleItemSelectedL
   586 // ---------------------------------------------------------------------------
   583 // ---------------------------------------------------------------------------
   587 //  
   584 //  
   588 void CGlxSinleLineMetaPane::HandleItemSelectedL(TInt/* aIndex*/, TBool/* aSelected*/,
   585 void CGlxSingleLineMetaPane::HandleItemSelectedL(TInt/* aIndex*/, TBool/* aSelected*/,
   589         MGlxMediaList* /*aList*/ )
   586         MGlxMediaList* /*aList*/ )
   590     {
   587     {
   591     TRACER("CGlxSinleLineMetaPane::HandleItemSelectedL()");
   588     TRACER("CGlxSingleLineMetaPane::HandleItemSelectedL()");
   592     // No Implementation
   589     // No Implementation
   593     }
   590     }
   594 
   591 
   595 // ---------------------------------------------------------------------------
   592 // ---------------------------------------------------------------------------
   596 // HandleMessageL
   593 // HandleMessageL
   597 // ---------------------------------------------------------------------------
   594 // ---------------------------------------------------------------------------
   598 //  
   595 //  
   599 void CGlxSinleLineMetaPane::HandleMessageL( const CMPXMessage& /*aMessage*/, 
   596 void CGlxSingleLineMetaPane::HandleMessageL( const CMPXMessage& /*aMessage*/, 
   600         MGlxMediaList*/* aList */)
   597         MGlxMediaList*/* aList */)
   601     {
   598     {
   602     TRACER("CGlxSinleLineMetaPane::HandleMessageL()");
   599     TRACER("CGlxSingleLineMetaPane::HandleMessageL()");
   603     // No Implementation
   600     // No Implementation
   604     }
   601     }
   605 
   602 
   606 // ---------------------------------------------------------------------------
   603 // ---------------------------------------------------------------------------
   607 // HandleError
   604 // HandleError
   608 // ---------------------------------------------------------------------------
   605 // ---------------------------------------------------------------------------
   609 //  
   606 //  
   610 void CGlxSinleLineMetaPane::HandleError( TInt /*aError*/ )
   607 void CGlxSingleLineMetaPane::HandleError( TInt /*aError*/ )
   611     {
   608     {
   612     TRACER("CGlxSinleLineMetaPane::HandleError()");
   609     TRACER("CGlxSingleLineMetaPane::HandleError()");
   613     // No Implementation
   610     // No Implementation
   614     }
   611     }
   615 
   612 
   616 // ---------------------------------------------------------------------------
   613 // ---------------------------------------------------------------------------
   617 // HandleCommandCompleteL
   614 // HandleCommandCompleteL
   618 // ---------------------------------------------------------------------------
   615 // ---------------------------------------------------------------------------
   619 //  
   616 //  
   620 void CGlxSinleLineMetaPane::HandleCommandCompleteL( CMPXCommand* /*aCommandResult*/, 
   617 void CGlxSingleLineMetaPane::HandleCommandCompleteL( CMPXCommand* /*aCommandResult*/, 
   621         TInt /*aError*/, MGlxMediaList*/* aList */)
   618         TInt /*aError*/, MGlxMediaList*/* aList */)
   622     {
   619     {
   623     TRACER("CGlxSinleLineMetaPane::HandleCommandCompleteL()");
   620     TRACER("CGlxSingleLineMetaPane::HandleCommandCompleteL()");
   624     // No Implementation
   621     // No Implementation
   625     }
   622     }
   626 
   623 
   627 // ---------------------------------------------------------------------------
   624 // ---------------------------------------------------------------------------
   628 // HandleMediaL
   625 // HandleMediaL
   629 // ---------------------------------------------------------------------------
   626 // ---------------------------------------------------------------------------
   630 //  
   627 //  
   631 void CGlxSinleLineMetaPane::HandleMediaL( TInt /*aListIndex*/, MGlxMediaList*/* aList */)
   628 void CGlxSingleLineMetaPane::HandleMediaL( TInt /*aListIndex*/, MGlxMediaList*/* aList */)
   632     {
   629     {
   633     TRACER("CGlxSinleLineMetaPane::HandleMediaL()");
   630     TRACER("CGlxSingleLineMetaPane::HandleMediaL()");
   634     // No Implementation
   631     // No Implementation
   635     }
   632     }
   636 
   633 
   637 // ---------------------------------------------------------------------------
   634 // ---------------------------------------------------------------------------
   638 // HandleItemModifiedL
   635 // HandleItemModifiedL
   639 // ---------------------------------------------------------------------------
   636 // ---------------------------------------------------------------------------
   640 //  
   637 //  
   641 void CGlxSinleLineMetaPane::HandleItemModifiedL( const RArray<TInt>& /*aItemIndexes*/,
   638 void CGlxSingleLineMetaPane::HandleItemModifiedL( const RArray<TInt>& /*aItemIndexes*/,
   642         MGlxMediaList*/* aList */)
   639         MGlxMediaList*/* aList */)
   643     {
   640     {
   644     TRACER("CGlxSinleLineMetaPane::HandleItemModifiedL()");
   641     TRACER("CGlxSingleLineMetaPane::HandleItemModifiedL()");
   645     // No Implementation
   642     // No Implementation
   646     }
   643     }
   647 
   644