|
1 /* |
|
2 * Copyright (c) 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __INDICATORTESTAPP_APPUI_H__ |
|
19 #define __INDICATORTESTAPP_APPUI_H__ |
|
20 |
|
21 #include <aknappui.h> |
|
22 #include "musindicatorobserver.h" |
|
23 |
|
24 // Forward reference |
|
25 class CIndicatorTestAppAppView; |
|
26 class CMusIndicatorApi; |
|
27 |
|
28 /*! |
|
29 @class CIndicatorTestAppAppUi |
|
30 |
|
31 @discussion An instance of class CIndicatorTestAppAppUi is the UserInterface part of the AVKON |
|
32 application framework for the IndicatorTestApp example application |
|
33 */ |
|
34 class CIndicatorTestAppAppUi : public CAknAppUi, public MMusIndicatorObserver |
|
35 { |
|
36 public: |
|
37 /*! |
|
38 @function ConstructL |
|
39 |
|
40 @discussion Perform the second phase construction of a CIndicatorTestAppAppUi object |
|
41 this needs to be public due to the way the framework constructs the AppUi |
|
42 */ |
|
43 void ConstructL(); |
|
44 |
|
45 /*! |
|
46 @function CIndicatorTestAppAppUi |
|
47 |
|
48 @discussion Perform the first phase of two phase construction. |
|
49 This needs to be public due to the way the framework constructs the AppUi |
|
50 */ |
|
51 CIndicatorTestAppAppUi(); |
|
52 |
|
53 |
|
54 /*! |
|
55 @function ~CIndicatorTestAppAppUi |
|
56 |
|
57 @discussion Destroy the object and release all memory objects |
|
58 */ |
|
59 ~CIndicatorTestAppAppUi(); |
|
60 |
|
61 |
|
62 public: // from CAknAppUi |
|
63 /*! |
|
64 @function HandleCommandL |
|
65 |
|
66 @discussion Handle user menu selections |
|
67 @param aCommand the enumerated code for the option selected |
|
68 */ |
|
69 void HandleCommandL(TInt aCommand); |
|
70 |
|
71 private: // from MMusIndicatorObserver |
|
72 |
|
73 void StartLiveSharingL(); |
|
74 |
|
75 void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane); |
|
76 |
|
77 |
|
78 private: |
|
79 /*! @var iAppView The application view */ |
|
80 CIndicatorTestAppAppView* iAppView; |
|
81 |
|
82 |
|
83 CMusIndicatorApi* iIndicator; |
|
84 }; |
|
85 |
|
86 |
|
87 #endif // __INDICATORTESTAPP_APPUI_H__ |
|
88 |