Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



File System Data Provider Configuration

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:

//
// 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:\*"
        };
    }