internetradio2.0/songhistoryinc/irsonghistoryengpubsubnotifyhandler.h
author Pat Downey <patd@symbian.org>
Tue, 18 May 2010 11:36:57 +0100
changeset 4 3f2d53f144fe
parent 0 09774dfdd46b
permissions -rw-r--r--
Merge docml changeset with recent Nokia delivery.

/*
* 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:  Interface class to notify channelName/metadata changes CIRSongHistoryDbEngine
*
*/


#ifndef CIRSONGHISTORYENGPUBSUBNOTIFYHANDLER_H
#define CIRSONGHISTORYENGPUBSUBNOTIFYHANDLER_H

#include <e32cmn.h>

/**
* Observer interface for CIRSongHistoryEngPubSub.
* The observer is notified whenever the listened key is changed. If there was an error in getting the new value of the key,
* the observer will be notified of it as well.
*/
NONSHARABLE_CLASS(MIRSongHistoryEngPubSubNotifyHandler)
    {
    public:

        /**
        * Invoked when the listened key is changed.
        * @param    aCategory   The category of the key that changed.
        * @param    aKey        The key that changed.
        * @param    aValue      The new value of the key.
        */
    /*virtual void HandleChannelNameChangeL( const TUid& aCategory, TUint aKey,
    									   const TDesC8& aText ) = 0; */

        /**
        * Invoked when the listened key is changed.
        * @param    aCategory   The category of the key that changed.
        * @param    aKey        The key that changed.
        * @param    aText       The new value of the key.
        */
    /*virtual void HandleMetaDataChangeL( const TUid& aCategory, TUint aKey,
    	 								const TDesC8& aText ) = 0; */

         /**
        * Invoked when the listened (property MetaData / ChannelName) key is changed.
        * @param    aCategory   The category of the key that changed.
        * @param    aKey        The key that changed.
        * @param    aText       The new value of the key.
        */
    virtual void HandlePropertyChangeL( const TUid& aCategory, TUint aKey,
    	 								const TDesC8& aText ) = 0;


        /**
        * Invoked when an error occurred while retrieving the new value of the key.
        * @param    aCategory   The category of the key that changed.
        * @param    aKey        The key that changed.
        * @param    aError      The error code.
        */
    virtual void HandlePropertyChangeErrorL( const TUid& aCategory,TUint aKey,
    										 TInt aError ) = 0;
    };

#endif//IR_SONGHISTORYDBENGPUBSUBNOTIFYHANDLER