locsrv_plat/map_image_api/tsrc/inc/testmnmapimage.h
branchRCL_3
changeset 44 2b4ea9893b66
parent 42 02ba3f1733c6
child 45 6b6920c56e2f
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
     1 /*
       
     2 * Copyright (c) 2007 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:  Helper class for CMnMapImage class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CTESTMNMAPIMAGE_H
       
    20 #define CTESTMNMAPIMAGE_H
       
    21 
       
    22 // System Includes
       
    23 #include <StifLogger.h>
       
    24 #include <StifParser.h>
       
    25 #include <StifParser.h>
       
    26 #include <AknServerApp.h>
       
    27 #include <mnmapimage.h>
       
    28 #include <fbs.h>
       
    29 
       
    30 
       
    31 
       
    32 // CLASS DECLARATION
       
    33 /**
       
    34  *  
       
    35  *
       
    36  *  This class is a helper class used to handle the functions of CMnMapImage
       
    37  *  class. 
       
    38  *
       
    39  *  @lib testmapimage.lib
       
    40  *  @since S60 v5.0
       
    41  */
       
    42 
       
    43 class CTestMapImage:public MAknServerAppExitObserver,public CActive,public MMnMapImageRenderCallback
       
    44     {
       
    45     public:  // Constructors and destructor
       
    46 
       
    47         /**
       
    48         * C++ default constructor.
       
    49         */
       
    50         CTestMapImage(CStifLogger* aLog);
       
    51 
       
    52         /**
       
    53         * Destructor. 
       
    54         */
       
    55         ~CTestMapImage();
       
    56 
       
    57     public:         
       
    58         
       
    59                    
       
    60 		  
       
    61         // New functions  
       
    62         /**
       
    63         * Test case for CMnMapImage::NewL
       
    64         */
       
    65         TInt TestNewLL();
       
    66         /**
       
    67         * Test case for CMnMapImage::SetMapImageParams & CMnMapImage::MapImageParams
       
    68         */
       
    69         TInt CheckSetMapImageParams() const;
       
    70         /**
       
    71         * Test case for CMnMapImage::SetShowOptions & CMnMapImage::ShowOptions
       
    72         */
       
    73         TInt CheckSetShowOptions(CStifItemParser& aItem);
       
    74          /**
       
    75         * Test case for CMnMapImage::SetTargetOrigin & CMnMapImage::TargetOrigin
       
    76         */
       
    77         TInt CheckSetTargetOrigin();
       
    78         /**
       
    79         * Test case for CMnMapImage::TestGetImageCoordinate
       
    80         */
       
    81         TInt CheckGetImageCoordinate();
       
    82 	    /**
       
    83         * Test case for CMnMapImage::SupportedImageTypes
       
    84         */
       
    85         TInt CheckSupportedImageTypes();
       
    86         /**
       
    87         * Test case for CMnMapImage::GetWorldCoordinate
       
    88         */
       
    89         TInt CheckGetWorldCoordinate();
       
    90         /**
       
    91         * From MAknServerAppExitObserver
       
    92         */
       
    93         void HandleServerAppExit  (  TInt  aReason   );
       
    94         /**
       
    95         * Test case for CMnMapImage::SetExitObserverL & CMnMapImage::RemoveExitObserver
       
    96         */
       
    97         TInt CheckSetExitObserverL(); 
       
    98         /**
       
    99         * From CActive
       
   100         */
       
   101         void RunL();
       
   102         void DoCancel();
       
   103         /**
       
   104         * Test case for CMnMapImage::RenderL whose completion is informed via aStatus parameter.
       
   105         */
       
   106         TInt CheckRender1L(); 
       
   107         /**
       
   108         * Test case for CMnMapImage::RenderL whose completion is informed via aCallback
       
   109         */
       
   110         TInt CheckRender2L(); 
       
   111         /**
       
   112         * From MMnMapImageRenderCallback
       
   113         */
       
   114         void HandleRenderingCompletedL( TInt aStatus, CMnMapImage& /*aMapImage*/ );
       
   115         /**
       
   116         * Test case for CMnMapImage::CancelRendering 
       
   117         */
       
   118         TInt CheckCancelRendering(); 
       
   119         
       
   120 	
       
   121 		  
       
   122 	private:
       
   123 	    
       
   124 	   
       
   125 	   
       
   126 	    
       
   127     private:  //data
       
   128 	   
       
   129 	    /**
       
   130 	     * Pointer to Stif Logger - Does not Own
       
   131 	     */           
       
   132         CStifLogger* 			iLog;
       
   133         TInt iError;
       
   134         CMnMapImage* iMapImage ;
       
   135         
       
   136      };     
       
   137 
       
   138 #endif      //  CTESTMNMAPIMAGE_H
       
   139 
       
   140 // End of File