examples/Telephony/ETel3rdPartyExample/NetworkInformation/CMainMenu.h

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 
00017 #ifndef __CMAINMENU_H__
00018 #define __CMAINMENU_H__
00019 
00020 #include <e32base.h>
00021 #include <etel3rdparty.h>
00022 
00023 #include "CISVAPIAsync.h"
00024 
00025 #include "CBaseMenuAsync.h"
00026 
00027 // Active objects
00028 #include "CPhoneId.h"
00029 #include "CFlightModeInfo.h"
00030 #include "CCurrentNetworkInfo.h"
00031 
00032 _LIT(KPhoneIdMsg, "Phone Id:\n");
00033 _LIT(KNetworkInfoMsg, "Network Info:\n");
00034 _LIT(KNetworkNameMsg, "Network Name:\n");
00035 _LIT(KOperatorNameMsg, "Operator Name:\n");
00036 _LIT(KNetworkRegMsg, "Network Registration Status:\n");
00037 _LIT(KMenuMsg, "Press E to exit\n");
00038 
00043 class CMainMenu : public CBaseMenuAsync
00044         {
00045 
00046 // Methods
00047 public:
00048         static CMainMenu* NewLC(CConsoleBase& aConsole);
00049         ~CMainMenu();
00050 
00051         void ExecComplete(TTelISVExampleType aDerivedType);
00052         void ExecNotify(TTelISVExampleType aDerivedType);
00053 
00054 private:
00055         CMainMenu(CConsoleBase& aConsole);
00056         void ConstructL();
00057 
00058         void RunL();    // Handles Key presses
00059         void DoCancel();
00060 
00061 // Data
00062 private:
00063 
00064         // Owned active objects
00068         CISVAPIAsync* iPhoneId;
00072         CISVAPIAsync* iNetworkInfo;
00076         CISVAPIAsync* iFlightModeInfo;
00077 
00078         };
00079 
00080 #endif // __CMAINMENU_H__
00081 

Generated by  doxygen 1.6.2