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