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