diff -r c55016431358 -r 0a7b44b10206 symport/e32/include/e32const.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/symport/e32/include/e32const.h Thu Jun 25 15:59:54 2009 +0100 @@ -0,0 +1,3131 @@ +// Copyright (c) 1994-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the License "Symbian Foundation License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// e32\include\e32const.h +// +// + +#ifndef __E32CONST_H__ +#define __E32CONST_H__ + +#include +#include + + + +/** +@publishedAll +@released + +The default width value used when appending and justifying data +in a descriptor. + +@see TDes16::AppendJustify() +@see TDes16::Justify() +@see TDes8::AppendJustify() +@see TDes8::Justify() +*/ +const TInt KDefaultJustifyWidth=(-1); + + + +/** +@publishedAll +@released + +Defines the number of TUids that form a TUidType. + +@see TUid +@see TUidType +*/ +const TInt KMaxCheckedUid=3; + + +/** +@publishedAll +@released + +Defines the number of 32-bit debug trace mask words. + +*/ +const TInt KNumTraceMaskWords = 8; + + +/** +@publishedAll +@released + +Defines the maximum length for the text form of a UID name. + +@see TUidName +@see TUid::Name() +*/ +const TInt KMaxUidName=10; + + + + +/** +@publishedAll +@released + +Defines the maximum length of a module name. +*/ +const TInt KMaxModuleVersionName=10; + + + + +/** +@publishedAll +@released + +Defines the maximum length of the name of a reference counted object. + +@see TName +*/ +const TInt KMaxName=0x80; + + + + +/** +@publishedAll +@released + +Defines the maximum length of the name of a reference counted kernel-side object. +*/ +const TInt KMaxKernelName=0x50; + + + + +/** +@publishedAll +@released + +Defines the maximum size of a process name. +*/ +const TInt KMaxProcessName=(KMaxKernelName-KMaxUidName-KMaxModuleVersionName-4); + + + + +/** +@publishedAll +@released + +Defines the maximum size of a library name. +*/ +const TInt KMaxLibraryName=(KMaxKernelName-KMaxUidName-KMaxModuleVersionName); + + + + +/** +@publishedAll +@released + +Defines the maximum length of a TInfoName object. +*/ +const TInt KMaxInfoName=0x10; + + + + +/** +@publishedAll +@released + +Defines the maximum length of the full name of a reference counted object. + +@see TFullName +*/ +const TInt KMaxFullName=(KMaxName<<1); + + + + +/** +@publishedAll +@released + +The maximum length for a password buffer. + +@see TPassword +*/ +const TInt KMaxPassword=0x10; + + + + +/** +@publishedAll +@released + +The maximum length of a category name. + +@see TExitCategoryName +*/ +const TInt KMaxExitCategoryName=0x10; + + + + +/** +@publishedAll +@released + +The maximum length of the full text name for a day of the week. + +@see TDayName +*/ +const TInt KMaxDayName=0x20; + + + + +/** +@publishedAll +@released + +The maximum length of the abbreviated text name for a day of the week. + +@see TDayNameAbb +*/ +const TInt KMaxDayNameAbb=0x08; + + + + +/** +@publishedAll +@released + +Defines the maximum size of arrays or data structures required +to hold the names of the days of the week. +*/ +const TInt KMaxDays=7; + + + + +/** +@publishedAll +@released + +The maximum length of the full text name for a month. + +@see TDayName +*/ +const TInt KMaxMonthName=0x20; + + + + +/** +@publishedAll +@released + +The maximum length of the abbreviated text name for a month. + +@see TMonthNameAbb +*/ +const TInt KMaxMonthNameAbb=0x08; + + + + +/** +@publishedAll +@released + +Defines the maximum size of arrays or data structures required +to hold the names of the months of the year. +*/ +const TInt KMaxMonths=12; + + + + +/** +@publishedAll +@released + +The maximum length of the text for a date suffix. + +@see TDateSuffix +*/ +const TInt KMaxSuffix=0x04; + + + + +/** +@publishedAll +@released + +Defines the maximum size of arrays and data structures required +to hold date suffix strings. +*/ +const TInt KMaxSuffixes=31; + + + + +/** +@publishedAll +@released + +The maximum length of the text for AM and PM. + +@see TAmPmName +*/ +const TInt KMaxAmPmName=0x04; + + + + +/** +@publishedAll +@released + +Defines the maximum size of arrays and data structures required +to hold am/pm strings. +*/ +const TInt KMaxAmPms=2; + + + + +/** +@publishedAll +@released + +Defines the maximum number of date separator characters in a date string. +*/ +const TInt KMaxDateSeparators=4; + + + + +/** +@publishedAll +@released + +Defines the maximum number of time separator characters in a time string. +*/ +const TInt KMaxTimeSeparators=4; + + + + +/** +@publishedAll +@released + +Defines the maximum size of data structures to hold the translate tables +for Western European alphabetic conversions. +*/ +const TInt KMaxTranslateTable=0x100; + + + + +/** +@publishedAll +@released + +The maximum length of the text for a currency symbol. + +@see TCurrencySymbol +*/ +const TInt KMaxCurrencySymbol=0x08; + + + + +/** +@publishedAll +@released + +The maximum length of the short date format specification text. + +@see TShortDateFormatSpec +*/ +const TInt KMaxShortDateFormatSpec=40; + + + + +/** +@publishedAll +@released + +The maximum length of the short date format specification text. + +@see TLongDateFormatSpec +*/ +const TInt KMaxLongDateFormatSpec=80; + + + + +/** +@publishedAll +@released + +The maximum length of the time string formatting commands. + +@see TTimeFormatSpec +*/ +const TInt KMaxTimeFormatSpec=60; + + + + +/** +@publishedAll +@released + +Defines the maximum length of a filename. +*/ +const TInt KMaxFileName=0x100; + + + + +/** +@publishedAll +@released + +The maximum length of the character representation of version information. + +@see TVersion::Name() +*/ +const TInt KMaxVersionName=0x10; + + + + +/** +@publishedAll +@released + +Defines the maximum length of a path. + +@see TPath +*/ +const TInt KMaxPath=0x100; + + + + +/** +@publishedAll +@released + +Defines the maximum length of a TDeviceInfo object. + +@see TDeviceInfo +*/ +const TInt KMaxDeviceInfo=0x80; + + + + +/** +@publishedAll +@released + +The maximum size of the password required to unlock a media drive. +*/ +const TInt KMaxMediaPassword=16; + + + + +/** +@publishedAll +@released + +Defines the minimum size of a new heap. + +Functions that require a new heap to be allocated will either panic, +or will reset the required heap size to this value if a smaller heap +size is specified. + +@see UserHeap +@see RThread::Create() +*/ +const TInt KMinHeapSize=0x100; + + + + +/** +@publishedAll +@released + +Not used by Symbian OS. +*/ +const TInt KDstHome=0x01; + + + + +/** +@publishedAll +@released + +Not used by Symbian OS. +*/ +const TInt KDstEuropean=0x02; + + + + +/** +@publishedAll +@released + +Not used by Symbian OS. +*/ +const TInt KDstNorthern=0x04; + + + + +/** +@publishedAll +@released + +Not used by Symbian OS. +*/ +const TInt KDstSouthern=0x08; + + + + +/** +@publishedAll +@released + +A default stack size that can be used when creating threads. +*/ +#ifdef __X86GCC__ +const TInt KDefaultStackSize=0x4000; +#else +const TInt KDefaultStackSize=0x2000; +#endif // __X86GCC__ + + + + +/** +@publishedAll +@released + +Indicates an undefined character, used internally when formatting text. +*/ +const TUint KNoChar=0xffffffffu; + + + + +/** +@publishedAll +@released + +Defines an index value that is interpreted by the TKey class, +and derived classes, as having a specific meaning. + +@see TKey::SetPtr() +@see TKey::At() +*/ +const TInt KIndexPtr=(-1); + + + + +/** +@publishedAll +@released + +A flag used by the kernel to mark a handle as not being closable. +*/ +const TInt KHandleNoClose=0x00008000; + + + + +/** +@publishedAll +@released + +A flag used by the kernel to mark a handle as being local. +*/ +const TInt KHandleFlagLocal=0x40000000; + + + + +/** +@publishedAll +@released + +A flag used by the Kernel to indicate the current process. +*/ +const TInt KCurrentProcessHandle=0xffff0000|KHandleNoClose; + + + + +/** +@publishedAll +@released + +A flag used by the Kernel to indicate the current thread. +*/ +const TInt KCurrentThreadHandle=0xffff0001|KHandleNoClose; + + + + +/** +@publishedAll +@released + +Defines a handle number value of zero. + +@see RHandleBase +*/ +const TInt KNullHandle=0; + + + + +/** +@publishedAll +@released + +Defines a default unit. Not generally used by Symbian OS. +*/ +const TInt KDefaultUnit=0x00; + + + + +/** +@publishedAll +@released + +The device unit that must be passed in a call +to RBusLogicalChannel::DoCreate(), if units are not permitted. + +@see RBusLogicalChannel +*/ +const TInt KNullUnit=0xffffffff; + + + + +/** +@publishedAll +@released + +The maximum unit number that can be passed in a call +to RBusLogicalChannel::DoCreate(). + +@see RBusLogicalChannel +*/ +const TInt KMaxUnits=0x20; + + + + +/** +@publishedAll +@released + +Defines the maximum number of message arguments that can be passed +across the user side/kernel side boundary. +*/ +const TInt KMaxMessageArguments=0x04; + + + + +/** +@publishedAll +@released + +The default width of the character representation of a real number, used by +the default constructor of a TRealFormat object and the formatting functions +of descriptors. + +@see TRealFormat +@see TDes16::AppendFormat() +@see TDes8::AppendFormat() +*/ +const TInt KDefaultRealWidth=20; + + + + +/** +@publishedAll +@released + +The default value used by UserHeap::ChunkHeap() for defining increments to +the size of a chunk, when no explicit value specified by the caller. + +@see UserHeap::ChunkHeap() +*/ +const TInt KMinHeapGrowBy=0x1000; + + + + +/** +@publishedAll +@released + +Not used by Symbian OS. +*/ +const TInt KMaxExponentConversion=99; + + + + +/** +@publishedAll +@released + +Defines a Null UID value. + +@see TUid +*/ +const TInt KNullUidValue=0; + + + + +/** +@publishedAll +@deprecated + +The timer granularity used by a CDeltaTimer object is +now the tick period and this constant is obsolete. + +@see CDeltaTimer +*/ +const TInt KDeltaTimerDefaultGranularity=100000; + + + + +/** +@publishedAll +@released + +The largest possible value for a TInt8. +*/ +const TInt KMaxTInt8=0x7f; + + + + +/** +@publishedAll +@released + +The smallest possible value for a TInt8. +*/ +const TInt KMinTInt8=(-128); + + + + +/** +@publishedAll +@released + +The largest possible value for a TUint8. +*/ +const TUint KMaxTUint8=0xffu; + + + + +/** +@publishedAll +@released + +The largest possible value for a TInt16. +*/ +const TInt KMaxTInt16=0x7fff; + + + + +/** +@publishedAll +@released + +The smallest possible value for a TInt16. +*/ +const TInt KMinTInt16=(-32768); + + + + +/** +@publishedAll +@released + +The largest possible value for a TUint16. +*/ +const TUint KMaxTUint16=0xffffu; + + + + +/** +@publishedAll +@released + +The largest possible value for a TInt32. +*/ +const TInt KMaxTInt32=0x7fffffff; + + + + +/** +@publishedAll +@released + +The smallest possible value for a TInt32. +*/ +const TInt KMinTInt32=(TInt)0x80000000; + + + + +/** +@publishedAll +@released + +The largest possible value for a TUint32. +*/ +const TUint KMaxTUint32=0xffffffffu; + + + + +/** +@publishedAll +@released + +The largest possible value for a TInt. +*/ +const TInt KMaxTInt=0x7fffffff; + + + + +/** +@publishedAll +@released + +The smallest possible value for a TInt. +*/ +const TInt KMinTInt=(TInt)0x80000000; + + + + +/** +@publishedAll +@released + +The largest possible value for a TUint. +*/ +const TUint KMaxTUint=0xffffffffu; + + + + +/** +@publishedAll +@released + +The largest possible value for a TInt64. +*/ +const TInt64 KMaxTInt64 = I64LIT(0x7fffffffffffffff); + + + + +/** +@publishedAll +@released + +The smallest possible value for a TInt64. +*/ +const TInt64 KMinTInt64 = UI64LIT(0x8000000000000000); + + + + +/** +@publishedAll +@released + +The largest possible value for a TUint64. +*/ +const TUint64 KMaxTUint64 = UI64LIT(0xffffffffffffffff); + + + + +/** +@publishedAll +@released + +Defines the character *, and represents any number of characters in any +part of a path component, filename or extension. + +It is used in a TParse file specification. + +@see TParse +*/ +const TUint KMatchAny='*'; + + + + +/** +@publishedAll +@released + +Defines the character ?, and represents a single character in +a path component, filename or extension. + +It is used in a TParse file specification. + +@see TParse +*/ +const TUint KMatchOne='?'; + + + + +/** +@publishedAll +@released + +Defines the maximum number of local drives. +*/ +const TInt KMaxLocalDrives=16; + + + + +/** +@publishedAll +@released + +Defines the maximum number of peripheral bus sockets. +*/ +const TInt KMaxPBusSockets=4; + + + + +/** +@publishedAll +@released + +Not used by Symbian OS. +*/ +const TInt KNoCallEntryPoint = 0x01; + + + + +/** +@publishedAll +@released + +The value to which CActive::iStatus is set by an active object's +service provider before the service provider initiates an asynchronous request. + +@see CActive +*/ +const TInt KRequestPending=(-KMaxTInt); + + + + +// Drive capabilities + +/** +@publishedAll +@released + +Defines the possible media types. +*/ +enum TMediaType + { + EMediaNotPresent, + + EMediaUnknown, + + EMediaFloppy, + + /** Solid-state media. */ + EMediaHardDisk, + + EMediaCdRom, + + EMediaRam, + + EMediaFlash, + + EMediaRom, + + EMediaRemote, + + EMediaNANDFlash, + + /** Rotating media. */ + EMediaRotatingMedia + }; + + + + +/** +@publishedAll +@released + +Defines the state of a battery, if supported. +*/ +enum TBatteryState {EBatNotSupported,EBatGood,EBatLow}; + + + + +/** +@publishedAll +@released + +Drive attribute - drive is local. +*/ +const TUint KDriveAttLocal=0x01; + + + + +/** +@publishedAll +@released + +Drive attribute - ROM drive. +*/ +const TUint KDriveAttRom=0x02; + + + + +/** +@publishedAll +@released + +Drive attribute - output from a process on one drive is redirected +to another drive. +*/ +const TUint KDriveAttRedirected=0x04; + + + + +/** +@publishedAll +@released + +Drive attribute - drive letter has been substituted (assigned a path). +*/ +const TUint KDriveAttSubsted=0x08; + + + + +/** +@publishedAll +@released + +Drive attribute - drive is internal (not removable). +*/ +const TUint KDriveAttInternal=0x10; + + + + +/** +@publishedAll +@released + +Drive attribute - drive is removable. +*/ +const TUint KDriveAttRemovable=0x20; + + + + +/** +@publishedAll +@released + +Drive attribute - drive is remote. +*/ +const TUint KDriveAttRemote=0x40; + + + + +/** +@publishedAll +@released + +Drive attribute -. +*/ +const TUint KDriveAttTransaction=0x80; + + +/** +@publishedAll +@released + +Drive attribute - drive is used for paging. +*/ +const TUint KDriveAttPageable=0x100; + + + +/** +@publishedAll +@released + +Drive attribute - drive is logically removable (can be taken offline from Symbian OS). +If not logically removable then physically removable e.g. a card can be take out. +*/ +const TUint KDriveAttLogicallyRemovable=0x200; + + +/** +@publishedAll +@released + +Drive attribute - drive is hidden. +A drive which has its hidden attribute set would be excluded from the list of available drives. +*/ +const TUint KDriveAttHidden=0x400; + + +/** +@publishedAll +@released + +Drive attribute - It can be set in a search in order to instruct that all drives should be returned. +*/ +const TUint KDriveAttAll=0x100000; + + +/** +@publishedAll +@released + +Drive attribute - It can be set in combination with other drive attributes in order to exclude during a drive search, drives with +these attributes set. +*/ +const TUint KDriveAttExclude=0x40000; + + + +/** +@publishedAll +@released + +Drive attribute - It can be set in combination with other drive attributes in order to search and return exclusively drives with these attributes set. +*/ +const TUint KDriveAttExclusive=0x80000; + + + +/** +@internalTechnology + +Used as a mask in order to extract the actual drive attributes. + +*/ +const TUint KDriveAttMatchedFlags=0xFFF; + + + +/** +@internalTechnology + +Used as a mask in order to extract the extra(ex KDriveAttAll ,KDriveAttExclude, KDriveAttExclusive ,0) drive attributes. +*/ +const TUint KDriveAttMatchedAtt=0x0FFF0000; + + + + +/** +@publishedAll +@released + +Media attribute - the media capacity can change over time. +*/ +const TUint KMediaAttVariableSize=0x01; + + + + +/** +@publishedAll +@released + +Media attribute - media is dual density. +*/ +const TUint KMediaAttDualDensity=0x02; + + + + +/** +@publishedAll +@released + +Media attribute - media is formattable. +*/ +const TUint KMediaAttFormattable=0x04; + + + + +/** +@publishedAll +@released + +Media attribute - media is write-protected. +*/ +const TUint KMediaAttWriteProtected=0x08; + + + + +/** +@publishedAll +@released + +Media attribute - media is lockable; this is provided for +lockable multi-media cards +*/ +const TUint KMediaAttLockable=0x10; + + + + +/** +@publishedAll +@released + +Media attribute - media is locked; this is provided for +lockable multi-media cards +*/ +const TUint KMediaAttLocked=0x20; + + + +/** +@publishedAll +@released + +Media attribute - media has password. +*/ +const TUint KMediaAttHasPassword=0x40; + +/** +@publishedAll +@released +*/ +const TUint KMediaAttReadWhileWrite=0x80; + +/** +@publishedAll +@released + +Media attribute - media supports TBusLocalDrive::DeleteNotify() +*/ +const TUint KMediaAttDeleteNotify=0x100; + +/** +@publishedAll +@released + +Media attribute - media supports paging +*/ +const TUint KMediaAttPageable=0x200; + + + +/** +@publishedAll +@released + +Identifies a FAT file system +*/ +const TUint KDriveFileSysFAT=0x01; + + + + +/** +@publishedAll +@released + +Identifies a ROM file system. +*/ +const TUint KDriveFileSysROM=0x02; + + + + +/** +@publishedAll +@released + +Identifies an LFFS file system. +*/ +const TUint KDriveFileSysLFFS=0x03; + + + + +/** +@publishedAll +@released + +Identifies a read-only file system. +*/ +const TUint KDriveFileSysROFS=0x04; + + + + +/** +@publishedAll +@released + +Identifies a non-file system. That is a partition without any file system layer. +*/ +const TUint KDriveFileNone=0x05; + + + + +/** +@publishedAll +@released + +An enumerator with a single enumeration value that defines the Boolean value +false in Symbian OS. + +@see TBool +*/ +enum TFalse { + /** + Defines the value false that is passed to a TBool type. + */ + EFalse=FALSE + }; + + + + +/** +@publishedAll +@released + +An enumerator with a single enumeration value that defines the Boolean value +true in Symbian OS. + +@see TBool +*/ +enum TTrue { + /** + Defines the value true that is passed to a TBool type. + */ + ETrue=TRUE + }; + + + + +/** +@publishedAll +@released + +Defines flags that can be used to indicate whether duplicates, for example in +a list, are allowed. +*/ +enum TAllowDuplicates { + /** + No duplicates allowed. + */ + ENoDuplicates, + + /** + Duplicates allowed. + */ + EAllowDuplicates + }; + + + + +/** +@publishedAll +@released + +An enumeration whose enumerators determine the number system to be used +when converting numbers into a character format. + +@see TDes8::Num() +@see TDes8::NumUC() +@see TDes8::AppendNum() +@see TDes8::AppendNumUC() +@see TDes16::Num() +@see TDes16::NumUC() +@see TDes16::AppendNum() +@see TDes16::AppendNumUC() +*/ +enum TRadix { + /** + Convert number into binary character representation. + */ + EBinary=2, + /** + Convert number into octal character representation. + */ + EOctal=8, + /** + Convert number into decimal character representation. + */ + EDecimal=10, + /** + Convert number into hexadecimal character representation. + */ + EHex=16 + }; + + + + + +/** +@publishedAll +@released + +The mask for the dialect bits +*/ +const TUint KDialectMask=0x03FF; + + + + + +/** +@publishedAll +@released + +Defines the date formats. +*/ +enum TDateFormat { + /** + US format (mm/dd/yyyy) + */ + EDateAmerican, + + /** + European format (dd/mm/yyyy) + */ + EDateEuropean, + + /** + Japanese format (yyyy/mm/dd) + */ + EDateJapanese}; + + + + +/** +@publishedAll +@released + +Defines the time formats as either 12 hour or 24 hour. +*/ +enum TTimeFormat { + ETime12, + ETime24 + }; + + + + +/** +@publishedAll +@released + +Defines the clock display formats, as either analog or digital. +*/ +enum TClockFormat { + EClockAnalog, + EClockDigital + }; + + + + +/** +@publishedAll +@released + +Enumerates the units of measurement as either Imperial or Metric. +*/ +enum TUnitsFormat { + EUnitsImperial, + EUnitsMetric + }; + + + + +/** +@publishedAll +@released + +Identifies a time as being am or pm. +*/ +enum TAmPm { + EAm, + EPm + }; + + + + +/** +@publishedAll +@released + +Defines whether: + +1. the currency symbol is located before or after the currency amount. + +2. the am/pm text is located before or after the time. +*/ +enum TLocalePos + { + /** + The currency symbol is located before the currency amount. + The am/pm text is located before the time. + */ + ELocaleBefore, + + /** + The currency symbol is located after the currency amount. + The am/pm text is located after the time. + */ + ELocaleAfter + }; + + + + +/** +@publishedAll +@released + +Number Modes available to select. +*/ +enum TDigitType + { + EDigitTypeUnknown = 0x0000, + EDigitTypeWestern = 0x0030, + EDigitTypeArabicIndic = 0x0660, + EDigitTypeEasternArabicIndic = 0x6F0, + EDigitTypeDevanagari = 0x0966, + EDigitTypeBengali = 0x09E6, + EDigitTypeGurmukhi = 0x0A66, + EDigitTypeGujarati = 0x0AE6, + EDigitTypeOriya = 0x0B66, + EDigitTypeTamil = 0x0BE6, + EDigitTypeTelugu = 0x0C66, + EDigitTypeKannada = 0x0CE6, + EDigitTypeMalayalam = 0x0D66, + EDigitTypeThai = 0x0E50, + EDigitTypeLao = 0x0ED0, + EDigitTypeTibetan = 0x0F20, + EDigitTypeMayanmar = 0x1040, + EDigitTypeKhmer = 0x17E0, + EDigitTypeAllTypes = 0xFFFF + }; + + + + +/** +@publishedAll +@released + +Defines the daylight saving zones. +*/ +enum TDaylightSavingZone + { + /** + The home daylight saving zone. Its value is usually the same as that of the + zone in which the home city is located, but may differ. In this case, the + value for home overrides the value of the zone in which home is located. + */ + EDstHome=0x40000000, + + /** + No daylight saving zone. + */ + EDstNone=0, + + /** + The European daylight saving zone. + */ + EDstEuropean=1, + + /** + The Northern hemisphere (non-European) daylight saving zone. + */ + EDstNorthern=2, + + /** + Southern hemisphere daylight saving zone. + */ + EDstSouthern=4 + }; + + + + +/** +@internalComponent + +Indicates how negative currency values are formatted. +*/ +enum TNegativeCurrencyFormat // must match TLocale:: version, included here so ELOCL.DLL can see it + { + E_NegC_LeadingMinusSign, + E_NegC_InBrackets,// this one must be non-zero for binary compatibility with the old TBool TLocale::iCurrencyNegativeInBrackets which was exposed in the binary interface because it was accessed via *inline* functions + E_NegC_InterveningMinusSignWithSpaces, + E_NegC_InterveningMinusSignWithoutSpaces, + E_NegC_TrailingMinusSign + }; + +/** +@internalComponent + + +Indicates how the device universal time is maintained +*/ +enum TDeviceTimeState // must match TLocale:: version + { + /** Universal time is maintained by the device RTC and the user selection + of the locale of the device indicating offset from GMT and daylight saving*/ + EDeviceUserTime, + + /** Universal time and offset from GMT is supplied by the mobile network + and maintained by device RTC */ + ENITZNetworkTimeSync + }; + + + +/** +@publishedAll +@released + +Defines the days of the week. + +The enumerator symbol names correspond with the days of the week, +i.e. EMonday refers to Monday etc. +*/ +enum TDay + { + EMonday, + ETuesday, + EWednesday, + EThursday, + EFriday, + ESaturday, + ESunday + }; + + + + +/** +@publishedAll +@released + +Defines the months of the year. + +The enumerator symbol names correspond with the months of the year, +i.e. EJanuary refers to January etc. +*/ +enum TMonth + { + EJanuary, + EFebruary, + EMarch, + EApril, + EMay, + EJune, + EJuly, + EAugust, + ESeptember, + EOctober, + ENovember, + EDecember + }; + + + + +/** +@publishedAll +@released + +Handle ownership flags. + +The flags indicate whether a handle being opened is owned by a process or +a thread. + +Ownership by a process means that the handle instance can be used by all +threads in the process to access the Kernel side object that the +handle represents. + +Ownership by a thread means that the handle instance can only be used by the +thread that creates or opens the handle. + +An enumerator of this type is passed to all member functions of RHandleBase, +and classes derived from RHandleBase, which open a handle. +*/ +enum TOwnerType { + /** + Ownership of the handle is to be vested in the process. + */ + EOwnerProcess, + + /** + Ownership of the handle is to be vested in the thread. + */ + EOwnerThread + }; + + + + +const TInt KCreateProtectedObject = (TInt)0x80000000; + + + + + +/** +@publishedAll +@released + +Defines process priorities. + +The enumerator values are passed to RProcess::SetPriority(). + +The priorities are listed in relative order stating with the lowest. +*/ +enum TProcessPriority + { + EPriorityLow=150, + EPriorityBackground=250, + EPriorityForeground=350, + EPriorityHigh=450, + EPriorityWindowServer=650, + EPriorityFileServer=750, + EPriorityRealTimeServer=850, + EPrioritySupervisor=950 + }; + + + + +/** +@publishedAll +@released + +Defines thread priorities. + +The enumerator values are passed to RThread::SetPriority(). + +The relative priorities are listed in order starting with the lowest. + +The absolute thread priorities are listed in order starting with the lowest. +*/ +enum TThreadPriority + { + EPriorityNull=(-30), + EPriorityMuchLess=(-20), + EPriorityLess=(-10), + EPriorityNormal=0, + EPriorityMore=10, + EPriorityMuchMore=20, + EPriorityRealTime=30, + EPriorityAbsoluteVeryLow=100, + EPriorityAbsoluteLowNormal=150, + EPriorityAbsoluteLow=200, + EPriorityAbsoluteBackgroundNormal=250, + EPriorityAbsoluteBackground=300, + EPriorityAbsoluteForegroundNormal=350, + EPriorityAbsoluteForeground=400, + EPriorityAbsoluteHighNormal=450, + EPriorityAbsoluteHigh=500, + EPriorityAbsoluteRealTime1=810, + EPriorityAbsoluteRealTime2=820, + EPriorityAbsoluteRealTime3=830, + EPriorityAbsoluteRealTime4=840, + EPriorityAbsoluteRealTime5=850, + EPriorityAbsoluteRealTime6=860, + EPriorityAbsoluteRealTime7=870, + EPriorityAbsoluteRealTime8=880 + }; + + +/** +@publishedAll +@released + +A list of exception types which a thread's exception handler might deal with. +An enumerator of this type is passed to User::IsExceptionHandled() +and User::RaiseException(). + +While an exception handler can deal with exceptions as listed in the exception +constants set, a TExcType is simply a type of exception. +For example, EExcIntegerDivideByZero and EExcIntegerOverflow are types +of KExceptionInteger exception. +*/ +enum TExcType + { + EExcGeneral=0, /// + +#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS +#include +#endif + +#endif