appfw/viewserver/server/VWSEVENT.CPP
changeset 48 2222076f5c60
parent 0 2e3d3ce01487
equal deleted inserted replaced
40:951aeeb3da43 48:2222076f5c60
     1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1999-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   125 		{
   125 		{
   126 		iTimeOutState=EServerEventTimeOut;
   126 		iTimeOutState=EServerEventTimeOut;
   127 		firstDelay=iServerEventTimeOut;
   127 		firstDelay=iServerEventTimeOut;
   128 		}
   128 		}
   129 
   129 
       
   130 	LOG3(CVwsLog::EQuiet,_L("CVwsEventTimer::Start : firstDelay [%d] "),firstDelay.Int());
   130 	TTimeIntervalMicroSeconds32 delay(firstDelay);
   131 	TTimeIntervalMicroSeconds32 delay(firstDelay);
   131 	iPeriodic->Start(delay,delay,TCallBack(TimerCallBack,this));	
   132 	iPeriodic->Start(delay,delay,TCallBack(TimerCallBack,this));	
   132 	iScreenDeviceChangeEvent = aScreenDeviceChangeEvent;
   133 	iScreenDeviceChangeEvent = aScreenDeviceChangeEvent;
   133 
   134 
   134 	}
   135 	}
   165 				iTimeOutState = EIntermediateEventTimeOut;
   166 				iTimeOutState = EIntermediateEventTimeOut;
   166 				}
   167 				}
   167 			else
   168 			else
   168 				{
   169 				{
   169 				//Delay of KTimeoutValueForPreemptedProcess is given after boosting priority of an application
   170 				//Delay of KTimeoutValueForPreemptedProcess is given after boosting priority of an application
   170 				TUint8 patchableConst = KTimeoutValueForPreemptedProcess;
   171 				TInt patchableConst = KTimeoutValueForPreemptedProcess;
   171 				#ifdef __WINS__
   172 				#ifdef __WINS__
   172 				// For the emulator allow the constant to be patched via epoc.ini
   173 				// For the emulator allow the constant to be patched via epoc.ini
   173 				UserSvr::HalFunction(EHalGroupEmulator, EEmulatorHalIntProperty,
   174 				UserSvr::HalFunction(EHalGroupEmulator, EEmulatorHalIntProperty,
   174 					(TAny*)"KTimeoutValueForPreemptedProcess", &patchableConst); // read emulator property (if present)
   175 					(TAny*)"KTimeoutValueForPreemptedProcess", &patchableConst); // read emulator property (if present)
   175 				#endif
   176 				#endif
   176 				delay = patchableConst;
   177 				delay = patchableConst;
   177 				iTimeOutState = EServerEventTimeOut;
   178 				iTimeOutState = EServerEventTimeOut;
   178 				}
   179                 LOG2(CVwsLog::ELoud,_L("CVwsEventTimer::DoTimerCallBack : iTimeOutState == EIntermediateEventTimeOut"));
   179 			
   180 				}
       
   181             LOG3(CVwsLog::EQuiet,_L("CVwsEventTimer::DoTimerCallBack : delay = [%d] "),delay.Int());
   180             iPeriodic->Start(delay,delay,TCallBack(TimerCallBack,this));
   182             iPeriodic->Start(delay,delay,TCallBack(TimerCallBack,this));
   181 			}
   183 			}
   182 		}
   184 		}
   183 	}
   185 	}
   184 
   186