|
1 /* |
|
2 * Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Interface class to notify database changes to SongHistoryView |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef IR_SONGHISTORYUINOTIFYHANDLER |
|
20 #define IR_SONGHISTORYUINOTIFYHANDLER |
|
21 |
|
22 #include <e32cmn.h> |
|
23 |
|
24 /** |
|
25 * Observer interface for CIRSongHistoryView. |
|
26 * Notifies the view when new data is received. |
|
27 */ |
|
28 class MSongHistoryUINotifyHandler |
|
29 { |
|
30 public: |
|
31 |
|
32 /** |
|
33 * Invoked from CIRSongHistoryDbEng when new entry is added to the database. |
|
34 * @param aSongName |
|
35 * @param aArtistName |
|
36 * @param aChannelName |
|
37 * Parameters yet to be decided. |
|
38 */ |
|
39 virtual void NextSongReceivedL( const TDesC& aSongName, const TDesC& aArtistName, |
|
40 const TDesC& aChannelName, const TDesC& aChannelUrl ) = 0; |
|
41 |
|
42 virtual void ChannelChangedL( const TDesC& aSongName, const TDesC& aArtistName, |
|
43 const TDesC& aChannelName, const TDesC& aChannelUrl ) = 0; |
|
44 |
|
45 /** |
|
46 * Invoked from CIRSongHistoryDbEng when new entry is added to the database which *would exceed 30 entries. |
|
47 * @param aSongName |
|
48 * @param aArtistName |
|
49 * @param aChannelName |
|
50 */ |
|
51 virtual TInt RemoveSongEntry( const TDesC& aSongName, const TDesC& aArtistName, |
|
52 const TDesC& aChannelName, const TDesC& aChannelUrl ) = 0; |
|
53 |
|
54 virtual TInt RemoveChannelEntry( const TDesC& aSongName, const TDesC& aArtistName, |
|
55 const TDesC& aChannelName, const TDesC& aChannelUrl ) = 0; |
|
56 |
|
57 /** |
|
58 * Invoked when an error occurred while notifying to UI. |
|
59 * @param aError The error code. |
|
60 */ |
|
61 virtual void NotifyDataChangeToUIError( TInt aError ) = 0; |
|
62 |
|
63 }; |
|
64 |
|
65 #endif //IR_SONGHISTORYUINOTIFYHANDLER |