uiacceltk/hitchcock/plugins/alftranseffect/alftranseffectplugin/inc/alfsystemeffects.h
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2006 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:   Alf system effects
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef ALFSYSTEMEFFECTS_H
       
    20 #define ALFSYSTEMEFFECTS_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <alf/AlfTransEffectPlugin.h>
       
    24 #include <akntranseffect.h>
       
    25 #include "alftfxplugincommon.hrh"
       
    26 
       
    27 // CONSTANTS
       
    28 const TUid KAlfTfxSystemEffectsImpUid = { KAlfTfxSystemEffectsImpUidValue };
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33  *  System effects class for ALF server plugin
       
    34  *
       
    35  *  @since S60 v3.2
       
    36  */
       
    37 class CAlfSystemEffects:	public CBase, public MAlfTransEffectPlugin
       
    38 	{
       
    39 	public: // Construction and destruction
       
    40 
       
    41     	/**
       
    42      	* Create a new instance of the interface
       
    43      	* 
       
    44      	* @return pointer to the instance
       
    45      	*/
       
    46 			static MAlfTransEffectPlugin* NewExtensionL();
       
    47 
       
    48     	/**
       
    49      	* Destructor
       
    50      	*/
       
    51 			virtual ~CAlfSystemEffects();
       
    52 
       
    53 	private: // From MAlfTransEffectPlugin
       
    54 
       
    55     	TInt GetSupportedEffects( RArray<TInt>& aSupportedEffectIds );
       
    56     	TInt StartPhase( TInt aPhaseId, TInt aEffectId, CAlfSrvEffectEnv& aEffectEnv, const TDesC8* aParams );
       
    57     	TInt Abort() { return KErrNone; };
       
    58     	TInt AddEventObserver( MAlfTransEffectObserver* /*aObserver*/, TInt /*aEvents*/, const TDesC8* /*aParams*/ ) { return KErrNone; };
       
    59    		TInt RemoveEventObserver( MAlfTransEffectObserver* /*aObserver*/, TInt /*aEvents*/ ) { return KErrNone; };
       
    60   		TInt GetEventState( TInt /*aEvent*/, TInt* /*aState*/, TDes8* /*aParams*/ ) { return KErrNone; };
       
    61     
       
    62 	private: // New
       
    63     	/**
       
    64      	* Leaving version of StartPhase().
       
    65      	*/
       
    66 	    TInt DoStartPhaseL( TInt aPhaseId, TInt aEffectId, CAlfSrvEffectEnv& aEffectEnv, const TDesC8* aParams );
       
    67 	    
       
    68 	    void ShowVisibleGroupsAndMakeNonTransparentL(CAlfSrvEffectEnv& aEffectEnv);
       
    69 	    void HideGroupsAndMakeTransparentL(CAlfSrvEffectEnv& aEffectEnv);
       
    70 	    	
       
    71 private: // Construction and destruction
       
    72 
       
    73     	/**
       
    74      	* C++ contructor
       
    75      	*/
       
    76 			CAlfSystemEffects();
       
    77 
       
    78     	/**
       
    79      	* Second phase constructor
       
    80      	*/
       
    81 			void ConstructL();
       
    82 	};
       
    83 
       
    84 #endif // ALFSYSTEMEFFECTS_H