equal
deleted
inserted
replaced
367 WRITELOG( "CCalendarContextPlugin::AddMetaDataL - Couldn't create relation object!" ); |
367 WRITELOG( "CCalendarContextPlugin::AddMetaDataL - Couldn't create relation object!" ); |
368 User::Leave( KErrBadHandle ); |
368 User::Leave( KErrBadHandle ); |
369 } |
369 } |
370 |
370 |
371 WRITELOG( "CCalendarContextPlugin::AddMetaDataL - Add calendar relation to MDE" ); |
371 WRITELOG( "CCalendarContextPlugin::AddMetaDataL - Add calendar relation to MDE" ); |
|
372 #ifdef _DEBUG |
372 TRAP( addError, iMdeSession->AddRelationL( *relationObject ) ); |
373 TRAP( addError, iMdeSession->AddRelationL( *relationObject ) ); |
373 if ( addError != KErrNone) |
374 if ( addError != KErrNone) |
374 { |
375 { |
375 WRITELOG1( "CCalendarContextPlugin::AddMetaDataL - Add calendar relation to MDE error: %d", addError ); |
376 WRITELOG1( "CCalendarContextPlugin::AddMetaDataL - Add calendar relation to MDE error: %d", addError ); |
376 } |
377 } |
|
378 #else |
|
379 TRAP_IGNORE( iMdeSession->AddRelationL( *relationObject ) ); |
|
380 #endif |
377 |
381 |
378 CleanupStack::PopAndDestroy( relationObject ); |
382 CleanupStack::PopAndDestroy( relationObject ); |
379 CleanupStack::PopAndDestroy( calendarObject ); |
383 CleanupStack::PopAndDestroy( calendarObject ); |
380 } |
384 } |
381 |
385 |
517 |
521 |
518 |
522 |
519 void CCalendarContextPlugin::StartRetryL() |
523 void CCalendarContextPlugin::StartRetryL() |
520 { |
524 { |
521 WRITELOG( "CCalendarContextPlugin::StartRetryL() ENTER" ); |
525 WRITELOG( "CCalendarContextPlugin::StartRetryL() ENTER" ); |
522 TInt err(KErrNone); |
|
523 |
526 |
524 if(iRetryCount++ > KMaxRetryCount) |
527 if(iRetryCount++ > KMaxRetryCount) |
525 { |
528 { |
526 delete iCalInstanceView; |
529 delete iCalInstanceView; |
527 iCalInstanceView = NULL; |
530 iCalInstanceView = NULL; |
536 } |
539 } |
537 |
540 |
538 return; |
541 return; |
539 } |
542 } |
540 |
543 |
541 |
544 #ifdef _DEBUG |
|
545 TInt err( KErrNone ); |
542 if(!iInitTimer) |
546 if(!iInitTimer) |
543 { |
547 { |
544 TRAP(err, iInitTimer = CPeriodic::NewL(CActive::EPriorityStandard) ); |
548 TRAP(err, iInitTimer = CPeriodic::NewL( CActive::EPriorityStandard ) ); |
545 } |
549 } |
546 |
550 |
547 if( err != KErrNone ) |
551 if( err != KErrNone ) |
548 { |
552 { |
549 WRITELOG1( "CCalendarContextPlugin::OpenViewL() iInitTimer->Start failed %d", err ); |
553 WRITELOG1( "CCalendarContextPlugin::OpenViewL() iInitTimer->Start failed %d", err ); |
550 User::Leave( err ); |
554 User::Leave( err ); |
551 } |
555 } |
552 |
556 #else |
|
557 if(!iInitTimer) |
|
558 { |
|
559 iInitTimer = CPeriodic::NewL( CActive::EPriorityStandard ); |
|
560 } |
|
561 #endif |
|
562 |
553 WRITELOG( "CCalendarContextPlugin::OpenViewL() iInitTimer->Start" ); |
563 WRITELOG( "CCalendarContextPlugin::OpenViewL() iInitTimer->Start" ); |
554 iInitTimer->Start( KInitRetryTimeout, KInitRetryTimeout, TCallBack(InitRetryCallback, this)); |
564 iInitTimer->Start( KInitRetryTimeout, KInitRetryTimeout, TCallBack(InitRetryCallback, this)); |
555 WRITELOG( "CCalendarContextPlugin::StartRetryL() RETURN" ); |
565 WRITELOG( "CCalendarContextPlugin::StartRetryL() RETURN" ); |
556 } |
566 } |
557 |
567 |