35
|
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 "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: class for Remote Video Control.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef CVTUIREMOTEVIDEOCONTROL_H_
|
|
19 |
#define CVTUIREMOTEVIDEOCONTROL_H_
|
|
20 |
|
|
21 |
#include <coecntrl.h>
|
|
22 |
#include <AknWsEventObserver.h>
|
|
23 |
|
|
24 |
class CVtUiVideoControlBase;
|
|
25 |
class CVtUiAppUi;
|
|
26 |
|
|
27 |
/**
|
|
28 |
* CVtUiRemoteVideoControl
|
|
29 |
*
|
|
30 |
* Remote Video control.
|
|
31 |
*
|
|
32 |
* @since S60 v5.0
|
|
33 |
*/
|
|
34 |
class CVtUiRemoteVideoControl : public CCoeControl,
|
|
35 |
public MAknWsEventObserver
|
|
36 |
{
|
|
37 |
public:
|
|
38 |
|
|
39 |
/**
|
|
40 |
* Static Constructor.
|
|
41 |
*/
|
|
42 |
static CVtUiRemoteVideoControl* NewL(CVtUiAppUi& aAppUi);
|
|
43 |
|
|
44 |
RWindow& GetRWindow();
|
|
45 |
|
|
46 |
/**
|
|
47 |
* Destructor
|
|
48 |
*/
|
|
49 |
~CVtUiRemoteVideoControl();
|
|
50 |
|
|
51 |
protected:
|
|
52 |
|
|
53 |
/**
|
|
54 |
* Constructor
|
|
55 |
*/
|
|
56 |
CVtUiRemoteVideoControl(CVtUiAppUi& aAppUi);
|
|
57 |
|
|
58 |
/**
|
|
59 |
* 2nd constructor
|
|
60 |
*/
|
|
61 |
void ConstructL();
|
|
62 |
|
|
63 |
public: // from CCoeControl
|
|
64 |
|
|
65 |
/**
|
|
66 |
* @see CCoeControl::HandlePointerEventL
|
|
67 |
*/
|
|
68 |
void HandlePointerEventL( const TPointerEvent& aPointerEvent );
|
|
69 |
|
|
70 |
public: // from MAknWsEventObserver
|
|
71 |
|
|
72 |
/**
|
|
73 |
* @see MAknWsEventObserver::HandleWsEventL
|
|
74 |
*/
|
|
75 |
void HandleWsEventL( const TWsEvent& aEvent,
|
|
76 |
CCoeControl* aDestination );
|
|
77 |
|
|
78 |
protected: // virtual methods
|
|
79 |
|
|
80 |
/**
|
|
81 |
* The size changed method. If you need to do special handling after the
|
|
82 |
* control's size has changed, overwrite this method.
|
|
83 |
*/
|
|
84 |
virtual void HandleSizeChanged();
|
|
85 |
|
|
86 |
private: // from CCoeControl
|
|
87 |
/**
|
|
88 |
* @see CCoeControl::Draw
|
|
89 |
*/
|
|
90 |
void Draw( const TRect& aRect ) const;
|
|
91 |
|
|
92 |
/**
|
|
93 |
* @see CCoeControl::SizeChanged
|
|
94 |
*/
|
|
95 |
void SizeChanged();
|
|
96 |
|
|
97 |
/**
|
|
98 |
* @see CCoeControl::PositionChanged
|
|
99 |
*/
|
|
100 |
void PositionChanged();
|
|
101 |
|
|
102 |
/**
|
|
103 |
* The draw method.
|
|
104 |
*/
|
|
105 |
void DoDraw( CWindowGc& aGc ) const;
|
|
106 |
|
|
107 |
private:
|
|
108 |
|
|
109 |
// Reference to application UI.
|
|
110 |
CVtUiAppUi& iAppUi;
|
|
111 |
|
|
112 |
|
|
113 |
};
|
|
114 |
|
|
115 |
#endif /*CVTUIREMOTEVIDEOCONTROL_H_*/
|