Motorola SYMBOL MINISCAN MSXX04 Guía de usuario Pagina 231

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 278
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 230
Chapter 19: Wireless Wide-Area Networking
Voice Call States
219
Psion Mobile Devices Developers Guide
19.13.5 Voice Call States
These voice call states describe the state of a voice connection between the computer and the WWAN
network. Contact your WWAN network provider to determine which of these services they support.
The status can change at any time for reasons that are outside the control of the application. Instead of
polling this method, it is recommended that an application creates an event handler.
A typical outbound voice call passes through several of these states, for example:
1. Dialing
2. Alerting
3. Active
4. NormalTermination
An application may not detect all the states that the call passes through.
When the voice call is terminated, the last Voicecall event received has its voice call flag set to last event.
Once this event is received, free the VoiceCall object that you created immediately after invoking
DialNumber. See Section 19.13.4 Making a Phone Call on page 218.
A typical inbound call passes through several states, for example:
1. Incoming
2. Active
3. Normal Termination
switch(newStatus)
{
case VoiceCallStatus_Active:
break;
case VoiceCallStatus_Held:
break;
case VoiceCallStatus_Dialing:
break;
case VoiceCallStatus_Alerting:
break;
case VoiceCallStatus_Incoming:
break;
case VoiceCallStatus_Waiting:
break;
case VoiceCallStatus_NoAnswer:
break;
case VoiceCallStatus_NoCarrier:
break;
case VoiceCallStatus_Busy:
break;
case VoiceCallStatus_SupplementaryAccepted:
break;
case VoiceCallStatus_NormalTermination:
break;
default:
break;
}
if ( (newFlags & VoiceCallFlags_LastEvent) != 0 )
{
//
// This voice call is finished. Its now safe to deallocate
// the VoiceCall object you instantiated earlier ( referenced
// by changedCall).
//
}
}
};
Vista de pagina 230
1 2 ... 226 227 228 229 230 231 232 233 234 235 236 ... 277 278

Comentarios a estos manuales

Sin comentarios