telephonyutils/etel3rdpartyapi/ExampleApps/OutgoingCalls/CFlightModeInfo.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 #ifndef __CFLIGHTMODEINFO_H__
       
    17 #define __CFLIGHTMODEINFO_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <e32cons.h>
       
    21 #include <e32def.h>
       
    22 #include <etel3rdparty.h>
       
    23 
       
    24 #include "CISVAPIAsync.h"
       
    25 
       
    26 #include "CMainMenu.h"
       
    27 
       
    28 /**
       
    29 Informs whether the flight mode is on or off. Can be notified on change.
       
    30 */
       
    31 class CFlightModeInfo : public CISVAPIAsync
       
    32 	{
       
    33 
       
    34 // Methods
       
    35 public:
       
    36 	static CFlightModeInfo* NewL(MExecAsync* aController);
       
    37 	~CFlightModeInfo();
       
    38 
       
    39 	void DoStartRequestL();
       
    40 	void DoRequestNotificationL();
       
    41 private:
       
    42 	CFlightModeInfo(MExecAsync* aController);
       
    43 	void ConstructL();
       
    44 
       
    45 	void RunL();
       
    46 	void DoCancel();
       
    47 
       
    48 // Data
       
    49 public:
       
    50 	/**
       
    51 	Stores retrieved flight mode status.
       
    52 	*/
       
    53 	CTelephony::TFlightModeV1 iFlightModeV1;
       
    54 
       
    55 private:
       
    56 	/**
       
    57 	Packages iFlightMoveV1.
       
    58 	*/
       
    59 	CTelephony::TFlightModeV1Pckg iFlightModeV1Pckg;
       
    60 
       
    61 	};
       
    62 
       
    63 #endif // __CFLIGHTMODEINFO_H__