photosgallery/slideshow/engine/coresrc/shwhuiutility.cpp
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:    Utility that contains HUI related slideshow code
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDES
       
    22 #include "shwhuiutility.h"
       
    23 #include <alf/alfroster.h>
       
    24 
       
    25 // DEPENDENCIES
       
    26 #include <alf/alfdisplay.h>
       
    27 #include <alf/alfcontrolgroup.h>
       
    28 #include <mglxvisuallist.h>
       
    29 #include <glxtracer.h>
       
    30 #include <glxlog.h>
       
    31 #include "shwslideshowenginepanic.h"
       
    32 
       
    33 // -----------------------------------------------------------------------------
       
    34 // ShowVisualListL.
       
    35 // -----------------------------------------------------------------------------
       
    36 void ShwUiUtility::ShowVisualListL( CAlfDisplay* aDisplay, MGlxVisualList* aVisualList )
       
    37 	{
       
    38 	TRACER("ShwUiUtility::ShowVisualListL");
       
    39 	GLX_LOG_INFO("ShwUiUtility::ShowVisualListL");
       
    40 	// make sure we always got HUI display and the visual list
       
    41 	__ASSERT_ALWAYS( aDisplay, NShwEngine::Panic( NShwEngine::ENullHuiDisplay ) );
       
    42 	__ASSERT_ALWAYS( aVisualList, NShwEngine::Panic( NShwEngine::ENullVisualList ) );
       
    43 	// get the control group
       
    44 	CAlfControlGroup* controlGroup = aVisualList->ControlGroup();
       
    45 	// and show it using the displays roster
       
    46 	aDisplay->Roster().ShowL( *controlGroup ,KAlfRosterShowAtBottom);
       
    47 	}
       
    48