telephonyutils/etel3rdpartyapi/ExampleApps/NetworkInformation/CMainMenu.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     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 "CISVAPIAsync.h"
       
    24 
       
    25 #include "CBaseMenuAsync.h"
       
    26 
       
    27 // Active objects
       
    28 #include "CPhoneId.h"
       
    29 #include "CFlightModeInfo.h"
       
    30 #include "CCurrentNetworkInfo.h"
       
    31 
       
    32 _LIT(KPhoneIdMsg, "Phone Id:\n");
       
    33 _LIT(KNetworkInfoMsg, "Network Info:\n");
       
    34 _LIT(KNetworkNameMsg, "Network Name:\n");
       
    35 _LIT(KOperatorNameMsg, "Operator Name:\n");
       
    36 _LIT(KNetworkRegMsg, "Network Registration Status:\n");
       
    37 _LIT(KMenuMsg, "Press E to exit\n");
       
    38 
       
    39 /**
       
    40 Provides the required functionality for the application to run correctly. Owns
       
    41 required objects to make Etel3rdParty calls required by the application.
       
    42 */
       
    43 class CMainMenu : public CBaseMenuAsync
       
    44 	{
       
    45 
       
    46 // Methods
       
    47 public:
       
    48 	static CMainMenu* NewLC(CConsoleBase& aConsole);
       
    49 	~CMainMenu();
       
    50 
       
    51 	void ExecComplete(TTelISVExampleType aDerivedType);
       
    52 	void ExecNotify(TTelISVExampleType aDerivedType);
       
    53 
       
    54 private:
       
    55 	CMainMenu(CConsoleBase& aConsole);
       
    56 	void ConstructL();
       
    57 
       
    58 	void RunL();	// Handles Key presses
       
    59 	void DoCancel();
       
    60 
       
    61 // Data
       
    62 private:
       
    63 
       
    64 	// Owned active objects
       
    65 	/**
       
    66 	Active object which demonstrates the use of CTelephony::GetPhoneID().
       
    67 	*/
       
    68 	CISVAPIAsync* iPhoneId;
       
    69 	/**
       
    70 	Active object which demonstrates the use of CTelephony::GetCurrentNetworkInfo().
       
    71 	*/
       
    72 	CISVAPIAsync* iNetworkInfo;
       
    73 	/**
       
    74 	Active object which demonstrates the use of CTelephony::GetFlightMode().
       
    75 	*/
       
    76 	CISVAPIAsync* iFlightModeInfo;
       
    77 
       
    78 	};
       
    79 
       
    80 #endif // __CMAINMENU_H__
       
    81