webengine/wrtharvester/src/wrtharvesterpsnotifier.cpp
changeset 37 cb62a4f66ebe
parent 17 c8a366e56285
child 42 d39add9822e2
equal deleted inserted replaced
36:0ed94ceaa377 37:cb62a4f66ebe
    75     	{	
    75     	{	
    76     	// define property to be integer type
    76     	// define property to be integer type
    77     	r = RProperty::Define( KPropertyCat, iKey, RProperty::EInt );
    77     	r = RProperty::Define( KPropertyCat, iKey, RProperty::EInt );
    78     	}
    78     	}
    79 
    79 
    80     if ( r != KErrAlreadyExists || r != KErrNone )
    80     if ( r != KErrAlreadyExists && r != KErrNone )
    81         {
    81         {
    82         User::LeaveIfError( r );
    82         User::LeaveIfError( r );
    83         }
    83         }
    84     // Attach the key
    84     // Attach the key
    85     if( iKey == EWidgetMMCAltered )
    85     if( iKey == EWidgetMMCAltered )
   146         else if(iKey == EWidgetUIState && value == 2)
   146         else if(iKey == EWidgetUIState && value == 2)
   147             {
   147             {
   148             iHarvester->ClearAllOperations();
   148             iHarvester->ClearAllOperations();
   149             SetValue(1);
   149             SetValue(1);
   150             }
   150             }
       
   151         else if( iKey == EWidgetUIState && value == 3 )
       
   152             {            
       
   153             iHarvester->SetReinstallWidget(ETrue);
       
   154             }        
   151         else if( iKey == EWidgetRegAltered && value == 1 )
   155         else if( iKey == EWidgetRegAltered && value == 1 )
   152             {
   156             {
       
   157             if(!iHarvester->CanAccessRegistry())
       
   158                 {                
       
   159                 iHarvester->SetMSMode(0);
       
   160                 iHarvester->SetRegistryAccess(ETrue);
       
   161                 }
   153              iHarvester->UpdateL();
   162              iHarvester->UpdateL();
   154             }
   163             }
   155         }
   164         }
   156     }
   165     }
   157 
   166