|
1 /* |
|
2 * Copyright (c) 2002-2005 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 hwr ui popup state |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // System includes |
|
20 #include <peninputcmd.h> |
|
21 #include <aknfeppeninputenums.h> |
|
22 #include <peninputdataprovider.h> |
|
23 #include <peninputlayoutcontext.h> |
|
24 #include <peninputdataconverter.h> |
|
25 #include <peninputlayoutbasecontrol.h> |
|
26 #include <peninputcommonlayoutglobalenum.h> |
|
27 |
|
28 // User includes |
|
29 #include "peninputgenerichwr.hrh" |
|
30 #include "peninputgenerichwruistatepopup.h" |
|
31 |
|
32 |
|
33 // ======== MEMBER FUNCTIONS ======== |
|
34 |
|
35 // -------------------------------------------------------------------------- |
|
36 // CPeninputUiStateHwrPopup::CPeninputUiStateHwrPopup |
|
37 // (other items were commented in a header) |
|
38 // -------------------------------------------------------------------------- |
|
39 // |
|
40 CPeninputUiStateHwrPopup::CPeninputUiStateHwrPopup( |
|
41 MPeninputUiStateMgr* aUiStateMgr, MPeninputLayoutContext* aContext ) |
|
42 : CPeninputUiStateBase( aUiStateMgr, aContext ) |
|
43 { |
|
44 } |
|
45 |
|
46 // -------------------------------------------------------------------------- |
|
47 // CPeninputUiStateHwrPopup::NewL |
|
48 // (other items were commented in a header) |
|
49 // -------------------------------------------------------------------------- |
|
50 // |
|
51 CPeninputUiStateHwrPopup* CPeninputUiStateHwrPopup::NewL( |
|
52 MPeninputUiStateMgr* aUiStateMgr, MPeninputLayoutContext* aContext ) |
|
53 { |
|
54 CPeninputUiStateHwrPopup* self = |
|
55 new ( ELeave ) CPeninputUiStateHwrPopup( aUiStateMgr, aContext ); |
|
56 CleanupStack::PushL( self ); |
|
57 self->Construct(); |
|
58 CleanupStack::Pop( self ); |
|
59 |
|
60 return self; |
|
61 } |
|
62 |
|
63 // -------------------------------------------------------------------------- |
|
64 // CPeninputUiStateHwrPopup::~CPeninputUiStateHwrPopup |
|
65 // (other items were commented in a header) |
|
66 // -------------------------------------------------------------------------- |
|
67 // |
|
68 CPeninputUiStateHwrPopup::~CPeninputUiStateHwrPopup() |
|
69 { |
|
70 } |
|
71 |
|
72 // -------------------------------------------------------------------------- |
|
73 // CPeninputUiStateHwrPopup::HandleKeyEventL |
|
74 // (other items were commented in a header) |
|
75 // -------------------------------------------------------------------------- |
|
76 // |
|
77 TBool CPeninputUiStateHwrPopup::HandleKeyEventL( |
|
78 const TRawEvent& /*aData*/ ) |
|
79 { |
|
80 iContext->SendEventToWindow( EPeninputLayoutHwrEventPopupClose, |
|
81 NULL ); |
|
82 return ETrue; |
|
83 } |
|
84 |
|
85 // -------------------------------------------------------------------------- |
|
86 // CPeninputUiStateHwrPopup::HandleControlEvent |
|
87 // (other items were commented in a header) |
|
88 // -------------------------------------------------------------------------- |
|
89 // |
|
90 TBool CPeninputUiStateHwrPopup::HandleControlEvent( TInt /*aEventType*/, |
|
91 const TDesC& /*aEventData*/ ) |
|
92 { |
|
93 return EFalse; |
|
94 } |