diff -r 11b6825f0862 -r 3a6b55c6390c radioengine/utils/api/cradiorepositoryentitybase.h --- a/radioengine/utils/api/cradiorepositoryentitybase.h Tue Jul 06 14:16:27 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,78 +0,0 @@ -/* -* 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 C_RADIOREPOSITORYENTITYBASE_H -#define C_RADIOREPOSITORYENTITYBASE_H - -#include - -class MRadioRepositoryEntityObserver; - -/** - * Base class for a central repository entity. - * - * All instantiable central repository entities must be derived from this class. - * The class is provided so that a heterogenous array of templated objects can be created, and to - * provide common data fields for the said purpose. - */ -class CRadioRepositoryEntityBase : public CActive - { - -public: - - IMPORT_C ~CRadioRepositoryEntityBase(); - - /** - * Returns the UID of the repository the entity is bound to. - * - * @return The UID of the repository the entity is bound to. - */ - const TUid& Uid() const; - - /** - * Returns the key the entity is bound to. - * - * @return The key the entity is bound to. - */ - TUint32 Key() const; - -protected: - - /** - * Constructor. - * - * @param aUid The UID of the repository that this entity will be bound to. - * @param aKey The key within the repository that this entity will be bound to. - * @param aObserver The observer that is notified whenever the value of the key within the repository changes. - * @param aPriority The priority of the active object. - */ - IMPORT_C CRadioRepositoryEntityBase( const TUid& aUid, TUint32 aKey, MRadioRepositoryEntityObserver& aObserver, CActive::TPriority aPriority ); - -protected: - - /** The observer that is notified of changes in the key. */ - MRadioRepositoryEntityObserver& iObserver; - - /** The UID of the repository the entity is bound to. */ - TUid iUid; - - /** The key the entity is bound to.. */ - TUint32 iKey; - - }; - -#endif // C_RADIOREPOSITORYENTITYBASE_H