photosgallery/viewframework/medialists/inc/glxmedialistarray.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 00:10:37 +0200
changeset 4 57d388cc48c1
parent 0 4e91876724a2
permissions -rw-r--r--
Revision: 201003 Kit: 201005

/*
* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:    List of media items
*
*/




#ifndef C_GLXMEDIALISTARRAY_H
#define C_GLXMEDIALISTARRAY_H

#include <glxsingletonstore.h>

class CGlxMediaList;

/**
 * A singleton that owns a pointer array of media lists
 */
NONSHARABLE_CLASS(CGlxMediaListArray) : public CBase
    {
public:
	/**
	 * Returns the CMediaListArray singleton
	 * @return the instance of CMediaListArray
	 */
	static CGlxMediaListArray* InstanceL();
    
    /**
     * Closes the singleton
     */
     void Close();

     /**
      * Returns array of media lists
      */
     RPointerArray<CGlxMediaList>& Array();
          
private:
	/**
	 * Constructor (private so that only
	 * the singleton store can use it)
	 */
	static CGlxMediaListArray* NewL();
	
	/**
	 * Destructor
	 */
	~CGlxMediaListArray();
	
private:
    /**
     * Array of media lists pointers (owned, contents not owned)
     */
	RPointerArray<CGlxMediaList> iArray;
    };

#endif // C_GLXMEDIALISTARRAY_H