photosgallery/viewframework/plugins/listviewpluginbase/inc/glxlistviewpluginbase.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:    MPX List view plugin definition.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef C_GLXLISTVIEWPLUGINBASE_H
       
    22 #define C_GLXLISTVIEWPLUGINBASE_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <mpxaknviewplugin.h>
       
    26 
       
    27 #include <glxmedialistfactory.h>
       
    28 #include <glxlistview.h>   						// ConstructListViewLC
       
    29 
       
    30 class TListViewResourceIds;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35  *  MPX Collection view plugin definition.
       
    36  *
       
    37  *  @lib glxlistviewpluginbase.lib
       
    38  */
       
    39 class CGlxListViewPluginBase : public CMPXAknViewPlugin, 
       
    40                                public MGlxMediaListFactory
       
    41     {
       
    42 public:
       
    43     /**
       
    44      * C++ default constructor.
       
    45      */
       
    46     IMPORT_C CGlxListViewPluginBase();
       
    47 
       
    48     /**
       
    49      * Destructor.
       
    50      */
       
    51     IMPORT_C virtual ~CGlxListViewPluginBase();
       
    52 
       
    53 protected:
       
    54     /**
       
    55      * Override to add command handlers to the view
       
    56      *
       
    57      */
       
    58     IMPORT_C virtual void AddCommandHandlersL();
       
    59 
       
    60     /**
       
    61      * Override to define resource file 
       
    62      *
       
    63      */
       
    64     IMPORT_C virtual void GetResourceFilenameL(TFileName& aResFile);
       
    65 
       
    66 private:
       
    67     /**
       
    68      * From CMPXAknViewPlugin
       
    69      * Construct Avkon view.
       
    70      *
       
    71      * @return Pointer to a newly created Avkon view.
       
    72      */
       
    73     IMPORT_C CAknView* ConstructViewLC();
       
    74 
       
    75     /**
       
    76      * Construct GLX list view.
       
    77      *
       
    78      * @param aMediaListFactory object providing media list
       
    79      *
       
    80      * @return Pointer to a newly created list view.
       
    81      */
       
    82     virtual CGlxListView* ConstructListViewLC(MGlxMediaListFactory* aMediaListFactory) = 0;
       
    83 
       
    84 protected:
       
    85     // Created list view - not owned
       
    86     CGlxListView* iListView;
       
    87 
       
    88     // View specific resource ids
       
    89     TListViewResourceIds iResourceIds;
       
    90     
       
    91     //View Specific Widget Ids
       
    92     TViewWidgetIds iWidgetIds;
       
    93 
       
    94     // Resource offset
       
    95     TInt iResourceOffset;
       
    96     };
       
    97 
       
    98 #endif  // C_GLXLISTVIEWPLUGINBASE_H
       
    99 
       
   100 // End of File