The File System Data Provider plugin is provided as part of the Symbian OS MTP framework. Its configuration is described here.
It may be configured using the MTP_FILEDP_CONFIG
resource
which is, in turn, used as the opaque_resource
within an
MTP_DATA_PROVIDER
resource. These resources are defined in
mtpfiledp_config.rss
as illustrated below. The file is compiled
and exported as z:/resource/mtp/102827B0.rsc
The configurable parameters are:
Object Enumeration Iteration Length. This parameter configures object store enumeration by specifying the maximum number of data objects to be enumerated on each iteration of the process. Its purpose is to ensure that reasonable active scheduler RunL durations are maintained.
File Exclusion List. This parameter specifies the set of Symbian OS file system folders to be excluded from the file system data provider’s object enumeration process. Excluded files are not visible to the PC.
The list is specified as an array of strings, each of which specifies an excluded folder. Each folder must be specified as a full path and may optionally include a drive letter. If a drive letter is specified the folder path is excluded on the specified drive only. If a drive letter is not specified the folder path is excluded on all available drives. Trailing backslashes are ignored.
//
// Copyright (c) Symbian Software Ltd 2007. All rights reserved.
//
#include <ecom/registryinfo.rh>
#include <mtp/mtpdpinfo.rh>
#include "mtpfiledp_config.rh"
RESOURCE MTP_DATA_PROVIDER dpConfig
{
type = EMtpDataTypeEcom;
major_version = 1;
object_enumeration_persistent = 0;
supported_modes = KMtpModeMTP;
server_name = "";
server_image_name = "";
opaque_resource = fileConfig;
}
RESOURCE MTP_FILEDP_CONFIG fileConfig
{
enumeration_iteration_length = 1024;
exclusion_list =
{
"?:\private\*",
"?:\resource\*",\
"?:\sys\*",
"?:\system\*",
"Z:\*"
};
}