1 /* |
|
2 * Copyright (c) 2009 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: Implementation of playback view's input handler |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 6 % |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include <qobject> |
|
23 #include <e32std.h> |
|
24 #include <w32std.h> // RWindowBase |
|
25 #include <e32base.h> |
|
26 #include <eikclbd.h> |
|
27 #include <aknconsts.h> |
|
28 #include <mpxplaybackframeworkdefs.h> |
|
29 #include <hwrmlightdomaincrkeys.h> |
|
30 #include <mpxvideoplaybackdefs.h> |
|
31 |
|
32 #include "mpxvideo_debug.h" |
|
33 #include "mpxvideoviewwrapper.h" |
|
34 #include "mpxcommonvideoplaybackview.hrh" |
|
35 #include "../inc/mpxvideoplaybackuserinputhandler.h" |
|
36 |
|
37 |
|
38 // CONSTANTS |
|
39 const TInt KMPXMicroSecondsInASecond = 1000000; |
|
40 |
|
41 |
|
42 // ======== MEMBER FUNCTIONS ======================================================================= |
|
43 |
|
44 // ------------------------------------------------------------------------------------------------- |
|
45 // MPXVideoPlaybackUserInputHandler::CMPXVideoPlaybackUserInputHandler() |
|
46 // ------------------------------------------------------------------------------------------------- |
|
47 // |
|
48 CMPXVideoPlaybackUserInputHandler::CMPXVideoPlaybackUserInputHandler( CMPXVideoViewWrapper* aWrapper ) |
|
49 : iViewWrapper( aWrapper ) |
|
50 { |
|
51 } |
|
52 |
|
53 // ------------------------------------------------------------------------------------------------- |
|
54 // CMPXVideoPlaybackUserInputHandler::NewL() |
|
55 // ------------------------------------------------------------------------------------------------- |
|
56 // |
|
57 CMPXVideoPlaybackUserInputHandler* CMPXVideoPlaybackUserInputHandler::NewL( |
|
58 CMPXVideoViewWrapper* aWrapper, TBool aTvOutConnected ) |
|
59 { |
|
60 MPX_DEBUG(_L("CMPXVideoPlaybackUserInputHandler::NewL()")); |
|
61 |
|
62 CMPXVideoPlaybackUserInputHandler* self = |
|
63 new (ELeave) CMPXVideoPlaybackUserInputHandler( aWrapper ); |
|
64 CleanupStack::PushL( self ); |
|
65 self->ConstructL( aTvOutConnected ); |
|
66 CleanupStack::Pop(); |
|
67 return self; |
|
68 } |
|
69 |
|
70 // ------------------------------------------------------------------------------------------------- |
|
71 // CMPXVideoPlaybackUserInputHandler::ConstructL |
|
72 // Symbian 2nd phase constructor can leave. |
|
73 // ------------------------------------------------------------------------------------------------- |
|
74 // |
|
75 void CMPXVideoPlaybackUserInputHandler::ConstructL( TBool aTvOutConnected ) |
|
76 { |
|
77 Q_UNUSED( aTvOutConnected ); |
|
78 } |
|
79 |
|
80 // ------------------------------------------------------------------------------------------------- |
|
81 // CMPXVideoPlaybackUserInputHandler::~CMPXVideoPlaybackUserInputHandler() |
|
82 // ------------------------------------------------------------------------------------------------- |
|
83 // |
|
84 CMPXVideoPlaybackUserInputHandler::~CMPXVideoPlaybackUserInputHandler() |
|
85 { |
|
86 |
|
87 } |
|
88 |
|
89 // ------------------------------------------------------------------------------------------------- |
|
90 // CMPXVideoPlaybackUserInputHandler::ProcessKeyEvent() |
|
91 // ------------------------------------------------------------------------------------------------- |
|
92 // |
|
93 void CMPXVideoPlaybackUserInputHandler::ProcessKeyEventL( const TKeyEvent& aKeyEvent, |
|
94 TEventCode aType ) |
|
95 { |
|
96 Q_UNUSED( aKeyEvent ); |
|
97 Q_UNUSED( aType ); |
|
98 } |
|
99 |
|
100 // ------------------------------------------------------------------------------------------------- |
|
101 // CMPXVideoPlaybackUserInputHandler::SetForeground() |
|
102 // ------------------------------------------------------------------------------------------------- |
|
103 // |
|
104 void CMPXVideoPlaybackUserInputHandler::SetForeground(TBool aForeground) |
|
105 { |
|
106 Q_UNUSED( aForeground ); |
|
107 } |
|
108 |
|
109 // ------------------------------------------------------------------------------------------------- |
|
110 // CMPXVideoPlaybackUserInputHandler::HandleTVOutEvent() |
|
111 // ------------------------------------------------------------------------------------------------- |
|
112 // |
|
113 void CMPXVideoPlaybackUserInputHandler::HandleTVOutEventL( TBool aTVOutConnected ) |
|
114 { |
|
115 Q_UNUSED( aTVOutConnected ); |
|
116 } |
|
117 |
|
118 // EOF |
|