The Symbian MTP implementation defines a transport layer, an MTP layer and a storage layer. The MTP Framework is the MTP layer, which is the core component of the implementation. It manages and works with data providers and transports for MTP requests and operations.
You must have a general understanding of the MTP enhanced specification and the Symbian implementation of the Media Transfer Protocol to use the MTP Framework component.
The following diagram shows the Symbian MTP implementation including the MTP Framework, the MTP Data Providers and the MTP Transports.
MTP Framework performs the following functions:
Provides a standard Symbian client/server interface to start and stop MTP services with a transport protocol binding, for example MTP USB Transport.
Manages MTP transport connections.
Maintains the core MTP protocol connection, session and transaction states.
Manages data providers which determine the MTP media data formats supported by a device.
Routes MTP operation requests and event datasets to data providers for processing.
Efficiently manages the flow of potentially very large volumes of media object data, for example files over 4GB.
Maintains a set of MTP data object metadata storages that collectively manage the set of MTP data objects on the device. These objects are enumerated to a connected MTP initiator.
Provides the MTP Data Provider API for device creators to extend the data providers.
The MTP Framework exports the following key APIs:
MTP Client API (mtpclient.dll)
API | Description |
---|---|
The MTP client interface for starting and stopping MTP services, and for specifying the transport protocol. |
MTP Data Provider API (mtpdataproviderapi.dll)
API | Description |
---|---|
The data provider ECom plug-in interface. Each ECOM plug-in data provider must be derived from this class. |
|
The MTP meta-data base class. |
|
Represents MTP object meta-data. |
|
Represents MTP storage meta-data. |
MTP Framework Library (mtpframework.dll)
API | Description |
---|---|
Provides functions to generate a set of unique datacodes for a data provider service. For more information about datacode generation, refer to Creating an MTP Data Provider Plug-in. |
|
Can be used to get a reference of MMTPDataCodeGenerator. |
MTP Data Types Library
The MTP Data Types Library implements the MTP standard data types and dataset. It also allows device creators to write extended data types. For the MTP data types and their relationships, refer to the MTP Data Types Overview.
Device creators can use the MTP Framework in the following ways:
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.