Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <e32const.h>

__Align

__Align (s) ((((s)+__Size-1)/__Size)*__Size)

Description

Aligns the specified value on the boundary defined by __Size. This is usually 4 for byte alignment or 2 for double-byte alignment.

Parameters

s

The value to be aligned.

[Top]


Typedef TThreadFunction

typedef TInt(* TThreadFunction)(TAny*);

Description

Defines a pointer to a thread function which takes a pointer of type TAny and returns a TInt.

A function of this type is passed as parameter to RThread::Create(const TDesC &,TThreadFunction,TInt,TInt,TInt,TAny *,TOwnerType) when creating a thread. Control passes to this function when the thread is first scheduled for execution.

See also:

[Top]


Typedef TLibraryFunction

typedef TInt(* TLibraryFunction)();

Description

Defines a function that takes no arguments but returns a TInt.

This is a type which is returned from a call to RLibrary::Lookup(TInt)const.

See also:

[Top]


Typedef TLibraryEntry

typedef TInt(* TLibraryEntry)(TInt);

Description

Defines a function that takes a single argument of type TInt and returns a TInt.

This is a type which is returned from a call to RLibrary::EntryPoint().

See also:

[Top]


Typedef TExceptionHandler

typedef void(* TExceptionHandler)(TExcType);

Description

Defines an exception handler function which takes a TExcType as an argument, and returns void.

A function of this type is an exception handler used by member functions of a thread handle, RThreadRThread.

See also:

[Top]


Enum TMediaType

TMediaType

Description

Defines the possible media types.

EMediaNotPresent

EMediaUnknown

EMediaFloppy

EMediaHardDisk

Solid-state media.

EMediaCdRom

EMediaRam

EMediaFlash

EMediaRom

EMediaRemote

EMediaNANDFlash

EMediaRotatingMedia

Rotating media.

[Top]


Enum TBatteryState

TBatteryState

Description

Defines the state of a battery, if supported.

EBatNotSupported

EBatGood

EBatLow

[Top]


Enum TFalse

TFalse

Description

An enumerator with a single enumeration value that defines the Boolean value false in Symbian OS.

EFalse

Defines the value false that is passed to a TBool type.

[Top]


Enum TTrue

TTrue

Description

An enumerator with a single enumeration value that defines the Boolean value true in Symbian OS.

ETrue

Defines the value true that is passed to a TBool type.

[Top]


Enum TAllowDuplicates

TAllowDuplicates

Description

Defines flags that can be used to indicate whether duplicates, for example in a list, are allowed.

ENoDuplicates

No duplicates allowed.

EAllowDuplicates

Duplicates allowed.

[Top]


Enum TRadix

TRadix

Description

An enumeration whose enumerators determine the number system to be used when converting numbers into a character format.

See also:

EBinary

Convert number into binary character representation.

EOctal

Convert number into octal character representation.

EDecimal

Convert number into decimal character representation.

EHex

Convert number into hexadecimal character representation.

[Top]


Enum TDateFormat

TDateFormat

Description

Defines the date formats.

EDateAmerican

US format (mm/dd/yyyy)

EDateEuropean

European format (dd/mm/yyyy)

EDateJapanese

Japanese format (yyyy/mm/dd)

[Top]


Enum TTimeFormat

TTimeFormat

Description

Defines the time formats as either 12 hour or 24 hour.

ETime12

ETime24

[Top]


Enum TClockFormat

TClockFormat

Description

Defines the clock display formats, as either analog or digital.

EClockAnalog

EClockDigital

[Top]


Enum TUnitsFormat

TUnitsFormat

Description

Enumerates the units of measurement as either Imperial or Metric.

EUnitsImperial

EUnitsMetric

[Top]


Enum TAmPm

TAmPm

Description

Identifies a time as being am or pm.

EAm

EPm

[Top]


Enum TLocalePos

TLocalePos

Description

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.

ELocaleBefore

The currency symbol is located before the currency amount. The am/pm text is located before the time.

ELocaleAfter

The currency symbol is located after the currency amount. The am/pm text is located after the time.

[Top]


Enum TDigitType

TDigitType

Description

Number Modes available to select.

EDigitTypeUnknown

EDigitTypeWestern

EDigitTypeArabicIndic

EDigitTypeEasternArabicIndic

EDigitTypeDevanagari

EDigitTypeBengali

EDigitTypeGurmukhi

EDigitTypeGujarati

EDigitTypeOriya

EDigitTypeTamil

EDigitTypeTelugu

EDigitTypeKannada

EDigitTypeMalayalam

EDigitTypeThai

EDigitTypeLao

EDigitTypeTibetan

EDigitTypeMayanmar

EDigitTypeKhmer

EDigitTypeAllTypes

[Top]


Enum TDaylightSavingZone

TDaylightSavingZone

Description

Defines the daylight saving zones.

EDstHome

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.

EDstNone

No daylight saving zone.

EDstEuropean

The European daylight saving zone.

EDstNorthern

The Northern hemisphere (non-European) daylight saving zone.

EDstSouthern

Southern hemisphere daylight saving zone.

[Top]


Enum TDay

TDay

Description

Defines the days of the week.

The enumerator symbol names correspond with the days of the week, i.e. EMonday refers to Monday etc.

EMonday

ETuesday

EWednesday

EThursday

EFriday

ESaturday

ESunday

[Top]


Enum TMonth

TMonth

Description

Defines the months of the year.

The enumerator symbol names correspond with the months of the year, i.e. EJanuary refers to January etc.

EJanuary

EFebruary

EMarch

EApril

EMay

EJune

EJuly

EAugust

ESeptember

EOctober

ENovember

EDecember

[Top]


Enum TOwnerType

TOwnerType

Description

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 RHandleBaseRHandleBase, and classes derived from RHandleBaseRHandleBase, which open a handle.

EOwnerProcess

Ownership of the handle is to be vested in the process.

EOwnerThread

Ownership of the handle is to be vested in the thread.

[Top]


Enum TProcessPriority

TProcessPriority

Description

Defines process priorities.

The enumerator values are passed to RProcess::SetPriority(TProcessPriority)const.

The priorities are listed in relative order stating with the lowest.

EPriorityLow

EPriorityBackground

EPriorityForeground

EPriorityHigh

EPriorityWindowServer

EPriorityFileServer

EPriorityRealTimeServer

EPrioritySupervisor

[Top]


Enum TThreadPriority

TThreadPriority

Description

Defines thread priorities.

The enumerator values are passed to RThread::SetPriority(TThreadPriority)const.

The relative priorities are listed in order starting with the lowest.

The absolute thread priorities are listed in order starting with the lowest.

EPriorityNull

EPriorityMuchLess

EPriorityLess

EPriorityNormal

EPriorityMore

EPriorityMuchMore

EPriorityRealTime

EPriorityAbsoluteVeryLow

EPriorityAbsoluteLowNormal

EPriorityAbsoluteLow

EPriorityAbsoluteBackgroundNormal

EPriorityAbsoluteBackground

EPriorityAbsoluteForegroundNormal

EPriorityAbsoluteForeground

EPriorityAbsoluteHighNormal

EPriorityAbsoluteHigh

EPriorityAbsoluteRealTime1

EPriorityAbsoluteRealTime2

EPriorityAbsoluteRealTime3

EPriorityAbsoluteRealTime4

EPriorityAbsoluteRealTime5

EPriorityAbsoluteRealTime6

EPriorityAbsoluteRealTime7

EPriorityAbsoluteRealTime8

[Top]


Enum TExcType

TExcType

Description

A list of exception types which a thread's exception handler might deal with. An enumerator of this type is passed to User::IsExceptionHandled(TExcType) and User::RaiseException(TExcType).

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.

EExcGeneral

A miscellaneous exception.

EExcIntegerDivideByZero

An attempt was made to divide an integer by zero.

EExcSingleStep

Raised after executing an instruction, when CPU is in single-step mode.

EExcBreakPoint

A break point was hit.

EExcIntegerOverflow

An integer value overflowed.

EExcBoundsCheck

Access to an out of bounds array element was caught.

EExcInvalidOpCode

The CPU reached an invalid instruction.

EExcDoubleFault

A fault occurred while handling a previous exception or interrupt.

EExcStackFault

The thread ran out of stack space.

EExcAccessViolation

The thread attempted to access memory in an unauthorized area.

EExcPrivInstruction

Attempted to execute an instruction in wrong machine mode.

EExcAlignment

The thread tried to read or write non-aligned data.

EExcPageFault

Thread could not access the memory page requested.

EExcFloatDenormal

An operand in a floating point operation was denormal.

EExcFloatDivideByZero

An attempt was made to divide a floating point number by zero.

EExcFloatInexactResult

The result of a floating point operation could not be represented precisely.

EExcFloatInvalidOperation

The result of a floating point operation was an ill-defined quantity.

EExcFloatOverflow

The result of a floating point operation was too large to be represented.

EExcFloatStackCheck

The result of a floating point operation caused the stack to over or underflow.

EExcFloatUnderflow

The result of a floating point operation was too small to be represented.

EExcAbort

This exception is not raised by the Kernel, though it may be raised by a user thread on itself.

EExcKill

This exception is not raised by the Kernel, though it may be raised by a user thread on itself.

EExcUserInterrupt

May be used to indicate a general exception.

EExcDataAbort

The thread has tried to read data from an invalid address.

EExcCodeAbort

The thread has tried to fetch an instruction from an invalid address.

EExcMaxNumber

Do not use.

EExcInvalidVector

Do not use.

[Top]


Enum TExitType

TExitType

Description

Identifies how a thread or process has ended.

While a thread or process is alive, its exit type is always EExitPending.

Both RThread::ExitType()const and RProcess::ExitType()const return a TExitType.

See also:

EExitKill

The thread or process has ended under normal conditions, i.e. as a result of either: 1. The thread or process running to completion. 2. User::Exit(TInt) being invoked. 3. RThread::Kill(TInt) or RProcess::Kill(TInt) being invoked on the RThreadRThread or RProcessRProcess handle, respectively.

EExitTerminate

The thread or process has ended as a result of a terminate, i.e. Terminate() has been called on the RThreadRThread or RProcessRProcess handle.

EExitPanic

The thread or process has been panicked.

EExitPending

The thread or process is alive.

[Top]


Enum TAlign

TAlign

Description

An enumeration whose enumerators govern the alignment of data which is copied or formatted into a descriptor.

See also:

ELeft

Data is left aligned

ECenter

Data is centered

ERight

Data is right aligned

[Top]


Enum TLeave

TLeave

Description

A value, which when passed to the new operator, indicates that the operation is to leave if insufficient memory available.

ELeave

[Top]


Enum TFirstWeekRule

TFirstWeekRule

Description

Defines the way in which the first week in a year is determined.

EFirstWeek

The first week in the year is always the week containing the first day of the year.

EFirstFourDayWeek

If at least four days of the new year occur during the week containing the first day then this is the first week in the year. Otherwise the first week in the year is the following week. This is the default and complies with the international standard.

EFirstFullWeek

The first week in the year is the first week of which all seven days occur within the new year.

[Top]


Enum TTimerLockSpec

TTimerLockSpec

Description

Timer lock specifications.

They are used by CTimer::Lock(TTimerLockSpec) to define the fraction of a second in which to call its RunL() function.

EOneOClock

Timer tick is at 1/12 past the second.

ETwoOClock

Timer tick is at 2/12 past the second

EThreeOClock

Timer tick is at 3/12 past the second

EFourOClock

Timer tick is at 4/12 past the second

EFiveOClock

Timer tick is at 5/12 past the second

ESixOClock

Timer tick is at 6/12 past the second

ESevenOClock

Timer tick is at 7/12 past the second

EEightOClock

Timer tick is at 8/12 past the second

ENineOClock

Timer tick is at 9/12 past the second

ETenOClock

Timer tick is at 10/12 past the second

EElevenOClock

Timer tick is at 11/12 past the second

ETwelveOClock

Timer tick is on the second

[Top]


Enum TChanges

TChanges

Description

Defines the possible environment changes which may be reported by a change notifier through the RChangeNotifierRChangeNotifier interface.

Each enumerator corresponds to a distinct type of event.

The changes are reported through a TRequestStatusTRequestStatus object when a request to the change notifier completes. As each enumerator value represents a separate bit, any combination of events can be reported.

See also:

EChangesLocale

The system locale has changed.

Typically this event occurs as a result of a call to TLocale::Set()const.

EChangesMidnightCrossover

The system time has passed midnight.

EChangesThreadDeath

A thread has died.

This event is reported when any thread in the system dies.

EChangesPowerStatus

The status of the power supply has changed.

EChangesSystemTime

The system time has changed.

EChangesFreeMemory

The free memory level has crossed a specified threshold value.

EChangesOutOfMemory

A memory allocation has failed due to insufficient free memory.

EChangesLowMemory

The free memory level has fallen below the low-memory threshold

[Top]


Enum TProcessParameterType

TProcessParameterType

Description

Defines the type of environment data passed to a process when that process is created.

The data can be either a handle or just binary data.

EHandle

EBinaryData

[Top]


Enum TIpcSessionType

TIpcSessionType

Description

Client/Server Session types.

EIpcSession_Unsharable

The session is not sharable with other threads.

EIpcSession_Sharable

The session is sharable with other threads in the same process.

EIpcSession_GlobalSharable

The session is sharable with all other threads in the system.

[Top]


Enum TFloatingPointType

TFloatingPointType

Description

Hardware floating point types.

EFpTypeNone

No hardware floating point.

EFpTypeVFPv2

ARM VFPv2

EFpTypeVFPv3

ARM VFPv3

[Top]


Enum TFloatingPointMode

TFloatingPointMode

Description

Hardware floating point execution modes.

EFpModeRunFast

Run in the fastest mode available - results of calculations may not be exactly as the IEEE standard in some cases. On ARM VFPv2 hardware this corresponds to RunFast mode.

EFpModeIEEENoExceptions

Perform all calculations as specified in the IEEE standard, but do not generate floating point exceptions. This is compatible with the Java floating point model. This is the default.

[Top]


Enum TFloatingPointRoundingMode

TFloatingPointRoundingMode

Description

Hardware floating point rounding modes.

EFpRoundToNearest

Round to the nearest value. This is the default.

EFpRoundToPlusInfinity

Round toward positive infinity.

EFpRoundToMinusInfinity

Round toward negative infinity.

EFpRoundToZero

Round toward zero.


e32const.h Global variables

[Top]


KDefaultJustifyWidth

const TInt KDefaultJustifyWidth=(-1);

Description

The default width value used when appending and justifying data in a descriptor.

See also:

[Top]


KMaxCheckedUid

const TInt KMaxCheckedUid=3;

Description

Defines the number of TUids that form a TUidTypeTUidType.

See also:

[Top]


KNumTraceMaskWords

const TInt KNumTraceMaskWords=8;

Description

Defines the number of 32-bit debug trace mask words.

[Top]


KMaxUidName

const TInt KMaxUidName=10;

Description

Defines the maximum length for the text form of a UID name.

See also:

[Top]


KMaxModuleVersionName

const TInt KMaxModuleVersionName=10;

Description

Defines the maximum length of a module name.

[Top]


KMaxName

const TInt KMaxName=0x80;

Description

Defines the maximum length of the name of a reference counted object.

See also:

[Top]


KMaxKernelName

const TInt KMaxKernelName=0x50;

Description

Defines the maximum length of the name of a reference counted kernel-side object.

[Top]


KMaxProcessName

const TInt KMaxProcessName=(KMaxKernelName-KMaxUidName-KMaxModuleVersionName-4);

Description

Defines the maximum size of a process name.

[Top]


KMaxLibraryName

const TInt KMaxLibraryName=(KMaxKernelName-KMaxUidName-KMaxModuleVersionName);

Description

Defines the maximum size of a library name.

[Top]


KMaxInfoName

const TInt KMaxInfoName=0x10;

Description

Defines the maximum length of a TInfoName object.

[Top]


KMaxFullName

const TInt KMaxFullName=(KMaxName<<1);

Description

Defines the maximum length of the full name of a reference counted object.

See also:

[Top]


KMaxPassword

const TInt KMaxPassword=0x10;

Description

The maximum length for a password buffer.

[Top]


KMaxExitCategoryName

const TInt KMaxExitCategoryName=0x10;

Description

The maximum length of a category name.

See also:

[Top]


KMaxDayName

const TInt KMaxDayName=0x20;

Description

The maximum length of the full text name for a day of the week.

[Top]


KMaxDayNameAbb

const TInt KMaxDayNameAbb=0x08;

Description

The maximum length of the abbreviated text name for a day of the week.

See also:

[Top]


KMaxDays

const TInt KMaxDays=7;

Description

Defines the maximum size of arrays or data structures required to hold the names of the days of the week.

[Top]


KMaxMonthName

const TInt KMaxMonthName=0x20;

Description

The maximum length of the full text name for a month.

[Top]


KMaxMonthNameAbb

const TInt KMaxMonthNameAbb=0x08;

Description

The maximum length of the abbreviated text name for a month.

[Top]


KMaxMonths

const TInt KMaxMonths=12;

Description

Defines the maximum size of arrays or data structures required to hold the names of the months of the year.

[Top]


KMaxSuffix

const TInt KMaxSuffix=0x04;

Description

The maximum length of the text for a date suffix.

See also:

[Top]


KMaxSuffixes

const TInt KMaxSuffixes=31;

Description

Defines the maximum size of arrays and data structures required to hold date suffix strings.

[Top]


KMaxAmPmName

const TInt KMaxAmPmName=0x04;

Description

The maximum length of the text for AM and PM.

[Top]


KMaxAmPms

const TInt KMaxAmPms=2;

Description

Defines the maximum size of arrays and data structures required to hold am/pm strings.

[Top]


KMaxDateSeparators

const TInt KMaxDateSeparators=4;

Description

Defines the maximum number of date separator characters in a date string.

[Top]


KMaxTimeSeparators

const TInt KMaxTimeSeparators=4;

Description

Defines the maximum number of time separator characters in a time string.

[Top]


KMaxTranslateTable

const TInt KMaxTranslateTable=0x100;

Description

Defines the maximum size of data structures to hold the translate tables for Western European alphabetic conversions.

[Top]


KMaxCurrencySymbol

const TInt KMaxCurrencySymbol=0x08;

Description

The maximum length of the text for a currency symbol.

[Top]


KMaxShortDateFormatSpec

const TInt KMaxShortDateFormatSpec=40;

Description

The maximum length of the short date format specification text.

[Top]


KMaxLongDateFormatSpec

const TInt KMaxLongDateFormatSpec=80;

Description

The maximum length of the short date format specification text.

[Top]


KMaxTimeFormatSpec

const TInt KMaxTimeFormatSpec=60;

Description

The maximum length of the time string formatting commands.

[Top]


KMaxFileName

const TInt KMaxFileName=0x100;

Description

Defines the maximum length of a filename.

[Top]


KMaxVersionName

const TInt KMaxVersionName=0x10;

Description

The maximum length of the character representation of version information.

See also:

[Top]


KMaxPath

const TInt KMaxPath=0x100;

Description

Defines the maximum length of a path.

See also:

[Top]


KMaxDeviceInfo

const TInt KMaxDeviceInfo=0x80;

Description

Defines the maximum length of a TDeviceInfo object.

[Top]


KMaxMediaPassword

const TInt KMaxMediaPassword=16;

Description

The maximum size of the password required to unlock a media drive.

[Top]


KMinHeapSize

const TInt KMinHeapSize=0x100;

Description

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 also:

[Top]


KDstHome

const TInt KDstHome=0x01;

Description

Not used by Symbian OS.

[Top]


KDstEuropean

const TInt KDstEuropean=0x02;

Description

Not used by Symbian OS.

[Top]


KDstNorthern

const TInt KDstNorthern=0x04;

Description

Not used by Symbian OS.

[Top]


KDstSouthern

const TInt KDstSouthern=0x08;

Description

Not used by Symbian OS.

[Top]


KDefaultStackSize

const TInt KDefaultStackSize=0x2000;

Description

A default stack size that can be used when creating threads.

[Top]


KNoChar

const TUint KNoChar=0xffffffffu;

Description

Indicates an undefined character, used internally when formatting text.

[Top]


KIndexPtr

const TInt KIndexPtr=(-1);

Description

Defines an index value that is interpreted by the TKeyTKey class, and derived classes, as having a specific meaning.

See also:

[Top]


KHandleNoClose

const TInt KHandleNoClose=0x00008000;

Description

A flag used by the kernel to mark a handle as not being closable.

[Top]


KHandleFlagLocal

const TInt KHandleFlagLocal=0x40000000;

Description

A flag used by the kernel to mark a handle as being local.

[Top]


KCurrentProcessHandle

const TInt KCurrentProcessHandle=0xffff0000|KHandleNoClose;

Description

A flag used by the Kernel to indicate the current process.

[Top]


KCurrentThreadHandle

const TInt KCurrentThreadHandle=0xffff0001|KHandleNoClose;

Description

A flag used by the Kernel to indicate the current thread.

[Top]


KNullHandle

const TInt KNullHandle=0;

Description

Defines a handle number value of zero.

See also:

[Top]


KDefaultUnit

const TInt KDefaultUnit=0x00;

Description

Defines a default unit. Not generally used by Symbian OS.

[Top]


KNullUnit

const TInt KNullUnit=0xffffffff;

Description

The device unit that must be passed in a call to RBusLogicalChannel::DoCreate(const TDesC &,const TVersion &,TInt,const TDesC *,const TDesC8 *,TOwnerType,TBool), if units are not permitted.

[Top]


KMaxUnits

const TInt KMaxUnits=0x20;

Description

The maximum unit number that can be passed in a call to RBusLogicalChannel::DoCreate(const TDesC &,const TVersion &,TInt,const TDesC *,const TDesC8 *,TOwnerType,TBool).

[Top]


KMaxMessageArguments

const TInt KMaxMessageArguments=0x04;

Description

Defines the maximum number of message arguments that can be passed across the user side/kernel side boundary.

[Top]


KDefaultRealWidth

const TInt KDefaultRealWidth=20;

Description

The default width of the character representation of a real number, used by the default constructor of a TRealFormatTRealFormat object and the formatting functions of descriptors.

See also:

[Top]


KMinHeapGrowBy

const TInt KMinHeapGrowBy=0x1000;

Description

The default value used by UserHeap::ChunkHeap(const TDesC *,TInt,TInt,TInt,TInt,TBool) for defining increments to the size of a chunk, when no explicit value specified by the caller.

See also:

[Top]


KMaxExponentConversion

const TInt KMaxExponentConversion=99;

Description

Not used by Symbian OS.

[Top]


KNullUidValue

const TInt KNullUidValue=0;

Description

Defines a Null UID value.

See also:

[Top]


KDeltaTimerDefaultGranularity

Interface status: deprecated

const TInt KDeltaTimerDefaultGranularity=100000;

Description

The timer granularity used by a CDeltaTimerCDeltaTimer object is now the tick period and this constant is obsolete.

See also:

[Top]


KMaxTInt8

const TInt KMaxTInt8=0x7f;

Description

The largest possible value for a TInt8.

[Top]


KMinTInt8

const TInt KMinTInt8=(-128);

Description

The smallest possible value for a TInt8.

[Top]


KMaxTUint8

const TUint KMaxTUint8=0xffu;

Description

The largest possible value for a TUint8.

[Top]


KMaxTInt16

const TInt KMaxTInt16=0x7fff;

Description

The largest possible value for a TInt16.

[Top]


KMinTInt16

const TInt KMinTInt16=(-32768);

Description

The smallest possible value for a TInt16.

[Top]


KMaxTUint16

const TUint KMaxTUint16=0xffffu;

Description

The largest possible value for a TUint16.

[Top]


KMaxTInt32

const TInt KMaxTInt32=0x7fffffff;

Description

The largest possible value for a TInt32.

[Top]


KMinTInt32

const TInt KMinTInt32=(TInt)0x80000000;

Description

The smallest possible value for a TInt32.

[Top]


KMaxTUint32

const TUint KMaxTUint32=0xffffffffu;

Description

The largest possible value for a TUint32.

[Top]


KMaxTInt

const TInt KMaxTInt=0x7fffffff;

Description

The largest possible value for a TInt.

[Top]


KMinTInt

const TInt KMinTInt=(TInt)0x80000000;

Description

The smallest possible value for a TInt.

[Top]


KMaxTUint

const TUint KMaxTUint=0xffffffffu;

Description

The largest possible value for a TUint.

[Top]


KMaxTInt64

const TInt64 KMaxTInt64=I64LIT(0x7fffffffffffffff);

Description

The largest possible value for a TInt64.

[Top]


KMinTInt64

const TInt64 KMinTInt64=UI64LIT(0x8000000000000000);

Description

The smallest possible value for a TInt64.

[Top]


KMaxTUint64

const TUint64 KMaxTUint64=UI64LIT(0xffffffffffffffff);

Description

The largest possible value for a TUint64.

[Top]


KMatchAny

const TUint KMatchAny='*';

Description

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.

[Top]


KMatchOne

const TUint KMatchOne='?';

Description

Defines the character ?, and represents a single character in a path component, filename or extension.

It is used in a TParse file specification.

[Top]


KMaxLocalDrives

const TInt KMaxLocalDrives=16;

Description

Defines the maximum number of local drives.

[Top]


KMaxPBusSockets

const TInt KMaxPBusSockets=4;

Description

Defines the maximum number of peripheral bus sockets.

[Top]


KNoCallEntryPoint

const TInt KNoCallEntryPoint=0x01;

Description

Not used by Symbian OS.

[Top]


KRequestPending

const TInt KRequestPending=(-KMaxTInt);

Description

The value to which CActive::iStatus is set by an active object's service provider before the service provider initiates an asynchronous request.

[Top]


KDriveAttLocal

const TUint KDriveAttLocal=0x01;

Description

Drive attribute - drive is local.

[Top]


KDriveAttRom

const TUint KDriveAttRom=0x02;

Description

Drive attribute - ROM drive.

[Top]


KDriveAttRedirected

const TUint KDriveAttRedirected=0x04;

Description

Drive attribute - output from a process on one drive is redirected to another drive.

[Top]


KDriveAttSubsted

const TUint KDriveAttSubsted=0x08;

Description

Drive attribute - drive letter has been substituted (assigned a path).

[Top]


KDriveAttInternal

const TUint KDriveAttInternal=0x10;

Description

Drive attribute - drive is internal (not removable).

[Top]


KDriveAttRemovable

const TUint KDriveAttRemovable=0x20;

Description

Drive attribute - drive is removable.

[Top]


KDriveAttRemote

const TUint KDriveAttRemote=0x40;

Description

Drive attribute - drive is remote.

[Top]


KDriveAttTransaction

const TUint KDriveAttTransaction=0x80;

Description

Drive attribute -.

[Top]


KDriveAttPageable

const TUint KDriveAttPageable=0x100;

Description

Drive attribute - drive is used for paging.

[Top]


KDriveAttLogicallyRemovable

const TUint KDriveAttLogicallyRemovable=0x200;

Description

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.

[Top]


KDriveAttHidden

const TUint KDriveAttHidden=0x400;

Description

Drive attribute - drive is hidden. A drive which has its hidden attribute set would be excluded from the list of available drives.

[Top]


KDriveAttAll

const TUint KDriveAttAll=0x100000;

Description

Drive attribute - It can be set in a search in order to instruct that all drives should be returned.

[Top]


KDriveAttExclude

const TUint KDriveAttExclude=0x40000;

Description

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.

[Top]


KDriveAttExclusive

const TUint KDriveAttExclusive=0x80000;

Description

Drive attribute - It can be set in combination with other drive attributes in order to search and return exclusively drives with these attributes set.

[Top]


KMediaAttVariableSize

const TUint KMediaAttVariableSize=0x01;

Description

Media attribute - the media capacity can change over time.

[Top]


KMediaAttDualDensity

const TUint KMediaAttDualDensity=0x02;

Description

Media attribute - media is dual density.

[Top]


KMediaAttFormattable

const TUint KMediaAttFormattable=0x04;

Description

Media attribute - media is formattable.

[Top]


KMediaAttWriteProtected

const TUint KMediaAttWriteProtected=0x08;

Description

Media attribute - media is write-protected.

[Top]


KMediaAttLockable

const TUint KMediaAttLockable=0x10;

Description

Media attribute - media is lockable; this is provided for lockable multi-media cards

[Top]


KMediaAttLocked

const TUint KMediaAttLocked=0x20;

Description

Media attribute - media is locked; this is provided for lockable multi-media cards

[Top]


KMediaAttHasPassword

const TUint KMediaAttHasPassword=0x40;

Description

Media attribute - media has password.

[Top]


KMediaAttReadWhileWrite

const TUint KMediaAttReadWhileWrite=0x80;

Description

[Top]


KMediaAttDeleteNotify

const TUint KMediaAttDeleteNotify=0x100;

Description

Media attribute - media supports TBusLocalDrive::DeleteNotify(TInt64,TInt)

[Top]


KMediaAttPageable

const TUint KMediaAttPageable=0x200;

Description

Media attribute - media supports paging

[Top]


KDriveFileSysFAT

const TUint KDriveFileSysFAT=0x01;

Description

Identifies a FAT file system

[Top]


KDriveFileSysROM

const TUint KDriveFileSysROM=0x02;

Description

Identifies a ROM file system.

[Top]


KDriveFileSysLFFS

const TUint KDriveFileSysLFFS=0x03;

Description

Identifies an LFFS file system.

[Top]


KDriveFileSysROFS

const TUint KDriveFileSysROFS=0x04;

Description

Identifies a read-only file system.

[Top]


KDriveFileNone

const TUint KDriveFileNone=0x05;

Description

Identifies a non-file system. That is a partition without any file system layer.

[Top]


KDialectMask

const TUint KDialectMask=0x03FF;

Description

The mask for the dialect bits

[Top]


KRealFormatTypesMask

const TInt KRealFormatTypesMask=0x00000007;

Description

A mask for the set of flags that govern the general format of the character representation of a real number.

These are the flags with symbols starting KRealFormat...

[Top]


KRealFormatFixed

const TInt KRealFormatFixed=1;

Description

Defines the general format of the character representation of a real number. The TRealFormat::iType data member is set to one of these.

The real number is converted to fixed format which has the general pattern: "nnn.ddd", where nnn is the integer portion and ddd is the decimal portion. A negative value is prefixed by a minus sign.

The number of decimal places generated is defined by the value of TRealFormat::iPlaces. Trailing zeroes are generated as required. If necessary, the decimal portion is rounded to fit the specification. If this value is zero, no decimal point and no decimal portion is generated.

Triad separation is available, defined by TRealFormat::iTriad and TRealFormat::iTriLen.

Note that a zero value is converted either to the form "0.000..." with iPlaces '0' characters after the decimal point, if iPlaces is greater than zero, or to "0" if iPlaces is zero.

See also:

[Top]


KRealFormatExponent

const TInt KRealFormatExponent=2;

Description

Defines the general format of the character representation of a real number. The TRealFormat::iType data member is set to one of these.

The real number is converted to scientific format with one non-zero digit before the decimal point and a number of digits after the decimal point. Hence the number has the general pattern: "n.dddE+ee" or "n.dddE-ee", or "n.dddE+eee" or "n.dddE-eee".

The decimal portion is followed by the character 'E', a sign ('+' or '-') and the exponent as two digits, including leading zeroes, if necessary. If necessary, the decimal portion is rounded.

A negative value is prefixed by a minus sign.

If the flag KUseSigFigs is not set, TRealFormat::iPlaces defines the number of digits which follow the decimal point. If the flag KUseSigFigs is set, iPlaces defines the maximum number of significant digits to be generated.

Note that, by default, exponents are limited to two digits. Those numbers that require three digits must have the flag KAllowThreeDigitExp set. If iPlaces is zero, the value is rounded to one digit of precision and no decimal point is included.

Triad separation is not available.

Note that a zero value is converted either to the form "0.000...E+00" with iPlaces '0' characters after the decimal point, if iPlaces is greater than zero, or to "0E+00" if iPlaces is zero.

See also:

[Top]


KRealFormatGeneral

const TInt KRealFormatGeneral=3;

Description

Defines the general format of the character representation of a real number. The TRealFormat::iType data member is set to one of these.

The real number is converted either to fixed or scientific format. The format chosen is the one which can present the greater number of significant digits. Where both formats can present the same number of significant digits, fixed format is used.

The number of decimal places generated depends only on the value of TRealFormat::iWidth; the value of the iPlaces member is ignored.

Trailing zeroes in the decimal portion are discarded.

Triad separation is not available.

Note that a zero value is converted to "0".

See also:

[Top]


KRealFormatNoExponent

const TInt KRealFormatNoExponent=4;

Description

Defines the general format of the character representation of a real number. The TRealFormat::iType data member is set to one of these.

The same as KRealFormatFixed but the TRealFormat::iPlaces is interpreted as specifying the maximum number of significant digits.

Trailing zeroes in the decimal portion are discarded.

See also:

[Top]


KRealFormatCalculator

const TInt KRealFormatCalculator=5;

Description

Defines the general format of the character representation of a real number. The TRealFormat::iType data member is set to one of these.

The same as KRealFormatGeneral but TRealFormat::iPlaces is interpreted as specifying the maximum number of significant digits, and the number is displayed without an exponent whenever possible.

Trailing zeroes in the decimal portion are discarded.

See also:

[Top]


KRealFormatTypeFlagsMask

const TInt KRealFormatTypeFlagsMask=0x7C000000;

Description

A bitmask for all flags except those with symbols starting KRealFormat...

[Top]


KExtraSpaceForSign

const TInt KExtraSpaceForSign=0x40000000;

Description

A flag that modifies the format of the character representation of a real number.

It reduces the effective width by one character. This forces a large enough value for TRealFormat::iWidth to be chosen to guarantee that positive and negative numbers can be shown to the same precision.

It applies when TRealFormat::iType is set to KRealFormatFixed or KRealFormatGeneral, and should be ORed into TRealFormat::iType after one of these types has been set.

[Top]


KAllowThreeDigitExp

const TInt KAllowThreeDigitExp=0x20000000;

Description

A flag that modifies the format of the character representation of a real number.

It allows an exponent to be formatted whose magnitude is greater than 100. If this flag is not set, an attempt to format such a number fails.

If set, three digit exponents are allowed. If not set, only two digit exponents are allowed.

Applies when TRealFormat::iType is set to KRealFormatExponent or KRealFormatGeneral, and should be ORed into TRealFormat::iType after one of these types has been set.

[Top]


KUseSigFigs

const TInt KUseSigFigs=0x10000000;

Description

A flag that modifies the format of the character representation of a real number.

If set, the TRealFormat::iPlaces member is interpreted as the maximum number of significant digits to be generated.

Applies when TRealFormat::iType is set to KRealFormatExponent, and should be ORed into TRealFormat::iType after this type has been set.

[Top]


KDoNotUseTriads

const TInt KDoNotUseTriads=0x08000000;

Description

A flag that modifies the format of the character representation of a real number.

It disables triad separation.

Applies when TRealFormat::iType is set to KRealFormatFixed or KRealFormatNoExponent, and should be ORed into TRealFormat::iType after one of these types has been set.

[Top]


KGeneralLimit

const TInt KGeneralLimit=0x04000000;

Description

A flag that modifies the format of the character representation of a real number.

If set, this flag limits the precision to KPrecisionLimit digits. If not set, the precision defaults to KMaxPrecision digits.

This flag should be ORed into TRealFormat::iType.

[Top]


KExceptionAbort

const TUint KExceptionAbort=0x01;

Description

One of a set of flags that categorizes exceptions - associated with the abort exception only.

[Top]


KExceptionKill

const TUint KExceptionKill=0x02;

Description

One of a set of flags that categorizes exceptions - associated with the kill exception only.

[Top]


KExceptionUserInterrupt

const TUint KExceptionUserInterrupt=0x04;

Description

One of a set of flags that categorizes exceptions - general and user exceptions.

[Top]


KExceptionFpe

const TUint KExceptionFpe=0x08;

Description

One of a set of flags that categorizes exceptions - exceptions caused by illegal floating point operations. This exception is not guaranteed to be raised when a hardware floating point implementation is in use.

[Top]


KExceptionFault

const TUint KExceptionFault=0x10;

Description

One of a set of flags that categorizes exceptions - exceptions associated with executing instructions; includes protection faults, illegal instruction codes, page faults etc

[Top]


KExceptionInteger

const TUint KExceptionInteger=0x20;

Description

One of a set of flags that categorizes exceptions - exceptions caused by illegal operations on integer values.

[Top]


KExceptionDebug

const TUint KExceptionDebug=0x40;

Description

One of a set of flags that categorizes exceptions - exceptions raised when debugging code.

[Top]


KBit0

const TUint32 KBit0=0x00000001;

Description

Constant that defines the specified bit value.

[Top]


KBit1

const TUint32 KBit1=0x00000002;

Description

Constant that defines the specified bit value.

[Top]


KBit2

const TUint32 KBit2=0x00000004;

Description

Constant that defines the specified bit value.

[Top]


KBit3

const TUint32 KBit3=0x00000008;

Description

Constant that defines the specified bit value.

[Top]


KBit4

const TUint32 KBit4=0x00000010;

Description

Constant that defines the specified bit value.

[Top]


KBit5

const TUint32 KBit5=0x00000020;

Description

Constant that defines the specified bit value.

[Top]


KBit6

const TUint32 KBit6=0x00000040;

Description

Constant that defines the specified bit value.

[Top]


KBit7

const TUint32 KBit7=0x00000080;

Description

Constant that defines the specified bit value.

[Top]


KBit8

const TUint32 KBit8=0x00000100;

Description

Constant that defines the specified bit value.

[Top]


KBit9

const TUint32 KBit9=0x00000200;

Description

Constant that defines the specified bit value.

[Top]


KBit10

const TUint32 KBit10=0x00000400;

Description

Constant that defines the specified bit value.

[Top]


KBit11

const TUint32 KBit11=0x00000800;

Description

Constant that defines the specified bit value.

[Top]


KBit12

const TUint32 KBit12=0x00001000;

Description

Constant that defines the specified bit value.

[Top]


KBit13

const TUint32 KBit13=0x00002000;

Description

Constant that defines the specified bit value.

[Top]


KBit14

const TUint32 KBit14=0x00004000;

Description

Constant that defines the specified bit value.

[Top]


KBit15

const TUint32 KBit15=0x00008000;

Description

Constant that defines the specified bit value.

[Top]


KBit16

const TUint32 KBit16=0x00010000;

Description

Constant that defines the specified bit value.

[Top]


KBit17

const TUint32 KBit17=0x00020000;

Description

Constant that defines the specified bit value.

[Top]


KBit18

const TUint32 KBit18=0x00040000;

Description

Constant that defines the specified bit value.

[Top]


KBit19

const TUint32 KBit19=0x00080000;

Description

Constant that defines the specified bit value.

[Top]


KBit20

const TUint32 KBit20=0x00100000;

Description

Constant that defines the specified bit value.

[Top]


KBit21

const TUint32 KBit21=0x00200000;

Description

Constant that defines the specified bit value.

[Top]


KBit22

const TUint32 KBit22=0x00400000;

Description

Constant that defines the specified bit value.

[Top]


KBit23

const TUint32 KBit23=0x00800000;

Description

Constant that defines the specified bit value.

[Top]


KBit24

const TUint32 KBit24=0x01000000;

Description

Constant that defines the specified bit value.

[Top]


KBit25

const TUint32 KBit25=0x02000000;

Description

Constant that defines the specified bit value.

[Top]


KBit26

const TUint32 KBit26=0x04000000;

Description

Constant that defines the specified bit value.

[Top]


KBit27

const TUint32 KBit27=0x08000000;

Description

Constant that defines the specified bit value.

[Top]


KBit28

const TUint32 KBit28=0x10000000;

Description

Constant that defines the specified bit value.

[Top]


KBit29

const TUint32 KBit29=0x20000000;

Description

Constant that defines the specified bit value.

[Top]


KBit30

const TUint32 KBit30=0x40000000;

Description

Constant that defines the specified bit value.

[Top]


KBit31

const TUint32 KBit31=0x80000000;

Description

Constant that defines the specified bit value.

[Top]


KSet32

const TUint32 KSet32=0xffffffff;

Description

Constant that defines the specified bit value.

This is often used as a bit mask.

[Top]


KClear32

const TUint32 KClear32=0x00000000;

Description

Constant that defines the specified bit value.

This is often used as a bit mask.

[Top]


KKilo

const TInt KKilo=1024;

Description

Constant that defines the specified value.

[Top]


KMega

const TInt KMega=1024*1024;

Description

Constant that defines the specified value.

[Top]


KNullDebugPort

const TInt KNullDebugPort=-2;

Description

[Top]


KNullThreadId

const TUint KNullThreadId=0xffffffffu;

Description

A constant which represents a thread ID which will never be assigned to a thread. I.e. The following statement is always true; RThread::Id()const!=KNullThreadId

[Top]


KNullProcessId

const TUint KNullProcessId=0xffffffffu;

Description

A constant which represents a process ID which will never be assigned to a process. I.e. The following statement is always true; RProcess::Id()const!=KNullProcessId