telephonyutils/etel3rdpartyapi/ExampleApps/OutgoingCalls/CCurrentNetworkInfo.h
changeset 0 3553901f7fa8
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 
       
    17 #ifndef __CCURRENTNETWORKINFO_H__
       
    18 #define __CCURRENTNETWORKINFO_H__
       
    19 
       
    20 #include <e32base.h>
       
    21 #include <e32cons.h>
       
    22 #include <e32def.h>
       
    23 #include <etel3rdparty.h>
       
    24 
       
    25 #include "CISVAPIAsync.h"
       
    26 
       
    27 #include "CMainMenu.h"
       
    28 
       
    29 /**
       
    30 Retrieves information about the current network including Cell ID and current
       
    31 area code. Can be notified on change.
       
    32 */
       
    33 class CCurrentNetworkInfo : public CISVAPIAsync
       
    34 	{
       
    35 
       
    36 // Methods
       
    37 public:
       
    38 	static CCurrentNetworkInfo* NewL(MExecAsync* aController);
       
    39 	~CCurrentNetworkInfo();
       
    40 
       
    41 	void DoStartRequestL();
       
    42 	void DoRequestNotificationL();
       
    43 
       
    44 private:
       
    45 	CCurrentNetworkInfo(MExecAsync* aController);
       
    46 	void ConstructL();
       
    47 
       
    48 	void RunL();
       
    49 	void DoCancel();
       
    50 
       
    51 // Data
       
    52 public:
       
    53 	/**
       
    54 	Stores retrieved network information.
       
    55 	*/
       
    56 	CTelephony::TNetworkInfoV1 iCurrentNetworkInfoV1;
       
    57 
       
    58 private:
       
    59 	/**
       
    60 	Packages iCurrentNetworkInfoV1.
       
    61 	*/
       
    62 	CTelephony::TNetworkInfoV1Pckg iCurrentNetworkInfoV1Pckg;
       
    63 
       
    64 	};
       
    65 
       
    66 #endif // __CCURRENTNETWORKINFO_H__