photosgallery/slideshow/engine/tsrc/t_cshweffects/t_cshweffects.h
branchRCL_3
changeset 24 ea65f74e6de4
parent 23 b023a8d2866a
child 25 8e5f6eea9c9f
equal deleted inserted replaced
23:b023a8d2866a 24:ea65f74e6de4
     1 /*
       
     2 * Copyright (c) 2007-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:  Test for control for the slideshow
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __T_CSHWEFFECT_H__
       
    22 #define __T_CSHWEFFECT_H__
       
    23 
       
    24 //  EXTERNAL INCLUDES
       
    25 #include <digia/eunit/CEUnitTestSuiteClass.h>
       
    26 #include <digia/eunit/EUnitDecorators.h>
       
    27 
       
    28 //  INTERNAL INCLUDES
       
    29 
       
    30 //  FORWARD DECLARATIONS
       
    31 class MShwEffect;
       
    32 class CHuiEnv;
       
    33 class CHuiDisplayCoeControl;
       
    34 class CHuiControl;
       
    35 class CHuiImageVisual;
       
    36 
       
    37 //	TYPE DEFINITIONS
       
    38 typedef MShwEffect* (T_ShwEffectFactoryL)();
       
    39 
       
    40 //  CLASS DEFINITION
       
    41 /**
       
    42  * EUnit test suite for slideshow effects
       
    43  */
       
    44 NONSHARABLE_CLASS( T_CShwEffects )
       
    45 	: public CEUnitTestSuiteClass
       
    46     {
       
    47     public:     // Constructors and destructors
       
    48 
       
    49 		/**
       
    50 		 * Two phase construction
       
    51 		 */
       
    52 		static T_CShwEffects* NewLC( T_ShwEffectFactoryL* aEffectFactory );
       
    53 
       
    54 		/**
       
    55 		 * Destructor
       
    56 		 */
       
    57 		~T_CShwEffects();
       
    58 
       
    59     private:    // Constructors and destructors
       
    60 
       
    61 		T_CShwEffects();
       
    62 		void ConstructL();
       
    63 
       
    64     private:    // New methods
       
    65 
       
    66 		void EmptyL();
       
    67 		void SetupL();
       
    68 		void Teardown();
       
    69 
       
    70 		void T_ConstructorL();
       
    71 		void T_PrepareViewLL();
       
    72 		void T_EnterViewLL();
       
    73 		void T_ExitViewL();
       
    74 		void T_EnterTransitionLL();
       
    75 		void T_ExitTransitionL();
       
    76 		void T_PauseLL();
       
    77 		void T_ResumeL();
       
    78 		void T_EffectInfoL();
       
    79 
       
    80     private:    // Data
       
    81 
       
    82 		T_ShwEffectFactoryL* iEffectFactory;
       
    83 		MShwEffect* iEffect;
       
    84 
       
    85 		CHuiEnv* iEnv;
       
    86 		CHuiDisplayCoeControl* iCoeDisplay;
       
    87 		CHuiControl* iControl;
       
    88 		CHuiImageVisual* iVisual;
       
    89 
       
    90 
       
    91 		EUNIT_DECLARE_TEST_TABLE; 
       
    92 
       
    93     };
       
    94 
       
    95 #endif      //  __T_CSHWEFFECT_H__
       
    96 
       
    97 // End of file