|
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 video data changes.* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 #ifndef VCXHGMYVIDEOSVIDEOMODELOBSERVER_H |
|
21 #define VCXHGMYVIDEOSVIDEOMODELOBSERVER_H |
|
22 |
|
23 // INCLUDE FILES |
|
24 #include <mpxcollectionmessagedefs.h> |
|
25 #include <mpxitemid.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CMPXMediaArray; |
|
29 class CMPXMedia; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Observer interface for video data changes. |
|
35 * |
|
36 * @lib vcxhgmyvideos.lib |
|
37 */ |
|
38 NONSHARABLE_CLASS( MVcxHgMyVideosVideoModelObserver ) |
|
39 { |
|
40 public: |
|
41 |
|
42 /** |
|
43 * Called when a list of videos is available. |
|
44 * |
|
45 * @param aVideoList List of videos |
|
46 */ |
|
47 virtual void NewVideoListL( CMPXMediaArray& aVideoList ) = 0; |
|
48 |
|
49 /** |
|
50 * Called when the whole video list has been modified. |
|
51 * Normally this means that new items have been appended to list. |
|
52 */ |
|
53 virtual void VideoListModifiedL() = 0; |
|
54 |
|
55 /* |
|
56 * Called when a single video item has fetched. |
|
57 * Ownership of video is transferred. |
|
58 * |
|
59 * @param aVideo Video item. |
|
60 */ |
|
61 virtual void VideoFetchingCompletedL( CMPXMedia* aVideo ) = 0; |
|
62 |
|
63 /** |
|
64 * Called when a single video item has been modified (add/remove/modify). |
|
65 * |
|
66 * @param aEventType Type of modification event (add/remove/modify). |
|
67 * @param aMpxItemId MPX Item Id of the modified item. |
|
68 * @param aExtraInfo Extra information for modification event. |
|
69 * @param aSimulated If ETrue, event is not originated from MPX Collection. |
|
70 */ |
|
71 virtual void VideoModifiedL( TMPXChangeEventType aEventType, |
|
72 TMPXItemId aMpxItemId, |
|
73 TInt32 aExtraInfo, |
|
74 TBool aSimulated = EFalse ) = 0; |
|
75 |
|
76 /** |
|
77 * Called when multiple video deletion command is completed. |
|
78 * |
|
79 * @param aFailedCount Count of failed deletions, if any. |
|
80 * @param aFailedMpxId If above 1, MPXItemId of failed deletion. |
|
81 */ |
|
82 virtual void VideoDeletionCompletedL( TInt aFailedCount, |
|
83 TMPXItemId aFailedMpxId ) = 0; |
|
84 |
|
85 /** |
|
86 * Called when move or copy command is completed. |
|
87 * |
|
88 * @param aFailedCount Count of failed moves/copies, if any. |
|
89 * @param aFailedMpxId If above 1, MPXItemId of failed move/copy. |
|
90 */ |
|
91 virtual void VideoMoveOrCopyCompletedL( TInt aFailedCount, |
|
92 TMPXItemId aFailedMpxId ) = 0; |
|
93 |
|
94 /** |
|
95 * Called when all details for a video have been fetched. |
|
96 * |
|
97 * @param aMedia MPX Media that contains all details. |
|
98 */ |
|
99 virtual void VideoDetailsCompletedL( const CMPXMedia& aMedia ) = 0; |
|
100 }; |
|
101 |
|
102 #endif // VCXHGMYVIDEOSVIDEOMODELOBSERVER_H |