|
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 view navigator. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __AKNVIEWNAVIGATOR_H__ |
|
20 #define __AKNVIEWNAVIGATOR_H__ |
|
21 |
|
22 // INCLUDES |
|
23 #include <coecntrl.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CAknViewAppUi; |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * Avkon view navigator. Handles keyboard-initiated moving between views in |
|
32 * split view architecture. |
|
33 * |
|
34 * @lib avkon.lib |
|
35 * @since Series 60 5.0 |
|
36 */ |
|
37 NONSHARABLE_CLASS(CAknViewNavigator) : public CCoeControl |
|
38 { |
|
39 public: // constructors and destructor |
|
40 |
|
41 /** |
|
42 * C++ default constructor. |
|
43 * @param aAppUi Application UI. |
|
44 */ |
|
45 CAknViewNavigator( CAknViewAppUi* aAppUi ); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 virtual ~CAknViewNavigator(); |
|
51 |
|
52 protected: // functions from base classes |
|
53 |
|
54 /** |
|
55 * From CCoeControl. Handles key events in order to initiate switching |
|
56 * between split views. |
|
57 * @since Series 60 5.0 |
|
58 * @param aKeyEvent The key event. |
|
59 * @param aType The type of the key event. |
|
60 */ |
|
61 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
|
62 |
|
63 /** |
|
64 * From CCoeControl. Returns control's input capabilities. |
|
65 * @since Series 60 5.0 |
|
66 * @return Control's input capabilities. |
|
67 */ |
|
68 TCoeInputCapabilities InputCapabilities() const; |
|
69 |
|
70 private: // data |
|
71 // pointer to application UI |
|
72 CAknViewAppUi* iAppUi; |
|
73 }; |
|
74 |
|
75 #endif // __AKNVIEWNAVIGATOR_H__ |
|
76 |
|
77 // End of File |