|
1 /* |
|
2 * Copyright (c) 2004 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 the CVtUiBlankControl control class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "CVtUiBlankControl.h" |
|
22 #include <aknsutils.h> |
|
23 |
|
24 // ============================ MEMBER FUNCTIONS =============================== |
|
25 |
|
26 // ----------------------------------------------------------------------------- |
|
27 // CVtUiBlankControl::CVtUiBlankControl |
|
28 // C++ constructor can NOT contain any code, that |
|
29 // might leave. |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 CVtUiBlankControl::CVtUiBlankControl() |
|
33 { |
|
34 } |
|
35 |
|
36 // ----------------------------------------------------------------------------- |
|
37 // CVtUiBlankControl::ConstructL |
|
38 // Symbian 2nd phase constructor. |
|
39 // ----------------------------------------------------------------------------- |
|
40 // |
|
41 void CVtUiBlankControl::ConstructL( const TRect& aRect ) |
|
42 { |
|
43 CreateWindowL(); |
|
44 MakeVisible( EFalse ); |
|
45 SetRect( aRect ); |
|
46 } |
|
47 |
|
48 // ----------------------------------------------------------------------------- |
|
49 // CVtUiBlankControl::~CVtUiBlankControl |
|
50 // Destructor. |
|
51 // ----------------------------------------------------------------------------- |
|
52 // |
|
53 CVtUiBlankControl::~CVtUiBlankControl() |
|
54 { |
|
55 AknsUtils::DeregisterControlPosition( this ); |
|
56 } |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // CVtUiBlankControl::SetActive |
|
60 // ----------------------------------------------------------------------------- |
|
61 // |
|
62 void CVtUiBlankControl::SetActive( TBool aStatus ) |
|
63 { |
|
64 iBlankerActive = aStatus; |
|
65 } |
|
66 |
|
67 // ----------------------------------------------------------------------------- |
|
68 // CVtUiBlankControl::OfferKeyEventL |
|
69 // ----------------------------------------------------------------------------- |
|
70 // |
|
71 TKeyResponse CVtUiBlankControl::OfferKeyEventL( |
|
72 const TKeyEvent& /*aKeyEvent*/, |
|
73 TEventCode /*aType*/ ) |
|
74 { |
|
75 return iBlankerActive ? EKeyWasConsumed : EKeyWasNotConsumed; |
|
76 } |
|
77 |
|
78 // ----------------------------------------------------------------------------- |
|
79 // CVtUiBlankControl::Draw |
|
80 // ----------------------------------------------------------------------------- |
|
81 // |
|
82 void CVtUiBlankControl::Draw( const TRect& /*aRect*/ ) const |
|
83 { |
|
84 } |
|
85 |
|
86 // ----------------------------------------------------------------------------- |
|
87 // CVtUiBlankControl::SizeChanged |
|
88 // ----------------------------------------------------------------------------- |
|
89 // |
|
90 void CVtUiBlankControl::SizeChanged() |
|
91 { |
|
92 AknsUtils::RegisterControlPosition( this ); |
|
93 } |
|
94 |
|
95 // ----------------------------------------------------------------------------- |
|
96 // CVtUiBlankControl::PositionChanged |
|
97 // ----------------------------------------------------------------------------- |
|
98 // |
|
99 void CVtUiBlankControl::PositionChanged() |
|
100 { |
|
101 AknsUtils::RegisterControlPosition( this ); |
|
102 } |
|
103 |
|
104 // End of File |