CVoIPApp (Windows CE 5.0)
The CVoIPApp class controls the operation of the TUI application.
This class is defined in %_WINCEROOT%\Public\VoIP\OAK\Phone\TUI\App\VoIPApp.cpp (and VoIPApp.h).
There is only a single CVoIPApp instance in a running TUI application. You can access this instance using the global GetApp function defined in %_WINCEROOT%\Public\VoIP\OAK\Phone\TUI\App\Main.cpp.
This class has a number of responsibilities:
It contains the application's message pump, in the CVoIPApp::Run method.
It owns references to and manages a number of other classes and COM components used by TUI to provide parts of its functionality.
These classes and components include the VAIL IVoIPMgr interface and the Exchange Client IExchangeClient interface.
They also include TUI internal classes for UI (like CVoIPDesktopManager), background updates of settings (CBackgroundConfigUpdateEngine), presence (CPresenceWatcher), and hardware integration (CHardwareSpecificInterface).
It receives events from a number of these classes and COM components and then decides what to do in response, which includes passing many of these events to other objects for processing.
It implements IVoIPUI to handle VAIL events, IExchangeClientRequestCallback to handle Exchange Client events, and handles internal TUI events like hotkey events for button presses, handset and speakerphone on-hook and off-hook changes, and the OnConfigurationEvent for the CBackgroundConfigUpdateEngine class.
It is in charge of a phone state. For example, CVoIPApp maintains the current hook state — whether the phone is on-hook or off-hook — and the audio mode — whether audio should be output to the handset or to the speaker.
The CVoIPApp class maintains this information internally and provides it to other classes and COM components through public methods.
See Also
TUI Object Model | VAIL Application Development | Exchange Client Application Development
Send Feedback on this topic to the authors