photosgallery/viewframework/views/gridview/inc/glxgridview.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:    Tile view implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef C_GLXGRIDVIEW_H
       
    23 #define C_GLXGRIDVIEW_H
       
    24 
       
    25 
       
    26 // INCLUDES
       
    27 #include <glxmedialistviewbase.h>
       
    28 
       
    29 class MGlxMediaListFactory;
       
    30 
       
    31     class TGridViewResourceIds 
       
    32         {
       
    33     public:
       
    34         TInt           iViewId;     // a AVKON_VIEW
       
    35         TInt           iMenuId;     // a MENU_PANE
       
    36         TInt           iCbaId;      // a CBA
       
    37         TInt           iEmptyViewTextId;       // a TBUF
       
    38         TInt           iOkOptionsMenuId;
       
    39         };
       
    40 
       
    41 // CLASS DECLARATION
       
    42 
       
    43 /**
       
    44  *  Tile view
       
    45  *
       
    46  *  @lib glxtileview.lib
       
    47  */
       
    48 NONSHARABLE_CLASS(CGlxGridView) : public CGlxMediaListViewBase//, public MGlxLayoutOwner
       
    49     {
       
    50 public:
       
    51 
       
    52     /**
       
    53      * Two-phased constructor.
       
    54      *
       
    55      * @since 3.0
       
    56      * @return Pointer to newly created object.
       
    57      */
       
    58     IMPORT_C static CGlxGridView* NewL(MGlxMediaListFactory* aMediaListFactory,
       
    59                                  const TGridViewResourceIds& aResourceIds,
       
    60                                  TInt aViewUID,
       
    61                                  const TDesC& aTitle = KNullDesC());
       
    62 
       
    63     /**
       
    64      * Two-phased constructor.
       
    65      *
       
    66      * @since 3.0
       
    67      * @return Pointer to newly created object.
       
    68      */
       
    69     IMPORT_C static CGlxGridView* NewLC(MGlxMediaListFactory* aMediaListFactory,
       
    70                                  const TGridViewResourceIds& aResourceIds,
       
    71                                  TInt aViewUID,
       
    72                                  const TDesC& aTitle = KNullDesC());
       
    73 
       
    74     /**
       
    75      * Destructor.
       
    76      */
       
    77     virtual ~CGlxGridView();
       
    78     };
       
    79 
       
    80 #endif  // C_GLXTILEVIEW_H
       
    81 
       
    82 // End of File