|
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: Implementation of MPXVideoPlaybackUserInputHandler |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: ou1cpsw#4 % |
|
19 |
|
20 |
|
21 #ifndef MPXVIDEOPLAYBACKUSERINPUTHANDLER_H_ |
|
22 #define MPXVIDEOPLAYBACKUSERINPUTHANDLER_H_ |
|
23 |
|
24 // INCLUDES |
|
25 #include <f32file.h> |
|
26 #include <coecntrl.h> |
|
27 #include <RemConCoreApiTargetObserver.h> // Side volume key |
|
28 |
|
29 #include "mpxvideoplaybackcontrol.hrh" |
|
30 #include "mpxvideoplaybackcontrol.h" |
|
31 #include "mpxvideoplaybackcontrolscontroller.h" |
|
32 #include "mpxvideo_debug.h" |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 class CMPXVideoPlaybackControl; |
|
36 class CMPXVideoPlaybackControlsController; |
|
37 class CRemConInterfaceSelector; // Side volume key |
|
38 class CRemConCoreApiTarget; |
|
39 class CMPXVideoPlaybackContainer; |
|
40 |
|
41 // CLASS DECLARATION |
|
42 |
|
43 class CMPXVideoPlaybackUserInputHandler : public CBase, |
|
44 public MRemConCoreApiTargetObserver |
|
45 { |
|
46 |
|
47 public: // Constructors and destructor |
|
48 |
|
49 /** |
|
50 * Two-phased constructor. |
|
51 */ |
|
52 static CMPXVideoPlaybackUserInputHandler* NewL(CMPXVideoPlaybackContainer* iContainer); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 virtual ~CMPXVideoPlaybackUserInputHandler(); |
|
58 |
|
59 private: |
|
60 |
|
61 /** |
|
62 * C++ default constructor. |
|
63 */ |
|
64 CMPXVideoPlaybackUserInputHandler( CMPXVideoPlaybackContainer* iContainer ); |
|
65 |
|
66 /** |
|
67 * Symbian 2nd phase constructor. |
|
68 */ |
|
69 void ConstructL(); |
|
70 |
|
71 public: |
|
72 |
|
73 void ProcessPointerEventL( CCoeControl* aControl, |
|
74 const TPointerEvent& aPointerEvent, |
|
75 TMPXVideoControlType aMPXControl ); |
|
76 |
|
77 void ProcessKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
|
78 |
|
79 private: |
|
80 |
|
81 TMPXVideoUserInputType iProcessingInputType; // the type of input being processed |
|
82 TUint iLastPressedKeyCode; // keycode of last key that sent EEventKeyDown |
|
83 TInt iLastPressedKeyScanCode; // scancode of last key that sent EEventKeyDown |
|
84 |
|
85 CMPXVideoPlaybackContainer* iContainer; // not owned |
|
86 }; |
|
87 |
|
88 |
|
89 #endif /*MPXVIDEOPLAYBACKUSERINPUTHANDLER_H_*/ |
|
90 |
|
91 // End of File |