photosgallery/viewframework/plugins/gridviewpluginbase/inc/glxgridviewpluginbase.h
changeset 0 4e91876724a2
child 17 ad4c3a8ea851
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:    MPX Grid view plugin definition.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef C_GLXGRIDVIEWPLUGINBASE_H
       
    23 #define C_GLXGRIDVIEWPLUGINBASE_H
       
    24 
       
    25 
       
    26 // INCLUDES
       
    27 #include <mpxaknviewplugin.h>
       
    28 #include "glxmedialistfactory.h"
       
    29 #include "glxgridview.h"   // for TGridViewResourceIds
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34  *  MPX Collection view plugin definition.
       
    35  *
       
    36  *  @lib mpxcollectionviewplugin.lib
       
    37  *  @since S60 v3.0
       
    38  */
       
    39 class CGlxGridViewPluginBase  : public CMPXAknViewPlugin, public MGlxMediaListFactory
       
    40     {
       
    41 public:
       
    42 
       
    43     /**
       
    44  
       
    45     /**
       
    46      * Destructor.
       
    47      */
       
    48 IMPORT_C    virtual ~CGlxGridViewPluginBase();
       
    49 
       
    50 protected:
       
    51 
       
    52     /**
       
    53      * From CMPXAknViewPlugin
       
    54      * Construct Avkon view.
       
    55      *
       
    56      * @since S60 v3.0
       
    57      * @return Pointer to a newly created Avkon view.
       
    58      */
       
    59 IMPORT_C   CAknView* ConstructViewLC();
       
    60 
       
    61     /**
       
    62      * Override to add command handlers to the view
       
    63      *
       
    64      */
       
    65 virtual void AddCommandHandlersL();
       
    66 
       
    67     /**
       
    68      * Override to define resource file 
       
    69      *
       
    70      */
       
    71 virtual void GetResourceFilenameL(TFileName& aResFile);
       
    72 
       
    73 public:
       
    74 
       
    75     /**
       
    76      * C++ default constructor.
       
    77      */
       
    78 IMPORT_C    CGlxGridViewPluginBase();
       
    79 
       
    80     
       
    81     
       
    82 protected:  
       
    83     // Pointer to the created Grid view, not owned  
       
    84     CGlxGridView* iGridView;
       
    85 
       
    86     TGridViewResourceIds  iResourceIds;
       
    87     TInt   iResourceOffset;
       
    88     TInt   iViewUID;
       
    89     //View Specific Widget Ids
       
    90         TViewWidgetIds iWidgetIds;
       
    91     };
       
    92 
       
    93 #endif  // C_GLXGRIDVIEWPLUGINBASE_H
       
    94 
       
    95 // End of File