photosgallery/viewframework/plugins/tagsbrowserviewplugin/inc/glxtagsbrowserviewplugin.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:    Tag Browser view plugin definition.
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef C_GLXTAGSBROWSERVIEWPLUGIN_H
       
    22   #define C_GLXTAGSBROWSERVIEWPLUGIN_H
       
    23 
       
    24   // INCLUDES
       
    25   #include <mpxaknviewplugin.h>
       
    26   #include <glxmedialistfactory.h>
       
    27 
       
    28   // CLASS DECLARATION
       
    29 
       
    30   /**
       
    31    * Gallery tag browser view plugin. It uses the Cloud view of Gallery.
       
    32    *
       
    33    *  @lib glxtagsbrowserviewplugin.lib
       
    34    *  @since S60 v3.2
       
    35    */
       
    36   NONSHARABLE_CLASS(CGlxTagsBrowserViewPlugin): public CMPXAknViewPlugin,
       
    37     public MGlxMediaListFactory
       
    38   {
       
    39   public:
       
    40 
       
    41     /**
       
    42      * Two-phased constructor.
       
    43      *
       
    44      * @since 3.2
       
    45      * @return Pointer to newly created object.
       
    46      */
       
    47     static CGlxTagsBrowserViewPlugin *NewL();
       
    48 
       
    49     /**
       
    50      * Destructor.
       
    51      */
       
    52     virtual ~CGlxTagsBrowserViewPlugin();
       
    53 
       
    54     /* Creates and returns a Media List. Ownership of Media List is transfered.
       
    55 	 * @param aCollectionUtility The collection utility to use when creating the media list
       
    56 	 * @return The Media List (ownership transfered to caller)
       
    57 	 */
       
    58 	 MGlxMediaList& CreateMediaListL(MMPXCollectionUtility& aCollectionUtility) const;
       
    59 
       
    60  
       
    61   private:
       
    62 
       
    63     /**
       
    64      * From CMPXAknViewPlugin
       
    65      * Construct Avkon view.
       
    66      *
       
    67      * @since S60 v3.2
       
    68      * @return Pointer to a newly created Avkon view.
       
    69      */
       
    70     CAknView *ConstructViewLC();
       
    71 
       
    72   private:
       
    73 
       
    74     /**
       
    75      * C++ default constructor.
       
    76      */
       
    77     CGlxTagsBrowserViewPlugin();
       
    78 
       
    79     /**
       
    80      *Symbian 2nd phase Constructor 
       
    81      * By default Symbian 2nd phase constructor is private.
       
    82      */
       
    83     void ConstructL();
       
    84   };
       
    85 
       
    86 #endif // C_GLXTAGSBROWSERVIEWPLUGIN_H
       
    87 
       
    88 // End of File