00001 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). 00002 // All rights reserved. 00003 // This component and the accompanying materials are made available 00004 // under the terms of "Eclipse Public License v1.0" 00005 // which accompanies this distribution, and is available 00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html". 00007 // 00008 // Initial Contributors: 00009 // Nokia Corporation - initial contribution. 00010 // 00011 // Contributors: 00012 // 00013 // Description: 00014 // 00015 00016 #ifndef __CMAINMENU_H__ 00017 #define __CMAINMENU_H__ 00018 00019 #include <e32base.h> 00020 #include <etel3rdparty.h> 00021 00022 00023 #include "CISVAPIAsync.h" 00024 00025 #include "CBaseMenuAsync.h" 00026 00027 // Active objects 00028 00029 #include "CPhoneId.h" 00030 #include "CBatteryInfo.h" 00031 #include "CFlightModeInfo.h" 00032 #include "CSignalInfo.h" 00033 #include "CGetIndicator.h" 00034 00035 _LIT(KPhoneIdMsg, "Phone Id:\n"); 00036 _LIT(KGetIndicatorMsg, "Indicator Information:\n"); 00037 _LIT(KBatteryInfoMsg, "Battery Info:\n"); 00038 _LIT(KSignalStrengthMsg, "Signal Strength Info:\n"); 00039 _LIT(KMenuMsg, "Press E to exit\n"); 00040 00045 class CMainMenu : public CBaseMenuAsync 00046 { 00047 00048 // Methods 00049 public: 00050 static CMainMenu* NewLC(CConsoleBase& aConsole); 00051 ~CMainMenu(); 00052 00053 void ExecComplete(TTelISVExampleType aDerivedType); 00054 void ExecNotify(TTelISVExampleType aDerivedType); 00055 00056 private: 00057 CMainMenu(CConsoleBase& aConsole); 00058 void ConstructL(); 00059 00060 void RunL(); // Handles Key presses 00061 void DoCancel(); 00062 00063 // Data 00064 private: 00065 // Owned active objects 00069 CISVAPIAsync* iPhoneId; 00073 CISVAPIAsync* iBatteryInfo; 00077 CISVAPIAsync* iSignalInfo; 00081 CISVAPIAsync* iFlightModeInfo; 00085 CISVAPIAsync* iGetIndicator; 00086 00087 }; 00088 00089 #endif // __CMAINMENU_H__ 00090
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.