examples/Telephony/ETel3rdPartyExample/AutoDTMFDialler/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 
00024 #include "CISVAPIAsync.h"
00025 
00026 #include "CBaseMenuAsync.h"
00027 
00028 // Active objects
00029 #include "CPhoneId.h"
00030 #include "CFlightModeInfo.h"
00031 #include "CNetworkRegInfo.h"
00032 #include "CDialCall.h"
00033 #include "CSendDTMF.h"
00034 #include "CHangup.h"
00035 #include "CLineStatus.h"
00036 #include "CCallStatus.h"
00037 
00038 
00039 _LIT(KPhoneIdMsg, "Phone Id:\n");
00040 _LIT(KNetworkRegMsg, "Network Registration Status:\n");
00041 _LIT(KMenuMsg, "*~Auto DTMF Dialler~*\nPress E to exit\n");
00042 _LIT(KHangupMsg, "Press H to Hangup the active Call\n");
00043 _LIT(KDialMsg, "Press D to Dial a Call\n");
00044 _LIT(KDTMFQuestion, "How would you like to send the DTMF string?\n" );
00045 _LIT(KiSingleString, "Press S to Send Predefinied DTMF string\n");
00046 _LIT(KAsChar, "Press Required numbers then # to specify the DTMF string with Keypresses\n");
00047 
00048 _LIT(KTheNumber, "01123581321");
00049 
00054 class CMainMenu : public CBaseMenuAsync
00055         {
00056         // Methods
00057 public:
00058         static CMainMenu* NewLC(CConsoleBase& aConsole);
00059         ~CMainMenu();
00060 
00061         void ExecComplete(TTelISVExampleType aDerivedType);
00062         void ExecNotify(TTelISVExampleType aDerivedType);
00063 
00064 private:
00065         CMainMenu(CConsoleBase& aConsole);
00066         void ConstructL();
00067 
00068         void RunL();    // Handles key presses
00069         void DoCancel();
00070 
00071         // Data
00072 private:
00073         // Owned active objects
00077         CISVAPIAsync* iPhoneId;
00081         CISVAPIAsync* iFlightModeInfo;
00085         CISVAPIAsync* iNetworkRegInfo;
00089         CISVAPIAsync* iSendDTMF;
00093         CISVAPIAsync* iDialCall;
00097         CISVAPIAsync* iHangup;
00101         CISVAPIAsync* iCallStatus;
00105         CISVAPIAsync* iLineStatus;
00109         CTelephony::TCallId iCallId;
00113         TBuf<1> iCurrentTone;
00117         TBuf<100> iCurrentToneLog;
00121         TBuf<100> iTheNumber;
00126         TBool iSingleString;
00127         };
00128 
00129 #endif // __CMAINMENU_H__

Generated by  doxygen 1.6.2