|
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: Observer interface for category data changes.* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 #ifndef VCXHGMYVIDEOSCATEGORYMODELOBSERVER_H |
|
21 #define VCXHGMYVIDEOSCATEGORYMODELOBSERVER_H |
|
22 |
|
23 // INCLUDES |
|
24 |
|
25 #include <mpxcollectionmessagedefs.h> |
|
26 #include <mpxitemid.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 |
|
30 class CMPXMediaArray; |
|
31 class CMPXMedia; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * Observer interface for category data changes. |
|
37 * |
|
38 * @lib vcxhgmyvideos.lib |
|
39 */ |
|
40 NONSHARABLE_CLASS( MVcxHgMyVideosCategoryModelObserver ) |
|
41 { |
|
42 public: |
|
43 |
|
44 /** |
|
45 * Called when a list of categories is available. |
|
46 * Ownership of array is transferred. |
|
47 * |
|
48 * @param aCategoryList List of categories |
|
49 * @param aIsPartial ETrue if list fetching continues, and KVcxMessageMyVideosListComplete |
|
50 * message will arrive. EFalse if this is last event of list fetching. |
|
51 */ |
|
52 virtual void NewCategoryListL( CMPXMediaArray* aCategoryList, TBool aIsPartial ) = 0; |
|
53 |
|
54 /** |
|
55 * Called when the list of categories has been modified. |
|
56 */ |
|
57 virtual void CategoryListModifiedL() = 0; |
|
58 |
|
59 /** |
|
60 * Called when a single category has been modified (add/remove/modify). |
|
61 * |
|
62 * @param aEventType Type of modification event (add/remove/modify). |
|
63 * @param aMpxItemId MPX Item Id of the modified item. |
|
64 */ |
|
65 virtual void CategoryModifiedL( TMPXChangeEventType aEventType, |
|
66 TMPXItemId& aMpxItemId ) = 0; |
|
67 |
|
68 /** |
|
69 * Called when category list items have been fetched. |
|
70 */ |
|
71 virtual void CategoryListFetchingCompletedL() = 0; |
|
72 |
|
73 }; |
|
74 |
|
75 #endif // VCXHGMYVIDEOSCATEGORYMODELOBSERVER_H |