examples/Telephony/ETel3rdPartyExample/IncomingCalls/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 #ifndef __CMAINMENU_H__
00017 #define __CMAINMENU_H__
00018 
00019 #include <e32base.h>
00020 #include <etel3rdparty.h>
00021 
00022 #include "CISVAPIAsync.h"
00023 #include "CBaseMenuAsync.h"
00024 
00025 // Active objects
00026 #include "CPhoneId.h"
00027 
00028 #include "CFlightModeInfo.h"
00029 #include "CCallBarringStatus.h"
00030 #include "CCallForwardingStatus.h"
00031 #include "CIdentityServiceStatus.h"
00032 #include "CCallWaitingStatus.h"
00033 
00034 #include "CLineStatus.h"
00035 #include "CCallStatus.h"
00036 #include "CAnswerIncomingCall.h"
00037 #include "CDummyAnswer.h"
00038 #include "CCallInfo.h"
00039 #include "CHangup.h"
00040 
00041 _LIT(KPhoneIdMsg, "Phone Id:\n");
00042 _LIT(KCallForwardingStatusMsg, "Call Forwarding Status:\n");
00043 _LIT(KCallBarringStatusMsg, "Call Barring Status:\n");
00044 _LIT(KIdentityServiceStatusMsg, "Identity Service Status:\n");
00045 _LIT(KCallWaitingStatusMsg, "Call Waiting Status:\n");
00046 _LIT(KMenuMsg, "~* Answer Phone *~\nPress E to exit\n");
00047 _LIT(KHangupMsg, "Press H to simulate a remote hangup\n");
00048 _LIT(KAnyMsg, "Press Any key to simulate an incoming Call\n");
00049 
00054 class CMainMenu : public CBaseMenuAsync
00055         {
00056 
00057 // Methods
00058 public:
00059         static CMainMenu* NewLC(CConsoleBase& aConsole);
00060         ~CMainMenu();
00061 
00062         void ExecComplete(TTelISVExampleType aDerivedType);
00063         void ExecNotify(TTelISVExampleType aDerivedType);
00064 
00065 private:
00066         CMainMenu(CConsoleBase& aConsole);
00067         void ConstructL();
00068 
00069         void RunL();    // Handles Key presses
00070         void DoCancel();
00071 
00076         void CallsCount();
00077 
00078 private:
00079         // Owned active objects
00083         CISVAPIAsync* iPhoneId;
00087         CISVAPIAsync* iIdentityService;
00091         CISVAPIAsync* iCallForwarding;
00095         CISVAPIAsync* iCallBarring;
00099         CISVAPIAsync* iCallWaiting;
00103         CISVAPIAsync* iFlightModeInfo;
00107         CISVAPIAsync* iLineStatus;
00111         CISVAPIAsync* iCallStatus;
00115         CISVAPIAsync* iAnswerIncomingCall;
00119         CISVAPIAsync* iHangup;
00123         CDummyAnswer* iDummyAnswer;
00127         CISVAPIAsync* iCallInfo;
00131         CTelephony::TCallId iCallId;
00136         TInt iCount;
00140         TInt iMessages;
00145         TInt iRecievedCalls;
00149         TBool iCallWaitingOn;
00150         };
00151 
00152 #endif // __CMAINMENU_H__

Generated by  doxygen 1.6.2