equal
deleted
inserted
replaced
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 } |
|
155 else if( iKey == EWidgetRegAltered && value == 1 ) |
151 else if( iKey == EWidgetRegAltered && value == 1 ) |
156 { |
152 { |
157 if(iHarvester->IsInMSMode()) |
153 iHarvester->UpdateL(); |
158 { |
|
159 iHarvester->SetRegistryAccess(EFalse); |
|
160 } |
|
161 else |
|
162 { |
|
163 iHarvester->SetRegistryAccess(ETrue); |
|
164 } |
|
165 iHarvester->UpdateL(); |
|
166 } |
154 } |
167 } |
155 } |
168 } |
156 } |
169 |
157 |
170 // --------------------------------------------------------------------------- |
158 // --------------------------------------------------------------------------- |