sl@0: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // ROM-specific macros for syslibs_ecom component. sl@0: // Intended for customisation by phone manufacturers. sl@0: // Read ECOM How To FAQ.doc if need more information about the sl@0: // patchable constants listed below. sl@0: // sl@0: // sl@0: sl@0: #ifndef __ECOMPATCHCONSTANTS_HBY__ sl@0: #define __ECOMPATCHCONSTANTS_HBY__ sl@0: sl@0: sl@0: // Macro ECOM_PATCHDATA_KLISTIMPLBUFFERSIZE represents the sl@0: // value of the patchable constant KListImplBufferSize. It is used sl@0: // to define the size of the buffer that is pre-allocated on the sl@0: // ECOM client side to hold data returned by the sl@0: // REComSession::ListImplementations() API. ECOM How To FAQ sl@0: // explains how to determine the optimum value for this constant. sl@0: // The default value of KListImplBufferSize is 2048. sl@0: // sl@0: // This patchable constant was first introduced in Symbian_OS_v9.3. sl@0: // At that time ECOM How To FAQ advised device builders to use sl@0: // the "patchdata" command directly in any obey file to patch this sl@0: // constant. The old scheme has been deprecated and the macro below sl@0: // is the supported published mechanism for changing this patchable sl@0: // constant. Please ensure that if this constant sl@0: // is patched in another obey file, do not uncomment the macro sl@0: // definition below. Otherwise this constant will be patched twice sl@0: // with unpredictable result. sl@0: // sl@0: // To patch this constant, remove the comment characters and replace 2048 sl@0: // with the desired value. sl@0: sl@0: // #define ECOM_PATCHDATA_KLISTIMPLBUFFERSIZE 2048 sl@0: sl@0: sl@0: // Macro ECOM_PATCHDATA_KDISCOVERYDISABLEDDRIVELIST represents the sl@0: // value of the patchable constant KDiscoveryDisabledDriveList. sl@0: // This constant lets licensees specify a list of drives which they sl@0: // do not want ECOM to scan, e.g. because the drives can never have sl@0: // valid plug-ins. sl@0: // This is a 32-bit integer with each bit representing a drive to disable: sl@0: // 0x1 disables drive A, 0x2 disables drive B etc. There are only 25 drive sl@0: // letters supported (A:->Y:) therefore the last 7 bits are ignored. sl@0: // Note that Read-only internal drives cannot be disabled. sl@0: // The default value of KDiscoveryDisabledDriveList is 0, meaning all sl@0: // drives are enabled. sl@0: // sl@0: // To patch this constant, remove the comment characters and replace 0 sl@0: // with the desired value. sl@0: sl@0: // #define ECOM_PATCHDATA_KDISCOVERYDISABLEDDRIVELIST 0x0 sl@0: sl@0: sl@0: sl@0: // Macro ECOM_PATCHDATA_KCUSTOMRESOLVERCACHESIZE represents the sl@0: // value of the patchable constant KCustomResolverCacheSize. sl@0: // This constant specifies the maximum number of resolver DLLs ECOM can cache. sl@0: // When the cache queue is full, the next custom resolver DLL requested by sl@0: // client will bump off the oldest DLL in the cache. sl@0: // The default value of KCustomResolverCacheSize is 4, meaning ECOM will sl@0: // cache maximum of four resolver DLLs. sl@0: // sl@0: // To patch this constant, remove the comment characters and replace 4 sl@0: // with the desired value. sl@0: sl@0: // #define ECOM_PATCHDATA_KCUSTOMRESOLVERCACHESIZE 4 sl@0: sl@0: sl@0: sl@0: // Macro ECOM_PATCHDATA_KCUSTOMRESOLVERCACHETIMEOUT represents the sl@0: // value of the patchable constant KCustomResolverCacheTimeout. sl@0: // This constant specifies the timeout in microseconds that a resolver DLL is sl@0: // kept in cache. When the time expires, the resolver DLL is released from sl@0: // memory. The default value of KCustomResolverCacheTimeout is 4000000. sl@0: // That means if no client uses a cached resolver DLL, the DLL will be sl@0: // unloaded after four seconds. sl@0: // sl@0: // To patch this constant, remove the comment characters and replace 4000000 sl@0: // with the desired value. sl@0: sl@0: // #define ECOM_PATCHDATA_KCUSTOMRESOLVERCACHETIMEOUT 4000000 sl@0: sl@0: #endif