|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 |
|
17 #ifndef __CMAINMENU_H__ |
|
18 #define __CMAINMENU_H__ |
|
19 |
|
20 #include <e32base.h> |
|
21 #include <etel3rdparty.h> |
|
22 |
|
23 #include "CISVAPISync.h" |
|
24 |
|
25 #include "CBaseMenuSync.h" |
|
26 |
|
27 // Active objects |
|
28 |
|
29 #include "CPhoneId.h" |
|
30 #include "CSubscriberId.h" |
|
31 |
|
32 _LIT(KPhoneIdMsg, "Phone Id:\n"); |
|
33 _LIT(KSubscriberIdMsg, "Subscriber Id:\n"); |
|
34 |
|
35 /** |
|
36 Provides the required functionality for the application to run correctly. |
|
37 Owns the required objects to make Etel 3rd Party calls required by the application. |
|
38 */ |
|
39 class CMainMenu : public CBaseMenuSync |
|
40 { |
|
41 |
|
42 // Methods |
|
43 public: |
|
44 static CMainMenu* NewLC(CConsoleBase& aConsole); |
|
45 ~CMainMenu(); |
|
46 |
|
47 private: |
|
48 CMainMenu(CConsoleBase& aConsole); |
|
49 void ConstructL(); |
|
50 void DoCancel(); |
|
51 |
|
52 void RunL(); // Handles key presses |
|
53 // Data |
|
54 private: |
|
55 // Owned active objects |
|
56 /** |
|
57 Active object which demonstrates the use of CTelephony::GetPhoneId(). |
|
58 */ |
|
59 CISVAPISync* iPhoneId; |
|
60 /** |
|
61 Active object which demonstrates the use of CTelephony::GetSubscriberId(). |
|
62 */ |
|
63 CISVAPISync* iSubscriberId; |
|
64 |
|
65 }; |
|
66 |
|
67 #endif // __CMAINMENU_H__ |
|
68 |