telephonyutils/etel3rdpartyapi/ExampleApps/SuppleServices/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 
       
    24 #include "CISVAPIAsync.h"
       
    25 
       
    26 #include "CBaseMenuAsync.h"
       
    27 
       
    28 // Active objects
       
    29 #include "CPhoneId.h"
       
    30 #include "CFlightModeInfo.h"
       
    31 #include "CCallBarringStatus.h"
       
    32 #include "CCallForwardingStatus.h"
       
    33 #include "CCallWaitingStatus.h"
       
    34 #include "CIdentityServiceStatus.h"
       
    35 
       
    36 _LIT(KPhoneIdMsg, "Phone Id:\n");
       
    37 _LIT(KGetLockInfoMsg, "Lock Info:\n");
       
    38 _LIT(KCallForwardingStatusMsg, "Call Forwarding Status:\n");
       
    39 _LIT(KCallBarringStatusMsg, "Call Barring Status:\n");
       
    40 _LIT(KCallWaitingStatusMsg, "Call Waiting Status:\n");
       
    41 _LIT(KIdentityServiceStatusMsg, "Identity Service Status:\n");
       
    42 _LIT(KMenuMsg, "Press E to exit\n");
       
    43 
       
    44 /**
       
    45 Provides the required functionality for the application to run correctly. Owns
       
    46 required objects to make Etel 3rd party calls required by the application.
       
    47 */
       
    48 class CMainMenu : public CBaseMenuAsync
       
    49 	{
       
    50 	// Methods
       
    51 public:
       
    52 	static CMainMenu* NewLC(CConsoleBase& aConsole);
       
    53 	~CMainMenu();
       
    54 
       
    55 	void ExecComplete(TTelISVExampleType aDerivedType);
       
    56 	void ExecNotify(TTelISVExampleType aDerivedType);
       
    57 
       
    58 private:
       
    59 	CMainMenu(CConsoleBase& aConsole);
       
    60 	void ConstructL();
       
    61 
       
    62 	void RunL();	// Handles key presses
       
    63 	void DoCancel();
       
    64 
       
    65 private:
       
    66 
       
    67 	// Owned active objects
       
    68 	/**
       
    69 	Active object which demonstrates the use of CTelephony::GetPhoneId().
       
    70 	*/
       
    71 	CISVAPIAsync* iPhoneId;
       
    72 	/**
       
    73 	Active object which demonstrates the use of CTelephony::GetCallForwardingStatus().
       
    74 	*/
       
    75 	CISVAPIAsync* iCallForwarding;
       
    76 	/**
       
    77 	Active object which demonstrates the use of CTelephony::GetCallBarringStatus().
       
    78 	*/
       
    79 	CISVAPIAsync* iCallBarring;
       
    80 	/**
       
    81 	Active object which demonstrates the use of CTelephony::GetCallWaitingStatus().
       
    82 	*/
       
    83 	CISVAPIAsync* iCallWaiting;
       
    84 	/**
       
    85 	Active object which demonstrates the use of CTelephony::GetFlightMode().
       
    86 	*/
       
    87 	CISVAPIAsync* iFlightModeInfo;
       
    88 	/**
       
    89 	Active object which demonstrates the use of CTelephony::GetIdentityServiceStatus().
       
    90 	*/
       
    91 	CISVAPIAsync* iIdentityService;
       
    92 
       
    93 	};
       
    94 
       
    95 #endif // __CMAINMENU_H__
       
    96