photosgallery/slideshow/engine/coresrc/shwhuiutility.cpp
changeset 0 4e91876724a2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/photosgallery/slideshow/engine/coresrc/shwhuiutility.cpp	Thu Dec 17 08:45:44 2009 +0200
@@ -0,0 +1,48 @@
+/*
+* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:    Utility that contains HUI related slideshow code
+ *
+*/
+
+
+
+
+// INCLUDES
+#include "shwhuiutility.h"
+#include <alf/alfroster.h>
+
+// DEPENDENCIES
+#include <alf/alfdisplay.h>
+#include <alf/alfcontrolgroup.h>
+#include <mglxvisuallist.h>
+#include <glxtracer.h>
+#include <glxlog.h>
+#include "shwslideshowenginepanic.h"
+
+// -----------------------------------------------------------------------------
+// ShowVisualListL.
+// -----------------------------------------------------------------------------
+void ShwUiUtility::ShowVisualListL( CAlfDisplay* aDisplay, MGlxVisualList* aVisualList )
+	{
+	TRACER("ShwUiUtility::ShowVisualListL");
+	GLX_LOG_INFO("ShwUiUtility::ShowVisualListL");
+	// make sure we always got HUI display and the visual list
+	__ASSERT_ALWAYS( aDisplay, NShwEngine::Panic( NShwEngine::ENullHuiDisplay ) );
+	__ASSERT_ALWAYS( aVisualList, NShwEngine::Panic( NShwEngine::ENullVisualList ) );
+	// get the control group
+	CAlfControlGroup* controlGroup = aVisualList->ControlGroup();
+	// and show it using the displays roster
+	aDisplay->Roster().ShowL( *controlGroup ,KAlfRosterShowAtBottom);
+	}
+