diff -r bfc95e24a059 -r c9471d26c7f2 qtinternetradio/irqsystemeventhandler/inc/irpropertychangeao.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qtinternetradio/irqsystemeventhandler/inc/irpropertychangeao.h Thu Jul 22 16:31:41 2010 +0100 @@ -0,0 +1,56 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef CIRPROPERTYCHANGEAO_H +#define CIRPROPERTYCHANGEAO_H + +#include +#include + +class MIRPropertyChangeObserverInterface; + +class CIRPropertyChangeAO : public CActive +{ + +public: + + //only two-phase constructor is permit to use + static CIRPropertyChangeAO* NewL( MIRPropertyChangeObserverInterface* aObserver, const TUid& aCategory, const TUint aKey); + ~CIRPropertyChangeAO(); + void ActivateL(); + TBool ValueInt(TInt& aValue); + +private: + + CIRPropertyChangeAO(MIRPropertyChangeObserverInterface* aObserver,const TUid& aCategory,const TUint aKey); + void ConstructL(); + +protected: + + void RunL(); + void DoCancel(); + +private: + + TInt iValueInt; + RProperty iProperty; + MIRPropertyChangeObserverInterface* iObserver; + TUid iCategory; + TUint iKey; +}; +#endif // CIRPROPERTYCHANGEAO_H +