--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/internetradio2.0/songhistoryinc/irsonghistoryengpubsubnotifyhandler.h Mon Apr 19 14:01:53 2010 +0300
@@ -0,0 +1,71 @@
+/*
+* 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
\ No newline at end of file