|
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: STUB file for project STIF Video Playback Controls. |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: ou1cpsw#2 % |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 #ifndef __CVIDEOPLAYBACKCONTROL_STUB_H__ |
|
24 #define __CVIDEOPLAYBACKCONTROL_STUB_H__ |
|
25 |
|
26 |
|
27 // INCLUDES |
|
28 #include <coecntrl.h> |
|
29 |
|
30 /** |
|
31 * Control class for video playback |
|
32 * |
|
33 */ |
|
34 class CMPXVideoPlaybackControl : public CCoeControl |
|
35 { |
|
36 |
|
37 public: // Constructors and destructor |
|
38 |
|
39 /** |
|
40 * Two-phased constructor. |
|
41 */ |
|
42 static CMPXVideoPlaybackControl* NewL(); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 virtual ~CMPXVideoPlaybackControl(); |
|
48 |
|
49 protected: |
|
50 |
|
51 /** |
|
52 * C++ default constructor. |
|
53 */ |
|
54 CMPXVideoPlaybackControl(); |
|
55 |
|
56 /** |
|
57 * Symbian 2nd phase constructor. |
|
58 */ |
|
59 void ConstructL(); |
|
60 |
|
61 protected: |
|
62 |
|
63 /** |
|
64 * From CCoeControl. |
|
65 * Gets the number of controls contained in a compound control. |
|
66 * |
|
67 * @return The number of component controls contained by this control. |
|
68 */ |
|
69 TInt CountComponentControls() const; |
|
70 |
|
71 /** |
|
72 * From CCoeControl. |
|
73 * Gets an indexed component of a compound control. |
|
74 * |
|
75 * @param aIndex The index of the control. |
|
76 * @return The component control with an index of aIndex. |
|
77 */ |
|
78 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
79 |
|
80 /** |
|
81 * From CCoeControl,Draw. |
|
82 * @param aRect drawable area. |
|
83 */ |
|
84 void Draw(const TRect& aRect) const; |
|
85 |
|
86 public: |
|
87 |
|
88 void DoHandleKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
|
89 void DoHandlePointerEventL( const TPointerEvent& aPointerEvent ); |
|
90 |
|
91 private: |
|
92 |
|
93 TKeyEvent iKeyEvent; |
|
94 TEventCode iEventCode; |
|
95 TPointerEvent iPointerEvent; |
|
96 |
|
97 public: // Friend class |
|
98 |
|
99 friend class CUserinputhandlertest; |
|
100 |
|
101 }; |
|
102 |
|
103 #endif // __CVIDEOPLAYBACKCONTROL_STUB_H__ |
|
104 |
|
105 // End of File |