photosgallery/viewframework/visuallistmanager/inc/mglxvisuallistobserver.h
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2008-2009 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:    Visual list observer interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 /**
       
    22  * @internal reviewed 04/07/2007 by M Byrne
       
    23  */
       
    24 
       
    25 #ifndef M_GLXVISUALLISTOBSERVER_H
       
    26 #define M_GLXVISUALLISTOBSERVER_H
       
    27 
       
    28 #include <e32std.h>
       
    29 #include <glxlistdefs.h>
       
    30 
       
    31 class MGlxVisualList;
       
    32 class CAlfVisual;
       
    33 
       
    34 /**
       
    35  *  MGlxVisualListObserver 
       
    36  * 
       
    37  *  Observer to a list of visuals
       
    38  *
       
    39  * @author Aki Vanhatalo
       
    40  */
       
    41 class MGlxVisualListObserver 
       
    42 	{
       
    43 public:
       
    44 
       
    45 	/**	
       
    46 	 * Focus has changed.
       
    47 	 * @param aFocusIndex new focus index
       
    48 	 * @param aItemsPerSecond speed of focus change
       
    49 	 * @param aList The visual list to which this notification relates
       
    50 	 * @param aType Type/direction of focus change
       
    51 	 */
       
    52 	virtual void HandleFocusChangedL(TInt aFocusIndex, TReal32 aItemsPerSecond,
       
    53 		MGlxVisualList* aList, NGlxListDefs::TFocusChangeType aType) = 0;
       
    54  
       
    55 	/**
       
    56 	 * Size of the rendering area has changed
       
    57 	 * @param aSize new size of the area
       
    58 	 * @param aList The visual list to which this notification relates
       
    59 	 */	
       
    60 	virtual void HandleSizeChanged(const TSize& aSize,
       
    61 		MGlxVisualList* aList) = 0;
       
    62 
       
    63 	/**
       
    64 	 * Visual is being removed. The visual instance will be 
       
    65 	 * destroyed after this call returns.
       
    66 	 * @param aVisual The visual which is being removed
       
    67 	 * @param aList The visual list to which this notification relates
       
    68 	 */
       
    69 	virtual void HandleVisualRemoved(const CAlfVisual* aVisual, 
       
    70 		MGlxVisualList* aList) = 0;
       
    71 
       
    72 	/**
       
    73 	 * Visual has been added
       
    74 	 * @param aVisual The new visual
       
    75 	 * @param aIndex The list index of the new visual
       
    76 	 * @param aList The visual list to which this notification relates
       
    77 	 */
       
    78 	virtual void HandleVisualAddedL( CAlfVisual* aVisual, TInt aIndex, 
       
    79 		MGlxVisualList* aList) = 0;
       
    80 	};
       
    81 
       
    82 #endif // M_GLXVISUALLISTOBSERVER_H