locationtriggering/ltcontainer/src/lbtdbtriggersmanager.cpp
branchRCL_3
changeset 13 19bff11d6c18
parent 0 667063e416a2
child 39 3efc7a0e8755
child 44 2b4ea9893b66
equal deleted inserted replaced
12:f3bd2a0973b9 13:19bff11d6c18
  1365     if(iDbOperation->IsCompactionOngoing())
  1365     if(iDbOperation->IsCompactionOngoing())
  1366     	{
  1366     	{
  1367     	CompleteClientRequest( KErrServerBusy );
  1367     	CompleteClientRequest( KErrServerBusy );
  1368     	return;
  1368     	return;
  1369     	}
  1369     	}
  1370     
  1370 
       
  1371     if( aFilter == NULL )
       
  1372         {
       
  1373         CompleteClientRequest( KErrArgument );
       
  1374         return;
       
  1375         }
       
  1376 
  1371     // Check if this filter is application for the type of triggers supported by DB
  1377     // Check if this filter is application for the type of triggers supported by DB
  1372     CLbtListTriggerOptions* options = aFilter->ListOptions();    
  1378     CLbtListTriggerOptions* options = aFilter->ListOptions();    
  1373     if(options)
  1379     if(options)
  1374     	{
  1380     	{
  1375 		if( !IsFilterForDBTriggersL(options->Filter()) )
  1381 		if( !IsFilterForDBTriggersL(options->Filter()) )
  1377 	    	CompleteClientRequest( KErrNotFound );
  1383 	    	CompleteClientRequest( KErrNotFound );
  1378 	        return;
  1384 	        return;
  1379 	    	}
  1385 	    	}
  1380     	}
  1386     	}
  1381     
  1387     
  1382     if( aFilter == NULL )
       
  1383         {
       
  1384         CompleteClientRequest( KErrArgument );
       
  1385         return;
       
  1386         }
       
  1387       
       
  1388     // Store the parameters first for later references
  1388     // Store the parameters first for later references
  1389     iFilter = aFilter;
  1389     iFilter = aFilter;
  1390     iTriggers = &aTriggers;
  1390     iTriggers = &aTriggers;
  1391     iClientSecurityPolicy = aSecurityPolicy;
  1391     iClientSecurityPolicy = aSecurityPolicy;
  1392     iCurrentOperation = EDbOpListTriggers;
  1392     iCurrentOperation = EDbOpListTriggers;
  2476     	clientEntry->SetManagerUi(managerUi);
  2476     	clientEntry->SetManagerUi(managerUi);
  2477     	}
  2477     	}
  2478                             	
  2478                             	
  2479     if( !(aAttrMask & CLbtTriggerEntry::EAttributeCondition) )
  2479     if( !(aAttrMask & CLbtTriggerEntry::EAttributeCondition) )
  2480     	{
  2480     	{
  2481     	CLbtTriggerConditionBase* condBase = clientEntry->GetCondition();
       
  2482     	clientEntry->SetCondition(NULL);
  2481     	clientEntry->SetCondition(NULL);
  2483     	}
  2482     	}
  2484                             	
  2483                             	
  2485 	if( !(aAttrMask & CLbtTriggerEntry::EAttributeStartUpProcessId) )
  2484 	if( !(aAttrMask & CLbtTriggerEntry::EAttributeStartUpProcessId) )
  2486 		{
  2485 		{
  2936     CLbtStartupTrigger* trigger = static_cast<CLbtStartupTrigger* >(iEntry->TriggerEntry());
  2935     CLbtStartupTrigger* trigger = static_cast<CLbtStartupTrigger* >(iEntry->TriggerEntry());
  2937     TLbtTriggerDynamicInfo* dynInfo = iEntry->DynInfo();
  2936     TLbtTriggerDynamicInfo* dynInfo = iEntry->DynInfo();
  2938     CLbtExtendedTriggerInfo* extdInfo = iEntry->ExtendedTriggerInfo();
  2937     CLbtExtendedTriggerInfo* extdInfo = iEntry->ExtendedTriggerInfo();
  2939     CLbtTriggerConditionArea* cond = static_cast<CLbtTriggerConditionArea* >(trigger->GetCondition());
  2938     CLbtTriggerConditionArea* cond = static_cast<CLbtTriggerConditionArea* >(trigger->GetCondition());
  2940     CLbtGeoAreaBase * areaBase = cond->TriggerArea();
  2939     CLbtGeoAreaBase * areaBase = cond->TriggerArea();
  2941     CLbtGeoCircle* area = static_cast<CLbtGeoCircle* >(cond->TriggerArea());
       
  2942     
  2940     
  2943     // Insert a Row in the View
  2941     // Insert a Row in the View
  2944     iView.InsertL();  // Insert a row. Column order matches sql select statement
  2942     iView.InsertL();  // Insert a row. Column order matches sql select statement
  2945 	
  2943 	
  2946 	 /* Cell Based Triggering : add fields in the various views based on the field values*/
  2944 	 /* Cell Based Triggering : add fields in the various views based on the field values*/