equal
deleted
inserted
replaced
580 if(KErrNone != err) |
580 if(KErrNone != err) |
581 { |
581 { |
582 DEBUG_PRINTF2(_L("Failed to create the subsession to the SCR server for the Application Registration view (Error:%d)"), err); |
582 DEBUG_PRINTF2(_L("Failed to create the subsession to the SCR server for the Application Registration view (Error:%d)"), err); |
583 User::Leave(err); |
583 User::Leave(err); |
584 } |
584 } |
585 DEBUG_PRINTF(_L("Sending the request to create a component view on the server side.")); |
585 DEBUG_PRINTF(_L("Sending the request to create an applicaiton registry view on the server side.")); |
586 TIpcArgs args(aLocale); |
586 TIpcArgs args(aLocale); |
587 User::LeaveIfError(CallSubsessionFunction(EOpenApplicationRegistrationInfoView, args)); |
587 User::LeaveIfError(CallSubsessionFunction(EOpenApplicationRegistrationInfoView, args)); |
588 } |
588 } |
589 |
589 |
590 EXPORT_C void RApplicationRegistryView::OpenViewL(const RSoftwareComponentRegistry& aCompReg, const RArray<TUid>& aAppRegAppUids, TLanguage aLocale) |
590 EXPORT_C void RApplicationRegistryView::OpenViewL(const RSoftwareComponentRegistry& aCompReg, const RArray<TUid>& aAppRegAppUids, TLanguage aLocale) |
597 if(KErrNone != err) |
597 if(KErrNone != err) |
598 { |
598 { |
599 DEBUG_PRINTF2(_L("Failed to create the subsession to the SCR server for the Application Registration view with specified AppUids (Error:%d)"), err); |
599 DEBUG_PRINTF2(_L("Failed to create the subsession to the SCR server for the Application Registration view with specified AppUids (Error:%d)"), err); |
600 User::Leave(err); |
600 User::Leave(err); |
601 } |
601 } |
602 DEBUG_PRINTF(_L("Sending the request to create a component view on the server side.")); |
602 DEBUG_PRINTF(_L("Sending the request to create an applicaiton registry view on the server side.")); |
603 |
603 |
604 TInt32 size = aAppRegAppUids.Count(); |
604 TInt32 size = aAppRegAppUids.Count(); |
605 const TInt32 maxBufSize= sizeof(TInt32)+ size*sizeof(TInt32); // number of entries + number of entry * size of AppUid stored as TUid |
605 const TInt32 maxBufSize= sizeof(TInt32)+ size*sizeof(TInt32); // number of entries + number of entry * size of AppUid stored as TUid |
606 |
606 |
607 // allocate buffer for the array |
607 // allocate buffer for the array |