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: Declares UI class for application. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef AIWTESTAPPUI_H |
|
19 #define AIWTESTAPPUI_H |
|
20 |
|
21 // INCLUDES |
|
22 #include "cenrepeditormodel.h" |
|
23 |
|
24 #include <eikapp.h> |
|
25 #include <eikdoc.h> |
|
26 #include <e32std.h> |
|
27 #include <coeccntx.h> |
|
28 #include <aknappui.h> |
|
29 #include <akntabgrp.h> |
|
30 #include <aknnavide.h> |
|
31 #include <aknviewappui.h> |
|
32 |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 class CCenrepEditorContainer; |
|
36 class CAiwServiceHandler; |
|
37 class CMusManager; |
|
38 class CMusAvaInterface; |
|
39 class CPhoneResources; |
|
40 class CMusApplication; |
|
41 |
|
42 // CLASS DECLARATION |
|
43 |
|
44 /** |
|
45 * Application UI class. |
|
46 * Provides support for the following features: |
|
47 * - EIKON control architecture |
|
48 */ |
|
49 class CCenrepEditorAppUi : public CAknViewAppUi |
|
50 { |
|
51 public: // Constructors and destructor |
|
52 /** |
|
53 * By default Symbian 2nd phase constructor is private. |
|
54 */ |
|
55 void ConstructL(); |
|
56 |
|
57 /** |
|
58 * Destructor. |
|
59 */ |
|
60 virtual ~CCenrepEditorAppUi(); |
|
61 |
|
62 public: // New functions |
|
63 CPhoneResources* PhoneResouces(); |
|
64 COtherResources* OtherResouces(); |
|
65 CMusApplication* MusApplication(); |
|
66 |
|
67 private: |
|
68 /** |
|
69 * From MEikMenuObserver, dynamically initialises a menu pane. |
|
70 * @param aResourceId The menu's ID. |
|
71 * @param aMenuPane The in-memory representation of the menu pane. |
|
72 */ |
|
73 void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane); |
|
74 |
|
75 private: |
|
76 /** |
|
77 * From CEikAppUi, takes care of command handling. |
|
78 * @param aCommand command to be handled |
|
79 */ |
|
80 void HandleCommandL(TInt aCommand); |
|
81 |
|
82 /** |
|
83 * From CEikAppUi, handles key events. |
|
84 * @param aKeyEvent Event to handled. |
|
85 * @param aType Type of the key event. |
|
86 * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). |
|
87 */ |
|
88 virtual TKeyResponse HandleKeyEventL( |
|
89 const TKeyEvent& aKeyEvent,TEventCode aType); |
|
90 |
|
91 private: |
|
92 CAknNavigationControlContainer* iNaviPane; |
|
93 CAknTabGroup* iTabGroup; |
|
94 CAknNavigationDecorator* iDecoratedTabGroup; |
|
95 |
|
96 private: |
|
97 CPhoneResources* iPhoneResources; |
|
98 COtherResources* iOtherResources; |
|
99 CMusApplication* iMusApplication; |
|
100 }; |
|
101 |
|
102 #endif |
|
103 |
|
104 // End of File |
|