photosgallery/viewframework/visuallistmanager/inc/glxvisuallistmanager.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:    Manager of visual lists
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 /**
       
    23  * @internal reviewed 04/07/2007 by M Byrne
       
    24  */
       
    25 
       
    26 #ifndef C_GLXVISUALLISTMANAGER_H
       
    27 #define C_GLXVISUALLISTMANAGER_H
       
    28 
       
    29 #include <alf/alfimagevisual.h>
       
    30 
       
    31 class MGlxVisualList;
       
    32 class CGlxVisualListControl;
       
    33 class MGlxMediaList;
       
    34 class CAlfEnv;
       
    35 class CAlfDisplay;
       
    36 
       
    37 /**
       
    38  *  MGlxVisualListManager
       
    39  * 
       
    40  *  Manager of lists of visuals
       
    41  *
       
    42  * @author Aki Vanhatalo
       
    43  */
       
    44 class CGlxVisualListManager : public CBase
       
    45 	{
       
    46 public:
       
    47     /*
       
    48      * @return pointer to instance of visual list manager
       
    49      */
       
    50 	IMPORT_C static CGlxVisualListManager* ManagerL();
       
    51 	
       
    52 	/**
       
    53 	  * Close visual list manager
       
    54 	  */
       
    55 	IMPORT_C void Close();
       
    56 	
       
    57 	/**
       
    58 	  * Destructor
       
    59 	  */
       
    60 	~CGlxVisualListManager();
       
    61 	
       
    62 	/**
       
    63 	 * Allocate new visual list
       
    64 	 * @param aItemList ponter to media list
       
    65      * @param aEnv HuiEnv
       
    66      * @param aDisplay HUI display
       
    67      * @return pointer to visual list
       
    68 	 */
       
    69 	IMPORT_C MGlxVisualList* AllocListL(
       
    70 	    MGlxMediaList& aItemList, 
       
    71     	CAlfEnv& aEnv, CAlfDisplay& aDisplay,
       
    72     	CAlfImageVisual::TScaleMode aThumbnailScaleMode = CAlfImageVisual::EScaleFitInside );
       
    73     	
       
    74     /**
       
    75      * Return visual list associated with specified Media List
       
    76      * Allocate new list if one does not already exist
       
    77      * @param aItemList ponter to media list
       
    78      * @param aEnv HuiEnv
       
    79      * @param aDisplay HUI display
       
    80      * @return pointer to visual list
       
    81      */
       
    82      IMPORT_C MGlxVisualList* ListL(
       
    83         MGlxMediaList& aItemList, 
       
    84     	CAlfEnv& aEnv, CAlfDisplay& aDisplay, 
       
    85     	CAlfImageVisual::TScaleMode aThumbnailScaleMode = CAlfImageVisual::EScaleFitInside );
       
    86     	
       
    87 	/**
       
    88 	 * Release a reference to a visual list
       
    89 	 * @param aList list to be released or NULL. 
       
    90      *			    If NULL, does nothing.
       
    91 	 */
       
    92 	IMPORT_C void ReleaseList(MGlxVisualList* aList);
       
    93 	
       
    94 private:
       
    95     /**
       
    96       * Constructor
       
    97       */
       
    98 	CGlxVisualListManager();
       
    99 	
       
   100 private:
       
   101     /** Array of visual lists (owned) */
       
   102 	RPointerArray<CGlxVisualListControl> iVisualLists;
       
   103 	};
       
   104 	
       
   105 #endif // C_GLXVISUALLISTMANAGER_H
       
   106