photosgallery/viewframework/plugins/fullscreenviewpluginbase/inc/glxfullscreenviewpluginbase.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 Tile view plugin definition.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef C_GLXFULLSCREENVIEWPLUGINBASE_H
       
    23 #define C_GLXFULLSCREENVIEWPLUGINBASE_H
       
    24 
       
    25 
       
    26 // INCLUDES
       
    27 #include <mpxaknviewplugin.h>
       
    28 #include "glxmedialistfactory.h"
       
    29 #include "glxfullscreenview.h"   // for TTileViewResourceIds
       
    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 CGlxFullScreenViewPluginBase  : public CMPXAknViewPlugin, public MGlxMediaListFactory
       
    40     {
       
    41 public:
       
    42 
       
    43     /**
       
    44  
       
    45     /**
       
    46      * Destructor.
       
    47      */
       
    48 IMPORT_C    virtual ~CGlxFullScreenViewPluginBase();
       
    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    CGlxFullScreenViewPluginBase();
       
    79 
       
    80 private:
       
    81     /**
       
    82      * Callback for periodic timer, non-static, and hence allows this
       
    83      * pointer to be used
       
    84      */
       
    85     static TInt PeriodicCallback( TAny* aPtr );
       
    86     /**
       
    87      * Callback for periodic timer, non-static, and hence allows this
       
    88      * pointer to be used
       
    89      */
       
    90     void PeriodicCallback();
       
    91     
       
    92     
       
    93 protected:  
       
    94     // Pointer to the created tile view, not owned  
       
    95     CGlxFullScreenView* iFullScreenView;
       
    96 
       
    97     TFullScreenViewResourceIds  iResourceIds;
       
    98     TInt   iResourceOffset;
       
    99     TInt   iViewUID;
       
   100     //View Specific Widget Ids
       
   101     TViewWidgetIds iWidgetIds;
       
   102 	CPeriodic* iPeriodic; 
       
   103     };
       
   104 
       
   105 #endif  // C_GLXFULLSCREENVIEWPLUGINBASE_H
       
   106 
       
   107 // End of File