photosgallery/viewframework/medialists/inc/mglxnavigablelistobserver.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:    Observer for navigable list
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __M_GLXNAVIGABLELISTOBSERVER_H__
       
    22 #define __M_GLXNAVIGABLELISTOBSERVER_H__
       
    23 
       
    24 #include <e32base.h>
       
    25 #include "glxlistdefs.h"
       
    26 #include "mglxitemlistobserver.h"
       
    27 
       
    28 /**
       
    29  * Observer for navigable list
       
    30  *
       
    31  * @author Aki Vanhatalo
       
    32  *
       
    33  * @internal reviewed 17/07/2007 by Kimmo Hoikka
       
    34  *
       
    35  * @ingroup mlm_media_list_manager_design
       
    36  */
       
    37 class MGlxNavigableListObserver : public MGlxItemListObserver
       
    38     {
       
    39 public:
       
    40     /**
       
    41      * Nofication of focus having been changed
       
    42      *
       
    43      * @param aType backward/forward/unknown
       
    44      * @param aNewIndex New focus index
       
    45      * @param aOldIndex Old focus index
       
    46      */
       
    47     virtual void HandleFocusChanged( NGlxListDefs::TFocusChangeType aType, 
       
    48         TInt aNewIndex, TInt aOldIndex ) = 0;
       
    49         
       
    50     /**
       
    51      * Notification that an item has been selected/deselected
       
    52      *
       
    53      * @param aIndex Index of the item that has been selected/deselected
       
    54      * @param aSelected Boolean to indicate selection/deselection
       
    55      */
       
    56     virtual void HandleItemSelected( TInt aIndex, TBool aSelected ) = 0;
       
    57     };
       
    58     
       
    59 #endif // __M_GLXNAVIGABLELISTOBSERVER_H__
       
    60