Data Line Status Tutorial

This tutorial describes how to get the simple data line status with the telephony API for applications.

Steps

  1. create a new instance of [[[ERROR: [NOKX000E] Unable to find definition for key reference 'CTelephony']]]CTelephony
  2. use [[[ERROR: [NOKX000E] Unable to find definition for key reference 'CTelephony']]]CTelephony::GetLineStatus() to get the data line status Pass [[[ERROR: [NOKX000E] Unable to find definition for key reference 'CTelephony']]]EDataLine as the parameter.
  3. the function returns a [[[ERROR: [NOKX000E] Unable to find definition for key reference 'CTelephony']]]TCallStatusV1 object that contains the data line status information

Data line example

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 );