|
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: CVcxNsChLastWatchedUpdater class declaration* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 #ifndef _VCXCHLASTWATCHEDUPDATER_H |
|
21 #define _VCXCHLASTWATCHEDUPDATER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 #include <e32cmn.h> |
|
26 #include <e32base.h> |
|
27 #include <contentharvesterplugin.h> |
|
28 #include <contentharvesterpluginuids.hrh> |
|
29 #include <MediatorEventConsumer.h> |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CVcxNsChMCategoryListener; |
|
33 class CVcxNsChPublishableData; |
|
34 class CVcxNsChPublisher; |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 /** |
|
39 * Ns Content Harvester plugin |
|
40 * |
|
41 * @lib vcxnscontentharvesterplugin.dll |
|
42 * @since S60 v5.0 |
|
43 */ |
|
44 |
|
45 class CVcxNsChLastWatchedUpdater: public CBase, |
|
46 public MMediatorEventObserver |
|
47 { |
|
48 |
|
49 public: |
|
50 |
|
51 static CVcxNsChLastWatchedUpdater* NewL( CVcxNsChPublishableData* aPublishableData, |
|
52 CVcxNsChPublisher* aPublisher ); |
|
53 |
|
54 /** |
|
55 * Destructor |
|
56 * |
|
57 */ |
|
58 virtual ~CVcxNsChLastWatchedUpdater(); |
|
59 |
|
60 /** |
|
61 * From MMediatorEventObserver |
|
62 * |
|
63 * Catches mediator events |
|
64 */ |
|
65 void MediatorEventL( TUid aDomain, |
|
66 TUid aCategory, |
|
67 TInt aEventId, |
|
68 const TDesC8& aData ); |
|
69 |
|
70 private: |
|
71 |
|
72 void ConstructL(); |
|
73 |
|
74 CVcxNsChLastWatchedUpdater( CVcxNsChPublishableData* aPublishableData, |
|
75 CVcxNsChPublisher* aPublisher ); |
|
76 |
|
77 /** |
|
78 * Writes the preloaded video data to last watched |
|
79 */ |
|
80 void WritePreloadedToLastWatchedL(); |
|
81 |
|
82 private: // DATA |
|
83 |
|
84 /** |
|
85 * Publishable data container |
|
86 * NOT OWN |
|
87 */ |
|
88 CVcxNsChPublishableData* iPublishableData; |
|
89 |
|
90 /** |
|
91 * Publisher object used to publish data from CVcxNsChPublishableData |
|
92 * to service api |
|
93 * NOT OWN |
|
94 */ |
|
95 CVcxNsChPublisher* iPublisher; |
|
96 |
|
97 /** |
|
98 * Mediator helper object for registering and subscribing |
|
99 * player related mediator events |
|
100 * OWN |
|
101 */ |
|
102 CVcxNsChMCategoryListener* iMPlayerCategoryListener; |
|
103 |
|
104 /** |
|
105 * Mediator helper object for registering and subscribing |
|
106 * IPTV related mediator events |
|
107 * OWN |
|
108 */ |
|
109 CVcxNsChMCategoryListener* iMIPTVCategoryListener; |
|
110 |
|
111 }; |
|
112 |
|
113 #endif // _VCXCHLASTWATCHEDUPDATER_H |