equal
deleted
inserted
replaced
402 } |
402 } |
403 |
403 |
404 CPropertyNotifier::~CPropertyNotifier() |
404 CPropertyNotifier::~CPropertyNotifier() |
405 { |
405 { |
406 Cancel(); |
406 Cancel(); |
407 iProperty.Close(); |
|
408 } |
407 } |
409 |
408 |
410 void CPropertyNotifier::AttachL() |
409 void CPropertyNotifier::AttachL() |
411 { |
410 { |
412 User::LeaveIfError(iProperty.Attach(iCategory, iKey)); |
411 User::LeaveIfError(iProperty.Attach(iCategory, iKey)); |
415 } |
414 } |
416 |
415 |
417 void CPropertyNotifier::SetPropertyL(const TUid& aCategory, TUint aKey) |
416 void CPropertyNotifier::SetPropertyL(const TUid& aCategory, TUint aKey) |
418 { |
417 { |
419 if (IsActive()) |
418 if (IsActive()) |
420 { |
|
421 Cancel(); |
419 Cancel(); |
422 iProperty.Close(); |
|
423 } |
|
424 iCategory = aCategory; |
420 iCategory = aCategory; |
425 iKey = aKey; |
421 iKey = aKey; |
426 AttachL(); |
422 AttachL(); |
427 } |
423 } |
428 |
424 |