imagehandling_plat/image_handling_library_api/inc/IHLViewerFactory.h
changeset 0 2014ca87e772
equal deleted inserted replaced
-1:000000000000 0:2014ca87e772
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Static factory class for creating viewers.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef IHLVIEWERFACTORY_H
       
    20 #define IHLVIEWERFACTORY_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 
       
    25 // FORWARD DECLARATION
       
    26 class MIHLImageViewer;
       
    27 class MIHLViewerObserver;
       
    28 class MIHLImage;
       
    29 class MIHLBitmap;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 /**
       
    33 *  IHLViewerFactory
       
    34 *
       
    35 *  Static factory class for creating viewers.
       
    36 *  @lib IHL.lib
       
    37 *  @since 3.0
       
    38 */
       
    39 class IHLViewerFactory
       
    40 	{
       
    41 	public:
       
    42 
       
    43         /**
       
    44         * Create new MIHLImageViewer instance.
       
    45 		* References to image, bitmap and observer must remain valid
       
    46 		* through viewer lifespan. Note that viewer start processing
       
    47 		* immediately after it's created.
       
    48         * @since 3.0
       
    49 		* @param aViewerSize Size of viewer. This is also maximum
       
    50 		*                    size of destination bitmap.
       
    51 		* @param aSource Source image reference.
       
    52 		* @param aDestination Destination bitmap reference.
       
    53 		* @param aObserver Viewer observer reference.
       
    54 		* @param aOptions Viewer options. Refer to MIHLImageViewer header.
       
    55 		* @return New MIHLImageViewer instance.
       
    56 		*/
       
    57 		IMPORT_C static MIHLImageViewer* CreateImageViewerL( const TSize& aViewerSize,
       
    58 															 MIHLImage& aSource,
       
    59 															 MIHLBitmap& aDestination,
       
    60 															 MIHLViewerObserver& aObserver,
       
    61 															 const TUint32 aOptions = 0 );
       
    62 	};
       
    63 
       
    64 #endif // IHLVIEWERFACTORY_H
       
    65 
       
    66 // End of File