locationtriggering/ltcontainer/src/lbtramtriggersmanager.cpp
changeset 18 3825cf2dc8c2
parent 0 667063e416a2
child 39 3efc7a0e8755
equal deleted inserted replaced
1:788b770ce3ae 18:3825cf2dc8c2
   236     	{
   236     	{
   237     	CompleteClientRequest( KErrNotFound );
   237     	CompleteClientRequest( KErrNotFound );
   238         return;
   238         return;
   239     	}
   239     	}
   240 
   240 
   241    CLbtListTriggerOptions* listOptions=aFilter->ListOptions();
       
   242 
       
   243    // Store client data 
   241    // Store client data 
   244    iFilter = aFilter;   
   242    iFilter = aFilter;   
   245    iClientSecurityPolicy = aSecurityPolicy;
   243    iClientSecurityPolicy = aSecurityPolicy;
   246    iClientTriggerArray = &aTriggers;
   244    iClientTriggerArray = &aTriggers;
   247    iCurrentOperation = EOperationListing;
   245    iCurrentOperation = EOperationListing;
   270         
   268         
   271         if( tEntry == NULL )
   269         if( tEntry == NULL )
   272             break;
   270             break;
   273         
   271         
   274         CLbtListTriggerOptions* listOptions = iFilter->ListOptions();
   272         CLbtListTriggerOptions* listOptions = iFilter->ListOptions();
   275         CLbtContainerFilter* contFilter = iFilter->ContainerFilter();
       
   276         CLbtExtendedTriggerInfo* contExtInfo = tEntry->ExtendedTriggerInfo();   
   273         CLbtExtendedTriggerInfo* contExtInfo = tEntry->ExtendedTriggerInfo();   
   277         TLbtTriggerDynamicInfoFieldsMask dynInfoMask;
   274         TLbtTriggerDynamicInfoFieldsMask dynInfoMask;
   278         TLbtTriggerAttributeFieldsMask attrMask;
   275         TLbtTriggerAttributeFieldsMask attrMask;
   279         listOptions->GetRetrievedFields(attrMask,dynInfoMask);
   276         listOptions->GetRetrievedFields(attrMask,dynInfoMask);
   280         TLbtTriggerDataMask dataMask = iFilter->DataMask();
   277         TLbtTriggerDataMask dataMask = iFilter->DataMask();
   281         ++count;
   278         ++count;
   282         if( !LbtContainerUtilities::RunSecurityPolicy( tEntry, iClientSecurityPolicy ) )
   279         if( !LbtContainerUtilities::RunSecurityPolicy( tEntry, iClientSecurityPolicy ) )
   283             {
   280             {
   284          
       
   285             continue;
   281             continue;
   286             }
   282             }
   287         
   283         
   288         CLbtContainerTriggerEntry* entry = NULL;
   284         CLbtContainerTriggerEntry* entry = NULL;
   289         CLbtTriggerEntry* clientEntry = NULL;       
   285         CLbtTriggerEntry* clientEntry = NULL;       
   294         iFilterBase->ProcessFilter(tEntry, isFilterPresent, isEntryRequested);
   290         iFilterBase->ProcessFilter(tEntry, isFilterPresent, isEntryRequested);
   295         
   291         
   296         if(isFilterPresent > 0 && isEntryRequested)
   292         if(isFilterPresent > 0 && isEntryRequested)
   297             {
   293             {
   298             entry = CLbtContainerTriggerEntry::NewL();
   294             entry = CLbtContainerTriggerEntry::NewL();
   299             CleanupStack::PushL( entry );
   295             iClientTriggerArray->Append( entry );
       
   296 
   300             clientEntry = CLbtSessionTrigger::NewL();
   297             clientEntry = CLbtSessionTrigger::NewL();
   301             entry->SetTriggerEntry(clientEntry);
   298             entry->SetTriggerEntry( clientEntry );
   302 
   299 
   303             if( attrMask & CLbtTriggerEntry::EAttributeId )
   300             if( attrMask & CLbtTriggerEntry::EAttributeId )
   304                 {
   301                 {
   305                 clientEntry->SetId(trigEntry->Id());
   302                 clientEntry->SetId(trigEntry->Id());
   306                 }              
   303                 }              
   322             
   319             
   323             if( attrMask & CLbtTriggerEntry::EAttributeCondition )
   320             if( attrMask & CLbtTriggerEntry::EAttributeCondition )
   324                 {
   321                 {
   325                 CLbtTriggerConditionArea* cond = static_cast<CLbtTriggerConditionArea*>(trigEntry->GetCondition());
   322                 CLbtTriggerConditionArea* cond = static_cast<CLbtTriggerConditionArea*>(trigEntry->GetCondition());
   326                 // Condition area to be sent back to client
   323                 // Condition area to be sent back to client
   327                 CLbtTriggerConditionArea* condArea=CLbtTriggerConditionArea::NewL();
   324                 CLbtTriggerConditionArea* condArea=CLbtTriggerConditionArea::NewLC();
   328                 CLbtGeoAreaBase* area = LbtContainerUtilities::CopyGeoAreaL( cond->TriggerArea() );
   325                 CLbtGeoAreaBase* area = LbtContainerUtilities::CopyGeoAreaL( cond->TriggerArea() );
   329                 condArea->SetTriggerArea( area );
   326                 condArea->SetTriggerArea( area );
   330                 condArea->SetDirection( cond->Direction() );
   327                 condArea->SetDirection( cond->Direction() );
       
   328                 CleanupStack::Pop( condArea );
   331                 clientEntry->SetCondition( condArea );
   329                 clientEntry->SetCondition( condArea );
   332                 }
   330                 }
   333 
   331 
   334             TLbtTriggerDynamicInfo* info = new TLbtTriggerDynamicInfo;
   332             TLbtTriggerDynamicInfo* info = new TLbtTriggerDynamicInfo;
   335             TBool isDynInfoPresent=EFalse;
   333             TBool isDynInfoPresent=EFalse;
   350                 {
   348                 {
   351                 isDynInfoPresent=ETrue; 
   349                 isDynInfoPresent=ETrue; 
   352                 info->iFiredLocality=tEntry->DynInfo()->iFiredLocality;
   350                 info->iFiredLocality=tEntry->DynInfo()->iFiredLocality;
   353                 }
   351                 }
   354                     
   352                     
       
   353             if(isDynInfoPresent)
       
   354                 {
       
   355                 entry->SetDynInfo(info);
       
   356                 }
       
   357             else
       
   358                 {
       
   359                 delete info;
       
   360                 }
       
   361             
       
   362             
   355             if( dataMask & CLbtContainerTriggerEntry::EContainerAttributeHysteresisRadius )
   363             if( dataMask & CLbtContainerTriggerEntry::EContainerAttributeHysteresisRadius )
   356                 {
   364                 {
   357                 if(clientExtInfo == NULL)
   365                 if(clientExtInfo == NULL)
   358                     {
   366                     {
   359                     clientExtInfo=CLbtExtendedTriggerInfo::NewL();
   367                     clientExtInfo=CLbtExtendedTriggerInfo::NewL();
   417             
   425             
   418             if(clientExtInfo!=NULL)
   426             if(clientExtInfo!=NULL)
   419                 {
   427                 {
   420                 entry->SetExtendedTriggerInfo(clientExtInfo);
   428                 entry->SetExtendedTriggerInfo(clientExtInfo);
   421                 }
   429                 }
   422             
   430             }
   423             if(isDynInfoPresent)
       
   424                 {
       
   425                 entry->SetDynInfo(info);
       
   426                 }
       
   427                 
       
   428             if( entry != NULL )
       
   429                 {
       
   430                 iClientTriggerArray->Append( entry );
       
   431                 CleanupStack::Pop( entry );
       
   432                 }
       
   433             }
       
   434         
       
   435         }
   431         }
   436     
   432     
   437     if( tEntry == NULL )
   433     if( tEntry == NULL )
   438         {
   434         {
   439         if( iClientTriggerArray->Count() == 0 )
   435         if( iClientTriggerArray->Count() == 0 )
   643     
   639     
   644     // Trigger Entry supplied by the client
   640     // Trigger Entry supplied by the client
   645     CLbtTriggerEntry* trigEntry = iClientTriggerEntry->TriggerEntry();
   641     CLbtTriggerEntry* trigEntry = iClientTriggerEntry->TriggerEntry();
   646     CLbtExtendedTriggerInfo* trigExtInfo = iClientTriggerEntry->ExtendedTriggerInfo();
   642     CLbtExtendedTriggerInfo* trigExtInfo = iClientTriggerEntry->ExtendedTriggerInfo();
   647     TLbtTriggerDynamicInfo* trigDynInfo = iClientTriggerEntry->DynInfo();
   643     TLbtTriggerDynamicInfo* trigDynInfo = iClientTriggerEntry->DynInfo();
   648 
   644     
       
   645     // Append the modification information
       
   646     MLbtTriggerStore::TLbtTriggerModifiedInfo info;
       
   647     info.iTriggerId = entry->TriggerEntry()->Id();   
       
   648     TSecureId sid = entry->ExtendedTriggerInfo()->OwnerSid();    
       
   649     info.iOwner.iUid= (TInt)(sid.iId);
       
   650     iIdArray.Append(info);
   649 
   651 
   650     /* contTrigEntry is the trigger entry which is a part of 
   652     /* contTrigEntry is the trigger entry which is a part of 
   651      * the container trigger entry retrieved from the tree 
   653      * the container trigger entry retrieved from the tree 
   652      */     
   654      */     
   653     CLbtSessionTrigger* contTrigEntry = static_cast <CLbtSessionTrigger*>(entry->TriggerEntry());
   655     CLbtSessionTrigger* contTrigEntry = NULL;
       
   656     if( entry->TriggerEntry() )
       
   657         {
       
   658         contTrigEntry = static_cast <CLbtSessionTrigger*>(entry->TriggerEntry());
       
   659         
       
   660         CLbtTriggerConditionArea* condArea = static_cast <CLbtTriggerConditionArea*>(contTrigEntry->GetCondition());
       
   661         CLbtGeoAreaBase* geoArea = condArea->TriggerArea();    
       
   662         info.iAreaType = geoArea->Type();
       
   663         }
       
   664     else
       
   665         {
       
   666         contTrigEntry=CLbtSessionTrigger::NewL();
       
   667         entry->SetTriggerEntry( contTrigEntry );
       
   668         }
   654     
   669     
   655     /* Contextinfo is the extended information present in the entry 
   670     /* Contextinfo is the extended information present in the entry 
   656      * retrieved from the tree 
   671      * retrieved from the tree 
   657      */
   672      */
   658     CLbtExtendedTriggerInfo* contExtInfo = entry->ExtendedTriggerInfo();
   673     CLbtExtendedTriggerInfo* contExtInfo = entry->ExtendedTriggerInfo();
   659     TLbtTriggerDynamicInfo* contDynInfo = NULL;
   674     TLbtTriggerDynamicInfo* contDynInfo =  entry->DynInfo();
   660     contDynInfo = entry->DynInfo();
       
   661     
       
   662     // Append the modification information
       
   663     MLbtTriggerStore::TLbtTriggerModifiedInfo info;
       
   664     info.iTriggerId = entry->TriggerEntry()->Id();    
       
   665     CLbtTriggerConditionArea* condArea = static_cast <CLbtTriggerConditionArea*>(contTrigEntry->GetCondition());
       
   666     CLbtGeoAreaBase* geoArea = condArea->TriggerArea();    
       
   667     info.iAreaType = geoArea->Type();
       
   668     TSecureId sid = entry->ExtendedTriggerInfo()->OwnerSid();    
       
   669     info.iOwner.iUid= (TInt)(sid.iId);
       
   670     iIdArray.Append(info);
       
   671     
   675     
   672     if(trigEntry!=NULL)
   676     if(trigEntry!=NULL)
   673         {
   677         {
   674         if( iAttrMask & CLbtTriggerEntry::EAttributeId )
   678         if( iAttrMask & CLbtTriggerEntry::EAttributeId )
   675             {
   679             {
   676             if(contTrigEntry==NULL)
   680              contTrigEntry->SetId(trigEntry->Id());
   677                 {
       
   678                 contTrigEntry=CLbtSessionTrigger::NewL();
       
   679                 }
       
   680             contTrigEntry->SetId(trigEntry->Id());
       
   681             }
   681             }
   682                 
   682                 
   683         if( iAttrMask & CLbtTriggerEntry::EAttributeName )
   683         if( iAttrMask & CLbtTriggerEntry::EAttributeName )
   684             {
   684             {
   685             if(contTrigEntry==NULL)
       
   686                 {
       
   687                 contTrigEntry=CLbtSessionTrigger::NewL();
       
   688                 }
       
   689             contTrigEntry->SetNameL(trigEntry->Name()); 
   685             contTrigEntry->SetNameL(trigEntry->Name()); 
   690             }
   686             }
   691                             
   687                             
   692         if( iAttrMask & CLbtTriggerEntry::EAttributeState )
   688         if( iAttrMask & CLbtTriggerEntry::EAttributeState )
   693             {
   689             {
   694             if(contTrigEntry==NULL)
       
   695                 {
       
   696                 contTrigEntry=CLbtSessionTrigger::NewL();
       
   697                 }
       
   698             contTrigEntry->SetState(trigEntry->State());        
   690             contTrigEntry->SetState(trigEntry->State());        
   699             }
   691             }
   700         
   692         
   701         if( iAttrMask & CLbtTriggerEntry::EAttributeRearmTime )
   693         if( iAttrMask & CLbtTriggerEntry::EAttributeRearmTime )
   702             {
   694             {
   703             if(contTrigEntry==NULL)
       
   704                 {
       
   705                 contTrigEntry=CLbtSessionTrigger::NewL();
       
   706                 }
       
   707             contTrigEntry->SetTimeToRearm((trigEntry->TimeToRearm()));
   695             contTrigEntry->SetTimeToRearm((trigEntry->TimeToRearm()));
   708             }
   696             }
   709                             
   697                             
   710         if( iAttrMask & CLbtTriggerEntry::EAttributeRequestor )
   698         if( iAttrMask & CLbtTriggerEntry::EAttributeRequestor )
   711             {
   699             {
   712             if(contTrigEntry==NULL)
       
   713                 {
       
   714                 contTrigEntry=CLbtSessionTrigger::NewL();
       
   715                 }
       
   716             //clientEntry->SetRequestorL(trigEntry->GetRequestor());        
   700             //clientEntry->SetRequestorL(trigEntry->GetRequestor());        
   717             }
   701             }
   718                                 
   702                                 
   719         if( iAttrMask & CLbtTriggerEntry::EAttributeManagerUi )
   703         if( iAttrMask & CLbtTriggerEntry::EAttributeManagerUi )
   720             {
   704             {
   721             if(contTrigEntry==NULL)
       
   722                 {
       
   723                 contTrigEntry=CLbtSessionTrigger::NewL();
       
   724                 }
       
   725             contTrigEntry->SetManagerUi(trigEntry->ManagerUi());        
   705             contTrigEntry->SetManagerUi(trigEntry->ManagerUi());        
   726             }
   706             }
   727                     
   707                     
   728         if( iAttrMask & CLbtTriggerEntry::EAttributeCondition )
   708         if( iAttrMask & CLbtTriggerEntry::EAttributeCondition )
   729             {
   709             {
   730             if(contTrigEntry==NULL)
       
   731                 {
       
   732                 contTrigEntry=CLbtSessionTrigger::NewL();
       
   733                 }
       
   734         
       
   735             CLbtTriggerConditionArea* condArea = static_cast <CLbtTriggerConditionArea*>(contTrigEntry->GetCondition());
   710             CLbtTriggerConditionArea* condArea = static_cast <CLbtTriggerConditionArea*>(contTrigEntry->GetCondition());
   736             CLbtGeoAreaBase* geoArea = condArea->TriggerArea();
   711             CLbtGeoAreaBase* geoArea = condArea->TriggerArea();
   737             CLbtTriggerConditionArea* cond=static_cast <CLbtTriggerConditionArea*> (trigEntry->GetCondition());
   712             CLbtTriggerConditionArea* cond=static_cast <CLbtTriggerConditionArea*> (trigEntry->GetCondition());
   738             
   713             
   739             if(geoArea->Type() == CLbtGeoAreaBase::ECircle)
   714             if(geoArea->Type() == CLbtGeoAreaBase::ECircle)
   748             else if(geoArea->Type() == CLbtGeoAreaBase::ECellular)
   723             else if(geoArea->Type() == CLbtGeoAreaBase::ECellular)
   749                 {
   724                 {
   750                 CLbtGeoCell* containerCell = static_cast<CLbtGeoCell*>(geoArea);
   725                 CLbtGeoCell* containerCell = static_cast<CLbtGeoCell*>(geoArea);
   751                 CLbtGeoCell* geoCell = static_cast <CLbtGeoCell*> (cond->TriggerArea());
   726                 CLbtGeoCell* geoCell = static_cast <CLbtGeoCell*> (cond->TriggerArea());
   752                 
   727                 
   753                 // TODO: Check if we need to retreive GSM and WCDMA info
       
   754                 containerCell->SetNetworkType(geoCell->NetworkType());
   728                 containerCell->SetNetworkType(geoCell->NetworkType());
   755                 containerCell->SetNetworkCountryCode(geoCell->NetworkCountryCode());
   729                 containerCell->SetNetworkCountryCode(geoCell->NetworkCountryCode());
   756                 containerCell->SetNetworkIdentityCode(geoCell->NetworkIdentityCode());
   730                 containerCell->SetNetworkIdentityCode(geoCell->NetworkIdentityCode());
   757                 containerCell->SetLocationAreaCode(geoCell->LocationAreaCode());
   731                 containerCell->SetLocationAreaCode(geoCell->LocationAreaCode());
   758                 containerCell->SetCellId(geoCell->CellId());
   732                 containerCell->SetCellId(geoCell->CellId());
   838         if( iDataMask & CLbtContainerTriggerEntry::EContainerAttributeHysteresisRadius )
   812         if( iDataMask & CLbtContainerTriggerEntry::EContainerAttributeHysteresisRadius )
   839             {
   813             {
   840             if(contExtInfo==NULL)
   814             if(contExtInfo==NULL)
   841                 {
   815                 {
   842                 contExtInfo=CLbtExtendedTriggerInfo::NewL();
   816                 contExtInfo=CLbtExtendedTriggerInfo::NewL();
       
   817                 entry->SetExtendedTriggerInfo( contExtInfo );
   843                 }
   818                 }
   844             contExtInfo->SetHysteresisRadius(trigExtInfo->HysteresisRadius());
   819             contExtInfo->SetHysteresisRadius(trigExtInfo->HysteresisRadius());
   845             }
   820             }
   846                         
   821                         
   847         if( iDataMask & CLbtContainerTriggerEntry::EContainerAttributeIsFired )
   822         if( iDataMask & CLbtContainerTriggerEntry::EContainerAttributeIsFired )
   848             {
   823             {
   849             if(contExtInfo==NULL)
   824             if(contExtInfo==NULL)
   850                 {
   825                 {
   851                 contExtInfo=CLbtExtendedTriggerInfo::NewL();
   826                 contExtInfo=CLbtExtendedTriggerInfo::NewL();
       
   827                 entry->SetExtendedTriggerInfo( contExtInfo );
   852                 }   
   828                 }   
   853             contExtInfo->SetTriggerFiredState(trigExtInfo->IsTriggerFired());
   829             contExtInfo->SetTriggerFiredState(trigExtInfo->IsTriggerFired());
   854             }
   830             }
   855             
   831             
   856         if( iDataMask & CLbtContainerTriggerEntry::EContainerAttributeFireInfo )
   832         if( iDataMask & CLbtContainerTriggerEntry::EContainerAttributeFireInfo )
   857             {
   833             {
   858             if(contExtInfo==NULL)
   834             if(contExtInfo==NULL)
   859                 {
   835                 {
   860                 contExtInfo=CLbtExtendedTriggerInfo::NewL();
   836                 contExtInfo=CLbtExtendedTriggerInfo::NewL();
       
   837                 entry->SetExtendedTriggerInfo( contExtInfo );
   861                 }   
   838                 }   
   862             contExtInfo->SetFiredInfo( trigExtInfo->GetFiredInfo() );
   839             contExtInfo->SetFiredInfo( trigExtInfo->GetFiredInfo() );
   863             }
   840             }
   864             
   841             
   865         if( iDataMask & CLbtContainerTriggerEntry::EContainerAttributeOwnerSid )
   842         if( iDataMask & CLbtContainerTriggerEntry::EContainerAttributeOwnerSid )
   866             {
   843             {
   867             if(contExtInfo==NULL)
   844             if(contExtInfo==NULL)
   868                 {
   845                 {
   869                 contExtInfo=CLbtExtendedTriggerInfo::NewL();
   846                 contExtInfo=CLbtExtendedTriggerInfo::NewL();
       
   847                 entry->SetExtendedTriggerInfo( contExtInfo );
   870                 }
   848                 }
   871             contExtInfo->SetOwnerSid(trigExtInfo->OwnerSid()); 
   849             contExtInfo->SetOwnerSid(trigExtInfo->OwnerSid()); 
   872             }
   850             }
   873                     
   851                     
   874         if( iDataMask & CLbtContainerTriggerEntry::EContainerAttributeRectTriggerArea )
   852         if( iDataMask & CLbtContainerTriggerEntry::EContainerAttributeRectTriggerArea )
   875             {
   853             {
   876             if(contExtInfo==NULL)
   854             if(contExtInfo==NULL)
   877                 {
   855                 {
   878                 contExtInfo=CLbtExtendedTriggerInfo::NewL();
   856                 contExtInfo=CLbtExtendedTriggerInfo::NewL();
       
   857                 entry->SetExtendedTriggerInfo( contExtInfo );
   879                 }
   858                 }
   880             contExtInfo->SetTriggerRectangleArea(trigExtInfo->TriggerReactangleArea()); 
   859             contExtInfo->SetTriggerRectangleArea(trigExtInfo->TriggerReactangleArea()); 
   881             }   
   860             }   
   882                         
   861                         
   883         if( iDataMask & CLbtContainerTriggerEntry::EContainerAttributeStrategyData )
   862         if( iDataMask & CLbtContainerTriggerEntry::EContainerAttributeStrategyData )
   884             {
   863             {
   885             if(contExtInfo==NULL)
   864             if(contExtInfo==NULL)
   886                 {
   865                 {
   887                 contExtInfo=CLbtExtendedTriggerInfo::NewL();
   866                 contExtInfo=CLbtExtendedTriggerInfo::NewL();
       
   867                 entry->SetExtendedTriggerInfo( contExtInfo );
   888                 }
   868                 }
   889             contExtInfo->SetStrategyDataL(trigExtInfo->StategyData()); 
   869             contExtInfo->SetStrategyDataL(trigExtInfo->StategyData()); 
   890             }
   870             }
   891 
   871 
   892         if( iDataMask & CLbtContainerTriggerEntry::EContainerAttributeIsTriggerFireOnCreation )
   872         if( iDataMask & CLbtContainerTriggerEntry::EContainerAttributeIsTriggerFireOnCreation )
   893             {
   873             {
   894             if(contExtInfo==NULL)
   874             if(contExtInfo==NULL)
   895                 {
   875                 {
   896                 contExtInfo=CLbtExtendedTriggerInfo::NewL();
   876                 contExtInfo=CLbtExtendedTriggerInfo::NewL();
       
   877                 entry->SetExtendedTriggerInfo( contExtInfo );
   897                 }
   878                 }
   898             contExtInfo->SetTriggerFireOnCreation(trigExtInfo->IsTriggerFireOnCreation()); 
   879             contExtInfo->SetTriggerFireOnCreation(trigExtInfo->IsTriggerFireOnCreation()); 
   899             }   
   880             }   
   900         }
   881         }
   901         
   882         
   904         if( iDataMask & CLbtContainerTriggerEntry::EContainerDynInfoAttributeValidity )
   885         if( iDataMask & CLbtContainerTriggerEntry::EContainerDynInfoAttributeValidity )
   905             {
   886             {
   906             if(contDynInfo == NULL)
   887             if(contDynInfo == NULL)
   907                 {
   888                 {
   908                 contDynInfo = new TLbtTriggerDynamicInfo;
   889                 contDynInfo = new TLbtTriggerDynamicInfo;
       
   890                 entry->SetDynInfo( contDynInfo );
   909                 }
   891                 }
   910             contDynInfo->iValidity = trigDynInfo->iValidity;    
   892             contDynInfo->iValidity = trigDynInfo->iValidity;    
   911             }
   893             }
   912         }
   894         }
   913             
   895             
   963 			TBool isEntryRequested = EFalse;		
   945 			TBool isEntryRequested = EFalse;		
   964 		
   946 		
   965 			filter->ProcessFilter(tEntry,isFilterPresent,isEntryRequested);
   947 			filter->ProcessFilter(tEntry,isFilterPresent,isEntryRequested);
   966 			if(isFilterPresent>0 && isEntryRequested)
   948 			if(isFilterPresent>0 && isEntryRequested)
   967 				{
   949 				{
   968 				CLbtTriggerEntry* trigEntry = tEntry->TriggerEntry();
   950 				AppendTriggerInfo(tEntry);
   969 			   	AppendTriggerInfo(tEntry);
       
   970 				}
   951 				}
   971     		}		
   952     		}		
   972 		tEntry=iTriggerIdTree->GetNextEntryL();		
   953 		tEntry=iTriggerIdTree->GetNextEntryL();		
   973     	}
   954     	}
   974 
   955 
  1092                 {
  1073                 {
  1093                 TLbtTriggerDynamicInfo * info = new TLbtTriggerDynamicInfo;
  1074                 TLbtTriggerDynamicInfo * info = new TLbtTriggerDynamicInfo;
  1094                 info->iValidity = aValidity;
  1075                 info->iValidity = aValidity;
  1095                 entry->SetDynInfo(info);                
  1076                 entry->SetDynInfo(info);                
  1096                 }    
  1077                 }    
  1097             CLbtTriggerEntry* trigEntry = entry->TriggerEntry();
       
  1098             AppendTriggerInfo(entry);
  1078             AppendTriggerInfo(entry);
  1099             }
  1079             }
  1100         }
  1080         }
  1101     User::RequestComplete(status,KErrNone);    
  1081     User::RequestComplete(status,KErrNone);    
  1102     }
  1082     }
  1191             TInt isFilterPresent = 0;
  1171             TInt isFilterPresent = 0;
  1192             TBool isEntryRequested = ETrue;
  1172             TBool isEntryRequested = ETrue;
  1193             iFilterBase->ProcessFilter(tEntry,isFilterPresent,isEntryRequested);
  1173             iFilterBase->ProcessFilter(tEntry,isFilterPresent,isEntryRequested);
  1194             if(isFilterPresent > 0 && isEntryRequested)
  1174             if(isFilterPresent > 0 && isEntryRequested)
  1195                 {
  1175                 {
  1196                 CLbtTriggerEntry* trigEntry = tEntry->TriggerEntry();
       
  1197                 AppendTriggerInfo(tEntry);              
  1176                 AppendTriggerInfo(tEntry);              
  1198                 }
  1177                 }
  1199             }
  1178             }
  1200         tEntry = iTriggerIdTree->GetNextEntryL();
  1179         tEntry = iTriggerIdTree->GetNextEntryL();
  1201         }
  1180         }