|
1 /* |
|
2 * Copyright (c) 2008 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 the License "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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef MVCXNSCONTENTPROVIDEROBSERVER_H |
|
22 #define MVCXNSCONTENTPROVIDEROBSERVER_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32std.h> |
|
26 #include <e32base.h> |
|
27 #include "CIptvUtil.h" |
|
28 |
|
29 class CVcxNsContent; |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * MVcxNsContentProviderObserver |
|
34 * |
|
35 * @lib vcxnsuiengine.lib |
|
36 */ |
|
37 class MVcxNsContentProviderObserver |
|
38 { |
|
39 |
|
40 public: |
|
41 |
|
42 /** |
|
43 * Notify content's data has been updated. |
|
44 * |
|
45 * @param aIndex Updated item's index |
|
46 */ |
|
47 virtual void ContentUpdated( TInt aIndex ) = 0; |
|
48 |
|
49 /** |
|
50 * Full view data needs to be updated. |
|
51 */ |
|
52 virtual void RefreshView() = 0; |
|
53 |
|
54 /** |
|
55 * Application state needs to be updated. |
|
56 */ |
|
57 virtual void HandleAppStateChangedL() = 0; |
|
58 |
|
59 /** |
|
60 * Epg update is ongoing, show the notification. |
|
61 * When downloading and parsing the xml, both parameters are 0. |
|
62 * |
|
63 * @param aShow If ETrue, show the note, if EFalse, hide it. |
|
64 * @param aDownloadedTbns count of downloaded thumbnails. |
|
65 * @param aTotalTbns Total count of thumbnails to be downloaded. |
|
66 */ |
|
67 virtual void ShowUpdatingNoteL( |
|
68 TBool aShow, |
|
69 TInt aDownloadedTbns, |
|
70 TInt aTotalTbns ) = 0; |
|
71 |
|
72 /** |
|
73 * Handle error |
|
74 * |
|
75 * @param aError Error to handle in UI |
|
76 */ |
|
77 virtual void HandleUpdateErrorL( TInt aError ) = 0; |
|
78 |
|
79 /** |
|
80 * Handle download error |
|
81 * |
|
82 * @param aError Error to handle in UI |
|
83 * @param aContent Details of the video which download has failed. |
|
84 */ |
|
85 virtual void HandleDownloadErrorL( |
|
86 TIptvDlError aError, |
|
87 CVcxNsContent& aContent ) = 0; |
|
88 |
|
89 }; |
|
90 |
|
91 #endif // MVCXNSCONTENTPROVIDEROBSERVER_H |