telephonyutils/etel3rdpartyapi/ExampleApps/PhoneMonitoring/CGetIndicator.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 __CGETINDICATOR_H__
       
    17 #define __CGETINDICATOR_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <e32cons.h>
       
    21 #include <e32def.h>
       
    22 #include <etel3rdparty.h>
       
    23 
       
    24 
       
    25 #include "CISVAPIAsync.h"
       
    26 
       
    27 #include "CMainMenu.h"
       
    28 
       
    29 /**
       
    30 Retrieves a bitmask pertaining to data on the current state of the network
       
    31 connection, whether the battery charger is connected and whether there is an
       
    32 active call or not. Can be notified on change.
       
    33 */
       
    34 class CGetIndicator : public CISVAPIAsync
       
    35 	{
       
    36 
       
    37 // Methods
       
    38 public:
       
    39 	static CGetIndicator* NewL(MExecAsync* aController);
       
    40 	~CGetIndicator();
       
    41 
       
    42 	void DoStartRequestL();
       
    43 	void DoRequestNotificationL();
       
    44 
       
    45 private:
       
    46 	CGetIndicator(MExecAsync* aController);
       
    47 	void ConstructL();
       
    48 
       
    49 	void RunL();
       
    50 	void DoCancel();
       
    51 
       
    52 // Data
       
    53 public:
       
    54 	/**
       
    55 	Stores retrieved indicator information.
       
    56 	*/
       
    57 	CTelephony::TIndicatorV1 iIndicatorV1;
       
    58 
       
    59 private:
       
    60 	/**
       
    61 	Package descriptor for iIndicatorV1.
       
    62 	*/
       
    63 	CTelephony::TIndicatorV1Pckg iIndicatorV1Pckg;
       
    64 
       
    65 	};
       
    66 
       
    67 #endif // __CGETINDICATOR_H__
       
    68