|
1 /* |
|
2 * Copyright (c) 2002 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: LandmarksUi Content File - LMK application UI class definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 #ifndef CLMKAPPUI_H |
|
26 #define CLMKAPPUI_H |
|
27 |
|
28 // INCLUDES |
|
29 #include "MLmkKeyProcessor.h" |
|
30 #include <aknViewAppUi.h> |
|
31 #include <akntabgrp.h> |
|
32 #include <aknnavide.h> |
|
33 #include <AknTabObserver.h> |
|
34 |
|
35 // FORWARD DECLARATIONS |
|
36 class CLmkDocument; |
|
37 class CLmkSender; |
|
38 |
|
39 // CLASS DECLARATION |
|
40 |
|
41 /** |
|
42 * Application UI class. |
|
43 */ |
|
44 class CLmkAppUi |
|
45 : public CAknViewAppUi, |
|
46 public MAknTabObserver, |
|
47 public MLmkKeyProcessor |
|
48 { |
|
49 public: // Constructors and destructor |
|
50 /** |
|
51 * C++ default constructor. |
|
52 */ |
|
53 void ConstructL(); |
|
54 |
|
55 /** |
|
56 * Destructor. |
|
57 */ |
|
58 ~CLmkAppUi(); |
|
59 |
|
60 public: // New functions |
|
61 /** |
|
62 * Return reference to document |
|
63 * @return reference to CLmkDocument |
|
64 */ |
|
65 CLmkDocument& Document() const; |
|
66 |
|
67 /** |
|
68 * Return reference to landmark sender |
|
69 * @return reference to CLmkSender |
|
70 */ |
|
71 CLmkSender& LmkSender() const; |
|
72 |
|
73 protected: // From MAknTabObserver |
|
74 void TabChangedL(TInt aIndex); |
|
75 |
|
76 public: // From MLmkKeyProcessor |
|
77 TBool ProcessKeyEventL( const TKeyEvent& aKeyEvent,TEventCode aType ); |
|
78 MAknTabObserver* TabObserver(); |
|
79 |
|
80 public: // From CEikAppUi |
|
81 void HandleCommandL(TInt aCommand); |
|
82 void HandleViewDeactivation(const TVwsViewId &aViewIdToBeDeactivated,const TVwsViewId &aNewlyActivatedViewId); |
|
83 |
|
84 private: // Data |
|
85 /// Own: sender |
|
86 CLmkSender* iLmkSender; |
|
87 }; |
|
88 |
|
89 #endif // CLMKAPPUI_H |
|
90 |
|
91 // End of File |