photosgallery/viewframework/medialists/inc/glxmedialistarray.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:    List of media items
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef C_GLXMEDIALISTARRAY_H
       
    22 #define C_GLXMEDIALISTARRAY_H
       
    23 
       
    24 #include <glxsingletonstore.h>
       
    25 
       
    26 class CGlxMediaList;
       
    27 
       
    28 /**
       
    29  * A singleton that owns a pointer array of media lists
       
    30  */
       
    31 NONSHARABLE_CLASS(CGlxMediaListArray) : public CBase
       
    32     {
       
    33 public:
       
    34 	/**
       
    35 	 * Returns the CMediaListArray singleton
       
    36 	 * @return the instance of CMediaListArray
       
    37 	 */
       
    38 	static CGlxMediaListArray* InstanceL();
       
    39     
       
    40     /**
       
    41      * Closes the singleton
       
    42      */
       
    43      void Close();
       
    44 
       
    45      /**
       
    46       * Returns array of media lists
       
    47       */
       
    48      RPointerArray<CGlxMediaList>& Array();
       
    49           
       
    50 private:
       
    51 	/**
       
    52 	 * Constructor (private so that only
       
    53 	 * the singleton store can use it)
       
    54 	 */
       
    55 	static CGlxMediaListArray* NewL();
       
    56 	
       
    57 	/**
       
    58 	 * Destructor
       
    59 	 */
       
    60 	~CGlxMediaListArray();
       
    61 	
       
    62 private:
       
    63     /**
       
    64      * Array of media lists pointers (owned, contents not owned)
       
    65      */
       
    66 	RPointerArray<CGlxMediaList> iArray;
       
    67     };
       
    68 
       
    69 #endif // C_GLXMEDIALISTARRAY_H