genericservices/taskscheduler/SCHSVR/SchTimer.cpp
branchRCL_3
changeset 64 c44f36bb61a3
parent 0 e4d67989cc36
child 75 254b651f304e
equal deleted inserted replaced
60:82ca0c6a68ed 64:c44f36bb61a3
   402 	}
   402 	}
   403 
   403 
   404 CPropertyNotifier::~CPropertyNotifier()
   404 CPropertyNotifier::~CPropertyNotifier()
   405 	{
   405 	{
   406 	Cancel();
   406 	Cancel();
       
   407 	iProperty.Close();
   407 	}
   408 	}
   408 
   409 
   409 void CPropertyNotifier::AttachL()
   410 void CPropertyNotifier::AttachL()
   410 	{
   411 	{
   411 	User::LeaveIfError(iProperty.Attach(iCategory, iKey));
   412 	User::LeaveIfError(iProperty.Attach(iCategory, iKey));
   414 	}
   415 	}
   415 
   416 
   416 void CPropertyNotifier::SetPropertyL(const TUid& aCategory, TUint aKey)
   417 void CPropertyNotifier::SetPropertyL(const TUid& aCategory, TUint aKey)
   417 	{
   418 	{
   418 	if (IsActive())
   419 	if (IsActive())
       
   420 	    {
   419 		Cancel();
   421 		Cancel();
       
   422 		iProperty.Close();
       
   423 	    }
   420 	iCategory = aCategory;
   424 	iCategory = aCategory;
   421 	iKey = aKey;
   425 	iKey = aKey;
   422 	AttachL();	
   426 	AttachL();	
   423 	}
   427 	}
   424 
   428