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