|
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 "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: Poster Frame Setter |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: ou1cpsw#2 % |
|
19 |
|
20 |
|
21 |
|
22 #ifndef _MPXVIDEOPOSTERFRAMESETTER_H |
|
23 #define _MPXVIDEOPOSTERFRAMESETTER_H |
|
24 |
|
25 // INCLUDES |
|
26 #include <e32base.h> |
|
27 #include <thumbnailmanager.h> |
|
28 #include <thumbnailobjectsource.h> |
|
29 #include <thumbnailmanagerobserver.h> |
|
30 |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 class CMPXVideoPlaybackController; |
|
34 class CThumbnailManager; |
|
35 |
|
36 // CLASS DECLARATION |
|
37 NONSHARABLE_CLASS(CMPXVideoPosterFrameSetter) : public CBase, |
|
38 public MThumbnailManagerObserver |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 */ |
|
45 static CMPXVideoPosterFrameSetter* NewL( CMPXVideoPlaybackController* aVideoPlaybackCtlr ); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 virtual ~CMPXVideoPosterFrameSetter(); |
|
51 |
|
52 public: |
|
53 |
|
54 void RequestPosterFrame(); |
|
55 |
|
56 void HandlePosterFrameReady(TInt aError); |
|
57 |
|
58 // from MThumbnailManagerObserver |
|
59 void ThumbnailPreviewReady( MThumbnailData& aThumbnail, |
|
60 TThumbnailRequestId aId ); |
|
61 |
|
62 // from MThumbnailManagerObserver |
|
63 void ThumbnailReady( TInt aError, |
|
64 MThumbnailData& aThumbnail, |
|
65 TThumbnailRequestId aId ); |
|
66 |
|
67 |
|
68 private: |
|
69 |
|
70 /** |
|
71 * C++ default constructor. |
|
72 */ |
|
73 CMPXVideoPosterFrameSetter( CMPXVideoPlaybackController* aVideoPlaybackCtlr ); |
|
74 |
|
75 /** |
|
76 * By default Symbian 2nd phase constructor is private. |
|
77 */ |
|
78 void ConstructL(); |
|
79 |
|
80 private: // Data |
|
81 |
|
82 CMPXVideoPlaybackController* iVideoPlaybackCtlr; |
|
83 TThumbnailRequestId iRequestId; |
|
84 CThumbnailManager* iTNManager; |
|
85 }; |
|
86 |
|
87 #endif // _MPXVIDEOPOSTERFRAMESETTER_H |
|
88 |
|
89 // End of File |