examples/Telephony/ETel3rdPartyExample/SuppleServices/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 "CCallBarringStatus.h"
00032 #include "CCallForwardingStatus.h"
00033 #include "CCallWaitingStatus.h"
00034 #include "CIdentityServiceStatus.h"
00035 
00036 _LIT(KPhoneIdMsg, "Phone Id:\n");
00037 _LIT(KGetLockInfoMsg, "Lock Info:\n");
00038 _LIT(KCallForwardingStatusMsg, "Call Forwarding Status:\n");
00039 _LIT(KCallBarringStatusMsg, "Call Barring Status:\n");
00040 _LIT(KCallWaitingStatusMsg, "Call Waiting Status:\n");
00041 _LIT(KIdentityServiceStatusMsg, "Identity Service Status:\n");
00042 _LIT(KMenuMsg, "Press E to exit\n");
00043 
00048 class CMainMenu : public CBaseMenuAsync
00049         {
00050         // Methods
00051 public:
00052         static CMainMenu* NewLC(CConsoleBase& aConsole);
00053         ~CMainMenu();
00054 
00055         void ExecComplete(TTelISVExampleType aDerivedType);
00056         void ExecNotify(TTelISVExampleType aDerivedType);
00057 
00058 private:
00059         CMainMenu(CConsoleBase& aConsole);
00060         void ConstructL();
00061 
00062         void RunL();    // Handles key presses
00063         void DoCancel();
00064 
00065 private:
00066 
00067         // Owned active objects
00071         CISVAPIAsync* iPhoneId;
00075         CISVAPIAsync* iCallForwarding;
00079         CISVAPIAsync* iCallBarring;
00083         CISVAPIAsync* iCallWaiting;
00087         CISVAPIAsync* iFlightModeInfo;
00091         CISVAPIAsync* iIdentityService;
00092 
00093         };
00094 
00095 #endif // __CMAINMENU_H__
00096 

Generated by  doxygen 1.6.2