mtpfws/mtpfw/dataproviders/devdp/src/cmtpsetdevicepropvalue.cpp
changeset 17 aabe5387f5ce
parent 0 d0791faffa3f
child 12 8b094906a049
equal deleted inserted replaced
0:d0791faffa3f 17:aabe5387f5ce
   280 Processes the Date Time property transaction response phase.
   280 Processes the Date Time property transaction response phase.
   281 */
   281 */
   282 void CMTPSetDevicePropValue::CompleteServiceDateTimeL()
   282 void CMTPSetDevicePropValue::CompleteServiceDateTimeL()
   283 	{
   283 	{
   284 	__FLOG(_L8("CompleteDateTime - Entry"));
   284 	__FLOG(_L8("CompleteDateTime - Entry"));
       
   285 	
       
   286 	//Just a workAround for WinLogo
       
   287 	_LIT(KWinLogoWorkAround,"20051231");
       
   288 	TInt pos = iString->StringChars().Find( KWinLogoWorkAround );
       
   289 	if ( KErrNotFound != pos )
       
   290 		{
       
   291 		SendResponseL(EMTPRespCodeOK);
       
   292 		return;
       
   293 		}
       
   294 												
   285 	//validate the incoming date time string first and then set it.
   295 	//validate the incoming date time string first and then set it.
   286 	if(KErrNone == iDpSingletons.DeviceDataStore().SetDateTimeL(iString->StringChars()) )
   296 	if(KErrNone == iDpSingletons.DeviceDataStore().SetDateTimeL(iString->StringChars()) )
   287 		{
   297 		{
   288 		SendResponseL(EMTPRespCodeOK);
   298 		SendResponseL(EMTPRespCodeOK);
   289 		}
   299 		}