uiacceltk/hitchcock/plugins/alftranseffect/alftranseffectplugin/inc/alfserverdrawer.h
branchRCL_3
changeset 6 10534483575f
parent 0 15bf7259bb7c
child 8 46927d61fef3
equal deleted inserted replaced
5:433cbbb6a04b 6:10534483575f
    65 
    65 
    66     void PrepareFullscreen();
    66     void PrepareFullscreen();
    67     // parameters are analyzed by CAlfGfxEffects
    67     // parameters are analyzed by CAlfGfxEffects
    68     
    68     
    69     void BeginFullscreen( TInt aAction, const TRect& aEffectRect, 
    69     void BeginFullscreen( TInt aAction, const TRect& aEffectRect, 
    70 						TInt aType, const TUid aUid1, const TUid aUid2, TInt aData );
    70 						TInt aType, const TUid aUid1, const TUid aUid2, TInt aData,
       
    71 						TSecureId aSid1, TInt aWg1, TSecureId aSid2, TInt aWg2);
    71     void EndFullscreen();
    72     void EndFullscreen();
    72     void CancelFullscreen();
    73     void CancelFullscreen();
    73     void AbortFullscreen();
    74     void AbortFullscreen();
    74     void RegisterAlfFullScreenEffect( TInt aAction, const TDesC& aResourceDir,
    75     void RegisterAlfFullScreenEffect( TInt aAction, const TDesC& aResourceDir,
    75             const TDesC& aFileName);
    76             const TDesC& aFileName);
    81     /**
    82     /**
    82     * From MAlfDrawerEngine
    83     * From MAlfDrawerEngine
    83     */
    84     */
    84 	
    85 	
    85 	TUid& FromUid();
    86 	TUid& FromUid();
       
    87 	TSecureId& FromSid();
       
    88 	TInt FromWg();
    86 	TUid& ToUid();
    89 	TUid& ToUid();
       
    90 	TSecureId& ToSid();
       
    91 	TInt ToWg();
    87 	TUint& Action();
    92 	TUint& Action();
    88 	TInt& Flags();
    93 	TInt& Flags();
    89 
    94 
    90 	void IncreaseHandle();
    95 	void IncreaseControlHandle();
    91 	TInt CurrentHandle();
    96 	TInt CurrentControlHandle();
       
    97 	
       
    98 	void IncreaseFullScreenHandle();
       
    99 	TInt CurrentFullScreenHandle();
    92 	
   100 	
    93 	void StartEndChecker();
   101 	void StartEndChecker();
    94 	void CancelEndChecker();
   102 	void CancelEndChecker();
    95 
   103 
    96 	TInt SendBeginFullscreen(TInt aHandle, TUint aAction, const TUid& aUid, 
   104 	TInt SendBeginFullscreen(TInt aHandle, TUint aAction, const TUid& aUid, 
   128     void HandleFinishFullScreenTimeout();
   136     void HandleFinishFullScreenTimeout();
   129 
   137 
   130     static TInt ControlTimeout( TAny* aServerDrawer );
   138     static TInt ControlTimeout( TAny* aServerDrawer );
   131     void HandleControlTimeout();
   139     void HandleControlTimeout();
   132     
   140     
   133     static TInt TransitionFinished( TAny* aServerDrawer );
   141     static TInt FullScreenTransitionFinished( TAny* aServerDrawer );
   134     void HandleTransitionFinished(); 
   142     void HandleFullScreenTransitionFinished(); 
       
   143 
       
   144     static TInt ControlTransitionFinished( TAny* aServerDrawer );
       
   145     void HandleControlTransitionFinished();
   135     
   146     
   136     TBool FileExistsL( TPtrC& aResourceDir, TPtrC& aFileName );
   147     TBool FileExistsL( TPtrC& aResourceDir, TPtrC& aFileName );
   137         
   148         
   138 private: // data
   149 private: // data
   139 
   150 
   140 public:
   151 public:
   141 	CWsServerDrawerController* iController;
   152 	CWsServerDrawerController* iControlController;
       
   153 	CWsServerDrawerController* iFullScreenController;
       
   154 	    
   142 	CAlfWindowManager* iWindowManager;
   155 	CAlfWindowManager* iWindowManager;
   143     CPolicyHandler& iPolicyHandler;
   156     CPolicyHandler& iPolicyHandler;
   144 	TBool iInScreenModeChange;
   157 	TBool iInScreenModeChange;
   145 
   158 
   146     CIdle* iIdle; //CIdle for async function calls.
   159     TInt iCurrentControlHandle;
   147 
   160     TInt iCurrentFullScreenHandle;
   148     TInt iCurrHandle;
       
   149 
   161 
   150     TUint iAction;
   162     TUint iAction;
   151     TUint iOldAction;
   163     TUint iOldAction;
   152     TInt iFlags;
   164     TInt iFlags;
   153     TRect iEffectRect;
   165     TRect iEffectRect;
   154     TRect iControlRect; // demarcation rectangle for control effects
   166     TRect iControlRect; // demarcation rectangle for control effects
   155     TUid iFromUid;
   167     TUid iFromUid;
   156     TUid iToUid;
   168     TUid iToUid;
   157     
   169     TSecureId iFromSid;
       
   170     TSecureId iToSid;
   158     TInt iFromWg;
   171     TInt iFromWg;
   159     TInt iToWg;
   172     TInt iToWg;
   160     TBool iWaitingForRootWgId;
   173     TBool iWaitingForRootWgId;
   161     TInt iFromScreen;
   174     TInt iFromScreen;
   162     TInt iToScreen;
   175     TInt iToScreen;
   171     TInt iControlHandle;
   184     TInt iControlHandle;
   172     
   185     
   173     TInt iType; // parameter type for GFX parameters
   186     TInt iType; // parameter type for GFX parameters
   174     TScreenModeChangedStates iScrModeChangedState;
   187     TScreenModeChangedStates iScrModeChangedState;
   175     CAlfFinishTimer* iFullScreenTimeout;
   188     CAlfFinishTimer* iFullScreenTimeout;
       
   189     CAlfFinishTimer* iControlTimeout;
       
   190     
   176     CAlfFinishTimer* iFinishFullScreen;
   191     CAlfFinishTimer* iFinishFullScreen;
   177     
   192     
   178     // This variable tells if the full screen transition was finished
   193     // This variable tells if the full screen transition was finished
   179     // by a signal from Effect Engine (via AlfBridge)
   194     // by a signal from Effect Engine (via AlfBridge)
   180     // or if timeout finished the transaction.
   195     // or if timeout finished the transaction.
   181     TBool iFullScreenFinished;
   196     TBool iFullScreenFinished;
   182 
   197     
   183     // This is an array of reserverd windows
   198     CPSObserver* iFullScreenTransitionEndObserver;
   184     // We do not own these pointers, and must not delete them.
   199     CPSObserver* iControlTransitionEndObserver;
   185     RPointerArray<CAlfWindow> iReservedWindows;
   200     
   186     
       
   187     CPSObserver* iTransitionEndObserver;
       
   188     RProperty iProperty;
   201     RProperty iProperty;
   189     
       
   190     TBool iDoNotClearEffectRect;
       
   191     
   202     
   192     RFs iFs;
   203     RFs iFs;
   193     TBool iFullScreenFxSent;
   204     TBool iFullScreenFxSent;
   194     TBool iFullScreenEndSent;
   205     TBool iFullScreenEndSent;
   195     };
   206     };