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: 4 % |
|
19 |
|
20 |
|
21 |
|
22 #ifndef MPXVIDEOPLAYBACKUSERINPUTHANDLER_H_ |
|
23 #define MPXVIDEOPLAYBACKUSERINPUTHANDLER_H_ |
|
24 |
|
25 // INCLUDES |
|
26 |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CMPXVideoViewWrapper; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 class CMPXVideoPlaybackUserInputHandler : public CBase |
|
34 { |
|
35 public: // Constructors and destructor |
|
36 |
|
37 /** |
|
38 * Two-phased constructor. |
|
39 */ |
|
40 IMPORT_C static CMPXVideoPlaybackUserInputHandler* NewL( |
|
41 CMPXVideoViewWrapper* aWrapper, TBool aTvOutConnected ); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 IMPORT_C virtual ~CMPXVideoPlaybackUserInputHandler(); |
|
47 |
|
48 private: |
|
49 |
|
50 /** |
|
51 * C++ default constructor. |
|
52 */ |
|
53 CMPXVideoPlaybackUserInputHandler( CMPXVideoViewWrapper* aWrapper ); |
|
54 |
|
55 /** |
|
56 * Symbian 2nd phase constructor. |
|
57 */ |
|
58 void ConstructL( TBool aTvOutConnected ); |
|
59 |
|
60 public: |
|
61 void ProcessKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
|
62 |
|
63 void SetForeground( TBool aForeground ); |
|
64 |
|
65 void HandleTVOutEventL(TBool aTVOutConnected); |
|
66 |
|
67 private: |
|
68 TBool iTVOutConnected; // Flag to indicate if TV is connected |
|
69 TBool iForeground; |
|
70 CMPXVideoViewWrapper* iViewWrapper; |
|
71 }; |
|
72 |
|
73 |
|
74 #endif /*MPXVIDEOPLAYBACKUSERINPUTHANDLER_H_*/ |
|
75 |
|
76 // End of File |
|