photosgallery/viewframework/views/fullscreenview/inc/glxslmpfavmlobserver.h
changeset 0 4e91876724a2
child 2 7d9067c6fcb1
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:    Header for class to implement Single line metapane
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef GLXSLMPFAVMLOBSERVER_H_
       
    19 #define GLXSLMPFAVMLOBSERVER_H_
       
    20 
       
    21 #include <mglxmedialistobserver.h>
       
    22 #include <glxsinglelinemetapanecontrol.h>
       
    23 
       
    24 class MGlxMediaList;
       
    25 class CGlxDefaultAttributeContext;
       
    26 
       
    27 class CGlxSLMPFavMLObserver : public CBase,
       
    28                               public MGlxMediaListObserver
       
    29     {
       
    30 public:
       
    31     /*
       
    32      * Newl()
       
    33      */
       
    34     static CGlxSLMPFavMLObserver* NewL( CGlxSinleLineMetaPane& aSingleLineMetaPane,
       
    35             TInt aFocusIndex,MGlxMediaList* aList);
       
    36     
       
    37     /*
       
    38      * Destructor 
       
    39      */
       
    40     ~CGlxSLMPFavMLObserver();
       
    41 
       
    42 public: // from MGlxMediaListObserver
       
    43     void HandleItemAddedL( TInt /*aStartIndex*/, TInt /*aEndIndex*/, MGlxMediaList* /*aList*/ );
       
    44     void HandleItemRemovedL( TInt /*aStartIndex*/, TInt /*aEndIndex*/, MGlxMediaList* /*aList */);
       
    45     void HandleAttributesAvailableL( TInt /*aItemIndex*/, 
       
    46         const RArray<TMPXAttribute>& /*aAttributes*/, MGlxMediaList* /*aList */);    
       
    47     void HandleFocusChangedL( NGlxListDefs::TFocusChangeType /*aType*/, 
       
    48             TInt /*aNewIndex*/, TInt /*aOldIndex*/, MGlxMediaList* /*aList*/ );
       
    49     void HandleItemSelectedL(TInt /*aIndex*/, TBool /*aSelected*/, MGlxMediaList* /*aList*/ );
       
    50     void HandleMessageL( const CMPXMessage& /*aMessage*/, MGlxMediaList* /*aList*/ );
       
    51     void HandleError( TInt /*aError*/ );
       
    52     void HandleCommandCompleteL( CMPXCommand* /*aCommandResult*/, TInt /*aError*/, 
       
    53         MGlxMediaList* /*aList*/ );
       
    54     void HandleMediaL( TInt /*aListIndex*/, MGlxMediaList* /*aList*/ );
       
    55     void HandleItemModifiedL( const RArray<TInt>& /*aItemIndexes*/, MGlxMediaList* /*aList*/ );
       
    56 
       
    57 private:
       
    58     /*
       
    59      * Constructor
       
    60      */
       
    61     CGlxSLMPFavMLObserver(CGlxSinleLineMetaPane& aSingleLineMetaPane);
       
    62     
       
    63     /*
       
    64      * 2nd Phase Ctor
       
    65      * Create the medialist for the favourites icon here with 
       
    66      * fav collection path 
       
    67      */
       
    68     void ConstructL(TInt aFocusIndex, MGlxMediaList* aList);
       
    69     
       
    70 private:
       
    71     CGlxSinleLineMetaPane&          iSingleLineMetaPane;        // SingleLineMetapane Reference
       
    72     MGlxMediaList*                  iFavMediaList;              // Favourite Medialist
       
    73     CGlxDefaultAttributeContext*    iFavAttribContext;          // Attribute context for favourites
       
    74     };
       
    75 
       
    76 
       
    77 #endif /* GLXSLMPFAVMLOBSERVER_H_ */