photosgallery/viewframework/views/gridview/inc/glxgridview.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 19 Aug 2010 09:55:03 +0300
branchRCL_3
changeset 57 ea65f74e6de4
parent 0 4e91876724a2
permissions -rw-r--r--
Revision: 201031 Kit: 201033

/*
* 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:    Tile view implementation
*
*/





#ifndef C_GLXGRIDVIEW_H
#define C_GLXGRIDVIEW_H


// INCLUDES
#include <glxmedialistviewbase.h>

class MGlxMediaListFactory;

    class TGridViewResourceIds 
        {
    public:
        TInt           iViewId;     // a AVKON_VIEW
        TInt           iMenuId;     // a MENU_PANE
        TInt           iCbaId;      // a CBA
        TInt           iEmptyViewTextId;       // a TBUF
        TInt           iOkOptionsMenuId;
        };

// CLASS DECLARATION

/**
 *  Tile view
 *
 *  @lib glxtileview.lib
 */
NONSHARABLE_CLASS(CGlxGridView) : public CGlxMediaListViewBase//, public MGlxLayoutOwner
    {
public:

    /**
     * Two-phased constructor.
     *
     * @since 3.0
     * @return Pointer to newly created object.
     */
    IMPORT_C static CGlxGridView* NewL(MGlxMediaListFactory* aMediaListFactory,
                                 const TGridViewResourceIds& aResourceIds,
                                 TInt aViewUID,
                                 const TDesC& aTitle = KNullDesC());

    /**
     * Two-phased constructor.
     *
     * @since 3.0
     * @return Pointer to newly created object.
     */
    IMPORT_C static CGlxGridView* NewLC(MGlxMediaListFactory* aMediaListFactory,
                                 const TGridViewResourceIds& aResourceIds,
                                 TInt aViewUID,
                                 const TDesC& aTitle = KNullDesC());

    /**
     * Destructor.
     */
    virtual ~CGlxGridView();
    };

#endif  // C_GLXTILEVIEW_H

// End of File