53IMPORT_C TInt
memcompare(
const TUint8* aLeft, TInt aLeftLen,
const TUint8* aRight, TInt aRightLen);
86IMPORT_C TAny*
wordmove(TAny* aTrg,
const TAny* aSrc,
unsigned int aLength);
103IMPORT_C TAny*
memclr(TAny* aTrg,
unsigned int aLength);
124 IMPORT_C TAny*
memset(TAny* aTrg, TInt aValue,
unsigned int aLength);
141 IMPORT_C TAny*
memcpy(TAny* aTrg,
const TAny* aSrc,
unsigned int aLength);
158 IMPORT_C TAny*
memmove(TAny* aTrg,
const TAny* aSrc,
unsigned int aLength);
180inline TInt
Lim(TInt aVal,TUint aLimit)
181 {
return(((TUint)aVal)<=aLimit);}
199inline TInt
LimX(TInt aVal,TUint aLimit)
200 {
return(((TUint)aVal)<aLimit);}
217inline T
Min(T aLeft,T aRight)
218 {
return(aLeft<aRight ? aLeft : aRight);}
236inline T
Min(T aLeft,TUint aRight)
237 {
return(aLeft<(TInt)aRight ? aLeft : (T)aRight);}
254inline T
Max(T aLeft,T aRight)
255 {
return(aLeft<aRight ? aRight : aLeft);}
273inline T
Max(T aLeft,TUint aRight)
274 {
return(aLeft<(TInt)aRight ? (TInt)aRight : aLeft);}
291 {
return(aVal<0 ? -aVal : aVal);}
309inline TBool
Rng(T aMin,T aVal,T aMax)
310 {
return(aVal>=aMin && aVal<=aMax);}
326template <
class T,
class S>
327inline T*
PtrAdd(T* aPtr,S aVal)
328 {
return((T*)(((TUint8*)aPtr)+aVal));}
344template <
class T,
class S>
345inline T*
PtrSub(T* aPtr,S aVal)
346 {
return((T*)(((TUint8*)aPtr)-aVal));}
363 {
return((T)((((TUint)aValue)+
sizeof(TUint16)-1)&~(
sizeof(TUint16)-1)));}
380 {
return((T)((((TUint)aValue)+
sizeof(TUint32)-1)&~(
sizeof(TUint32)-1)));}
401 inline operator T&();
411#if !defined (__KERNEL_MODE__)
1072 inline operator TUint()
const;
1073#ifndef __KERNEL_MODE__
1077 inline TBool
Eos()
const;
1080 IMPORT_C TBool
IsLower()
const;
1081 IMPORT_C TBool
IsUpper()
const;
1082 IMPORT_C TBool
IsAlpha()
const;
1083 IMPORT_C TBool
IsDigit()
const;
1086 IMPORT_C TBool
IsSpace()
const;
1088 IMPORT_C TBool
IsGraph()
const;
1089 IMPORT_C TBool
IsPrint()
const;
1094 IMPORT_C TBool
IsTitle()
const;
1103 IMPORT_C
static TBool
Compose(TUint& aResult,
const TDesC16& aSource);
1104 IMPORT_C TBool
Decompose(TPtrC16& aResult)
const;
1111 inline static TUint
JoinSurrogate(TText16 aHighSurrogate, TText16 aLowSurrogate);
1124#ifndef __KERNEL_MODE__
1125#include <e32des16.h>
1131#if defined(_UNICODE) && !defined(__KERNEL_MODE__)
1132#define __Size (sizeof(TUint)/sizeof(TUint16))
1168typedef TPtrC16
TPtrC;
1213#ifndef __KERNEL_MODE__
1229typedef HBufC16
HBufC;
1270#define __Size (sizeof(TUint)/sizeof(TUint8))
1289typedef TDesC8
TDesC;
1308typedef TPtrC8
TPtrC;
1347#ifndef __KERNEL_MODE__
1367typedef HBufC8
HBufC;
1410#if defined(_UNICODE) && !defined(__KERNEL_MODE__)
1448#if defined(_UNICODE) && !defined(__KERNEL_MODE__)
1449class TBufC :
public TBufCBase16
1451class
TBufC :
public TBufCBase8
1456 inline TBufC(
const TText* aString);
1462 TText iBuf[__Align(S)];
1501#if defined(_UNICODE) && !defined(__KERNEL_MODE__)
1502class TBuf :
public TBufBase16
1504class
TBuf :
public TBufBase8
1509 inline explicit TBuf(TInt aLength);
1510 inline TBuf(
const TText* aString);
1516 TText iBuf[__Align(S)];
1557 inline operator const TDesC&()
const;
1561#if !defined(_UNICODE) || defined(__KERNEL_MODE__)
1567#elif defined(__GCC32__)
1573#elif defined(__VC32__)
1580#elif defined(__CW32__)
1586#elif !defined(__TText_defined)
1587#error no typedef for __TText
1622_LIT8(KNullDesC8,
"");
1623#ifndef __KERNEL_MODE__
1651class TPckgC :
public TPtrC8
1654 inline TPckgC(
const T& aRef);
1676class TPckg :
public TPtr8
1679 inline TPckg(
const T& aRef);
1703class TPckgBuf :
public TAlignedBuf8<sizeof(T)>
1826#define KNullUid TUid::Null()
1840#ifndef __KERNEL_MODE__
1845 static inline TUid Uid(TInt aUid);
1870#ifndef __KERNEL_MODE__
1883 TUid iUid[KMaxCheckedUid];
1920 inline operator TUint32()
const;
1922 inline operator TUid()
const;
1961 inline operator TUint32()
const;
1974#if defined(__ARMCC__) && __ARMCC_VERSION >= 400000
1976#pragma diag_suppress 430
1982 inline operator const TSecureId&()
const;
1983 inline operator TUint32()
const;
1984 inline operator TUid()
const;
1988#if defined(__ARMCC__) && __ARMCC_VERSION >= 400000
1998#if defined(__ARMCC__) && __ARMCC_VERSION >= 400000
2000#pragma diag_suppress 430
2006 inline operator const TVendorId&()
const;
2007 inline operator TUint32()
const;
2008 inline operator TUid()
const;
2012#if defined(__ARMCC__) && __ARMCC_VERSION >= 400000
2025#define _LIT_SECURE_ID(name,value) const SSecureId name={value}
2037#define _LIT_VENDOR_ID(name,value) const SVendorId name={value}
2066 IMPORT_C
TVersion(TInt aMajor,TInt aMinor,TInt aBuild);
2114 inline TBool
operator<(TInt aVal)
const;
2120 ERequestPending = 2,
2146#ifndef __KERNEL_MODE__
2153 inline TPoint(TInt aX,TInt aY);
2165 IMPORT_C
void SetXY(TInt aX,TInt aY);
2193#ifndef __KERNEL_MODE__
2207 inline TPoint3D(TInt aX,TInt aY,TInt aZ);
2235 IMPORT_C
void SetXYZ(TInt aX,TInt aY,TInt aZ);
2298#ifndef __KERNEL_MODE__
2381 inline TInt
Handle()
const;
2382#ifdef __KERNEL_MODE__
2383 inline TInt Index()
const;
2384 inline TInt UniqueID()
const;
2385 inline TUint64 ObjectID()
const;
2386 inline void Set(TInt aIndex, TInt aUniqueId, TUint64 aObjectId);
2389 inline void Reset();
2434 inline TInt
Handle()
const;
2438#ifndef __KERNEL_MODE__
2439 IMPORT_C
void Close();
2444 IMPORT_C TInt
Duplicate(
const RThread& aSrc,TOwnerType aType=EOwnerProcess);
2456 static void DoExtendedCloseL();
2482#ifndef __KERNEL_MODE__
2484 IMPORT_C TInt
CreateLocal(TInt aCount,TOwnerType aType=EOwnerProcess);
2485 IMPORT_C TInt
CreateGlobal(
const TDesC& aName,TInt aCount,TOwnerType aType=EOwnerProcess);
2486 IMPORT_C TInt
OpenGlobal(
const TDesC& aName,TOwnerType aType=EOwnerProcess);
2487 IMPORT_C TInt
Open(
RMessagePtr2 aMessage,TInt aParam,TOwnerType aType=EOwnerProcess);
2488 IMPORT_C TInt
Open(TInt aArgumentIndex, TOwnerType aType=EOwnerProcess);
2489 IMPORT_C
void Wait();
2490 IMPORT_C TInt
Wait(TInt aTimeout);
2491 IMPORT_C TInt
Poll();
2493 IMPORT_C
void Signal(TInt aCount);
2513 IMPORT_C TInt
CreateLocal(TOwnerType aType=EOwnerProcess);
2514 IMPORT_C
void Wait();
2515 IMPORT_C TInt
Wait(TInt aTimeout);
2556 IMPORT_C
void Close();
2570 TInt UnlockWriter();
2571 TInt UnlockAlternate();
2572 TInt UnlockReader();
2575 volatile TUint64 iValues;
2599 IMPORT_C TInt
Open(TInt aArgumentIndex, TOwnerType aType=EOwnerProcess);
2601 inline TInt
DoCreate(
const TDesC& aDevice,
const TVersion& aVer, TInt aUnit,
const TDesC* aDriver,
const TDesC8* anInfo, TOwnerType aType=EOwnerProcess, TBool aProtected=EFalse);
2608 IMPORT_C TInt
DoControl(TInt aFunction,TAny* a1,TAny* a2);
2611 inline TInt
DoSvControl(TInt aFunction,TAny* a1,TAny* a2) {
return DoControl(aFunction, a1, a2); }
2613 IMPORT_C TInt
DoCreate(
const TDesC& aDevice,
const TVersion& aVer, TInt aUnit,
const TDesC* aDriver,
const TDesC8* aInfo, TInt aType);
2633 virtual TAny*
Alloc(TInt aSize)=0;
2634 virtual void Free(TAny* aPtr)=0;
2635 virtual TAny*
ReAlloc(TAny* aPtr, TInt aSize, TInt aMode=0)=0;
2636 virtual TInt
AllocLen(
const TAny* aCell)
const =0;
2638 virtual void Reset()=0;
2642 virtual TInt
Extension_(TUint aExtensionId, TAny*& a0, TAny* a1)=0;
2783#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
2790#ifndef __KERNEL_MODE__
2791 IMPORT_C TInt
Open();
2792 IMPORT_C
void Close();
2793 IMPORT_C TAny*
AllocZ(TInt aSize);
2795 IMPORT_C TAny*
AllocL(TInt aSize);
2796 IMPORT_C TAny*
AllocLC(TInt aSize);
2798 IMPORT_C TAny*
ReAllocL(TAny* aCell, TInt aSize, TInt aMode=0);
2800 IMPORT_C TInt
Count(TInt& aFreeCount)
const;
2805 UIMPORT_C TInt
__DbgMarkCheck(TBool aCountAll, TInt aCount,
const TDesC8& aFileName, TInt aLineNum);
2806 inline void __DbgMarkCheck(TBool aCountAll, TInt aCount,
const TUint8* aFileName, TInt aLineNum);
2811 UIMPORT_C TInt
Size()
const;
2813 UIMPORT_C TUint8*
Base()
const;
2814 UIMPORT_C TInt
Align(TInt a)
const;
2815 UIMPORT_C TAny*
Align(TAny* a)
const;
2818 UIMPORT_C
virtual TInt
Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
2819#ifndef __KERNEL_MODE__
2837#define __SYMBIAN_KERNEL_HYBRID_HEAP__
2861 UIMPORT_C
virtual TAny*
Alloc(TInt aSize);
2862 UIMPORT_C
virtual void Free(TAny* aPtr);
2863 UIMPORT_C
virtual TAny*
ReAlloc(TAny* aPtr, TInt aSize, TInt aMode=0);
2864 UIMPORT_C
virtual TInt
AllocLen(
const TAny* aCell)
const;
2865#ifndef __KERNEL_MODE__
2867 UIMPORT_C
virtual void Reset();
2868 UIMPORT_C
virtual TInt
AllocSize(TInt& aTotalAllocSize)
const;
2869 UIMPORT_C
virtual TInt
Available(TInt& aBiggestBlock)
const;
2871 UIMPORT_C
virtual TInt
DebugFunction(TInt aFunc, TAny* a1=NULL, TAny* a2=NULL);
2873 UIMPORT_C
virtual TInt
Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
3017 inline TBool
IsNull()
const;
3018 inline TInt
Handle()
const;
3019#ifndef __KERNEL_MODE__
3020 IMPORT_C
void Complete(TInt aReason)
const;
3026 IMPORT_C
void ReadL(TInt aParam,TDes8& aDes,TInt aOffset=0)
const;
3027 IMPORT_C
void ReadL(TInt aParam,TDes16 &aDes,TInt aOffset=0)
const;
3028 IMPORT_C
void WriteL(TInt aParam,
const TDesC8& aDes,TInt aOffset=0)
const;
3029 IMPORT_C
void WriteL(TInt aParam,
const TDesC16& aDes,TInt aOffset=0)
const;
3030 IMPORT_C TInt
Read(TInt aParam,TDes8& aDes,TInt aOffset=0)
const;
3031 IMPORT_C TInt
Read(TInt aParam,TDes16 &aDes,TInt aOffset=0)
const;
3032 IMPORT_C TInt
Write(TInt aParam,
const TDesC8& aDes,TInt aOffset=0)
const;
3033 IMPORT_C TInt
Write(TInt aParam,
const TDesC16& aDes,TInt aOffset=0)
const;
3035 IMPORT_C
void Kill(TInt aReason)
const;
3039 IMPORT_C TInt
Client(
RThread& aClient, TOwnerType aOwnerType=EOwnerProcess)
const;
3040 inline void ClientL(
RThread& aClient, TOwnerType aOwnerType=EOwnerProcess)
const;
3131#ifndef __REMOVE_PLATSEC_DIAGNOSTIC_STRINGS__
3132 inline TBool
HasCapability(TCapability aCapability,
const char* aDiagnostic=0)
const;
3136#ifndef __REMOVE_PLATSEC_DIAGNOSTICS__
3159#ifndef __REMOVE_PLATSEC_DIAGNOSTIC_STRINGS__
3160 inline void HasCapabilityL(TCapability aCapability,
const char* aDiagnosticMessage=0)
const;
3164#ifndef __REMOVE_PLATSEC_DIAGNOSTICS__
3188#ifndef __REMOVE_PLATSEC_DIAGNOSTIC_STRINGS__
3189 inline TBool
HasCapability(TCapability aCapability1, TCapability aCapability2,
const char* aDiagnostic=0)
const;
3193#ifndef __REMOVE_PLATSEC_DIAGNOSTICS__
3217#ifndef __REMOVE_PLATSEC_DIAGNOSTIC_STRINGS__
3218 inline void HasCapabilityL(TCapability aCapability1, TCapability aCapability2,
const char* aDiagnosticMessage=0)
const;
3222#ifndef __REMOVE_PLATSEC_DIAGNOSTICS__
3236 IMPORT_C TBool DoHasCapability(TCapability aCapability,
const char* aDiagnostic)
const;
3237 IMPORT_C TBool DoHasCapability(TCapability aCapability)
const;
3238 IMPORT_C TBool DoHasCapability(TCapability aCapability, TCapability aCapability2,
const char* aDiagnostic)
const;
3239 IMPORT_C TBool DoHasCapability(TCapability aCapability, TCapability aCapability2)
const;
3249#define __IPC_V2_PRESENT__
3278#ifndef __KERNEL_MODE__
3285 inline TInt
Int0()
const;
3286 inline TInt
Int1()
const;
3287 inline TInt
Int2()
const;
3288 inline TInt
Int3()
const;
3289 inline const TAny*
Ptr0()
const;
3290 inline const TAny*
Ptr1()
const;
3291 inline const TAny*
Ptr2()
const;
3292 inline const TAny*
Ptr3()
const;
3304 TInt
iArgs[KMaxMessageArguments];
3313 mutable TInt iFlags;
3400 IMPORT_C
TCapabilitySet(TCapability aCapability1, TCapability aCapability2);
3402 inline void Set(TCapability aCapability);
3403 inline void Set(TCapability aCapability1, TCapability aCapability2);
3410 IMPORT_C TBool
HasCapability(TCapability aCapability)
const;
3427#ifndef __SECURITY_INFO_DEFINED__
3428#define __SECURITY_INFO_DEFINED__
3440 inline const TUint32&
operator[] (TInt aIndex)
const {
return iCaps[aIndex]; }
3461#ifdef __REFERENCE_ALL_SUPPORTED_CAPABILITIES__
3470#ifdef __INCLUDE_ALL_SUPPORTED_CAPABILITIES__
3477 ECapability_Limit<32 ? (TUint32)((1u<<(ECapability_Limit&31))-1u) : 0xffffffffu
3479 ECapability_Limit>=32 ? (TUint32)((1u<<(ECapability_Limit&31))-1u) : 0u
3485#ifndef __KERNEL_MODE__
3505#ifdef __KERNEL_MODE__
3605 IMPORT_C
TSecurityPolicy(TCapability aCap1, TCapability aCap2 = ECapability_None, TCapability aCap3 = ECapability_None);
3606 IMPORT_C
TSecurityPolicy(TCapability aCap1, TCapability aCap2, TCapability aCap3, TCapability aCap4, TCapability aCap5 = ECapability_None, TCapability aCap6 = ECapability_None, TCapability aCap7 = ECapability_None);
3607 IMPORT_C
TSecurityPolicy(
TSecureId aSecureId, TCapability aCap1 = ECapability_None, TCapability aCap2 = ECapability_None, TCapability aCap3 = ECapability_None);
3608 IMPORT_C
TSecurityPolicy(
TVendorId aVendorId, TCapability aCap1 = ECapability_None, TCapability aCap2 = ECapability_None, TCapability aCap3 = ECapability_None);
3609 IMPORT_C TInt
Set(
const TDesC8& aDes);
3610 IMPORT_C TPtrC8
Package()
const;
3612#ifdef __KERNEL_MODE__
3614#ifndef __REMOVE_PLATSEC_DIAGNOSTIC_STRINGS__
3615 inline TBool
CheckPolicy(DProcess* aProcess,
const char* aDiagnostic=0)
const;
3616 inline TBool
CheckPolicy(DThread* aThread,
const char* aDiagnostic=0)
const;
3625#ifndef __REMOVE_PLATSEC_DIAGNOSTIC_STRINGS__
3638#ifndef __REMOVE_PLATSEC_DIAGNOSTICS__
3654#ifdef __KERNEL_MODE__
3655 IMPORT_C TBool DoCheckPolicy(DProcess* aProcess,
const char* aDiagnostic)
const;
3656 IMPORT_C TBool DoCheckPolicy(DProcess* aProcess)
const;
3657 IMPORT_C TBool DoCheckPolicy(DThread* aThread,
const char* aDiagnostic)
const;
3658 IMPORT_C TBool DoCheckPolicy(DThread* aThread)
const;
3660 IMPORT_C TBool DoCheckPolicy(
RProcess aProcess,
const char* aDiagnostic)
const;
3661 IMPORT_C TBool DoCheckPolicy(
RProcess aProcess)
const;
3662 IMPORT_C TBool DoCheckPolicy(
RThread aThread,
const char* aDiagnostic)
const;
3663 IMPORT_C TBool DoCheckPolicy(
RThread aThread)
const;
3664 IMPORT_C TBool DoCheckPolicy(
RMessagePtr2 aMsgPtr,
const char* aDiagnostic)
const;
3665 IMPORT_C TBool DoCheckPolicy(
RMessagePtr2 aMsgPtr)
const;
3666 IMPORT_C TBool DoCheckPolicyCreator(
const char* aDiagnostic)
const;
3667 IMPORT_C TBool DoCheckPolicyCreator()
const;
3668#ifndef __REMOVE_PLATSEC_DIAGNOSTICS__
3697 void ConstructAndCheck3(TCapability aCap1, TCapability aCap2, TCapability aCap3);
3787#ifndef __KERNEL_MODE__
3788#ifndef __REMOVE_PLATSEC_DIAGNOSTIC_STRINGS__
3801#ifndef __REMOVE_PLATSEC_DIAGNOSTICS__
3833#define CAPABILITY_AS_TUINT8(cap) \
3835 (cap)==ECapability_None \
3836 ? (__invalid_capability_value(*)[1])(ECapability_None) \
3837 : (__invalid_capability_value(*)[((TUint)(cap+1)<=(TUint)ECapability_Limit)?1:2])(cap) \
3851#define FOUR_TUINT8(i1,i2,i3,i4) \
3853 (TUint32)((i1) & 0xFF) | \
3854 (TUint32)((i2) & 0xFF) << 8 | \
3855 (TUint32)((i3) & 0xFF) << 16 | \
3856 (TUint32)((i4) & 0xFF) << 24 \
3871#define _INIT_SECURITY_POLICY_FAIL \
3874 (TUint8)TSecurityPolicy::ETypeFail, \
3879 (TUint32)0xffffffff \
3895#define _LIT_SECURITY_POLICY_FAIL(n) const TStaticSecurityPolicy n = _INIT_SECURITY_POLICY_FAIL
3909#define _INIT_SECURITY_POLICY_PASS \
3912 (TUint8)TSecurityPolicy::ETypePass, \
3917 (TUint32)0xffffffff \
3933#define _LIT_SECURITY_POLICY_PASS(n) const TStaticSecurityPolicy n = _INIT_SECURITY_POLICY_PASS
3959#define _INIT_SECURITY_POLICY_C7(c1,c2,c3,c4,c5,c6,c7) \
3962 (TUint8)TSecurityPolicy::ETypeC7, \
3963 CAPABILITY_AS_TUINT8(c1), \
3964 CAPABILITY_AS_TUINT8(c2), \
3965 CAPABILITY_AS_TUINT8(c3) \
3968 CAPABILITY_AS_TUINT8(c4), \
3969 CAPABILITY_AS_TUINT8(c5), \
3970 CAPABILITY_AS_TUINT8(c6), \
3971 CAPABILITY_AS_TUINT8(c7) \
4000#define _LIT_SECURITY_POLICY_C7(n,c1,c2,c3,c4,c5,c6,c7) \
4001 const TStaticSecurityPolicy n = _INIT_SECURITY_POLICY_C7(c1,c2,c3,c4,c5,c6,c7)
4026#define _INIT_SECURITY_POLICY_C6(c1,c2,c3,c4,c5,c6) \
4027 _INIT_SECURITY_POLICY_C7(c1,c2,c3,c4,c5,c6,ECapability_None)
4053#define _LIT_SECURITY_POLICY_C6(n,c1,c2,c3,c4,c5,c6) \
4054 _LIT_SECURITY_POLICY_C7(n,c1,c2,c3,c4,c5,c6,ECapability_None)
4078#define _INIT_SECURITY_POLICY_C5(c1,c2,c3,c4,c5) \
4079 _INIT_SECURITY_POLICY_C7(c1,c2,c3,c4,c5,ECapability_None,ECapability_None)
4104#define _LIT_SECURITY_POLICY_C5(n,c1,c2,c3,c4,c5) \
4105 _LIT_SECURITY_POLICY_C7(n,c1,c2,c3,c4,c5,ECapability_None,ECapability_None)
4128#define _INIT_SECURITY_POLICY_C4(c1,c2,c3,c4) \
4129 _INIT_SECURITY_POLICY_C7(c1,c2,c3,c4,ECapability_None,ECapability_None,ECapability_None)
4153#define _LIT_SECURITY_POLICY_C4(n,c1,c2,c3,c4) \
4154 _LIT_SECURITY_POLICY_C7(n,c1,c2,c3,c4,ECapability_None,ECapability_None,ECapability_None)
4176#define _INIT_SECURITY_POLICY_C3(c1,c2,c3) \
4179 (TUint8)TSecurityPolicy::ETypeC3, \
4180 CAPABILITY_AS_TUINT8(c1), \
4181 CAPABILITY_AS_TUINT8(c2), \
4182 CAPABILITY_AS_TUINT8(c3) \
4184 (TUint32)0xffffffff \
4208#define _LIT_SECURITY_POLICY_C3(n,c1,c2,c3) \
4209 const TStaticSecurityPolicy n = _INIT_SECURITY_POLICY_C3(c1,c2,c3)
4230#define _INIT_SECURITY_POLICY_C2(c1,c2) \
4231 _INIT_SECURITY_POLICY_C3(c1,c2,ECapability_None)
4253#define _LIT_SECURITY_POLICY_C2(n,c1,c2) \
4254 _LIT_SECURITY_POLICY_C3(n,c1,c2,ECapability_None)
4275#define _INIT_SECURITY_POLICY_C1(c1) \
4276 _INIT_SECURITY_POLICY_C3(c1,ECapability_None,ECapability_None)
4297#define _LIT_SECURITY_POLICY_C1(n,c1) \
4298 _LIT_SECURITY_POLICY_C3(n,c1,ECapability_None,ECapability_None)
4321#define _INIT_SECURITY_POLICY_S3(sid,c1,c2,c3) \
4324 (TUint8)TSecurityPolicy::ETypeS3, \
4325 CAPABILITY_AS_TUINT8(c1), \
4326 CAPABILITY_AS_TUINT8(c2), \
4327 CAPABILITY_AS_TUINT8(c3) \
4354#define _LIT_SECURITY_POLICY_S3(n,sid,c1,c2,c3) \
4355 const TStaticSecurityPolicy n = _INIT_SECURITY_POLICY_S3(sid,c1,c2,c3)
4377#define _INIT_SECURITY_POLICY_S2(sid,c1,c2) \
4378 _INIT_SECURITY_POLICY_S3(sid,c1,c2,ECapability_None)
4401#define _LIT_SECURITY_POLICY_S2(n,sid,c1,c2) \
4402 _LIT_SECURITY_POLICY_S3(n,sid,c1,c2,ECapability_None)
4423#define _INIT_SECURITY_POLICY_S1(sid,c1) \
4424 _INIT_SECURITY_POLICY_S3(sid,c1,ECapability_None,ECapability_None)
4446#define _LIT_SECURITY_POLICY_S1(n,sid,c1) \
4447 _LIT_SECURITY_POLICY_S3(n,sid,c1,ECapability_None,ECapability_None)
4463#define _INIT_SECURITY_POLICY_S0(sid) \
4464 _INIT_SECURITY_POLICY_S3(sid,ECapability_None,ECapability_None,ECapability_None)
4481#define _LIT_SECURITY_POLICY_S0(n,sid) \
4482 _LIT_SECURITY_POLICY_S3(n,sid,ECapability_None,ECapability_None,ECapability_None)
4505#define _INIT_SECURITY_POLICY_V3(vid,c1,c2,c3) \
4508 (TUint8)TSecurityPolicy::ETypeV3, \
4509 CAPABILITY_AS_TUINT8(c1), \
4510 CAPABILITY_AS_TUINT8(c2), \
4511 CAPABILITY_AS_TUINT8(c3) \
4538#define _LIT_SECURITY_POLICY_V3(n,vid,c1,c2,c3) \
4539 const TStaticSecurityPolicy n = _INIT_SECURITY_POLICY_V3(vid,c1,c2,c3)
4561#define _INIT_SECURITY_POLICY_V2(vid,c1,c2) \
4562 _INIT_SECURITY_POLICY_V3(vid,c1,c2,ECapability_None)
4585#define _LIT_SECURITY_POLICY_V2(n,vid,c1,c2) \
4586 _LIT_SECURITY_POLICY_V3(n,vid,c1,c2,ECapability_None)
4607#define _INIT_SECURITY_POLICY_V1(vid,c1) \
4608 _INIT_SECURITY_POLICY_V3(vid,c1,ECapability_None,ECapability_None)
4630#define _LIT_SECURITY_POLICY_V1(n,vid,c1) \
4631 _LIT_SECURITY_POLICY_V3(n,vid,c1,ECapability_None,ECapability_None)
4647#define _INIT_SECURITY_POLICY_V0(vid) \
4648 _INIT_SECURITY_POLICY_V3(vid,ECapability_None,ECapability_None,ECapability_None)
4665#define _LIT_SECURITY_POLICY_V0(n,vid) \
4666 _LIT_SECURITY_POLICY_V3(n,vid,ECapability_None,ECapability_None,ECapability_None)
4670#ifdef __KERNEL_MODE__
4674class TPlatSecDiagnostic;
4682#ifndef __KERNEL_MODE__
4736#ifndef __REMOVE_PLATSEC_DIAGNOSTICS__
4740#ifdef __KERNEL_MODE__
4742 static inline TInt
CapabilityCheckFail(
const DProcess* aViolatingProcess, TCapability aCapability,
const char* aContextText);
4744 static inline TInt
CapabilityCheckFail(
const DThread* aViolatingThread, TCapability aCapability,
const char* aContextText);
4746 static inline TInt SecureIdCheckFail(
const DProcess* aViolatingProcess,
TSecureId aSid,
const char* aContextText);
4752 static inline TInt ProcessIsolationFail(
const char* aContextText);
4754 static inline TInt ProcessIsolationIPCFail(RMessageK* aMessage,
const char* aContextText);
4757 static inline TInt LoaderCapabilityViolation(RProcess aLoadingProcess, const TDesC8& aFileName, const SCapabilitySet& aMissingCaps);
4763 static inline TInt
CapabilityCheckFail(TInt aHandle, TCapability aCapability,
const char* aContextText);
4799 UIMPORT_C
static TInt
EmitDiagnostic(TPlatSecDiagnostic& aDiagnostic,
const char* aContextText);
4801#ifndef __KERNEL_MODE__
4803 IMPORT_C
static TInt
EmitDiagnostic(TPlatSecDiagnostic& aDiagnostic,
const char* aContextText);
4813#define KMaxSerialNumLength 64
4891#ifndef __KERNEL_MODE__
4949 inline TArray(TInt (*aCount)(
const CBase* aPtr),
const TAny*(*anAt)(
const CBase* aPtr,TInt anIndex),
const CBase* aPtr);
4950 inline TInt
Count()
const;
4951 inline const T&
operator[](TInt anIndex)
const;
4954 TInt (*iCount)(
const CBase* aPtr);
4955 const TAny*(*iAt)(
const CBase* aPtr,TInt anIndex);
5017 inline static TBool EqualityOperatorCompare(
const T& aLeft,
const T& aRight);
5040 IMPORT_C
static TBool
Integer(
const TInt&,
const TInt&);
5041 IMPORT_C
static TBool
Des8(
const TDesC8&,
const TDesC8&);
5042 IMPORT_C
static TBool
Des16(
const TDesC16&,
const TDesC16&);
5043 IMPORT_C
static TBool
IntegerPtr(TInt*
const&, TInt*
const&);
5044 IMPORT_C
static TBool
Des8Ptr(TDesC8*
const&, TDesC8*
const&);
5045 IMPORT_C
static TBool
Des16Ptr(TDesC16*
const&, TDesC16*
const&);
5070 inline TLinearOrder( TInt(*anOrder)(
const T&,
const T&) );
5143 IMPORT_C
void Close();
5144 IMPORT_C TInt
Count()
const;
5146 inline TAny**
Entries() {
return iEntries;}
5147 IMPORT_C TAny*&
At(TInt anIndex)
const;
5149 IMPORT_C TInt
Insert(
const TAny* anEntry, TInt aPos);
5150 IMPORT_C
void Remove(TInt anIndex);
5152 IMPORT_C
void Reset();
5153 IMPORT_C TInt
Find(
const TAny* anEntry)
const;
5155 IMPORT_C TInt
FindReverse(
const TAny* aEntry)
const;
5172#ifndef __KERNEL_MODE__
5217 inline void Close();
5221 inline TInt
Append(
const T* anEntry);
5222 inline TInt
Insert(
const T* anEntry, TInt aPos);
5223 inline void Remove(TInt anIndex);
5225 inline void Reset();
5227 inline TInt
Find(
const T* anEntry)
const;
5230 inline TInt
Find(
const K& aKey, TBool (*apfnCompare)(
const K* k,
const T& t))
const
5250 inline TInt
FindReverse(
const K& aKey, TInt (*apfnMatch)(
const K* k,
const T& t))
const
5273 inline TInt
FindInOrder(
const K& aKey, TInt (*apfnCompare)(
const K* k,
const T& t))
const
5299#ifndef __KERNEL_MODE__
5300 inline void AppendL(
const T* anEntry);
5301 inline void InsertL(
const T* anEntry, TInt aPos);
5302 inline TInt
FindL(
const T* anEntry)
const;
5321 inline TInt
Reserve(TInt aCount);
5348 inline void Close();
5349 inline TInt
Count()
const;
5350 inline TAny*
const&
operator[](TInt anIndex)
const;
5352 inline TInt
Append(
const TAny* anEntry);
5353 inline TInt
Insert(
const TAny* anEntry, TInt aPos);
5354 inline void Remove(TInt anIndex);
5356 inline void Reset();
5357 inline TInt
Find(
const TAny* anEntry)
const;
5358 inline TInt
FindReverse(
const TAny* anEntry)
const;
5365#ifndef __KERNEL_MODE__
5366 inline void AppendL(
const TAny* anEntry);
5367 inline void InsertL(
const TAny* anEntry, TInt aPos);
5368 inline TInt
FindL(
const TAny* anEntry)
const;
5399 IMPORT_C
RArrayBase(TInt anEntrySize, TInt aGranularity);
5400 IMPORT_C
RArrayBase(TInt anEntrySize, TInt aGranularity, TInt aKeyOffset);
5401 IMPORT_C
RArrayBase(TInt anEntrySize, TInt aMinGrowBy, TInt aKeyOffset, TInt aFactor);
5402 IMPORT_C
RArrayBase(TInt aEntrySize,TAny* aEntries, TInt aCount);
5403 IMPORT_C
void Close();
5405 IMPORT_C TInt
Count()
const;
5406 IMPORT_C TAny*
At(TInt anIndex)
const;
5407 IMPORT_C TInt
Append(
const TAny* anEntry);
5408 IMPORT_C TInt
Insert(
const TAny* anEntry, TInt aPos);
5409 IMPORT_C
void Remove(TInt anIndex);
5411 IMPORT_C
void Reset();
5412 IMPORT_C TInt
Find(
const TAny* anEntry)
const;
5414 IMPORT_C TInt
FindReverse(
const TAny* aEntry)
const;
5419 IMPORT_C TInt
FindIsqSigned(
const TAny* anEntry, TInt aMode)
const;
5422 IMPORT_C TInt
InsertIsqSigned(
const TAny* anEntry, TBool aAllowRepeats);
5428 IMPORT_C TInt
BinarySearchSigned(
const TAny* anEntry, TInt& anIndex, TInt aMode)
const;
5431#ifndef __KERNEL_MODE__
5498 inline explicit RArray(TInt aGranularity);
5499 inline RArray(TInt aGranularity, TInt aKeyOffset);
5500 inline RArray(TInt aMinGrowBy, TInt aKeyOffset, TInt aFactor);
5501 inline RArray(TInt aEntrySize,T* aEntries, TInt aCount);
5502 inline void Close();
5504 inline TInt
Count()
const;
5505 inline const T&
operator[](TInt anIndex)
const;
5507 inline TInt
Append(
const T& anEntry);
5508 inline TInt
Insert(
const T& anEntry, TInt aPos);
5509 inline void Remove(TInt anIndex);
5511 inline void Reset();
5512 inline TInt
Find(
const T& anEntry)
const;
5515 inline TInt
Find(
const K& aKey, TBool (*apfnCompare)(
const K* k,
const T& t))
const
5535 inline TInt
FindReverse(
const K& aKey, TInt (*apfnMatch)(
const K* k,
const T& t))
const
5559 inline TInt
FindInOrder(
const K& aKey, TInt (*apfnCompare)(
const K* k,
const T& t))
const
5590#ifndef __KERNEL_MODE__
5593 inline TInt
FindL(
const T& anEntry)
const;
5617 inline TInt
Reserve(TInt aCount);
5643 inline RArray(TInt aMinGrowBy, TInt aFactor);
5653 inline TInt
Find(TInt anEntry)
const;
5656 inline TInt
FindInOrder(TInt anEntry, TInt& anIndex)
const;
5661#ifndef __KERNEL_MODE__
5662 inline void AppendL(TInt anEntry);
5663 inline void InsertL(TInt anEntry, TInt aPos);
5664 inline TInt
FindL(TInt anEntry)
const;
5667 inline void FindInOrderL(TInt anEntry, TInt& anIndex)
const;
5673 inline RArray(TInt* aEntries, TInt aCount);
5701 inline RArray(TInt aMinGrowBy, TInt aFactor);
5702 inline void Close();
5703 inline TInt
Count()
const;
5704 inline const TUint&
operator[](TInt anIndex)
const;
5706 inline TInt
Append(TUint anEntry);
5707 inline TInt
Insert(TUint anEntry, TInt aPos);
5708 inline void Remove(TInt anIndex);
5710 inline void Reset();
5711 inline TInt
Find(TUint anEntry)
const;
5714 inline TInt
FindInOrder(TUint anEntry, TInt& anIndex)
const;
5719#ifndef __KERNEL_MODE__
5740#ifndef __LEAVE_EQUALS_THROW__
5750#ifndef __KERNEL_MODE__
5796#define TRAP(_r,_s) {TTrap __t;if (__t.Trap(_r)==0){_s;TTrap::UnTrap();}}
5817#define TRAPD(_r,_s) TInt _r;{TTrap __t;if (__t.Trap(_r)==0){_s;TTrap::UnTrap();}}
5855#define TRAP_IGNORE(_s) {TInt _ignore;TTrap __t;if (__t.Trap(_ignore)==0){_s;TTrap::UnTrap();}}
5862#define __WIN32SEHTRAP TWin32SEHTrap __trap; __trap.Trap();
5864#define __WIN32SEHUNTRAP __trap.UnTrap();
5865IMPORT_C
void EmptyFunction();
5866#define __CALL_EMPTY_FUNCTION EmptyFunction();
5868#define __WIN32SEHTRAP
5869#define __WIN32SEHUNTRAP
5870#define __CALL_EMPTY_FUNCTION
5900#define TRAP_INSTRUMENTATION_START
5934#define TRAP_INSTRUMENTATION_NOLEAVE
5966#define TRAP_INSTRUMENTATION_LEAVE(aResult)
5998#define TRAP_INSTRUMENTATION_END
6039#define TRAP(_r, _s) \
6041 TInt& __rref = _r; \
6043 { TRAP_INSTRUMENTATION_START; } \
6046 TTrapHandler* ____t = User::MarkCleanupStack(); \
6048 User::UnMarkCleanupStack(____t); \
6049 { TRAP_INSTRUMENTATION_NOLEAVE; } \
6052 catch (XLeaveException& l) \
6054 __rref = l.GetReason(); \
6055 { TRAP_INSTRUMENTATION_LEAVE(__rref); } \
6059 User::Invariant(); \
6061 __CALL_EMPTY_FUNCTION \
6062 { TRAP_INSTRUMENTATION_END; } \
6092#define TRAPD(_r, _s) \
6096 { TRAP_INSTRUMENTATION_START; } \
6099 TTrapHandler* ____t = User::MarkCleanupStack(); \
6101 User::UnMarkCleanupStack(____t); \
6102 { TRAP_INSTRUMENTATION_NOLEAVE; } \
6105 catch (XLeaveException& l) \
6107 _r = l.GetReason(); \
6108 { TRAP_INSTRUMENTATION_LEAVE(_r); } \
6112 User::Invariant(); \
6114 __CALL_EMPTY_FUNCTION \
6115 { TRAP_INSTRUMENTATION_END; } \
6162#define TRAP_IGNORE(_s) \
6164 { TRAP_INSTRUMENTATION_START; } \
6167 TTrapHandler* ____t = User::MarkCleanupStack(); \
6169 User::UnMarkCleanupStack(____t); \
6170 { TRAP_INSTRUMENTATION_NOLEAVE; } \
6173 catch (XLeaveException& l) \
6176 { TRAP_INSTRUMENTATION_LEAVE(l.Reason()); } \
6180 User::Invariant(); \
6182 __CALL_EMPTY_FUNCTION \
6183 { TRAP_INSTRUMENTATION_END; } \
6194#ifndef __SYMBIAN_STDCPP_SUPPORT__
6196#ifndef __OPERATOR_NEW_DECLARED__
6205#define __OPERATOR_NEW_DECLARED__
6211GLREF_C TAny*
operator new(TUint aSize) __NO_THROW;
6217GLREF_C TAny*
operator new(TUint aSize,TUint anExtraSize) __NO_THROW;
6223GLREF_C
void operator delete(TAny* aPtr) __NO_THROW;
6225#ifndef __OMIT_VEC_OPERATOR_NEW_DECL__
6230GLREF_C TAny*
operator new[](TUint aSize) __NO_THROW;
6236GLREF_C
void operator delete[](TAny* aPtr) __NO_THROW;
6247inline TAny*
operator new(TUint aSize, TAny* aBase) __NO_THROW;
6253inline void operator delete(TAny* aPtr, TAny* aBase) __NO_THROW;
6255#ifndef __PLACEMENT_VEC_NEW_INLINE
6260inline TAny*
operator new[](TUint aSize, TAny* aBase) __NO_THROW;
6266inline void operator delete[](TAny* aPtr, TAny* aBase) __NO_THROW;
6270#if !defined(__BOOL_NO_TRUE_TRAP__)
6396 Assign(
iArgs[0],a0);
6410 template <
class T0,
class T1>
6413 Assign(
iArgs[0],a0);
6414 Assign(
iArgs[1],a1);
6430 template <
class T0,
class T1,
class T2>
6433 Assign(
iArgs[0],a0);
6434 Assign(
iArgs[1],a1);
6435 Assign(
iArgs[2],a2);
6453 template <
class T0,
class T1,
class T2,
class T3>
6454 inline TIpcArgs(T0 a0,T1 a1,T2 a2,T3 a3)
6456 Assign(
iArgs[0],a0);
6457 Assign(
iArgs[1],a1);
6458 Assign(
iArgs[2],a2);
6459 Assign(
iArgs[3],a3);
6464 inline void Set(TInt aIndex,TInt aValue);
6465 inline void Set(TInt aIndex,
const TAny* aValue);
6467 inline void Set(TInt aIndex,
const TDesC8* aValue);
6468#ifndef __KERNEL_MODE__
6469 inline void Set(TInt aIndex,
const TDesC16* aValue);
6471 inline void Set(TInt aIndex,TDes8* aValue);
6472#ifndef __KERNEL_MODE__
6473 inline void Set(TInt aIndex,TDes16* aValue);
6476 inline TIpcArgs&
PinArgs(TBool aPinArg0=ETrue, TBool aPinArg1=ETrue, TBool aPinArg2=ETrue, TBool aPinArg3=ETrue);
6480 inline static TArgType Type(
const TAny*);
6482 inline static TArgType Type(
const TDesC8*);
6483#ifndef __KERNEL_MODE__
6484 inline static TArgType Type(
const TDesC16*);
6486 inline static TArgType Type(TDes8*);
6487#ifndef __KERNEL_MODE__
6488 inline static TArgType Type(TDes16*);
6491 inline static void Assign(TInt&,
TNothing);
6492 inline static void Assign(TInt& aArg,TInt aValue);
6493 inline static void Assign(TInt& aArg,
const TAny* aValue);
6494 inline static void Assign(TInt& aArg,
RHandleBase aValue);
6495 inline static void Assign(TInt& aArg,
const TDesC8* aValue);
6496#ifndef __KERNEL_MODE__
6497 inline static void Assign(TInt& aArg,
const TDesC16* aValue);
6499 inline static void Assign(TInt& aArg,TDes8* aValue);
6500#ifndef __KERNEL_MODE__
6501 inline static void Assign(TInt& aArg,TDes16* aValue);
6511 TInt
iArgs[KMaxMessageArguments];
6534 inline operator Int64()
const;
6548 inline operator Uint64()
const;
6562 inline operator TReal()
const;
6603#ifdef __SUPPORT_CPP_EXCEPTIONS__
6611class XLeaveException
6614 inline XLeaveException() {}
6615 inline XLeaveException(TInt aReason) {iR = aReason;}
6616 inline TInt Reason()
const {
return iR;}
6617 IMPORT_C TInt GetReason()
const;
6619#if __ARMCC_VERSION >= 220000
6625 virtual void ForceKeyFunction();
6628#if __ARMCC_VERSION < 220000
6641#ifdef __SYMBIAN_STDCPP_SUPPORT__
6642 #include <stdapis/stlportv5/exception>
6643#elif !defined(_EXCEPTION) && !defined(_EXCEPTION_) && !defined(__EXCEPTION__)
6646#if defined(__VC32__) || defined(__CW32__)
6647 bool uncaught_exception();
6649 IMPORT_C
bool uncaught_exception();
6651 void terminate(
void);
6652 void unexpected(
void);
6653 typedef void (*terminate_handler)();
6654 terminate_handler set_terminate(terminate_handler h)
throw();
6655 typedef void (*unexpected_handler)();
6656 unexpected_handler set_unexpected(unexpected_handler h)
throw();
6664#ifndef __WIN32_SEH_TYPES_KNOWN__
6665class __UnknownWindowsType1;
6666class __UnknownWindowsType2;
6675typedef TUint32 (TWin32SEHExceptionHandler)(__UnknownWindowsType1* aExceptionRecord, TWin32SEHTrap* aRegistrationRecord, __UnknownWindowsType2* aContext);
6684 TWin32SEHTrap(TWin32SEHTrap
const &);
6685 TWin32SEHTrap& operator=(TWin32SEHTrap
const &);
6687#ifdef __KERNEL_MODE__
6693 static TWin32SEHTrap* IterateForFinal();
6696 TWin32SEHExceptionHandler* ExceptionHandler();
6705 UIMPORT_C TWin32SEHTrap();
6709 UIMPORT_C
void Trap();
6712 UIMPORT_C
void UnTrap();
6714#ifndef __IN_SEH_CPP__
6718 static TUint32 ExceptionHandler(__UnknownWindowsType1* aException, TWin32SEHTrap* aRegistrationRecord, __UnknownWindowsType2* aContext);
6725 TWin32SEHTrap* iPrevExceptionRegistrationRecord;
6726 TWin32SEHExceptionHandler* iExceptionHandler;
6729 TUint32 iPadding[254];
6741 UIMPORT_C TWin32SEHTrap();
6742 UIMPORT_C
void Trap();
6743 UIMPORT_C
void UnTrap();
6765#include <e32cmn.inl>
6767#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
6768#include <e32cmn_private.h>
Controls the handling of asynchronous requests as represented by active objects.
The core class of the active object abstraction.
Abstract base class for servers (version 2).
Represents a session (version 2) for a client thread on the server-side.
A set of common identity relations for frequently occurring types.
static IMPORT_C TBool Des16Ptr(TDesC16 *const &, TDesC16 *const &)
Compare two TDesC16 pointers for equality.
static IMPORT_C TBool Des8(const TDesC8 &, const TDesC8 &)
Compare two 8 bit descriptors for exact binary equality.
static IMPORT_C TBool Integer(const TInt &, const TInt &)
Compare two integers for equality.
static IMPORT_C TBool IntegerPtr(TInt *const &, TInt *const &)
Compare two TInt pointers for equality.
static IMPORT_C TBool Des8Ptr(TDesC8 *const &, TDesC8 *const &)
Compare two TDesC8 pointers for equality.
static IMPORT_C TBool Des16(const TDesC16 &, const TDesC16 &)
Compare two 16 bit descriptors for exact binary equality.
Base class for memory allocators.
virtual TInt Extension_(TUint aExtensionId, TAny *&a0, TAny *a1)=0
virtual TInt AllocSize(TInt &aTotalAllocSize) const =0
virtual TInt Compress()=0
virtual TInt Available(TInt &aBiggestBlock) const =0
virtual TAny * Alloc(TInt aSize)=0
virtual TAny * ReAlloc(TAny *aPtr, TInt aSize, TInt aMode=0)=0
virtual TInt DebugFunction(TInt aFunc, TAny *a1=NULL, TAny *a2=NULL)=0
virtual void Free(TAny *aPtr)=0
virtual TInt AllocLen(const TAny *aCell) const =0
Class containing Platform Security related methods.
static TInt CreatorCapabilityCheckFail(TCapability aCapability, const char *aContextText)
static TInt CreatorPolicyCheckFail(const SSecurityInfo &aMissingCaps, const char *aContextText)
static TInt PolicyCheckFail(TInt aHandle, const SSecurityInfo &aMissing, const char *aContextText)
@ EPlatSecEnforceSysBin
Used to request the value of the PlatSecEnforceSysBin setting.
@ EPlatSecLocked
Used to request the value of the PlatSecLocked setting.
@ EPlatSecEnforcement
Used to request the value of the PlatSecEnforcement setting.
@ EPlatSecProcessIsolation
Used to request the value of the PlatSecProcessIsolation setting.
@ EPlatSecDiagnotics
Used to request the value of the PlatSecDiagnotics setting.
static TInt CapabilityCheckFail(TInt aHandle, TCapability aCapability, const char *aContextText)
static IMPORT_C TBool IsCapabilityEnforced(TCapability aCapability)
static UIMPORT_C TInt EmitDiagnostic()
static IMPORT_C TInt ConfigSetting(TConfigSetting aSetting)
static TInt LoaderCapabilityViolation(const TDesC8 &aImporterName, const TDesC8 &aFileName, const SCapabilitySet &aMissingCaps)
UIMPORT_C TUint __DbgCheckFailure()
Returns the number of heap allocation failures the current debug allocator fail function has caused s...
IMPORT_C void Close()
Closes this shared heap.
UIMPORT_C TInt __DbgMarkCheck(TBool aCountAll, TInt aCount, const TDesC8 &aFileName, TInt aLineNum)
Checks the current number of allocated heap cells for this heap.
UIMPORT_C TInt MaxLength() const
IMPORT_C TAny * AllocZL(TInt aSize)
Allocates a cell of specified size from the heap, clears it to binary zeroes, and leaves if there is ...
UIMPORT_C TUint32 __DbgMarkEnd(TInt aCount)
Marks the end of heap cell checking at the current nested level for this heap.
UIMPORT_C void __DbgSetAllocFail(TAllocFail aType, TInt aRate)
Simulates a heap allocation failure for this heap.
IMPORT_C TAny * AllocL(TInt aSize)
Allocates a cell of specified size from the heap, and leaves if there is insufficient memory in the h...
UIMPORT_C void __DbgMarkStart()
Marks the start of heap cell checking for this heap.
UIMPORT_C void __DbgSetBurstAllocFail(TAllocFail aType, TUint aRate, TUint aBurst)
Simulates a burst of heap allocation failures for this heap.
IMPORT_C TInt Open()
Opens this heap for shared access.
TReAllocMode
Flags controlling reallocation.
@ ENeverMove
A reallocation of a cell must not change the start address of the cell.
@ EAllowMoveOnShrink
Allows the start address of the cell to change if the cell shrinks in size.
UIMPORT_C TInt Align(TInt a) const
IMPORT_C TInt Count() const
Gets the total number of cells allocated on the heap.
TAllocFail
A set of heap allocation failure flags.
@ EBurstTrueRandom
aBurst allocations from this heap fail at a random rate.
@ EDeterministic
Attempts to allocate from this heap fail at a rate aRate; for example, if aRate is 3,...
@ EBurstRandom
aBurst allocations from this heap fail at a random rate; however, the interval pattern between failur...
@ EReset
Cancels simulated heap allocation failure, and sets the nesting level for all allocated cells to zero...
@ ENone
Cancels simulated heap allocation failure.
@ ERandom
Attempts to allocate from this heap fail at a random rate; however, the interval pattern between fail...
@ EFailNext
An allocation from this heap will fail after the next aRate - 1 allocation attempts.
@ EBurstDeterministic
aBurst allocations from this heap fail at a rate aRate.
@ EBurstFailNext
aBurst allocations from this heap will fail after the next aRate - 1 allocation attempts have occurre...
@ ETrueRandom
Attempts to allocate from this heap fail at a random rate.
@ ECheckFailure
Use this to determine how many times the current debug failure mode has failed so far.
virtual UIMPORT_C TInt Extension_(TUint aExtensionId, TAny *&a0, TAny *a1)
UIMPORT_C TUint8 * Base() const
UIMPORT_C TInt Size() const
UIMPORT_C TAllocFail __DbgGetAllocFail()
virtual IMPORT_C void DoClose()
TDbgHeapType
Heap debug checking type flag.
@ EUser
The heap is a user heap.
@ EKernel
The heap is the Kernel heap.
IMPORT_C void FreeZ(TAny *&aCell)
Frees the specified cell, returns it to the heap, and resets the pointer to NULL.
IMPORT_C TAny * AllocZ(TInt aSize)
Allocates a cell of specified size from the heap, and clears it to binary zeroes.
UIMPORT_C void Check() const
Checks the validity of the heap.
IMPORT_C TAny * AllocLC(TInt aSize)
Allocates a cell of specified size from the heap, and, if successful, places a pointer to the cell on...
IMPORT_C TAny * ReAllocL(TAny *aCell, TInt aSize, TInt aMode=0)
Increases or decreases the size of an existing cell, and leaves if there is insufficient memory in th...
Base class used in the derivation of RArray.
IMPORT_C TInt FindIsq(const TAny *anEntry, TGeneralLinearOrder anOrder) const
IMPORT_C TInt InsertIsqUnsigned(const TAny *anEntry, TBool aAllowRepeats)
static IMPORT_C const TAny * GetElementPtr(const CBase *aPtr, TInt aIndex)
IMPORT_C TAny * At(TInt anIndex) const
IMPORT_C TInt Find(const TAny *anEntry) const
IMPORT_C TInt FindReverse(const TAny *aEntry) const
IMPORT_C TInt Count() const
IMPORT_C void Remove(TInt anIndex)
IMPORT_C TInt BinarySearchUnsigned(const TAny *anEntry, TInt &anIndex) const
IMPORT_C void HeapSortUnsigned()
IMPORT_C TInt FindIsqSigned(const TAny *anEntry) const
IMPORT_C TInt InsertIsqSigned(const TAny *anEntry, TBool aAllowRepeats)
IMPORT_C TInt Insert(const TAny *anEntry, TInt aPos)
IMPORT_C TInt Append(const TAny *anEntry)
static IMPORT_C TInt GetCount(const CBase *aPtr)
IMPORT_C TInt BinarySearch(const TAny *anEntry, TInt &anIndex, TGeneralLinearOrder anOrder) const
IMPORT_C void HeapSortSigned()
IMPORT_C void GranularCompress()
IMPORT_C TInt BinarySearchSigned(const TAny *anEntry, TInt &anIndex) const
IMPORT_C void SetKeyOffset(TInt aKeyOffset)
IMPORT_C void HeapSort(TGeneralLinearOrder anOrder)
IMPORT_C TInt FindIsqUnsigned(const TAny *anEntry) const
IMPORT_C TInt DoReserve(TInt aCount)
IMPORT_C TInt InsertIsq(const TAny *anEntry, TGeneralLinearOrder anOrder, TBool aAllowRepeats)
A simple and efficient array of fixed length objects.
TInt FindInSignedKeyOrder(const T &anEntry) const
Finds the object in the array which matches the specified object using a binary search technique.
RArray()
Default C++ constructor.
void SortSigned()
Sorts the objects within the array; the sort order is assumed to be in signed integer order.
TInt FindInUnsignedKeyOrder(const T &anEntry) const
Finds the object in the array which matches the specified object using a binary search technique.
TInt InsertInOrder(const T &anEntry, TLinearOrder< T > anOrder)
Inserts an object of into the array in object order.
void InsertInOrderAllowRepeatsL(const T &anEntry, TLinearOrder< T > anOrder)
Inserts an object into the array in object order, allowing duplicates.
void Reset()
Empties the array, so that it is ready to be reused.
void InsertInSignedKeyOrderL(const T &anEntry)
Inserts an object into the array in ascending signed key order.
TInt SpecificFindInOrderL(const T &anEntry, TLinearOrder< T > anOrder, TInt aMode) const
Finds the object in the array which matches the specified object using a binary search technique and ...
void AppendL(const T &anEntry)
Apends an object onto the array.
TInt FindL(const T &anEntry) const
Finds the first object in the array which matches the specified object using a sequential search.
TInt InsertInSignedKeyOrderAllowRepeats(const T &anEntry)
Inserts an object into the array in ascending signed key order, allowing duplicates.
TInt SpecificFindInSignedKeyOrderL(const T &anEntry, TInt aMode) const
Finds the object in the array which matches the specified object using a binary search technique.
void SortUnsigned()
Sorts the objects within the array; the sort order is assumed to be in unsigned integer order.
void InsertInUnsignedKeyOrderAllowRepeatsL(const T &anEntry)
Inserts an object into the array in ascending unsigned key order, allowing duplicates.
TInt FindInUnsignedKeyOrderL(const T &anEntry) const
Finds the object in the array which matches the specified object using a binary search technique.
TInt FindInOrderL(const T &anEntry, TLinearOrder< T > anOrder) const
Finds the object in the array which matches the specified object using a binary search technique and ...
void Remove(TInt anIndex)
Removes the object at a specified position from the array.
void ReserveL(TInt aCount)
Reserves space for the specified number of elements.
TInt Insert(const T &anEntry, TInt aPos)
Inserts an object into the array at a specified position.
TInt InsertInUnsignedKeyOrder(const T &anEntry)
Inserts an object into the array in ascending unsigned key order.
void InsertInOrderL(const T &anEntry, TLinearOrder< T > anOrder)
Inserts an object of into the array in object order.
void GranularCompress()
Compresses the array down to a granular boundary.
void InsertL(const T &anEntry, TInt aPos)
Inserts an object into the array at a specified position.
TInt FindInSignedKeyOrderL(const T &anEntry) const
Finds the object in the array which matches the specified object using a binary search technique.
TInt SpecificFindInSignedKeyOrder(const T &anEntry, TInt aMode) const
Finds the object in the array which matches the specified object using a binary search technique.
TInt InsertInUnsignedKeyOrderAllowRepeats(const T &anEntry)
Inserts an object into the array in ascending unsigned key order, allowing duplicates.
void Compress()
Compresses the array down to a minimum.
TInt InsertInSignedKeyOrder(const T &anEntry)
Inserts an object into the array in ascending signed key order.
void SetKeyOffset(TInt aKeyOffset)
Sets the offset of the ordering key within each array entry.
TArray< T > Array() const
Constructs and returns a generic array.
TInt FindReverseL(const T &anEntry) const
Finds the last object in the array which matches the specified object using a sequential search.
void InsertInSignedKeyOrderAllowRepeatsL(const T &anEntry)
Inserts an object into the array in ascending signed key order, allowing duplicates.
void Close()
Closes the array and frees all memory allocated to the array.
TInt SpecificFindInOrder(const T &anEntry, TLinearOrder< T > anOrder, TInt aMode) const
Finds the object in the array which matches the specified object using a binary search technique and ...
TInt Count() const
Gets the number of objects in the array.
TInt SpecificFindInUnsignedKeyOrder(const T &anEntry, TInt aMode) const
Finds the object in the array which matches the specified object using a binary search technique.
void Sort(TLinearOrder< T > anOrder)
Sorts the objects within the array using the specified TLinearOrder.
TInt Find(const T &anEntry) const
Finds the first object in the array which matches the specified object using a sequential search.
const T & operator[](TInt anIndex) const
Gets a reference to an object located at a specified position within the array.
TInt FindInOrder(const T &anEntry, TLinearOrder< T > anOrder) const
Finds the object in the array which matches the specified object using a binary search technique and ...
TInt InsertInOrderAllowRepeats(const T &anEntry, TLinearOrder< T > anOrder)
Inserts an object into the array in object order, allowing duplicates.
TInt SpecificFindInUnsignedKeyOrderL(const T &anEntry, TInt aMode) const
Finds the object in the array which matches the specified object using a binary search technique.
void InsertInUnsignedKeyOrderL(const T &anEntry)
Inserts an object into the array in ascending unsigned key order, not allowing duplicate entries.
TInt FindReverse(const T &anEntry) const
Finds the last object in the array which matches the specified object using a sequential search.
TInt Append(const T &anEntry)
Apends an object onto the array.
TInt Reserve(TInt aCount)
Reserves space for the specified number of elements.
The user-side handle to a logical channel.
IMPORT_C void DoRequest(TInt aReqNo, TRequestStatus &aStatus)
Queues an asynchronous request for the device driver, taking no parameters.
TInt DoCreate(const TDesC &aDevice, const TVersion &aVer, TInt aUnit, const TDesC *aDriver, const TDesC8 *anInfo, TOwnerType aType=EOwnerProcess, TBool aProtected=EFalse)
Creates the logical channel.
TInt DoSvControl(TInt aFunction)
IMPORT_C TInt DoControl(TInt aFunction)
Makes a synchronous request to the device driver, taking no parameters.
IMPORT_C TInt Open(RMessagePtr2 aMessage, TInt aParam, TOwnerType aType=EOwnerProcess)
Opens a handle to a logical channel using a handle number sent by a client to a server.
IMPORT_C void DoCancel(TUint aReqMask)
Cancels one or more outstanding asynchronous requests.
RFastLock()
Default constructor.
IMPORT_C TInt CreateLocal(TOwnerType aType=EOwnerProcess)
Creates a local fast semaphore, and opens this handle to the semaphore.
IMPORT_C void Signal()
Signals the semaphore once.
IMPORT_C void Wait()
Waits for a signal on the semaphore.
void SetHandle(TInt aHandle)
Sets the handle-number of this handle to the specified value.
IMPORT_C TInt Open(const TFindHandleBase &aHandle, TOwnerType aType)
Opens a handle to a kernel side object found using a find-handle object.
IMPORT_C void HandleInfo(THandleInfo *anInfo)
Gets information about the handle.
IMPORT_C void NotifyDestruction(TRequestStatus &aStatus)
Internal technology API.
TInt Handle() const
Retrieves the handle-number of the object associated with this handle.
TInt OpenByName(const TDesC &aName, TOwnerType aOwnerType, TInt aObjectType)
Implementation for RXxxxx::Open/OpenGlocbal(const TDesC &aName,,TOwnerType aType) functions.
IMPORT_C TInt Duplicate(const RThread &aSrc, TOwnerType aType=EOwnerProcess)
Creates a valid handle to the kernel object for which the specified thread already has a handle.
TInt SetReturnedHandle(TInt aHandleOrError)
Sets the handle-number of this handle to the specified value.
IMPORT_C void SetHandleNC(TInt aHandle)
Sets the handle-number of this handle to the specified value, and marks it as not closable.
RHandleBase()
Default constructor.
IMPORT_C TInt BTraceId() const
Returns a unique object identifier for use with BTrace.
IMPORT_C TUint Attributes() const
static void DoExtendedClose()
IMPORT_C TFullName FullName() const
Gets the full name of the handle.
IMPORT_C void Close()
Closes the handle.
TAttributes
Read/Write attributes for the handle.
IMPORT_C TName Name() const
Gets the name of the handle.
Represents the default implementation for a heap.
virtual UIMPORT_C void Reset()
Frees all allocated cells on this heap.
virtual UIMPORT_C TAny * ReAlloc(TAny *aPtr, TInt aSize, TInt aMode=0)
Increases or decreases the size of an existing cell in the heap.
virtual UIMPORT_C TAny * Alloc(TInt aSize)
Allocates a cell of the specified size from the heap.
virtual UIMPORT_C TInt Extension_(TUint aExtensionId, TAny *&a0, TAny *a1)
virtual UIMPORT_C TInt DebugFunction(TInt aFunc, TAny *a1=NULL, TAny *a2=NULL)
virtual UIMPORT_C TInt Compress()
Compresses the heap.
void(* TWalkFunc)(TAny *, TCellType, TAny *, TInt)
@ EBadAllocatedCellAddress
virtual UIMPORT_C void Free(TAny *aPtr)
Frees the specified cell and returns it to the heap.
virtual UIMPORT_C TInt Available(TInt &aBiggestBlock) const
Gets the total free space currently available on the heap and the space available in the largest free...
virtual UIMPORT_C TInt AllocSize(TInt &aTotalAllocSize) const
Gets the number of cells allocated on this heap, and the total space allocated to them.
virtual UIMPORT_C TInt AllocLen(const TAny *aCell) const
Gets the length of the available space in the specified allocated cell.
An object that encapsulates the details of a client request.
TInt Int2() const
Gets the third message argument as an integer value.
TInt Int1() const
Gets the second message argument as an integer value.
const TAny * Ptr2() const
Gets the third message argument as a pointer type.
void ClearAuthorised() const
Sets the authorised flag to a state of not authorised.
const TAny * Ptr1() const
Gets the second message argument as a pointer type.
TSessionMessages
Defines internal message types.
@ EConnect
A message type used internally that means connect.
@ EDisConnect
A message type used internally that means disconnect.
void SetAuthorised() const
Sets this message to an authorised state.
const TAny * Ptr3() const
Gets the fourth message argument as a pointer type.
TInt Function() const
Gets the the number of the function requested by the client.
TInt Int3() const
Gets the fourth message argument as an integer value.
TBool Authorised() const
Returns whether this message has been authorised by CPolicyServer.
TInt Int0() const
Gets the first message argument as an integer value.
TInt iFunction
The request type.
RMessage2()
Default constructor.
TInt iArgs[KMaxMessageArguments]
A copy of the message arguments.
const TAny * Ptr0() const
Gets the first message argument as a pointer type.
CSession2 * Session() const
Gets a pointer to the session.
A handle to a message sent by the client to the server.
IMPORT_C TBool ClientIsRealtime() const
IMPORT_C TInt GetDesMaxLength(TInt aParam) const
Gets the maximum length of a descriptor argument in the client's process.
TBool HasCapability(TCapability aCapability, const char *aDiagnostic=0) const
IMPORT_C TInt Write(TInt aParam, const TDesC8 &aDes, TInt aOffset=0) const
Writes data from the specified source descriptor to the specified offset within the 8-bit descriptor ...
IMPORT_C TUint ClientProcessFlags() const
void ClientL(RThread &aClient, TOwnerType aOwnerType=EOwnerProcess) const
Opens a handle on the client thread.
IMPORT_C void ReadL(TInt aParam, TDes8 &aDes, TInt aOffset=0) const
Reads data from the specified offset within the 8-bit descriptor argument, into the specified target ...
IMPORT_C TInt GetDesMaxLengthL(TInt aParam) const
Gets the maximum length of a descriptor argument in the client's process, leaving on failure.
IMPORT_C TInt GetDesLength(TInt aParam) const
Gets the length of a descriptor argument in the client's process.
void SetProcessPriorityL(TProcessPriority aPriority) const
Sets the priority of the client's process.
TBool IsNull() const
Tests whether this message handle is empty.
RMessagePtr2()
Default constructor.
IMPORT_C void Kill(TInt aReason) const
Kills the client.
IMPORT_C void Terminate(TInt aReason) const
Terminates the client.
IMPORT_C void Complete(TInt aReason) const
Frees this message.
IMPORT_C TInt GetDesLengthL(TInt aParam) const
Gets the length of a descriptor argument in the client's process, leaving on failure.
IMPORT_C const TRequestStatus * ClientStatus() const
Returns the pointer to the clients TRequestStatus associated with the message.
IMPORT_C TInt Read(TInt aParam, TDes8 &aDes, TInt aOffset=0) const
Reads data from the specified offset within the 8-bit descriptor argument, into the specified target ...
TInt Handle() const
Gets the message handle value.
IMPORT_C void WriteL(TInt aParam, const TDesC8 &aDes, TInt aOffset=0) const
Writes data from the specified source descriptor to the specified offset within the 8-bit descriptor ...
IMPORT_C TVendorId VendorId() const
IMPORT_C TSecureId SecureId() const
IMPORT_C void Panic(const TDesC &aCategory, TInt aReason) const
Panics the client.
void HasCapabilityL(TCapability aCapability, const char *aDiagnosticMessage=0) const
IMPORT_C TInt SetProcessPriority(TProcessPriority aPriority) const
Sets the priority of the client's process.
IMPORT_C TInt Client(RThread &aClient, TOwnerType aOwnerType=EOwnerProcess) const
Opens a handle on the client thread.
Base class used in the derivation of RPointerArray, RArray<TInt>, and RArray<TUint>.
IMPORT_C TInt FindIsq(const TAny *anEntry, TGeneralLinearOrder anOrder) const
IMPORT_C void Remove(TInt anIndex)
IMPORT_C TInt Count() const
IMPORT_C TInt BinarySearch(const TAny *anEntry, TInt &anIndex, TGeneralLinearOrder anOrder) const
IMPORT_C TInt DoReserve(TInt aCount)
IMPORT_C TInt InsertIsqSigned(TInt anEntry, TBool aAllowRepeats)
IMPORT_C TInt FindReverse(const TAny *aEntry) const
IMPORT_C TInt InsertIsqUnsigned(TUint anEntry, TBool aAllowRepeats)
IMPORT_C TAny *& At(TInt anIndex) const
IMPORT_C RPointerArrayBase()
IMPORT_C TInt InsertIsq(const TAny *anEntry, TGeneralLinearOrder anOrder, TBool aAllowRepeats)
IMPORT_C TInt FindIsqSigned(TInt anEntry) const
IMPORT_C TInt Append(const TAny *anEntry)
static IMPORT_C const TAny * GetElementPtr(const CBase *aPtr, TInt aIndex)
IMPORT_C void HeapSortUnsigned()
IMPORT_C TInt FindIsqUnsigned(TUint anEntry) const
IMPORT_C TInt Find(const TAny *anEntry) const
IMPORT_C void GranularCompress()
IMPORT_C TInt Insert(const TAny *anEntry, TInt aPos)
IMPORT_C TInt BinarySearchUnsigned(TUint anEntry, TInt &anIndex) const
IMPORT_C void HeapSort(TGeneralLinearOrder anOrder)
IMPORT_C TInt BinarySearchSigned(TInt anEntry, TInt &anIndex) const
static IMPORT_C TInt GetCount(const CBase *aPtr)
IMPORT_C void HeapSortSigned()
A simple and efficient array of pointers to objects.
T *& operator[](TInt anIndex)
Gets a reference to the object pointer located at the specified position within the array.
TInt FindInAddressOrderL(const T *anEntry) const
Finds the object pointer in the array that matches the specified object pointer, using a binary searc...
void InsertInOrderAllowRepeatsL(const T *anEntry, TLinearOrder< T > anOrder)
Inserts an object pointer into the array so that the object itself is in object order,...
TInt InsertInAddressOrderAllowRepeats(const T *anEntry)
Inserts an object pointer into the array in address order, allowing duplicates.
TInt FindL(const T *anEntry) const
Finds the first object pointer in the array which matches the specified object pointer,...
TInt InsertInAddressOrder(const T *anEntry)
Inserts an object pointer into the array in address order.
void Close()
Closes the array and frees all memory allocated to it.
TInt FindInOrderL(const T *anEntry, TLinearOrder< T > anOrder) const
Finds the object pointer in the array whose object matches the specified object, using a binary searc...
TInt SpecificFindInAddressOrder(const T *anEntry, TInt aMode) const
Finds the object pointer in the array that matches the specified object pointer, using a binary searc...
T *const & operator[](TInt anIndex) const
Gets a reference to the object pointer located at the specified position within the array.
void InsertInOrderL(const T *anEntry, TLinearOrder< T > anOrder)
Inserts an object pointer into the array so that the object itself is in object order.
TInt SpecificFindInOrderL(const T *anEntry, TLinearOrder< T > anOrder, TInt aMode) const
Finds the object pointer in the array whose object matches the specified object, using a binary searc...
TInt Count() const
Gets the number of object pointers in the array.
void Compress()
Compresses the array down to a minimum.
void InsertInAddressOrderAllowRepeatsL(const T *anEntry)
Inserts an object pointer into the array in address order, allowing duplicates.
void Sort(TLinearOrder< T > anOrder)
Sorts the object pointers within the array.
TInt FindReverse(const T *anEntry) const
Finds the last object pointer in the array which matches the specified object pointer,...
void InsertInAddressOrderL(const T *anEntry)
Inserts an object pointer into the array in address order.
void Remove(TInt anIndex)
Removes the object pointer at the specified position from the array.
TInt SpecificFindInAddressOrderL(const T *anEntry, TInt aMode) const
Finds the object pointer in the array that matches the specified object pointer, using a binary searc...
void SortIntoAddressOrder()
Sorts the object pointers within the array into address order.
TInt SpecificFindInOrder(const T *anEntry, TLinearOrder< T > anOrder, TInt aMode) const
Finds the object pointer in the array whose object matches the specified object, using a binary searc...
TInt Reserve(TInt aCount)
Reserves space for the specified number of elements.
TInt FindInOrder(const T *anEntry, TLinearOrder< T > anOrder) const
Finds the object pointer in the array whose object matches the specified object, using a binary searc...
RPointerArray()
Default C++ constructor.
void ReserveL(TInt aCount)
Reserves space for the specified number of elements.
TInt InsertInOrder(const T *anEntry, TLinearOrder< T > anOrder)
Inserts an object pointer into the array so that the object itself is in object order.
void AppendL(const T *anEntry)
Appends an object pointer onto the array.
void Reset()
Empties the array.
TInt InsertInOrderAllowRepeats(const T *anEntry, TLinearOrder< T > anOrder)
Inserts an object pointer into the array so that the object itself is in object order,...
TInt Append(const T *anEntry)
Appends an object pointer onto the array.
TInt Insert(const T *anEntry, TInt aPos)
Inserts an object pointer into the array at the specified position.
TInt FindInAddressOrder(const T *anEntry) const
Finds the object pointer in the array that matches the specified object pointer, using a binary searc...
void ResetAndDestroy()
Empties the array and deletes the referenced objects.
void InsertL(const T *anEntry, TInt aPos)
Inserts an object pointer into the array at the specified position.
void GranularCompress()
Compresses the array down to a granular boundary.
TArray< T * > Array() const
Constructs and returns a generic array.
TInt Find(const T *anEntry) const
Finds the first object pointer in the array which matches the specified object pointer,...
TInt FindReverseL(const T *anEntry) const
Finds the last object pointer in the array which matches the specified object pointer,...
IMPORT_C void Close()
Panic condition: EReadWriteLockStillPending if there are any outstanding clients or pending clients.
IMPORT_C TBool TryUpgradeReadLock()
TReadWriteLockClientCategoryLimit
@ EReadWriteLockClientCategoryLimit
Maximum number of clients in each category: read locked, read lock pending, write lock pending.
IMPORT_C void DowngradeWriteLock()
IMPORT_C void ReadLock()
Panic condition: EReadWriteLockTooManyClients if the resulting number of readers or pending readers e...
IMPORT_C TBool TryWriteLock()
Ask for a write lock without blocking.
IMPORT_C void WriteLock()
Panic condition: EReadWriteLockTooManyClients if the resulting number of pending writers exceeds ERea...
IMPORT_C TBool TryReadLock()
Panic condition: EReadWriteLockTooManyClients if the resulting number of readers exceeds EReadWriteLo...
@ EWriterPriority
Pending writers always get the lock before pending readers.
@ EAlternatePriority
Lock is given alternately to pending readers and writers.
@ EReaderPriority
Pending readers always get the lock before pending writers - beware writer starvation!
RReadWriteLock()
Default constructor.
IMPORT_C TInt CreateLocal(TReadWriteLockPriority aPriority=EWriterPriority)
TInt Open(const TFindSemaphore &aFind, TOwnerType aType=EOwnerProcess)
Opens a handle to the global semaphore found using a TFindSemaphore object.
IMPORT_C TInt CreateGlobal(const TDesC &aName, TInt aCount, TOwnerType aType=EOwnerProcess)
Creates a global semaphore, setting its initial count, and opens this handle to the semaphore.
IMPORT_C void Signal()
Signals the semaphore once.
IMPORT_C TInt CreateLocal(TInt aCount, TOwnerType aType=EOwnerProcess)
Creates a semaphore, setting its initial count, and opens this handle to the semaphore.
IMPORT_C TInt OpenGlobal(const TDesC &aName, TOwnerType aType=EOwnerProcess)
Opens a handle to a global semaphore.
IMPORT_C void Wait()
Waits for a signal on the semaphore.
Client-side handle to a session with a server.
Structure for compile-time definition of a secure ID.
const TSecureId * operator&() const
Structure for compile-time definition of a vendor ID.
const TVendorId * operator&() const
Stores the angular spherical coordinates (Phi,Theta) of a three-dimensional point.
TInt iTheta
The Theta co-ordinate (angle between the Z-axis and the line that links the point and the origin).
TInt iPhi
The Phi co-ordinate (angle between X-axis and the line that links the projection of the point on the ...
const T & operator[](TInt anIndex) const
Gets a reference to the element located at the specified position.
TInt Count() const
Gets the number of elements currently held in the array for which this generic array has been constru...
A build-independent non-modifiable buffer descriptor.
TBufC< S > & operator=(const TText *aString)
Copies data into this descriptor, replacing any existing data.
TBufC()
Constructs an empty build independent non-modifiable buffer descriptor.
TPtr Des()
Creates and returns a build-independent modifiable pointer descriptor for the data represented by thi...
A build-independent modifiable buffer descriptor.
TBuf()
Creates a build-independent modifiable buffer descriptor which contains no data.
TBuf< S > & operator=(const TText *aString)
Class representing an arbitrary set of capabilities.
IMPORT_C void RemoveCapability(TCapability aCapability)
Remove a single capability from the set, if it is present.
IMPORT_C void SetDisabled()
IMPORT_C TBool HasCapabilities(const TCapabilitySet &aCapabilities) const
Test if all the capabilities in a given set are present in this set.
IMPORT_C TBool HasCapability(TCapability aCapability) const
Test if a single capability is present in the set.
IMPORT_C void Union(const TCapabilitySet &aCapabilities)
Perform a union of this capability set with another.
IMPORT_C void Remove(const TCapabilitySet &aCapabilities)
Remove a set of capabilities from this set.
IMPORT_C void AddCapability(TCapability aCapability)
Add a single capability to the set.
IMPORT_C void SetAllSupported()
Make this set consist of all capabilities supported by this OS version.
IMPORT_C void Intersection(const TCapabilitySet &aCapabilities)
Perform an intersection of this capability set with another.
TCapabilitySet()
Default constructor.
IMPORT_C void SetEmpty()
Make this set empty.
void Set(TCapability aCapability)
Make this set consist of a single capability.
Holds a character value and provides a number of utility functions to manipulate it and test its prop...
TBool Eos() const
Tests whether the character is the C/C++ end-of-string character - 0.
IMPORT_C TCategory GetCategory() const
Gets this character's Unicode category.
void Fold()
Converts the character to a form which can be used in tolerant comparisons without control over the o...
TChar operator-(TUint aChar)
Gets the result of subtracting an unsigned integer value from this character object.
void UpperCase()
Converts the character to its uppercase form.
IMPORT_C TBdCategory GetBdCategory() const
Gets the bi-directional category of a character.
IMPORT_C TBool IsUpper() const
Tests whether the character is uppercase.
IMPORT_C TBool IsDigit() const
Tests whether the character is a standard decimal digit.
IMPORT_C TInt GetCombiningClass() const
Gets this character's combining class.
IMPORT_C TBool IsGraph() const
Tests whether the character is a graphic character.
static TText16 GetLowSurrogate(TUint aChar)
Retrieve the low surrogate of a supplementary character.
IMPORT_C void GetInfo(TCharInfo &aInfo) const
Gets this character;s standard category information.
IMPORT_C TBool IsAlpha() const
Tests whether the character is alphabetic.
IMPORT_C TBool IsControl() const
Tests whether the character is a control character.
static TUint JoinSurrogate(TText16 aHighSurrogate, TText16 aLowSurrogate)
Combine a high surrogate and a low surrogate into a supplementary character.
static TBool IsSupplementary(TUint aChar)
IMPORT_C TBool IsAssigned() const
Tests whether this character has an assigned meaning in the Unicode encoding.
static TBool IsHighSurrogate(TText16 aInt16)
IMPORT_C TBool IsAlphaDigit() const
Tests whether the character is alphabetic or a decimal digit.
IMPORT_C TUint GetTitleCase() const
Gets the character value after conversion to titlecase or the character's own value,...
IMPORT_C TBool IsSpace() const
Tests whether the character is a white space character.
IMPORT_C TUint GetLowerCase() const
Gets the character value after conversion to lowercase or the character's own value,...
IMPORT_C TBool Decompose(TPtrC16 &aResult) const
Maps this character to its maximal canonical decomposition.
static TBool IsSurrogate(TText16 aInt16)
TChar & operator+=(TUint aChar)
Adds an unsigned integer value to this character object.
IMPORT_C TCjkWidth GetCjkWidth() const
Gets the Chinese, Japanese, Korean (CJK) notional width.
void TitleCase()
Converts the character to its titlecase form.
TChar operator+(TUint aChar)
Gets the result of adding an unsigned integer value to this character object.
IMPORT_C TBool IsHexDigit() const
Tests whether the character is a hexadecimal digit (0-9, a-f, A-F).
IMPORT_C TBool IsTitle() const
Tests whether this character is in titlecase.
TChar()
Default constructor.
TBdCategory
The bi-directional Unicode character category.
@ EPopDirectionalFormat
Pop Directional Format.
@ EEuropeanNumberSeparator
European number separator.
@ ERightToLeftEmbedding
Right to left embedding.
@ EParagraphSeparator
Paragraph Separator.
@ ECommonNumberSeparator
Common number separator.
@ EEuropeanNumberTerminator
European number terminator.
@ ELeftToRightOverride
Left-to-Right Override.
@ ENonSpacingMark
Non Spacing Mark.
@ EBoundaryNeutral
Boundary Neutral.
@ ELeftToRightEmbedding
Left to right embedding.
@ ERightToLeftOverride
Right-to-Left Override.
@ ELeftToRight
Left to right.
@ EArabicNumber
Arabic number.
@ EOtherNeutral
Other neutrals; all other characters: punctuation, symbols.
@ ERightToLeftArabic
Right to left Arabic.
@ EEuropeanNumber
European number.
@ ESegmentSeparator
Segment separator.
@ ERightToLeft
Right to left.
TCjkWidth
Notional character width as known to East Asian (Chinese, Japanese, Korean (CJK)) coding systems.
@ ENeutralWidth
Includes 'ambiguous width' defined in Unicode Technical Report 11: East Asian Width.
@ EHalfWidth
Character which occupies a single cell.
@ EFullWidth
Character which occupies 2 cells.
@ ENarrow
Characters that are always narrow and have explicit full-width counterparts.
@ EWide
Characters that are always wide.
IMPORT_C TUint GetUpperCase() const
Gets the character value after conversion to uppercase or the character's own value,...
void LowerCase()
Converts the character to its lowercase form.
static IMPORT_C TBool Compose(TUint &aResult, const TDesC16 &aSource)
Composes a string of Unicode characters to produce a single character result.
TChar & operator-=(TUint aChar)
Subtracts an unsigned integer value from this character object.
IMPORT_C TBool IsMirrored() const
Tests whether this character has the mirrored property.
@ EFoldCase
Convert characters to their lower case form if any.
@ EFoldKana
Convert hiragana to katakana.
@ EFoldSpaces
Convert all spaces (ordinary, fixed-width, ideographic, etc.) to ' '.
@ EFoldStandard
Perform standard folding operations, i.e.those done by Fold() with no argument.
@ EFoldAccents
Strip accents.
@ EFoldWidth
Fold fullwidth and halfwidth variants to their standard forms.
@ EFoldDigits
Convert digits representing values 0..9 to characters '0'..'9'.
@ EFoldAll
Perform all possible folding operations.
@ EShiftJIS
The shift-JIS encoding (used in Japan).
@ EUnicode
The Unicode encoding.
IMPORT_C TBool IsPrint() const
Tests whether the character is a printable character.
void SetChar(TUint aChar)
TCategory
General Unicode character category.
@ EPunctuationGroup
Punctuation group.
@ EPsCategory
Punctuation, Open.
@ ELoCategory
Letter, Other.
@ EPcCategory
Punctuation, Connector.
@ EPfCategory
Punctuation, Final Quote.
@ EAlphaGroup
Alphabetic letters.
@ ESymbolGroup
Symbols group.
@ EMaxGraphicCategory
The highest possible graphic character category.
@ EMaxPrintableCategory
The highest possible printable character category.
@ EMaxAssignedCategory
The highest possible category for assigned 16-bit characters; does not include surrogates,...
@ ECnCategory
Other, Not Assigned.
@ ESmCategory
Symbol, Math.
@ EPdCategory
Punctuation, Dash.
@ ENumberGroup
Numbers group.
@ EZpCategory
Separator, Paragraph.
@ EMaxLetterCategory
The highest possible (non-modifier) letter category.
@ ELetterModifierGroup
Letter modifiers.
@ EMcCategory
Mark, Combining.
@ ESkCategory
Symbol, Modifier.
@ ECcCategory
Other, Control.
@ ELmCategory
Letter, Modifier.
@ ENoCategory
Number, Other.
@ EZsCategory
Separator, Space.
@ ESeparatorGroup
Separators group.
@ EMeCategory
Mark, Enclosing.
@ EScCategory
Symbol, Currency.
@ ENdCategory
Number, Decimal Digit.
@ ECoCategory
Other, Private Use.
@ ELetterOtherGroup
Other letters.
@ EPeCategory
Punctuation, Close.
@ ENlCategory
Number, Letter.
@ EMnCategory
Mark, Non-Spacing.
@ EPiCategory
Punctuation, Initial Quote.
@ ELlCategory
Letter, Lowercase.
@ ELtCategory
Letter, Titlecase.
@ EMaxAssignedGroup
The highest possible groups category.
@ ELuCategory
Letter, Uppercase.
@ ECsCategory
Other, Surrogate.
@ ESoCategory
Symbol, Other.
@ EZlCategory
Separator, Line.
@ ECfCategory
Other, Format.
@ EPoCategory
Punctuation, Other.
@ EUnassignedGroup
Unassigned to any other group.
@ EMaxLetterOrLetterModifierCategory
The highest possible letter category.
@ EControlGroup
Control, format, private use, unassigned.
static TBool IsLowSurrogate(TText16 aInt16)
static TText16 GetHighSurrogate(TUint aChar)
Retrieve the high surrogate of a supplementary character.
IMPORT_C TBool IsLower() const
Tests whether the character is lowercase.
IMPORT_C TBool IsPunctuation() const
Tests whether the character is a punctuation character.
IMPORT_C TInt GetNumericValue() const
Gets the integer numeric value of this character.
Base class for searching for global kernel objects.
void Reset()
Resets the find handle to its initial state.
TInt Handle() const
Gets the find-handle number associated with the Kernel object.
Finds all global semaphores whose full names match a specified pattern.
Information about a kernel object.
TInt iNumProcesses
The number of processes which have a handle on the kernel object.
TInt iNumOpenInThread
The number of times that the kernel object is open in the current thread.
TInt iNumThreads
The number of threads which have a handle on the kernel object.
TInt iNumOpenInProcess
The number of times that the kernel object is open in the current process.
A templated class which packages a function that determines whether two objects of a given class type...
TIdentityRelation()
Constructs the object to use the equality operator (==) defined for class T to determine whether two ...
A Version 2 client/server class that clients use to package the arguments to be sent to a server.
TIpcArgs & PinArgs(TBool aPinArg0=ETrue, TBool aPinArg1=ETrue, TBool aPinArg2=ETrue, TBool aPinArg3=ETrue)
Allows the client to specify whether each argument of the TIpcArgs object will be pinned before being...
TInt iArgs[KMaxMessageArguments]
The location where the message arguments are stored.
TArgType
Argument types; some of these may be ORed together to specify type, accessibility,...
@ EDes16
16 bit read/write descriptor.
@ EDesC16
16 bit read only descriptor.
@ EDesC8
8 bit read only descriptor.
@ EDes8
8 bit read/write descriptor.
@ EFlag16Bit
16 bit rather than 8 bit.
@ EUnspecified
Type not specified.
@ EFlagConst
Read only type.
@ EFlagDes
Descriptor type.
@ KBitsPerType
Number of bits of type information used for each of the 4 arguments.
@ KPinMask
The bits used for the pinning attributes of each argument.
@ KPinArg1
Set to pin argument at index 1.
@ KPinArgShift
Bit number of the start of the pin flags.
@ KPinArg3
Set to pin argument at index 3.
@ KPinArg2
Set to pin argument at index 2.
@ KPinArg0
Set to pin argument at index 0.
TNothing
Indicates a Null argument.
@ ENothing
An enum value that can be used to indicate an empty or unused argument to a server.
TInt iFlags
The location where the flag bits describing the argument types are stored.
void Set(TInt aIndex, TNothing)
Sets an argument to default value and type.
TIpcArgs()
Default constructor.
A templated class which packages a function that determines the order of two objects of a given class...
Encapsulates literal text.
const TDesC & operator()() const
Returns a const TDesC type reference.
const TDesC * operator&() const
Returns a const TDesC type pointer.
Packages an object into a modifiable buffer descriptor.
TPckgBuf()
Constructs a packaged modifiable buffer descriptor for an object whose type is defined by the templat...
T & operator()()
Gets a reference to the object contained by this packaged modifiable buffer descriptor.
TPckgBuf & operator=(const TPckgBuf< T > &aRef)
Copies data from the specified packaged modifiable buffer descriptor into this packaged modifiable bu...
Packages a non-modifiable pointer descriptor which represents an object of specific type.
const T & operator()() const
Gets a reference to the object represented by this packaged non-modifiable pointer descriptor.
Packages a modifiable pointer descriptor which represents an object of specific type.
T & operator()()
Gets a reference to the object represented by this packaged modifiable pointer descriptor.
Stores a three-dimensional point in Cartesian or polar co-ordinates.
IMPORT_C TPoint3D operator-() const
Unary minus operator.
IMPORT_C TBool operator!=(const TPoint3D &aPoint3D) const
Compares two 3D points for inequality.
IMPORT_C TBool operator==(const TPoint3D &aPoint3D) const
Compares two 3D points(TPoint3D) for equality.
TInt iZ
The z co-ordinate.
IMPORT_C TPoint3D & operator+=(const TPoint3D &aPoint3D)
TPoint3D addition assignment operator.
IMPORT_C TPoint3D operator+(const TPoint3D &aPoint3D) const
The operator adds the specified point to this point, and returns the resulting value.
IMPORT_C TPoint AsPoint() const
Returns TPoint from TPoint3D.
TInt iY
The y co-ordinate.
IMPORT_C void SetXYZ(TInt aX, TInt aY, TInt aZ)
Set Method to set the xyz co-ordinates of TPoint3D.
IMPORT_C void SetPoint(const TPoint &aPoint)
TPoint3D from TPoint, sets the Z co-ordinate to Zero.
TInt iX
The x co-ordinate.
IMPORT_C TPoint3D & operator-=(const TPoint3D &aPoint3D)
TPoint3D subtraction assignment operator.
TPoint3D()
Constructs default TPoint3D, initialising its iX , iY and iZ members to zero.
Stores a two-dimensional point in Cartesian co-ordinates.
TPoint()
Constructs default point, initialising its iX and iY members to zero.
TInt iX
The x co-ordinate.
IMPORT_C void SetXY(TInt aX, TInt aY)
Sets the x and y co-ordinates for this point.
TInt iY
The y co-ordinate.
IMPORT_C TBool operator==(const TPoint &aPoint) const
Compares two points for equality.
IMPORT_C TPoint & operator-=(const TPoint &aPoint)
TPoint subtraction assignment operator.
IMPORT_C TPoint operator-() const
Unary minus operator.
IMPORT_C TBool operator!=(const TPoint &aPoint) const
Compares two points for inequality.
IMPORT_C TPoint & operator+=(const TPoint &aPoint)
TPoint addition assignment operator.
IMPORT_C TPoint operator+(const TPoint &aPoint) const
The operator adds the specified point to this point, and returns the resulting value.
IMPORT_C TSize AsSize() const
Gets the size of the rectangle whose top left hand corner is the origin of the screen co-ordinates an...
Contains information about the code and data sections belonging to a process.
TUint32 iInitialisedDataBase
The base address of the initialised data section (.data).
TUint32 iCodeSize
The size of the code section (.text).
TUint32 iConstDataSize
The size of the constant data section (.radata).
TUint32 iCodeBase
The code base address (.text).
TUint32 iConstDataBase
The base address of the constant data section (.radata).
TUint32 iUninitialisedDataSize
The size of the uninitialised data section (.bss).
TUint32 iInitialisedDataSize
The size of the initialised data section (.data).
TUint32 iUninitialisedDataBase
The base address of the uninitialised data section (.bss).
A templated class which encapsulates a reference to an object within a wrapper.
Indicates the completion status of a request made to a service provider.
TBool operator>(TInt aVal) const
Tests whether the request status object's completion code is greater than the specified value.
TInt Int() const
Gets this request status object's completion code value.
TInt operator=(TInt aVal)
Assigns the specified completion code to the request status object.
TBool operator!=(TInt aVal) const
Tests whether the request status object's completion code is not equal to the specified value.
TBool operator>=(TInt aVal) const
Tests whether the request status object's completion code is greater than or equal to the specified v...
TBool operator==(TInt aVal) const
Tests whether the request status object's completion code is the same as the specified value.
TRequestStatus()
Default constructor.
TBool operator<=(TInt aVal) const
Tests whether the request status object's completion code is less than or equal to the specified valu...
TBool operator<(TInt aVal) const
Tests whether the request status object's completion code is less than the specified value.
A class used to represent the Secure ID of a process or executable image.
TSecureId()
Default constructor.
Class representing all security attributes of a process or DLL.
TSecurityInfo()
Default constructor.
IMPORT_C void SetToCreatorInfo()
Sets this TSecurityInfo to the security attributes of this process' creator.
TCapabilitySet iCaps
Capability Set.
void Set(RProcess aProcess)
Constructs a TSecurityInfo using the security attributes of aProcess.
void SetToCurrentInfo()
Sets this TSecurityInfo to the security attributes of this process.
TSecureId iSecureId
Secure ID.
TVendorId iVendorId
Vendor ID.
Class representing a generic security policy.
TSecurityPolicy()
Constructs a TSecurityPolicy that will always fail, irrespective of the checked object's attributes.
friend class TCompiledSecurityPolicy
IMPORT_C TInt Set(const TDesC8 &aDes)
Sets this TSecurityPolicy to a copy of the policy described by the supplied descriptor.
TBool CheckPolicyCreator(const char *aDiagnostic=0) const
Checks this policy against the platform security attributes of this process' creator.
TType
Constants to specify the type of TSecurityPolicy objects.
@ ETypeLimit
The number of possible TSecurityPolicy types This is intended for internal Symbian use only.
@ ETypeC7
Up to 7 capabilities.
@ ETypeS3
Secure ID and up to 3 capabilities.
@ ETypeV3
Vendor ID and up to 3 capabilities.
@ ETypeC3
Up to 3 capabilities.
IMPORT_C TPtrC8 Package() const
Constructs a TPtrC8 wrapping the platform security attributes of this TSecurityPolicy.
TBool CheckPolicy(RProcess aProcess, const char *aDiagnostic=0) const
Checks this policy against the platform security attributes of aProcess.
TBool Validate() const
Checks that this object is in a valid state.
The shared chunk buffer configuration class (used by the multimedia device drivers).
TSharedChunkBufConfigBase()
TInt iNumBuffers
The number of buffers.
TUint iFlags
Shared chunk buffer flag settings.
TInt iBufferSizeInBytes
The size of each buffer in bytes.
TInt iReserved1
Reserved field.
Stores a two-dimensional size as a width and a height value.
TInt iWidth
The width of this TSize object.
TSize()
Constructs the size object with its iWidth and iHeight members set to zero.
TInt iHeight
The height of this TSize object.
IMPORT_C TBool operator==(const TSize &aSize) const
Compares this TSize with the specified TSize for equality.
IMPORT_C TPoint AsPoint() const
Gets a TPoint object whose co-ordinates are the width and height of this TSize.
IMPORT_C TSize operator+(const TSize &aSize) const
TSize addition operator.
IMPORT_C TBool operator!=(const TSize &aSize) const
Compares two TSize for inequality.
IMPORT_C void SetSize(TInt aWidth, TInt aHeight)
Sets the width and height.
IMPORT_C TSize & operator+=(const TSize &aSize)
TSize addition assignment operator.
IMPORT_C TSize & operator-=(const TSize &aSize)
TSize subtraction assignment operator.
IMPORT_C TSize operator-() const
Unary minus operator.
Stores information about a thread's stack.
TLinAddr iLimit
The address which the stack pointer would contain if the stack were full, (The lowest valid address).
TLinAddr iBase
The address which the stack pointer would contain if the stack were empty.
TLinAddr iExpandLimit
The limit value for the stack if it were expanded to its maximum size.
Abstract class that defines a handler to work with the TRAP mechanism.
static IMPORT_C void UnTrap()
IMPORT_C TInt Trap(TInt &aResult)
Encapsulates a set of three unique identifiers (UIDs) which, in combination, identify a system object...
IMPORT_C const TUid & operator[](TInt anIndex) const
Gets the UID component as identified by the specified index.
IMPORT_C TUidType()
Default constructor.
IMPORT_C TBool IsPresent(TUid aUid) const
Tests if any of the component UIDs are equal to the specified UID.
IMPORT_C TUid MostDerived() const
Gets the most derived UID.
IMPORT_C TBool operator!=(const TUidType &aUidType) const
Compares this UID type for inequality with the specified UID type.
IMPORT_C TBool operator==(const TUidType &aUidType) const
Compares this UID type for equality with the specified UID type.
IMPORT_C TBool IsValid() const
Tests the object for a valid (non-KNullUid) UID type.
A globally unique 32-bit number.
IMPORT_C TBool operator==(const TUid &aUid) const
Compares two UIDs for equality.
IMPORT_C TBool operator!=(const TUid &aUid) const
Compares two UIDs for inequality.
static TUid Null()
Constructs a Null-valued TUid object.
TInt32 iUid
The 32-bit integer UID value.
IMPORT_C TUidName Name() const
Generates and returns the standard text form of the UID.
static TUid Uid(TInt aUid)
Constructs the TUid object from a 32-bit integer.
A class used to represent the Vendor ID of a process or executable image.
TVendorId()
Default constructor which leaves the object in an undefined state.
Contains version information.
TInt8 iMinor
The minor version number.
TInt8 iMajor
The major version number.
TInt16 iBuild
The build number.
IMPORT_C TVersion()
Default constructor.
IMPORT_C TVersionName Name() const
Gets a descriptor buffer containing the formatted character representation of the version information...
A set of static functions for constructing fixed length heaps and local or global heaps.
TBool operator!=(RMessagePtr2 aLeft, RMessagePtr2 aRight)
TBuf< KMaxPath > TPath
A buffer that can contain the name of a path.
RBuf8 RBuf
Defines a build-independent resizable buffer descriptor.
TBuf< KMaxExitCategoryName > TExitCategoryName
Defines a modifiable buffer descriptor to contain the category name identifying the cause of thread o...
TInt LimX(TInt aVal, TUint aLimit)
Tests whether the specified value is strictly less than the specified upper limit.
T * PtrAdd(T *aPtr, S aVal)
Adds a value to a pointer.
HBufC8 HBufC
Defines a build-independent heap descriptor.
TBuf< KMaxVersionName > TVersionName
Version name type.
__invalid_capability_value
A dummy enum for use by the CAPABILITY_AS_TUINT8 macro.
T Max(T aLeft, T aRight)
Returns the larger of two values.
TProcessMemoryInfo TModuleMemoryInfo
Defines a more useful synonym for TProcessMemoryInfo.
TRefByValue< const TDesC > __TRefDesC
Value reference used in operator TLitC::__TRefDesC().
IMPORT_C TAny * memcpy(TAny *aTrg, const TAny *aSrc, unsigned int aLength)
A Nanokernel utility function that copies bytes in memory.
TPtr8 TPtr
Defines a build-independent modifiable pointer descriptor.
IMPORT_C TAny * memclr(TAny *aTrg, unsigned int aLength)
A Nanokernel utility function that sets the specified number of bytes to binary zero.
TBuf8< KMaxSerialNumLength > TMediaSerialNumber
TBool(* TGeneralIdentityRelation)(const TAny *, const TAny *)
Defines a function type used by a TIdentityRelation object.
TDes8 TDes
Defines a build-independent modifiable descriptor.
T Abs(T aVal)
Returns an absolute value.
TPtrC8 TPtrC
Defines a build-independent non-modifiable pointer descriptor.
const TInt KMaxSecurityPolicySize
Maximum size of any future extension to TSecurityPolicy.
TBuf< KMaxFileName > TFileName
A buffer that can contain the name of a file.
_LIT8(KNullDesC8,"")
Defines an empty or null literal descriptor for use with 8-bit descriptors.
TPckgBuf< TSecurityPolicy > TSecurityPolicyBuf
Provides a TPkcgBuf wrapper for a descriptorised TSecurityPolicy.
IMPORT_C TAny * wordmove(TAny *aTrg, const TAny *aSrc, unsigned int aLength)
A Nanokernel utility function that moves (copies) bytes in memory.
TBool operator==(RMessagePtr2 aLeft, RMessagePtr2 aRight)
@ EArrayFindMode_First
Indicates that the first element in a block of duplicate elements is returned.
@ EArrayFindMode_Any
Indicates that any element in a block of duplicate elements can be returned by a search function.
@ EArrayFindMode_Last
Indicates that the first element after the last element in a block of duplicate elements is returned.
TInt(* TGeneralLinearOrder)(const TAny *, const TAny *)
Defines a function type used by a TLinearOrder object.
TDesC8 TDesC
Defines a build-independent non-modifiable descriptor.
void(OnlyCreateWithNull::* __NullPMF)()
T Align4(T aValue)
Aligns the specified value onto a 4-byte boundary.
_LIT16(KNullDesC16,"")
Defines an empty or null literal descriptor for use with 16-bit descriptors.
T * PtrSub(T *aPtr, S aVal)
Subtracts a value from a pointer.
IMPORT_C TInt memcompare(const TUint8 *aLeft, TInt aLeftLen, const TUint8 *aRight, TInt aRightLen)
A Nanokernel utility function that compares two memory buffers for equality.
TBuf8< KMaxMediaPassword > TMediaPassword
Defines an 8-bit modifiable buffer descriptor to contain passwords when dealing with password securit...
const TInt KCapabilitySetMaxSize
Maximum size of capability set.
TBool Rng(T aMin, T aVal, T aMax)
Determines whether a specified value lies within a defined range of values.
TInt Lim(TInt aVal, TUint aLimit)
Tests whether the specified value is less than or equal to the specified upper limit.
const TUint KScFlagUseGuardPages
A configuration flag for the shared chunk buffer configuration class (used by the multimedia device d...
TBuf< KMaxName > TName
Defines a modifiable buffer descriptor that can contain the name of a reference counting object.
TDes8Overflow TDesOverflow
Defines a build-independent descriptor overflow handler.
TBuf< KMaxUidName > TUidName
Defines a modifiable buffer descriptor for the text form of the UID.
_LIT(KNullDesC,"")
Defines an empty or null literal descriptor.
IMPORT_C TAny * memset(TAny *aTrg, TInt aValue, unsigned int aLength)
A Nanokernel utility function that sets all of the specified number of bytes to the specified fill va...
const TUint KScFlagBufOffsetListInUse
A configuration flag for the shared chunk buffer configuration class (used by the multimedia device d...
T Align2(T aValue)
Aligns the specified value onto a 2-byte boundary.
TBuf< KMaxFullName > TFullName
Defines a modifiable buffer descriptor that can contain the full name of a reference counting object.
T Min(T aLeft, T aRight)
Returns the smaller of two values.
IMPORT_C TAny * memmove(TAny *aTrg, const TAny *aSrc, unsigned int aLength)
A Nanokernel utility function that moves (copies) bytes in memory.
TInt nestingLevel
The nested level.
TInt allocCount
The cumulative number of allocated cells.
void AddCapability(TCapability aCap1)
const TUint32 & operator[](TInt aIndex) const
void Remove(const SCapabilitySet &aCaps)
SDouble & operator=(TReal a)
SInt64 & operator=(Int64 a)
SUint64 & operator=(Uint64 a)
A structure to hold information about a Unicode character.
TInt iNumericValue
Integer numeric value: -1 if none, -2 if a fraction.
TBdCategory iBdCategory
Bi-directional category.
TInt iCombiningClass
Combining class: number (currently) in the range 0..234.
TBool iMirrored
True, if the character is mirrored.
TUint iLowerCase
Lower case form.
TUint iTitleCase
Title case form.
TUint iUpperCase
Upper case form.
TCategory iCategory
General category.
Structure for compile-time initialisation of a security policy.
TUint32 iB
Internal component API.
const TSecurityPolicy & operator()() const
A method to explicity generate a TSecurityPolicy reference.
TBool CheckPolicyCreator(const char *aDiagnostic=0) const
TSecurityPolicy::CheckPolicyCreator(const char* aDiagnostic)
const TSecurityPolicy * operator&() const
'Address of' operator which generates a TSecurityPolicy*
TBool CheckPolicy(RProcess aProcess, const char *aDiagnostic=0) const
TSecurityPolicy::CheckPolicy(RProcess aProcess, const char* aDiagnostic)
TUint32 iA
Internal component API.