00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
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
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
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();
00069 void DoCancel();
00070
00071
00072 private:
00073
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__