|
Message Type Modules, MTMs, are a way to extend the messaging functionality of Symbian OS. These plug-in modules are composed of a set of DLLs. Writing MTMs is an advanced topic and the following example project provides a basic MTM implementation that can be used as a template when writing MTMs.
Download example project>>
This is a modified version of the TextMTM example that is distributed in the UIQ 2.1 SDK.
To build the TextMTM example for the smartphone, use the following:
$ bldmake bldfiles $ abld build thumb urel $ makesis textMTM.pkg When the MTM has been installed on the phone, it can be configured from the control panel using the "other" tab. Note that the device has to be restarted before the control panel entry will appear. When configuring the MTM, a folder in the local file system should be specified. The contents of this folder will be mapped as message entries in the MTM. After configuration, a new account "Ready To Send" will appear in the messaging application. When opening this account, the files will appear as message entries.
The TextMTM example consists of several parts:
- Client-side MTM, txtc
- Server-side MTM, txts
- UI MTM, txtu
- UI Data MTM, txti
- TextMTM Utilities, txut
- Installer, txin
- Uninstaller, txuninstall
- Control panel application for MTM configuration
These parts are all DLLs, except the installer/uninstaller which are .exe files.
The MTM Architecture makes it possible to create plug-in modules to support individual messaging protocols. Interaction with lower-level communication protocols, such as TCP/IP, is performed by MTMs.
The design of the MTM Architecture is based on the following principles:
- Dynamic extensibility
- Multiple simultaneous message client applications
- Generic message description and operations
- Memory efficiency
More information about MTMs can be found in the UIQ 2.1 SDK at: » UIQ 2.1 SDK » Developer Library » API Reference » C++ API reference » Messaging Architecture
More information about the TextMTM example can be found at: » UIQ 2.1 SDK » Developer Library » C++ example projects » Messaging example code » Messaging Text MTM example code
|