|
1 /* |
|
2 * Copyright (c) 2006 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 the License "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: Page overview control |
|
15 * |
|
16 */ |
|
17 #ifndef __PLUGINCONTENTPLAYER_H__ |
|
18 #define __PLUGINCONTENTPLAYER_H__ |
|
19 |
|
20 // INCLUDES |
|
21 #include <e32base.h> |
|
22 #include <coecntrl.h> |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 class CBrCtl; |
|
26 class PluginWin; |
|
27 |
|
28 // CLASS |
|
29 class PluginPlayer : public CCoeControl |
|
30 { |
|
31 public: |
|
32 // two phase contructor |
|
33 static PluginPlayer* NewL( CBrCtl& parent, PluginWin* plugin ); |
|
34 |
|
35 virtual ~PluginPlayer(); |
|
36 |
|
37 //from CCoeControl |
|
38 TInt CountComponentControls() const; |
|
39 CCoeControl *ComponentControl(TInt index) const; |
|
40 TKeyResponse OfferKeyEventL(const TKeyEvent keyEvent, TEventCode type); |
|
41 void Draw(const TRect& rect) const; |
|
42 |
|
43 // playing control |
|
44 void start(); |
|
45 void stop(); |
|
46 void HandlePointerEventL(const TPointerEvent& aPointerEvent); |
|
47 |
|
48 private: |
|
49 void ConstructL(); |
|
50 PluginPlayer( CBrCtl& parent, PluginWin* plugin ); |
|
51 |
|
52 CBrCtl& m_brctl; // the parent control |
|
53 PluginWin* m_plugin; // not owned, the plugin |
|
54 TRect m_orgrect; // plugin rect in original parent |
|
55 CCoeControl* m_orgparent; // plugin parent |
|
56 }; |
|
57 |
|
58 #endif // !__PLUGINCONTENTPLAYER_H__ |