|
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: CVideoServicesContainer implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "VideoServicesContainer.h" |
|
21 |
|
22 // ================= MEMBER FUNCTIONS ======================= |
|
23 |
|
24 // --------------------------------------------------------- |
|
25 // CVideoServicesContainer::NewL( const TRect& aRect ) |
|
26 // EPOC two phased constructor |
|
27 // --------------------------------------------------------- |
|
28 // |
|
29 CVideoServicesContainer* CVideoServicesContainer::NewL( const TRect& aRect ) |
|
30 { |
|
31 CVideoServicesContainer* self = new ( ELeave ) CVideoServicesContainer(); |
|
32 CleanupStack::PushL( self ); |
|
33 self->ConstructL( aRect ); |
|
34 CleanupStack::Pop(); |
|
35 return self; |
|
36 } |
|
37 |
|
38 // --------------------------------------------------------- |
|
39 // CVideoServicesContainer::ConstructL(const TRect& aRect) |
|
40 // EPOC two phased constructor |
|
41 // --------------------------------------------------------- |
|
42 // |
|
43 void CVideoServicesContainer::ConstructL( const TRect& aRect ) |
|
44 { |
|
45 CreateWindowL(); |
|
46 SetRect( aRect ); |
|
47 ActivateL(); |
|
48 } |
|
49 |
|
50 // Destructor |
|
51 CVideoServicesContainer::~CVideoServicesContainer() |
|
52 { |
|
53 } |
|
54 |
|
55 |
|
56 // --------------------------------------------------------- |
|
57 // CVideoServicesContainer::Draw(const TRect& aRect) const |
|
58 // --------------------------------------------------------- |
|
59 // |
|
60 void CVideoServicesContainer::Draw( const TRect& aRect ) const |
|
61 { |
|
62 CWindowGc& gc = SystemGc(); |
|
63 gc.SetPenStyle( CGraphicsContext::ENullPen ); |
|
64 gc.SetBrushColor( KRgbWhite ); |
|
65 gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); |
|
66 gc.DrawRect( aRect ); |
|
67 } |
|
68 |
|
69 // --------------------------------------------------------- |
|
70 // CVideoServicesContainer::HandleControlEventL( |
|
71 // CCoeControl* aControl,TCoeEvent aEventType) |
|
72 // --------------------------------------------------------- |
|
73 // |
|
74 void CVideoServicesContainer::HandleControlEventL( |
|
75 CCoeControl* /*aControl*/,TCoeEvent /*aEventType*/ ) |
|
76 { |
|
77 |
|
78 } |
|
79 |
|
80 // End of File |