|
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: Avkon split view navigator. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "AknViewAppUi.h" |
|
21 #include "AknViewNavigator.h" |
|
22 |
|
23 // ============================ MEMBER FUNCTIONS =============================== |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // CAknViewNavigator::CAknViewNavigator |
|
27 // C++ default constructor. |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 CAknViewNavigator::CAknViewNavigator( CAknViewAppUi* aAppUi ) : iAppUi( aAppUi ) |
|
31 { |
|
32 } |
|
33 |
|
34 // ----------------------------------------------------------------------------- |
|
35 // CAknViewNavigator::~CAknViewNavigator |
|
36 // Destructor. |
|
37 // ----------------------------------------------------------------------------- |
|
38 // |
|
39 CAknViewNavigator::~CAknViewNavigator() |
|
40 { |
|
41 } |
|
42 |
|
43 // ----------------------------------------------------------------------------- |
|
44 // CAknViewNavigator::OfferKeyEventL |
|
45 // Handles key events. |
|
46 // ----------------------------------------------------------------------------- |
|
47 // |
|
48 TKeyResponse CAknViewNavigator::OfferKeyEventL( const TKeyEvent& aKeyEvent, |
|
49 TEventCode aType ) |
|
50 { |
|
51 if ( aType == EEventKey ) |
|
52 { |
|
53 return iAppUi->HandleViewNavigationL( aKeyEvent ); |
|
54 } |
|
55 |
|
56 return EKeyWasNotConsumed; |
|
57 } |
|
58 |
|
59 // ----------------------------------------------------------------------------- |
|
60 // CAknViewNavigator::InputCapabilities |
|
61 // Returns control's input capabilities. |
|
62 // ----------------------------------------------------------------------------- |
|
63 // |
|
64 TCoeInputCapabilities CAknViewNavigator::InputCapabilities() const |
|
65 { |
|
66 return TCoeInputCapabilities::ENavigation; |
|
67 } |
|
68 |
|
69 // End of File |