telephonyutils/etel3rdpartyapi/ExampleApps/IncomingCalls/CLineStatus.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 
       
    17 #ifndef __CLINESTATUS_H__
       
    18 #define __CLINESTATUS_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 data pertaining to the current status of the voice line. Can be
       
    31 notified on change.
       
    32 */
       
    33 class CLineStatus : public CISVAPIAsync
       
    34 	{
       
    35 
       
    36 // Methods
       
    37 public:
       
    38 	static CLineStatus* NewL(MExecAsync* aController);
       
    39 	~CLineStatus();
       
    40 
       
    41 	void DoStartRequestL();
       
    42 	void DoRequestNotificationL();
       
    43 
       
    44 private:
       
    45 	CLineStatus(MExecAsync* aController);
       
    46 	void ConstructL();
       
    47 
       
    48 	void RunL();
       
    49 	void DoCancel();
       
    50 
       
    51 // Data
       
    52 public:
       
    53 	/**
       
    54 	Stores retrieved current line status of the voice line.
       
    55 	*/
       
    56 	CTelephony::TCallStatusV1 iLineStatusV1;
       
    57 
       
    58 private:
       
    59 	/**
       
    60 	Package descriptor for iLineStatusV1.
       
    61 	*/
       
    62 	CTelephony::TCallStatusV1Pckg iLineStatusV1Pckg;
       
    63 	};
       
    64 
       
    65 #endif // __CLINESTATUS_H__