<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
<!-- This component and the accompanying materials are made available under the terms of the License
"Eclipse Public License v1.0" which accompanies this distribution,
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
<!-- Initial Contributors:
Nokia Corporation - initial contribution.
Contributors:
-->
<!DOCTYPE task
PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task xml:lang="en" id="GUID-EE79D90C-CC71-5C2B-8715-A9764A48F40D"><title>Data Line Status Tutorial</title><shortdesc>This tutorial describes how to get the simple data line status with the telephony API for applications. </shortdesc><prolog><metadata><keywords/></metadata></prolog><taskbody> <steps id="GUID-80974E97-B743-592A-BDF1-F7E280CB4B67"> <step id="GUID-15ABACF5-46CB-5A91-AC61-0402568D2D7C"><cmd/><info>create a new instance of <xref href="GUID-97D402C8-B4B7-385A-92B3-D3FCC0CA575A.dita"><apiname>CTelephony</apiname></xref> </info> </step> <step id="GUID-C42DD9CF-FD37-537E-8B8C-0BFC8E4E06EB"><cmd/><info>use <xref href="GUID-97D402C8-B4B7-385A-92B3-D3FCC0CA575A.dita"><apiname>CTelephony::GetLineStatus()</apiname></xref> to get the data line status </info> <info>Pass <xref href="GUID-97D402C8-B4B7-385A-92B3-D3FCC0CA575A.dita"><apiname>EDataLine</apiname></xref> as the parameter. </info> </step> <step id="GUID-7A52CAEC-4455-5F53-B870-73DF68B6AF72"><cmd/><info>the function returns a <xref href="GUID-97D402C8-B4B7-385A-92B3-D3FCC0CA575A.dita"><apiname>TCallStatusV1</apiname></xref> object that contains the data line status information </info> </step> </steps> <example id="GUID-CFCE55FF-FEF0-5A4E-9E89-9F1B0125E0B5"><title>Data line example</title> <codeblock id="GUID-BC46B25D-EC2B-5C06-950B-86219A3D8333" xml:space="preserve">CTelephony* telephony = CTelephony::NewLC();
CTelephony::TCallStatusV1 callStatusV1;
CTelephony::TCallStatusV1Pckg callStatusV1Pckg( callStatusV1 );
CTelephony::TPhoneLine line = CTelephony::EDataLine;
telephony->GetLineStatus( line, callStatusV1Pckg );
CTelephony::TCallStatus dataLineStatus = callStatusV1.iStatus;
CleanupStack::PopAndDestroy( telephony );</codeblock> </example> </taskbody></task>