|
1 /* |
|
2 * Copyright (c) 2005-2007 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: Phonebook 2 application server application UI. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPBK2SERVERAPPAPPUI_H |
|
20 #define CPBK2SERVERAPPAPPUI_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <CPbk2AppUiBase.h> |
|
24 #include <MPbk2KeyEventHandler.h> |
|
25 #include <RPbk2LocalizedResourceFile.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CPbk2ServerAppDocument; |
|
29 class CPbk2StoreConfiguration; |
|
30 class CPbk2StoreManager; |
|
31 class MPbk2ApplicationServices; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * Phonebook 2 application server application UI. |
|
37 */ |
|
38 class CPbk2ServerAppAppUi : public CPbk2AppUiBase<CAknAppUi>, |
|
39 public MPbk2KeyEventHandler |
|
40 { |
|
41 public: // Construction and destruction |
|
42 |
|
43 /** |
|
44 * Constructor. |
|
45 */ |
|
46 CPbk2ServerAppAppUi(); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 ~CPbk2ServerAppAppUi(); |
|
52 |
|
53 public: // Types |
|
54 |
|
55 /** |
|
56 * Server app status pane layouts. |
|
57 */ |
|
58 enum TPbk2ServerAppStatusPaneLayout |
|
59 { |
|
60 EStatusPaneLayoutEmpty = 0, |
|
61 EStatusPaneLayoutUsual |
|
62 }; |
|
63 |
|
64 public: // Interface |
|
65 |
|
66 /** |
|
67 * Returns the concrete store manager. |
|
68 * |
|
69 * @return Store manager. |
|
70 */ |
|
71 CPbk2StoreManager& StoreManager() const; |
|
72 |
|
73 /** |
|
74 * Changes the statuspane layout |
|
75 * |
|
76 * @param The layout to change. |
|
77 */ |
|
78 void ChangeStatuspaneLayoutL( |
|
79 TPbk2ServerAppStatusPaneLayout aLayout ); |
|
80 |
|
81 public: // From MPbk2AppUi |
|
82 CPbk2AppViewBase* ActiveView() const; |
|
83 MPbk2ViewExplorer* Pbk2ViewExplorer() const; |
|
84 MPbk2StartupMonitor* Pbk2StartupMonitor() const; |
|
85 CPbk2TabGroupContainer* TabGroups() const; |
|
86 MPbk2KeyEventHandler& KeyEventHandler(); |
|
87 MPbk2ApplicationServices& ApplicationServices() const; |
|
88 void HandleCommandL( |
|
89 TInt aCommand ); |
|
90 void ExitApplication(); |
|
91 |
|
92 private: // From MPbk2KeyEventHandler |
|
93 TBool Pbk2ProcessKeyEventL( |
|
94 const TKeyEvent& aKeyEvent, |
|
95 TEventCode aType ); |
|
96 |
|
97 private: // Implementation |
|
98 void ConstructL(); |
|
99 TBool LocalVariationFeatureEnabled( |
|
100 TInt aFeatureFlag ); |
|
101 |
|
102 public: // CAknAppUi |
|
103 void HandleWsEventL(const TWsEvent& aEvent,CCoeControl* aDestination); |
|
104 |
|
105 private: // Data |
|
106 /// Own: Phonebook 2 UI controls resource file |
|
107 RPbk2LocalizedResourceFile iUiControlsResourceFile; |
|
108 /// Own: Phonebook 2 commands resource file |
|
109 RPbk2LocalizedResourceFile iCommandsResourceFile; |
|
110 /// Own: Phonebook 2 common UI resource file |
|
111 RPbk2LocalizedResourceFile iCommonUiResourceFile; |
|
112 /// Ref: Application services |
|
113 MPbk2ApplicationServices* iAppServices; |
|
114 }; |
|
115 |
|
116 #endif // CPBK2SERVERAPPAPPUI_H |
|
117 |
|
118 // End of File |