photosgallery/viewframework/plugins/gridviewplugin/inc/glxdownloadsgridviewplugin.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 Grid view plugin definition.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef C_GLXDOWNLOADSGRIDVIEWPLUGIN_H
       
    23 #define C_GLXDOWNLOADSGRIDVIEWPLUGIN_H
       
    24 
       
    25 
       
    26 // INCLUDES
       
    27 #include <bldvariant.hrh>
       
    28 #include <glxgridviewpluginbase.h>
       
    29 
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34  *  MPX Collection view plugin definition.
       
    35  *
       
    36  *  @lib mpxcollectionviewplugin.lib
       
    37  *  @since S60 v3.0
       
    38  */
       
    39 NONSHARABLE_CLASS( CGlxDownloadsGridViewPlugin ) : public CGlxGridViewPluginBase
       
    40     {
       
    41 public:
       
    42 
       
    43     /**
       
    44      * Two-phased constructor.
       
    45      *
       
    46      * @since 3.0
       
    47      * @return Pointer to newly created object.
       
    48      */
       
    49     static CGlxDownloadsGridViewPlugin* NewL();
       
    50 
       
    51     /**
       
    52      * Destructor.
       
    53      */
       
    54     virtual ~CGlxDownloadsGridViewPlugin();
       
    55 
       
    56 
       
    57     virtual MGlxMediaList& CreateMediaListL(MMPXCollectionUtility& aCollectionUtility) const;
       
    58 
       
    59 
       
    60 private:
       
    61 
       
    62     /**
       
    63      * From CGlxGridViewPluginBase
       
    64      *
       
    65      */
       
    66     void AddCommandHandlersL();
       
    67     
       
    68     void GetResourceFilenameL(TFileName& aResFile);
       
    69 
       
    70 
       
    71 
       
    72 private:
       
    73 
       
    74     /**
       
    75      * C++ default constructor.
       
    76      */
       
    77     CGlxDownloadsGridViewPlugin();
       
    78 
       
    79     /**
       
    80      * By default Symbian 2nd phase constructor is private.
       
    81      */
       
    82     void ConstructL();
       
    83 
       
    84 private:
       
    85     /**
       
    86      *Resource file offset
       
    87      */
       
    88      mutable TInt iResOffset; 
       
    89 
       
    90     };
       
    91 
       
    92 #endif  // C_GLXDOWNLOADSGRIDVIEWPLUGIN_H
       
    93 
       
    94 // End of File