1.1 --- a/epoc32/include/e32const.h Wed Mar 31 12:27:01 2010 +0100
1.2 +++ b/epoc32/include/e32const.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -1,9 +1,9 @@
1.4 // Copyright (c) 1994-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 // All rights reserved.
1.6 // This component and the accompanying materials are made available
1.7 -// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.8 +// under the terms of the License "Eclipse Public License v1.0"
1.9 // which accompanies this distribution, and is available
1.10 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.12 //
1.13 // Initial Contributors:
1.14 // Nokia Corporation - initial contribution.
1.15 @@ -20,7 +20,7 @@
1.16
1.17 #include <e32err.h>
1.18 #include <e32lang.h>
1.19 -
1.20 +#include <e32reg.h>
1.21
1.22
1.23 /**
1.24 @@ -523,7 +523,11 @@
1.25
1.26 A default stack size that can be used when creating threads.
1.27 */
1.28 +#ifdef __X86GCC__
1.29 +const TInt KDefaultStackSize=0x4000;
1.30 +#else
1.31 const TInt KDefaultStackSize=0x2000;
1.32 +#endif // __X86GCC__
1.33
1.34
1.35
1.36 @@ -1022,6 +1026,13 @@
1.37 enum TBatteryState {EBatNotSupported,EBatGood,EBatLow};
1.38
1.39
1.40 +/**
1.41 +@publishedAll
1.42 +@released
1.43 +
1.44 +Defines the possible connection types used to interface to the media.
1.45 +*/
1.46 +enum TConnectionBusType {EConnectionBusInternal, EConnectionBusUsb};
1.47
1.48
1.49 /**
1.50 @@ -1145,12 +1156,20 @@
1.51 @publishedAll
1.52 @released
1.53
1.54 +Drive attribute - drive is external.
1.55 +*/
1.56 +const TUint KDriveAttExternal=0x800;
1.57 +
1.58 +
1.59 +/**
1.60 +@publishedAll
1.61 +@released
1.62 +
1.63 Drive attribute - It can be set in a search in order to instruct that all drives should be returned.
1.64 */
1.65 const TUint KDriveAttAll=0x100000;
1.66
1.67
1.68 -
1.69 /**
1.70 @publishedAll
1.71 @released
1.72 @@ -1171,6 +1190,7 @@
1.73 const TUint KDriveAttExclusive=0x80000;
1.74
1.75
1.76 +
1.77 /**
1.78 @internalTechnology
1.79
1.80 @@ -1180,6 +1200,7 @@
1.81 const TUint KDriveAttMatchedFlags=0xFFF;
1.82
1.83
1.84 +
1.85 /**
1.86 @internalTechnology
1.87
1.88 @@ -1188,6 +1209,8 @@
1.89 const TUint KDriveAttMatchedAtt=0x0FFF0000;
1.90
1.91
1.92 +
1.93 +
1.94 /**
1.95 @publishedAll
1.96 @released
1.97 @@ -1664,6 +1687,21 @@
1.98 ENITZNetworkTimeSync
1.99 };
1.100
1.101 +/**
1.102 +@internalComponent
1.103 +
1.104 +Indicates the type of conversion required for FAT filenames
1.105 +*/
1.106 +enum TFatFilenameConversionType
1.107 + {
1.108 + /** Undefined conversion scheme; conversion obtained is whatever the
1.109 + default policy is for this version of the OS. */
1.110 + EFatConversionDefault = 0,
1.111 + /** x-fat<nnn>.dll is loaded, where <nnn> is the FAT filename conversion number. */
1.112 + EFatConversionNonStandard = 1,
1.113 + /** cp<nnn>.dll is loaded, where <nnn> is the FAT filename conversion number. */
1.114 + EFatConversionMicrosoftCodePage = 2
1.115 + };
1.116
1.117
1.118 /**
1.119 @@ -1823,16 +1861,6 @@
1.120 };
1.121
1.122
1.123 -
1.124 -
1.125 -/**
1.126 -@publishedPartner
1.127 -@interim
1.128 -*/
1.129 -const TText KProtectedServerNamePrefix = '!';
1.130 -
1.131 -
1.132 -
1.133 /**
1.134 @publishedAll
1.135 @released
1.136 @@ -2114,7 +2142,7 @@
1.137
1.138 A bitmask for all flags except those with symbols starting KRealFormat...
1.139 */
1.140 -const TInt KRealFormatTypeFlagsMask=0x7C000000;
1.141 +const TInt KRealFormatTypeFlagsMask=0x7E000000;
1.142
1.143
1.144
1.145 @@ -2217,6 +2245,25 @@
1.146 @publishedAll
1.147 @released
1.148
1.149 +A flag that modifies the format of the character representation of a real
1.150 +number.
1.151 +
1.152 +If set, this flag allows enough digits of precision such that the mapping from
1.153 +numeric to string form is injective. For a TReal (=double) input argument
1.154 +this means KIEEEDoubleInjectivePrecision digits.
1.155 +This flag overrides the KGeneralLimit flag if both are set.
1.156 +
1.157 +This flag should be ORed into TRealFormat::iType.
1.158 +*/
1.159 +const TInt KRealInjectiveLimit=0x02000000;
1.160 +
1.161 +
1.162 +
1.163 +
1.164 +/**
1.165 +@publishedAll
1.166 +@released
1.167 +
1.168 A value, which when passed to the new operator, indicates that the operation
1.169 is to leave if insufficient memory available.
1.170 */
1.171 @@ -2363,6 +2410,9 @@
1.172
1.173 /**
1.174 The free memory level has crossed a specified threshold value.
1.175 +
1.176 + On systems that support data paging, this is also generated where the available swap space
1.177 + crosses one of the specified threshold values.
1.178 */
1.179 EChangesFreeMemory=0x20,
1.180
1.181 @@ -2378,6 +2428,16 @@
1.182 @see UserSvr::SetMemoryThresholds()
1.183 */
1.184 EChangesLowMemory=0x80,
1.185 +
1.186 + /**
1.187 + On systems that support data paging, this is generated where the thrashing level crosses one of
1.188 + the specified threshold values.
1.189 + */
1.190 + EChangesThrashLevel=0x100,
1.191 +
1.192 + /**********************************************************************************
1.193 + ** IF YOU ADD A NEW VALUE HERE, YOU NEED TO UPDATE DChangeNotifier CONSTRUCTOR **
1.194 + **********************************************************************************/
1.195 };
1.196
1.197
1.198 @@ -2997,20 +3057,35 @@
1.199 */
1.200 enum TIpcSessionType
1.201 {
1.202 - /**
1.203 - The session is not sharable with other threads.
1.204 - */
1.205 - EIpcSession_Unsharable=0,
1.206 -
1.207 - /**
1.208 - The session is sharable with other threads in the same process.
1.209 - */
1.210 - EIpcSession_Sharable=1,
1.211 -
1.212 - /**
1.213 - The session is sharable with all other threads in the system.
1.214 - */
1.215 - EIpcSession_GlobalSharable=2
1.216 + // These values are used at session creation time to describe the extent to which
1.217 + // the new session may be shared.
1.218 + //
1.219 + // They are *also* used at server creation time, to specify the *maximum* degree
1.220 + // of session sharability that the server supports. Thus, if a server instance was
1.221 + // created with mode EIpcSession_Sharable, you can open Sharable or Unsharable
1.222 + // sessions with it, but not globally sharable ones.
1.223 + EIpcSession_Unsharable = 0x00000000,
1.224 + EIpcSession_Sharable = 0x00000001, // sharable within one process
1.225 + EIpcSession_GlobalSharable = 0x00000002 // sharable across processes
1.226 + };
1.227 +
1.228 +enum TIpcServerRole
1.229 + {
1.230 + EServerRole_Default = 0, // No role specified; treated as Standalone
1.231 + EServerRole_Standalone, // Explicitly neither Master nor Slave
1.232 + EServerRole_Master, // Master: may transfer sessions to a Slave
1.233 + EServerRole_Slave // Slave: accepts sessions from the Master
1.234 + };
1.235 +
1.236 +enum TIpcServerOpts
1.237 + {
1.238 + // The first few bits specify whether memory referred to by descriptors
1.239 + // passed from the client to the server should automatically be pinned
1.240 + // All other bits are reserved for future expansion ...
1.241 + EServerOpt_PinClientDescriptorsDefault = 0x00000000, /**<@internalComponent*/
1.242 + EServerOpt_PinClientDescriptorsEnable = 0x00000004, /**<@internalComponent*/
1.243 + EServerOpt_PinClientDescriptorsDisable = 0x00000008, /**<@internalComponent*/
1.244 + EServerOpt_PinClientDescriptorsMask = 0x0000000c /**<@internalComponent*/
1.245 };
1.246
1.247
1.248 @@ -3022,16 +3097,6 @@
1.249 */
1.250 const TInt KNullDebugPort=-2;
1.251
1.252 -/**
1.253 -@internalTechnology
1.254 -*/
1.255 -const TUint32 KModuleVersionWild=0xfffffffeu;
1.256 -/**
1.257 -@internalTechnology
1.258 -*/
1.259 -const TUint32 KModuleVersionNull=0xffffffffu;
1.260 -
1.261 -
1.262
1.263 /**
1.264 A constant which represents a thread ID which will never be assigned to a thread.
1.265 @@ -3068,7 +3133,9 @@
1.266 /** ARM VFPv2 */
1.267 EFpTypeVFPv2=1,
1.268 /** ARM VFPv3 */
1.269 - EFpTypeVFPv3=2
1.270 + EFpTypeVFPv3=2,
1.271 + /** ARM VFPv3-D16 (VFP only, no NEON) */
1.272 + EFpTypeVFPv3D16=3,
1.273 };
1.274
1.275
1.276 @@ -3137,4 +3204,8 @@
1.277
1.278 #include <e32capability.h>
1.279
1.280 +#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
1.281 +#include <e32const_private.h>
1.282 #endif
1.283 +
1.284 +#endif