
Chapter 19: Wireless Wide-Area Networking
Initializing WWAN
Psion Mobile Devices Developers Guide
216
19.13.1 Initializing WWAN
Before initializing voice over WWAN, initialize the WWAN connection following the instructions in
Section 19.5 Initializing WWAN on page 200.
19.13.2 Initializing Voice Over WWAN
Follow these steps to initialize voice over WWAN:
1. Instantiate an instance of the VoiceCallManager class —this class controls most of the voice
call functions.
2. Create a VoiceCallManager Listener object—this makes OnIncomingCallEvent available to
handle all incoming calls.
3. Use RegisterListener to install and register the listener.
4. If the application—not the GUI applet—is to handle notifications for incoming voice calls, set the
suppress call notifications access flag. See Section 19.8 Access Flags on page 211 for details.
The following sample code shows how to do this:
Windows Mobile 6.x Professional
Windows Embedded Hand-Held 6.5
The Mobile Devices SDK does not support these operating systems.
For more information on voice calls on the following, see MSDN
(http://msdn.microsoft.com/en-us/library/bb416512.aspx):
• Workabout Pro G2
• Workabout Pro 3
•Ikôn
•Omnii XT15
•Omnii RT15
•EP10
Operating System Support
using namespace PsionTeklogix::WWAN;
class MyVoiceCallManagerListener : public VoiceCallManager::Listener
{
public:
// OnIncomingCallEvent
//
// Description:
// This method is invoked by a VoiceCallManager object when there is an incoming
// voice call (including waiting calls). In this implementation, all new VoiceCalls
// are added to the voiceSharedData.myVoiceCalls list. A MessageBox is then
// displayed asking the user if the call should be answered. The new status is
// displayed in the event window in the dialog.
//
// Parameters:
// incomingCall - The new incoming call.
//
void OnIncomingCallEvent(VoiceCall incomingCall)
{
// Add functions for acting on incoming calls here....
}
};
class CallListener : public VoiceCall::Listener
{
public:
void OnStatusChangedEvent(VoiceCall &changedCall,
VoiceCallStatus newStatus,
VoiceCallFlags newFlags)
{
switch(newStatus)
{
case VoiceCallStatus_Active:
Kommentare zu diesen Handbüchern