photosgallery/collectionframework/plugins/glxcollectionpluginalbums/inc/glxcollectionpluginalbums.h
changeset 0 4e91876724a2
child 47 f9e827349359
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:    This class browses file system
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef C_GLXCOLLECTIONPLUGINALBUMS_H
       
    23 #define C_GLXCOLLECTIONPLUGINALBUMS_H
       
    24 
       
    25 // INCLUDES
       
    26 #include <e32cmn.h>
       
    27 #include "glxcollectionpluginbase.h"
       
    28 
       
    29 
       
    30 /**
       
    31  * @internal reviewed 14/06/2007 by Alex Birkett
       
    32  */
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 
       
    36 // CONSTANTS
       
    37 const TInt KGlxCollectionAlbumLevel = KGlxCollectionRootLevel + 1;
       
    38 const TInt KGlxCollectionAlbumContentsLevel = KGlxCollectionRootLevel + 2;
       
    39 const TInt KGlxCollectionAlbumContentsFSLevel = KGlxCollectionRootLevel + 3;
       
    40 
       
    41 // CLASS DECLARATION
       
    42 
       
    43 /**
       
    44  *  CGlxCollectionPluginAlbums class 
       
    45  *
       
    46  *  Plug-in basically provides browsing.
       
    47  *	@ingroup collection_component_design
       
    48  */
       
    49 NONSHARABLE_CLASS(CGlxCollectionPluginAlbums) : public CGlxCollectionPluginBase
       
    50     {
       
    51 public: // Constructors and destructor
       
    52 	/**
       
    53     * Two-phased constructor
       
    54     *
       
    55     * @param aObs observer
       
    56     * @return object of constructed
       
    57     */
       
    58     static CGlxCollectionPluginAlbums* NewL(TAny* aObs);
       
    59 
       
    60     /**
       
    61     * Destructor
       
    62     */
       
    63     ~CGlxCollectionPluginAlbums();
       
    64     
       
    65 private:
       
    66 	/**
       
    67 	 * Checks to see if any additional attributes are required to construct required
       
    68 	 * CPI specific attribute
       
    69 	 *
       
    70 	 * @param aCpiAttribute CPI specific attribute to be constructed later
       
    71 	 * @param aAttributeArray modifiable list of attributes to be retrieved from data source
       
    72 	 */	 
       
    73 	void CpiAttributeAdditionalAttributes(const TMPXAttribute& aCpiAttribute, RArray<TMPXAttribute>& aAttributeArray);     	
       
    74 
       
    75 	/**
       
    76 	 * Modifies the response to include all requested CPI specific attributes or Leaves.
       
    77 	 *
       
    78 	 * @param aResponse Data Source constructed response to which CPI specific attributes should be added (also contains any required data)
       
    79 	 * @param aCpiAttributes list of CPI specific attributes to be constructed
       
    80 	 * @param aMediaIds list of CPI specific media Ids
       
    81 	 */	 
       
    82 	void HandleCpiAttributeResponseL(CMPXMedia* aResponse, TArray<TMPXAttribute> aCpiAttributes, TArray<TGlxMediaId> aMediaIds);
       
    83 	
       
    84 	TBool IsUpdateMessageIgnored(CMPXMessage& aMessage);
       
    85 	
       
    86 	/**
       
    87 	 * Modifies the response to include all requested CPI specific attributes or Leaves.
       
    88 	 *
       
    89 	 * @param aResponse Data Source constructed response to which CPI specific attributes should be added (also contains any required data)
       
    90 	 * @param aCpiAttributes list of CPI specific attributes to be constructed
       
    91 	 * @param aMediaId CPI specific media Id
       
    92 	 */	 
       
    93     void HandleCpiAttributeResponseL(CMPXMedia* aResponse, TArray<TMPXAttribute> aCpiAttributes, TGlxMediaId aMediaId);
       
    94     
       
    95     TGlxFilterProperties DefaultFilter(TInt aLevel);
       
    96 
       
    97 private: 
       
    98     /**
       
    99     * Constructor
       
   100     * @param aObs MMPXCollectionPluginObserver instance
       
   101     */
       
   102     CGlxCollectionPluginAlbums(MMPXCollectionPluginObserver* aObs);
       
   103     void ConstructL();
       
   104     };
       
   105 
       
   106    
       
   107 
       
   108 #endif      // C_GLXCOLLECTIONPLUGINALBUMS_H
       
   109