localisation/apparchitecture/apserv/APSCONSTDATA.CPP
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #include <e32def.h>
       
    17 
       
    18 /*
       
    19  * patchable const data values
       
    20  * 
       
    21  * these values control whether apparc tries to save memory by unloading data
       
    22  * recognizers when they are not being used
       
    23  *
       
    24  * To patch these values, add a line to an iby or oby file that is included in the rom being built using the following format:
       
    25  *
       
    26  * "patchdata <dll> @ <symbol> <newvalue>"
       
    27  *
       
    28  * e.g. to enable on-demand recognizer loading, use the following line:
       
    29  * "patchdata apserv.dll @ KApaLoadDataRecognizersOnDemand 1"
       
    30  */
       
    31 
       
    32 
       
    33 /**
       
    34  * Patchable constant.  Determines whether, in the interest of saving memory, AppArc unloads data 
       
    35  * recognizers when they are not being used.
       
    36  *
       
    37  * @SYMPatchable
       
    38  * @see KApaUnloadRecognizersTimeout 
       
    39  *
       
    40  */
       
    41 EXPORT_C extern const TInt KApaLoadDataRecognizersOnDemand = 0;
       
    42 
       
    43 /**
       
    44  * Patchable constant.  Determines how long (in microseconds) a recognizer may remain unused before it gets deleted.
       
    45  * 
       
    46  * @SYMPatchable
       
    47  * @see KApaLoadDataRecognizersOnDemand 
       
    48  *
       
    49  */ 
       
    50 EXPORT_C extern const TInt KApaUnloadRecognizersTimeout = 10000000; // 10 seconds in microseconds
       
    51 
       
    52 
       
    53 /* 
       
    54  * emulator support
       
    55  * to enable on-demand recognizer loading on the emulator, add the following line to your epoc.ini
       
    56  * patchdata_apserv_dll_KApaLoadDataRecognizersOnDemand 1
       
    57  */
       
    58 
       
    59 /*
       
    60  * Patchable constant.  
       
    61  *
       
    62  * @SYMPatchable
       
    63  * @see KApaDrivesToMonitor 
       
    64  *
       
    65  */
       
    66 
       
    67 EXPORT_C extern const TInt KApaDrivesToMonitor = 0x3FFFFFF; 
       
    68 /*
       
    69 The constant value 0x3FFFFFF represents that all drives (z->a(Least Significant Bit)) are monitored by default.
       
    70 It is computed in the following way.
       
    71 	        ZY XWVU TSRQ PONM LKJI HGFE DCBA
       
    72 	 		11 1111 1111 1111 1111 1111 1111. 
       
    73 If the bit representing a drive is set (to 1) it is monitored for file change notifications. 
       
    74 Else it is not. 
       
    75 */
       
    76 
       
    77 /** 
       
    78  * Patchable constant.  Determines whether apparc tries to save memory in the font bitmap
       
    79  * server, by only loading MBM icons on demand.
       
    80  * The default value is 0.
       
    81  * When set to zero, all MBM icons are loaded at device boot and never unloaded.
       
    82  * When set to non-zero, no MBM icons are loaded at device boot. MBM icons are
       
    83  * loaded on demand (and never unloaded afterwards). 
       
    84  * 
       
    85  * @SYMPatchable
       
    86  */
       
    87 EXPORT_C extern const TInt KApaLoadMbmIconsOnDemand = 0;