diff -r 608f67c22514 -r 896e9dbc5f19 internetradio2.0/activeidleenginc/iractiveidleengpubsub.h --- a/internetradio2.0/activeidleenginc/iractiveidleengpubsub.h Tue Jul 06 14:07:20 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,103 +0,0 @@ -/* -* Copyright (c) 2006-2007 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: ?Description -* -*/ - -#ifndef IRACTIVEIDLEENGPUBSUB_H -#define IRACTIVEIDLEENGPUBSUB_H - -#include -#include - -class MIRActiveIdleEngPubSubNotifyHandler; - -#define KMAXLENGTH 256 - -/** -* Listens to one specified Publish & Subscribe key, notifying the observer whenever that key is changed. -*/ -NONSHARABLE_CLASS(CIRActiveIdleEngPubSub) : public CActive - { - public: - - /** - * Static constructor. - * @param aObserver The observer to be notified of the changes in the listened key. - * @param aCategory The category of the key. - * @param aKey The key to listen to. - */ - static CIRActiveIdleEngPubSub* NewL( MIRActiveIdleEngPubSubNotifyHandler& - aObserver, const TUid& aCategory, TUint aKey , - const RProperty::TType aPropertyType ); - - /** - * Destructor. - */ - ~CIRActiveIdleEngPubSub(); - - /** - * Construction finalizer. - * Subscribes the object to listen to the specified key. - */ - void SecondConstructL(); - - protected: // From CActive - - /** - *void RunL() - *The function is called by the active scheduler - *when a request completion event occurs, - */ - void RunL(); - - /** - *void DoCancel() - *Invoked when the active object is cancelled. - */ - void DoCancel(); - - private: - - /** - * Constructor. - * @param aObserver The observer to be notified of the changes in the listened key. - * @param aCategory The category of the key. - * @param aKey The key to listen to. - */ - CIRActiveIdleEngPubSub( MIRActiveIdleEngPubSubNotifyHandler& aObserver, - const TUid& aCategory, TUint aKey, const RProperty::TType aPropertyType ); - - /** - * Second-phase constructor. - */ - void ConstructL(); - - protected: - - /** Handle to the property. */ - RProperty iProperty; - RProperty::TType iPropertyType; - /** The observer to be notified of the changes in the listened key. */ - MIRActiveIdleEngPubSubNotifyHandler& iObserver; - /** The category of the key to listen to. */ - TUid iCategory; - /** The key to listen to. */ - TUint iKey; - /** The cached value of the key. */ - mutable TBuf8 iText; - TInt iValue; - }; - -#endif//IRACTIVEIDLEENGPUBSUB_H