windowing/windowserver/nga/SERVER/EVENT.H
branchRCL_3
changeset 18 57c618273d5c
parent 0 5d03bc08d59c
child 19 bbf46f59e123
equal deleted inserted replaced
17:e375a7921169 18:57c618273d5c
    36 class CWsHotKey;
    36 class CWsHotKey;
    37 class CWsCaptureLongKey;
    37 class CWsCaptureLongKey;
    38 class CScreen;
    38 class CScreen;
    39 class DWsScreenDevice;
    39 class DWsScreenDevice;
    40 
    40 
    41 const TInt KRetryInitialDelay = 100000; //0.01 second
    41 const TInt KRetryInitialDelay = 100000; //0.1 second
    42 
    42 
    43 struct TEventRequestItem
    43 struct TEventRequestItem
    44 	{
    44 	{
    45 	const CWsWindowBase *iWindow;
    45 	const CWsWindowBase *iWindow;
    46 	TInt iParam;
    46 	TInt iParam;
   220 	static TInt UnregisterWsEventHandler(MWsEventHandler * aHandler);
   220 	static TInt UnregisterWsEventHandler(MWsEventHandler * aHandler);
   221 	static void NotifyDrawer(const TWservCrEvent& aEvent);
   221 	static void NotifyDrawer(const TWservCrEvent& aEvent);
   222 	static void NotifyScreenDrawingEvent(const TRegion* aRegion);
   222 	static void NotifyScreenDrawingEvent(const TRegion* aRegion);
   223 	static void NotifyScreenDrawingEvent(const TRect& aRect);
   223 	static void NotifyScreenDrawingEvent(const TRect& aRect);
   224 	static inline const CRawEventReceiver* EventReceiver() {return iEventReceiver;}
   224 	static inline const CRawEventReceiver* EventReceiver() {return iEventReceiver;}
       
   225 	static void PauseProcessRawEvents(TInt aPauseInterval);
       
   226 	static inline TInt GetConfigationPauseTime();
       
   227 	
   225 private:
   228 private:
   226 	class TRawEventHandler
   229 	class TRawEventHandler
   227 		{
   230 		{
   228 		public:
   231 		public:
   229 			inline TRawEventHandler(MEventHandler *aEventHandler, TBool aAdvancedPointersEnabled);
   232 			inline TRawEventHandler(MEventHandler *aEventHandler, TBool aAdvancedPointersEnabled);
   258 	static TInt iPotentialEventHandlers;
   261 	static TInt iPotentialEventHandlers;
   259 	static RArray<TDrawerHandler>* iDrawerHandlers;
   262 	static RArray<TDrawerHandler>* iDrawerHandlers;
   260 	static RArray<TWsEventHandler> iWsEventHandlers;
   263 	static RArray<TWsEventHandler> iWsEventHandlers;
   261 	static TUint32 iBinaryFlags;
   264 	static TUint32 iBinaryFlags;
   262 	static TInt iEventHandlerCount;
   265 	static TInt iEventHandlerCount;
       
   266 
       
   267 	// For supporting a pause in processing raw events after rotation.
       
   268 	// Pause in processing all raw pointer and key events (except processing by anim's dll plug-ins).
       
   269 	// All events will be ignored except for anim's dll plug-ins.
       
   270 	static TTimeIntervalMicroSeconds iPauseInterval;
       
   271 	static TTime iPauseStartTime;
       
   272 	 // Filled from wsini.ini  , example:  SUPPRESSEVENTSTIMEAFTERROTATION   700000 //(0.7sec) 
       
   273 	static TInt iConfigationPauseTime;
   263 	};
   274 	};
   264 
   275 
   265 
   276 
   266 //
   277 //
   267 // inlines			//
   278 // inlines			//
   305 	{iGroupListChangedQueue.RemoveFromEventRequestListL(aWindow);}
   316 	{iGroupListChangedQueue.RemoveFromEventRequestListL(aWindow);}
   306 inline void TWindowServerEvent::RemoveFromScreenDeviceChangeEventList(const CWsWindowBase &aWindow)
   317 inline void TWindowServerEvent::RemoveFromScreenDeviceChangeEventList(const CWsWindowBase &aWindow)
   307 	{iScreenDeviceChangedQueue.RemoveFromEventRequestListL(aWindow);}
   318 	{iScreenDeviceChangedQueue.RemoveFromEventRequestListL(aWindow);}
   308 inline TInt TWindowServerEvent::GetStoredModifierState()
   319 inline TInt TWindowServerEvent::GetStoredModifierState()
   309 	{return(iModifierState);}
   320 	{return(iModifierState);}
       
   321 inline TInt TWindowServerEvent::GetConfigationPauseTime()
       
   322     {return(iConfigationPauseTime);}
   310 
   323 
   311 #endif
   324 #endif