photosgallery/collectionframework/plugins/glxcollectionpluginall/inc/glxcollectionpluginall.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_GLXCOLLECTIONPLUGINALL_H
       
    23 #define C_GLXCOLLECTIONPLUGINALL_H
       
    24 
       
    25 // INCLUDES
       
    26 #include <e32cmn.h>
       
    27 #include "glxcollectionpluginbase.h"
       
    28 
       
    29 /**
       
    30  * @internal reviewed 13/06/2007 by Alex Birkett
       
    31  */
       
    32 
       
    33 // FORWARD DECLARATIONS
       
    34 
       
    35 // CONSTANTS
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 /**
       
    40  *  CGlxCollectionPluginAll class 
       
    41  *
       
    42  *  Plug-in basically provides browsing.
       
    43  *	@ingroup collection_component_design
       
    44  */
       
    45 NONSHARABLE_CLASS(CGlxCollectionPluginAll) : public CGlxCollectionPluginBase
       
    46     {
       
    47 public: // Constructors and destructor
       
    48 	/**
       
    49     * Two-phased constructor
       
    50     *
       
    51     * @param aObs observer
       
    52     * @return object of constructed
       
    53     */
       
    54     static CGlxCollectionPluginAll* NewL(TAny* aObs);
       
    55 
       
    56     /**
       
    57     * Destructor
       
    58     */
       
    59     ~CGlxCollectionPluginAll();
       
    60     
       
    61 private:
       
    62 	/**
       
    63 	 * Checks to see if any additional attributes are required to construct required
       
    64 	 * CPI specific attribute
       
    65 	 *
       
    66 	 * @param aCpiAttribute CPI specific attribute to be constructed later
       
    67 	 * @param aAttributeArray modifiable list of attributes to be retrieved from data source
       
    68 	 */	 
       
    69 	void CpiAttributeAdditionalAttributes(const TMPXAttribute& aCpiAttribute, RArray<TMPXAttribute>& aAttributeArray);     	
       
    70 
       
    71 	/**
       
    72 	 * Modifies the response to include all requested CPI specific attributes or Leaves.
       
    73 	 *
       
    74 	 * @param aResponse Data Source constructed response to which CPI specific attributes should be added (also contains any required data)
       
    75 	 * @param aCpiAttributes list of CPI specific attributes to be constructed
       
    76 	 */	 
       
    77 	void HandleCpiAttributeResponseL(CMPXMedia* aResponse, TArray<TMPXAttribute> aCpiAttributes, TArray<TGlxMediaId> aMediaIds);
       
    78 
       
    79 	TBool IsUpdateMessageIgnoredL(CMPXMessage& aMessage);
       
    80 	
       
    81 private: 
       
    82     /**
       
    83     * Constructor
       
    84     * @param aObs MMPXCollectionPluginObserver instance
       
    85     */
       
    86     CGlxCollectionPluginAll(MMPXCollectionPluginObserver* aObs);
       
    87     /**
       
    88     * 2nd stage Constructor
       
    89     */
       
    90     void ConstructL();
       
    91     };
       
    92 
       
    93 #endif      // C_GLXCOLLECTIONPLUGINALL_H
       
    94