diff -r 000000000000 -r 4e91876724a2 photosgallery/collectionframework/plugins/glxcollectionpluginimageviewer/inc/glxcollectionpluginimageviewer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/photosgallery/collectionframework/plugins/glxcollectionpluginimageviewer/inc/glxcollectionpluginimageviewer.h Thu Dec 17 08:45:44 2009 +0200 @@ -0,0 +1,102 @@ +/* +* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: This class browses file system +* +*/ + + + + + +#ifndef C_GLXCOLLECTIONPLUGINIMAGEVIEWER_H +#define C_GLXCOLLECTIONPLUGINIMAGEVIEWER_H + +// INCLUDES +#include +#include "glxcollectionpluginbase.h" + + +// FORWARD DECLARATIONS + +// CONSTANTS + +// CLASS DECLARATION + +/** + * CGlxCollectionPluginImageViewer class + * + * Plug-in basically provides image viewing experience. + * @ingroup collection_component_design + */ +NONSHARABLE_CLASS(CGlxCollectionPluginImageViewer) : public CGlxCollectionPluginBase + { +public: // Constructors and destructor + /** + * Two-phased constructor + * + * @param aObs observer + * @return object of constructed + */ + static CGlxCollectionPluginImageViewer* NewL(TAny* aObs); + + /** + * Destructor + */ + ~CGlxCollectionPluginImageViewer(); + +private: + /** + * Checks to see if any additional attributes are required to construct required + * CPI specific attribute + * + * @param aCpiAttribute CPI specific attribute to be constructed later + * @param aAttributeArray modifiable list of attributes to be retrieved from data source + */ + void CpiAttributeAdditionalAttributes(const TMPXAttribute& aCpiAttribute, RArray& aAttributeArray); + + /** + * Modifies the response to include all requested CPI specific attributes or Leaves. + * + * @param aResponse Data Source constructed response to which CPI specific attributes should be added (also contains any required data) + * @param aCpiAttributes list of CPI specific attributes to be constructed + * @param aMediaIds list of CPI specific media Ids + */ + void HandleCpiAttributeResponseL(CMPXMedia* aResponse, TArray aCpiAttributes, TArray aMediaIds); + + TBool IsUpdateMessageIgnored(CMPXMessage& aMessage); + + /** + * Modifies the response to include all requested CPI specific attributes or Leaves. + * + * @param aResponse Data Source constructed response to which CPI specific attributes should be added (also contains any required data) + * @param aCpiAttributes list of CPI specific attributes to be constructed + * @param aMediaId CPI specific media Id + */ + void HandleCpiAttributeResponseL(CMPXMedia* aResponse, TArray aCpiAttributes, TGlxMediaId aMediaId); + + TGlxFilterProperties DefaultFilter(TInt aLevel); + +private: + /** + * Constructor + * @param aObs MMPXCollectionPluginObserver instance + */ + CGlxCollectionPluginImageViewer(MMPXCollectionPluginObserver* aObs); + void ConstructL(); + }; + + + +#endif // C_GLXCOLLECTIONPLUGINIMAGEVIEWER_H +