24#pragma diag_suppress 830
65 inline TAny*
operator new(TUint aSize, TAny* aBase) __NO_THROW;
66 inline TAny*
operator new(TUint aSize) __NO_THROW;
67 inline TAny*
operator new(TUint aSize, TLeave);
68 inline TAny*
operator new(TUint aSize, TUint aExtraSize) __NO_THROW;
69 inline TAny*
operator new(TUint aSize, TLeave, TUint aExtraSize);
72 IMPORT_C
virtual TInt
Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
107 inline TInt
Size()
const;
108 IMPORT_C
void Reset();
109 IMPORT_C
void Read(TInt aPos,TDes8& aDes)
const;
110 IMPORT_C
void Read(TInt aPos,TDes8& aDes,TInt aLength)
const;
111 IMPORT_C
void Read(TInt aPos,TAny* aPtr,TInt aLength)
const;
112 IMPORT_C
void Write(TInt aPos,
const TDesC8& aDes);
113 IMPORT_C
void Write(TInt aPos,
const TDesC8& aDes,TInt aLength);
114 IMPORT_C
void Write(TInt aPos,
const TAny* aPtr,TInt aLength);
115 IMPORT_C
void InsertL(TInt aPos,
const TDesC8& aDes);
116 IMPORT_C
void InsertL(TInt aPos,
const TDesC8& aDes,TInt aLength);
117 IMPORT_C
void InsertL(TInt aPos,
const TAny* aPtr,TInt aLength);
118 IMPORT_C
void ExpandL(TInt aPos,TInt aLength);
149 virtual void Delete(TInt aPos,TInt aLength)=0;
165 virtual TPtr8
Ptr(TInt aPos)=0;
186 virtual TPtr8
BackPtr(TInt aPos)=0;
188 virtual void DoInsertL(TInt aPos,
const TAny* aPtr,TInt aLength)=0;
220 IMPORT_C
void Delete(TInt aPos,TInt aLength);
221 IMPORT_C TPtr8
Ptr(TInt aPos);
226 IMPORT_C
void DoInsertL(TInt aPos,
const TAny* aPtr,TInt aLength);
261 IMPORT_C
void Delete(TInt aPos,TInt aLength);
262 IMPORT_C TPtr8
Ptr(TInt aPos);
263 IMPORT_C TPtr8
BackPtr(TInt aPos);
265 IMPORT_C
CBufSeg(TInt anExpandSize);
272 IMPORT_C
void DoInsertL(TInt aPos,
const TAny* aPtr,TInt aLength);
313 IMPORT_C
virtual void Set(
CBufBase* aBase,TInt aRecordLength);
314 IMPORT_C TAny*
At(TInt anIndex)
const;
340 inline TInt
Count()
const;
341 inline TInt
Length()
const;
343 IMPORT_C
void Reset();
345 IMPORT_C TAny*
At(TInt anIndex)
const;
346 IMPORT_C TAny*
End(TInt anIndex)
const;
347 IMPORT_C TAny*
Back(TInt anIndex)
const;
348 IMPORT_C
void Delete(TInt anIndex);
349 IMPORT_C
void Delete(TInt anIndex,TInt aCount);
350 IMPORT_C TAny*
ExpandL(TInt anIndex);
353 IMPORT_C
void InsertL(TInt anIndex,
const TAny* aPtr);
354 IMPORT_C
void InsertL(TInt anIndex,
const TAny* aPtr,TInt aCount);
357 IMPORT_C
void ResizeL(TInt aCount,
const TAny* aPtr);
360 IMPORT_C
void InsertRepL(TInt anIndex,
const TAny* aPtr,TInt aReplicas);
364 IMPORT_C
static const TAny*
AtR(
const CBase* aPtr,TInt anIndex);
391 inline const T&
operator[](TInt anIndex)
const;
393 inline const T&
At(TInt anIndex)
const;
394 inline const T*
End(TInt anIndex)
const;
395 inline const T*
Back(TInt anIndex)
const;
396 inline T&
At(TInt anIndex);
397 inline T*
End(TInt anIndex);
398 inline T*
Back(TInt anIndex);
399 inline void AppendL(
const T& aRef);
400 inline void AppendL(
const T* aPtr,TInt aCount);
401 inline void AppendL(
const T& aRef,TInt aReplicas);
402 inline T&
ExpandL(TInt anIndex);
406 inline void InsertL(TInt anIndex,
const T& aRef);
407 inline void InsertL(TInt anIndex,
const T* aPtr,TInt aCount);
408 inline void InsertL(TInt anIndex,
const T& aRef,TInt aReplicas);
412 inline void ResizeL(TInt aCount,
const T& aRef);
434 inline const TAny*
At(TInt anIndex)
const;
435 inline const TAny*
End(TInt anIndex)
const;
436 inline const TAny*
Back(TInt anIndex)
const;
437 inline TAny*
At(TInt anIndex);
438 inline TAny*
End(TInt anIndex);
439 inline TAny*
Back(TInt anIndex);
440 inline void AppendL(
const TAny* aPtr);
441 inline void AppendL(
const TAny* aPtr,TInt aCount);
714 IMPORT_C TAny*
At(TInt anIndex)
const;
739 inline TInt
Count()
const;
740 IMPORT_C TInt
Length(TInt anIndex)
const;
742 IMPORT_C
void Reset();
744 IMPORT_C TAny*
At(TInt anIndex)
const;
746 IMPORT_C
void Delete(TInt anIndex,TInt aCount);
747 IMPORT_C TAny*
ExpandL(TInt anIndex,TInt aLength);
748 IMPORT_C TInt
Find(
const TAny* aPtr,
TKeyArrayVar& aKey,TInt& anIndex)
const;
750 IMPORT_C
void InsertL(TInt anIndex,
const TAny* aPtr,TInt aLength);
757 IMPORT_C
static const TAny*
AtR(
const CBase* aPtr,TInt anIndex);
785 inline const T&
At(TInt anIndex)
const;
786 inline T&
At(TInt anIndex);
787 inline void AppendL(
const T& aRef,TInt aLength);
792 inline void InsertL(TInt anIndex,
const T& aRef,TInt aLength);
820 inline const TAny*
At(TInt anIndex)
const;
821 inline TAny*
At(TInt anIndex);
822 inline void AppendL(
const TAny* aPtr,TInt aLength);
915 IMPORT_C TAny*
At(TInt anIndex)
const;
937 inline TInt
Count()
const;
938 IMPORT_C TInt
Length(TInt anIndex)
const;
940 IMPORT_C
void Reset();
942 IMPORT_C TAny*
At(TInt anIndex)
const;
943 IMPORT_C
void Delete(TInt anIndex);
944 IMPORT_C
void Delete(TInt anIndex,TInt aCount);
945 IMPORT_C TAny*
ExpandL(TInt anIndex,TInt aLength);
946 IMPORT_C TInt
Find(
const TAny* aPtr,
TKeyArrayPak& aKey,TInt& anIndex)
const;
948 IMPORT_C
void InsertL(TInt anIndex,
const TAny* aPtr,TInt aLength);
954 IMPORT_C TInt
GetOffset(TInt anIndex)
const;
957 IMPORT_C
static const TAny*
AtR(
const CBase* aPtr,TInt anIndex);
985 inline const T&
operator[](TInt anIndex)
const;
987 inline const T&
At(TInt anIndex)
const;
988 inline T&
At(TInt anIndex);
989 inline void AppendL(
const T& aRef,TInt aLength);
994 inline void InsertL(TInt anIndex,
const T& aRef,TInt aLength);
1022 inline const TAny*
At(TInt anIndex)
const;
1023 inline TAny*
At(TInt anIndex);
1024 inline void AppendL(
const TAny* aPtr,TInt aLength);
1025 inline TAny*
ExtendL(TInt aLength);
1087 IMPORT_C
virtual TInt
Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
1144 IMPORT_C
CObject*
At(TInt aHandle,TInt aUniqueID);
1146 IMPORT_C
CObject*
AtL(TInt aHandle,TInt aUniqueID);
1151 inline TInt
Count()
const;
1159 TInt iHighWaterMark;
1162 SObjectIxRec *iObjects;
1164 TInt iUpdateDisabled;
1216 inline TInt
Count()
const;
1254#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
1276 TUint16 iNextUniqueID;
1277 TUint16 iUniqueIDHasWrapped;
1284class TCleanupStackItem;
1344 IMPORT_C
void PushL(TAny* aPtr);
1347 IMPORT_C
void Pop();
1348 IMPORT_C
void Pop(TInt aCount);
1353 IMPORT_C
void Check(TAny* aExpectedItem);
1355 IMPORT_C
void DoPop(TInt aCount,TBool aDestroy);
1356 IMPORT_C
void DoPopAll(TBool aDestroy);
1363 TCleanupStackItem*
iBase;
1369 TCleanupStackItem*
iTop;
1375 TCleanupStackItem*
iNext;
1393 TCleanupTrapHandler();
1394 virtual void Trap();
1395 virtual void UnTrap();
1397 virtual void Leave(TInt aValue);
1424 static void Close(TAny *aObj);
1452 TCleanupTrapHandler iHandler;
1474 inline TInt
Count()
const;
1475 inline TInt
Length()
const;
1477 IMPORT_C
void Reset();
1480 IMPORT_C TInt
DoAdd(
const TUint8* aPtr);
1481 IMPORT_C TInt
DoAdd(
const TUint8* aPtr,TInt aCount);
1483 IMPORT_C TInt
DoRemove(TUint8* aPtr,TInt aCount);
1509#if defined(__VC32__)
1512 inline TInt
Add(
const T* aPtr);
1513 inline TInt
Add(
const T* aPtr,TInt aCount);
1514 inline TInt
Remove(T* aPtr);
1515 inline TInt
Remove(T* aPtr,TInt aCount);
1534 IMPORT_C TInt
Get();
1535 IMPORT_C TInt
Put(TInt aVal);
1600 IMPORT_C
CActive(TInt aPriority);
1651 virtual void RunL() =0;
1652 IMPORT_C
virtual TInt
RunError(TInt aError);
1654 IMPORT_C
virtual TInt
Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
1695 IMPORT_C
static CIdle*
New(TInt aPriority);
1696 IMPORT_C
static CIdle*
NewL(TInt aPriority);
1700 IMPORT_C
CIdle(TInt aPriority);
1701 IMPORT_C
void RunL();
1750 IMPORT_C
virtual void Call();
1777 virtual void RunL();
1880 void Activate(TBool aRequeueTimer = EFalse);
1896 const TInt iTickPeriod;
1941 IMPORT_C
void At(
const TTime& aTime);
1942 IMPORT_C
void AtUTC(
const TTime& aTimeInUTC);
1944 IMPORT_C
void Lock(TTimerLockSpec aLock);
1948 IMPORT_C
CTimer(TInt aPriority);
2007 IMPORT_C
void RunL();
2100 IMPORT_C
void Start(TTimerLockSpec aLock,
MBeating *aBeating);
2105 TTimerLockSpec iLock;
2140 IMPORT_C
virtual void CreateL();
2161 IMPORT_C
virtual TInt
Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
2170 TInt iResourceCountMark;
2227 IMPORT_C
void RunL();
2228 IMPORT_C TInt
RunError(TInt aError);
2230 IMPORT_C
virtual TInt
Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
2257 void Connect(
const RMessage2& aMessage);
2274 TUint8 iSessionType;
2276 TUint16 iServerOpts;
2285 void Disconnect(
const RMessage2& aMessage);
2286 static void BadMessage(
const RMessage2& aMessage);
2287 static void NotConnected(
const RMessage2& aMessage);
2405 class TPolicyElement
2776 IMPORT_C
virtual TInt
Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
2778 IMPORT_C
virtual void RunL();
2779 IMPORT_C
virtual TInt RunError(TInt aError);
2828 IMPORT_C
static void Stop();
2829 IMPORT_C
static TBool
RunIfReady(TInt& aError, TInt aMinimumPriority);
2832 IMPORT_C
virtual void Error(TInt aError)
const;
2833 IMPORT_C
void Halt(TInt aExitCode)
const;
2836 class TCleanupBundle
2844 IMPORT_C
virtual void OnStarting();
2845 IMPORT_C
virtual void OnStopping();
2846 IMPORT_C
virtual void Reserved_1();
2847 IMPORT_C
virtual void Reserved_2();
2849 void DoRunL(
TLoopOwner*
const volatile& aLoop,
CActive*
volatile & aCurrentObj, TCleanupBundle* aCleanupBundle);
2851 IMPORT_C
virtual TInt
Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
2853 inline TInt
Level()
const;
2882 IMPORT_C
void Start();
2904 IMPORT_C
static void PushL(TAny* aPtr);
2907 IMPORT_C
static void Pop();
2908 IMPORT_C
static void Pop(TInt aCount);
2911 IMPORT_C
static void Check(TAny* aExpectedItem);
2912 inline static void Pop(TAny* aExpectedItem);
2913 inline static void Pop(TInt aCount, TAny* aLastExpectedItem);
2915 inline static void PopAndDestroy(TInt aCount, TAny* aLastExpectedItem);
2937 static void Delete(TAny *aPtr);
2999 inline static void PushL(T* aPtr);
3001 static void ArrayDelete(TAny *aPtr);
3065 inline static void PushL(T& aRef);
3067 static void Close(TAny *aPtr);
3143 inline static void PushL(T& aRef);
3145 static void Release(TAny *aPtr);
3212 IMPORT_C
static CConsoleBase*
NewL(
const TDesC& aTitle,
TSize aSize);
3215#include <e32base.inl>
3217#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
3218#include <e32base_private.h>
Controls a single scheduling loop in the current active scheduler.
IMPORT_C CActiveSchedulerWait()
Default constructor.
IMPORT_C TBool CanStopNow() const
Reports whether stopping will have immediate effect.
IMPORT_C void Start()
Starts a new wait loop under the control of the current active scheduler.
IMPORT_C ~CActiveSchedulerWait()
Ensures that the attached scheduler loop, and all nested loops, are stopped prior to destruction.
IMPORT_C void AsyncStop()
Stops the scheduling loop owned by this object.
TBool IsStarted() const
Reports whether this CActiveSchedulerWait object is currently started.
Controls the handling of asynchronous requests as represented by active objects.
IMPORT_C void Halt(TInt aExitCode) const
Unilaterally terminates the current scheduler loop.
static IMPORT_C void Install(CActiveScheduler *aScheduler)
Installs the specified active scheduler as the current active scheduler.
virtual IMPORT_C void Error(TInt aError) const
Handles the result of a leave occurring in an active object s RunL() function.
static IMPORT_C CActiveScheduler * Current()
Gets a pointer to the currently installed active scheduler.
IMPORT_C TInt StackDepth() const
Gets the current number of nested wait loops.
TInt Level() const
Use the StackDepth() function instead.
virtual IMPORT_C void WaitForAnyRequest()
Wait for an asynchronous request to complete.
static IMPORT_C TBool RunIfReady(TInt &aError, TInt aMinimumPriority)
Causes the RunL() function of at most one pending active object of priority aMinimumPriority or great...
IMPORT_C CActiveScheduler()
Constructs an active scheduler.
static IMPORT_C CActiveScheduler * Replace(CActiveScheduler *aNewActiveScheduler)
Allows the current active scheduler to be replaced, while retaining its active objects.
IMPORT_C ~CActiveScheduler()
Frees resources prior to destruction.
static IMPORT_C void Start()
Starts a new wait loop under the control of the current active scheduler.
static IMPORT_C void Stop()
Stops the wait loop started by the most recent call to Start().
static IMPORT_C void Add(CActive *aActive)
Adds the specified active object to the current active scheduler.
virtual IMPORT_C TInt Extension_(TUint aExtensionId, TAny *&a0, TAny *a1)
Extension function.
The core class of the active object abstraction.
IMPORT_C void SetPriority(TInt aPriority)
Sets the priority of the active object.
virtual void RunL()=0
Handles an active object's request completion event.
TPriority
Defines standard priorities for active objects.
@ EPriorityIdle
A low priority, useful for active objects representing background processing.
@ EPriorityLow
A priority higher than EPriorityIdle but lower than EPriorityStandard.
@ EPriorityUserInput
A priority higher than EPriorityStandard; useful for active objects handling user input.
@ EPriorityHigh
A priority higher than EPriorityUserInput.
@ EPriorityStandard
Most active objects will have this priority.
TRequestStatus iStatus
The request status associated with an asynchronous request.
IMPORT_C void Deque()
Removes the active object from the active scheduler's list of active objects.
TBool IsActive() const
Determines whether the active object has a request outstanding.
IMPORT_C void SetActive()
Indicates that the active object has issued a request and that it is now outstanding.
virtual IMPORT_C TInt Extension_(TUint aExtensionId, TAny *&a0, TAny *a1)
Extension function.
IMPORT_C ~CActive()
Frees resources prior to destruction.
TBool IsAdded() const
Determines whether the active object has been added to the active scheduler's list of active objects.
IMPORT_C void Cancel()
Cancels the wait for completion of an outstanding request.
TInt Priority() const
Gets the priority of the active object.
virtual void DoCancel()=0
Implements cancellation of an outstanding request.
virtual IMPORT_C TInt RunError(TInt aError)
Handles a leave occurring in the request completion event handler RunL().
Base class for arrays of fixed length objects.
IMPORT_C void SetReserveFlatL(TInt aCount)
Reserve space to contain aCount items.
IMPORT_C void Delete(TInt anIndex)
Deletes a single element from the array at a specified position.
IMPORT_C void Compress()
Compresses the array.
IMPORT_C TAny * At(TInt anIndex) const
Index into the array.
IMPORT_C ~CArrayFixBase()
Destructor.
IMPORT_C void InsertL(TInt anIndex, const TAny *aPtr)
Insert a record into the array.
IMPORT_C void Reset()
Deletes all elements from the array and frees the memory allocated to the array buffer.
IMPORT_C void InsertRepL(TInt anIndex, const TAny *aPtr, TInt aReplicas)
Insert aReplicas copies of a record into the array.
static IMPORT_C const TAny * AtR(const CBase *aPtr, TInt anIndex)
Return the address of an item in the array.
IMPORT_C TInt InsertIsqL(const TAny *aPtr, TKeyArrayFix &aKey)
Insert in sequence, no duplicates allowed.
TInt Length() const
Gets the length of an element.
IMPORT_C TInt InsertIsqAllowDuplicatesL(const TAny *aPtr, TKeyArrayFix &aKey)
Insert in sequence, allow duplicates.
IMPORT_C TAny * Back(TInt anIndex) const
Return a pointer to contiguous elements before anIndex.
IMPORT_C TInt Find(const TAny *aPtr, TKeyArrayFix &aKey, TInt &anIndex) const
Find in the array using a sequential search.
IMPORT_C TInt FindIsq(const TAny *aPtr, TKeyArrayFix &aKey, TInt &anIndex) const
Find in the array using a binary search.
IMPORT_C TAny * End(TInt anIndex) const
Return a pointer past contiguous elements starting at anIndex.
IMPORT_C void ResizeL(TInt aCount, const TAny *aPtr)
Resize the array to contain aCount records, copying a record into any new slots.
TInt Count() const
Gets the number of elements held in the array.
IMPORT_C TAny * ExpandL(TInt anIndex)
Expand the array to make room for a new record at anIndex.
IMPORT_C void SetKey(TKeyArrayFix &aKey) const
Set the key data.
IMPORT_C TInt Sort(TKeyArrayFix &aKey)
Sorts the elements of the array into key sequence.
static IMPORT_C TInt CountR(const CBase *aPtr)
Return the number of items in the array.
void SetReserveL(TInt aCount)
Reserves space in the array buffer.
Array of fixed length objects contained within a flat dynamic buffer.
void SetReserveL(TInt aCount)
Reserves space in the array buffer.
Array of fixed length objects contained within a segmented buffer.
CArrayFixSeg(TInt aGranularity)
Constructs a segmented array of fixed length objects with the specified granularity.
A thin templated base class for arrays of fixed length objects.
const T * End(TInt anIndex) const
Gets a pointer to the (const) first byte following the end of the contiguous region containing the el...
T & ExtendL()
Expands the array by one element at the end of the array.
const T & At(TInt anIndex) const
Gets a const reference to the element located at the specified position within the array.
TInt FindIsq(const T &aRef, TKeyArrayFix &aKey, TInt &anIndex) const
Finds the position of an element within the array, based on the matching of keys, using a binary sear...
void ResizeL(TInt aCount)
Changes the size of the array so that it contains the specified number of elements.
void InsertL(TInt anIndex, const T &aRef)
Inserts an element into the array at the specified position.
TInt InsertIsqAllowDuplicatesL(const T &aRef, TKeyArrayFix &aKey)
Inserts a single element into the array at a position determined by a key, allowing duplicates.
const T & operator[](TInt anIndex) const
Gets a const reference to the element located at the specified position within the array.
TInt Find(const T &aRef, TKeyArrayFix &aKey, TInt &anIndex) const
Finds the position of an element within the array, based on the matching of keys, using a sequential ...
const T * Back(TInt anIndex) const
Gets a pointer to the (const) beginning of a contiguous region.
void AppendL(const T &aRef)
Appends a single element onto the end of the array.
TInt InsertIsqL(const T &aRef, TKeyArrayFix &aKey)
Inserts a single element into the array at a position determined by a key.
const TArray< T > Array() const
Constructs and returns a TArray<T> object.
T & ExpandL(TInt anIndex)
Expands the array by one element at the specified position.
An implementation base class for all variable length, packed arrays.
IMPORT_C TInt InsertIsqAllowDuplicatesL(const TAny *aPtr, TInt aLength, TKeyArrayPak &aKey)
Insert in sequence, allow duplicates.
IMPORT_C TInt Find(const TAny *aPtr, TKeyArrayPak &aKey, TInt &anIndex) const
Find using a sequential search.
IMPORT_C TInt InsertIsqL(const TAny *aPtr, TInt aLength, TKeyArrayPak &aKey)
Insert in sequence, no duplicates allowed.
IMPORT_C TAny * ExpandL(TInt anIndex, TInt aLength)
Expand the array at anIndex.
TInt Count() const
Gets the number of elements held in the array.
static IMPORT_C TInt CountR(const CBase *aPtr)
Return the number of items in the array.
IMPORT_C TAny * At(TInt anIndex) const
TAny points to the data associated with the record with anIndex.
IMPORT_C TInt FindIsq(const TAny *aPtr, TKeyArrayPak &aKey, TInt &anIndex) const
Find using a binary search.
static IMPORT_C const TAny * AtR(const CBase *aPtr, TInt anIndex)
Return the address of an item in the array.
IMPORT_C void Delete(TInt anIndex)
Removes a single element from the array.
IMPORT_C void BuildVarArrayL(CArrayVarFlat< TAny > *&aVarFlat)
Make a copy of the current array as a CArrayVarFlat.
IMPORT_C TInt GetOffset(TInt anIndex) const
Return the offset into the buffer of the record with index anIndex;.
IMPORT_C void Compress()
Removes excess space from the array buffer.
IMPORT_C void SortL(TKeyArrayVar &aKey)
Sorts the elements of the array into key sequence.
IMPORT_C void InsertL(TInt anIndex, const TAny *aPtr, TInt aLength)
Inserts a record at index anIndex.
IMPORT_C void Reset()
Deletes all elements from the array and frees the memory allocated to the array buffer.
IMPORT_C void SetKey(TKeyArrayPak &aKey) const
Set the key data.
IMPORT_C ~CArrayPakBase()
Destructor.
IMPORT_C TInt Length(TInt anIndex) const
Gets the length of the specified element.
Array of variable length objects packed into a flat buffer.
A thin templated base class for variable length, packed, arrays.
T & ExpandL(TInt anIndex, TInt aLength)
Expands the array by one element of specified length at the specified position.
const TArray< T > Array() const
Constructs and returns a TArray<T> object.
const T & operator[](TInt anIndex) const
Gets a reference to the element located at the specified position within the array.
const T & At(TInt anIndex) const
Gets a reference to the element located at the specified position within the array.
void InsertL(TInt anIndex, const T &aRef, TInt aLength)
Inserts an element of a specified length into the array at the specified position.
TInt FindIsq(const T &aRef, TKeyArrayPak &aKey, TInt &anIndex) const
Finds the position of an element within the array, based on the matching of keys, using a binary sear...
TInt Find(const T &aRef, TKeyArrayPak &aKey, TInt &anIndex) const
Finds the position of an element within the array, based on the matching of keys, using a sequential ...
T & ExtendL(TInt aLength)
Expands the array by one element of specified length at the end of the array.
void AppendL(const T &aRef, TInt aLength)
Appends an element of a specified length onto the array.
TInt InsertIsqL(const T &aRef, TInt aLength, TKeyArrayPak &aKey)
Inserts a single element of a specified length into the array at a position determined by a key.
TInt InsertIsqAllowDuplicatesL(const T &aRef, TInt aLength, TKeyArrayPak &aKey)
Inserts a single element of a specified length into the array at a position determined by a key,...
Array of pointers to objects implemented using a flat dynamic buffer.
void SetReserveL(TInt aCount)
Reserves space in the array buffer.
Array of pointers to objects implemented using a segmented dynamic buffer.
A thin templated base class for arrays of pointers to objects.
void ResetAndDestroy()
Destroys all objects whose pointers form the elements of the array, before resetting the array.
An implementation base class for variable length arrays.
TInt Count() const
Gets the number of elements held in the array.
IMPORT_C void SetKey(TKeyArrayVar &aKey) const
Set the key data.
IMPORT_C TInt InsertIsqAllowDuplicatesL(const TAny *aPtr, TInt aLength, TKeyArrayVar &aKey)
Insert in sequence, allow duplicates.
IMPORT_C void Delete(TInt anIndex)
Removes one element from the array.
IMPORT_C TInt Length(TInt anIndex) const
Gets the length of a specific element.
IMPORT_C TInt Sort(TKeyArrayVar &aKey)
Sorts the elements of the array into key sequence.
IMPORT_C TAny * At(TInt anIndex) const
Return a pointer to the data in the array.
IMPORT_C void Compress()
Removes excess space from the array buffer.
static IMPORT_C TInt CountR(const CBase *aPtr)
Return the number of items in the array.
IMPORT_C void InsertL(TInt anIndex, const TAny *aPtr, TInt aLength)
Insert a new record in the array.
IMPORT_C void Reset()
Deletes all elements from the array and frees the memory allocated to the array buffer.
static IMPORT_C const TAny * AtR(const CBase *aPtr, TInt anIndex)
Return the address of an item in the array.
IMPORT_C ~CArrayVarBase()
Destructor.
IMPORT_C TInt InsertIsqL(const TAny *aPtr, TInt aLength, TKeyArrayVar &aKey)
Insert in sequence, no duplicates allowed.
IMPORT_C TInt Find(const TAny *aPtr, TKeyArrayVar &aKey, TInt &anIndex) const
Find using a sequential search.
IMPORT_C TInt FindIsq(const TAny *aPtr, TKeyArrayVar &aKey, TInt &anIndex) const
Find using a binary search.
IMPORT_C TAny * ExpandL(TInt anIndex, TInt aLength)
Expand the array at anIndex.
Array of variable length objects implemented using a flat dynamic buffer.
Array of variable length objects implemented using a segmented dynamic buffer.
A thin templated base class for variable length arrays.
TInt InsertIsqAllowDuplicatesL(const T &aRef, TInt aLength, TKeyArrayVar &aKey)
Inserts a single element of a specified length into the array at a position determined by a key,...
void InsertL(TInt anIndex, const T &aRef, TInt aLength)
Inserts an element of a specified length into the array at the specified position.
TInt Find(const T &aRef, TKeyArrayVar &aKey, TInt &anIndex) const
Finds the position of an element within the array, based on the matching of keys, using a sequential ...
void AppendL(const T &aRef, TInt aLength)
Appends an element of a specified length onto the array.
const T & operator[](TInt anIndex) const
Gets a reference to the const element located at the specified position within the array.
TInt FindIsq(const T &aRef, TKeyArrayVar &aKey, TInt &anIndex) const
Finds the position of an element within the array, based on the matching of keys, using a binary sear...
const T & At(TInt anIndex) const
Gets a reference to the const element located at the specified position within the array.
TInt InsertIsqL(const T &aRef, TInt aLength, TKeyArrayVar &aKey)
Inserts a single element of a specified length into the array at a position determined by a key.
T & ExpandL(TInt anIndex, TInt aLength)
Expands the array by one element of specified length at the specified position.
T & ExtendL(TInt aLength)
Expands the array by one element of specified length at the end of the array.
const TArray< T > Array() const
Constructs and returns a TArray<T> object.
An active object that performs its processing through an associated call back function,...
IMPORT_C void Set(const TCallBack &aCallBack)
Sets the call back.
TCallBack iCallBack
The callback object that encapsulates the callback function.
IMPORT_C void CallBack()
Queues this active object to be run, if it is not already queued.
virtual IMPORT_C ~CAsyncCallBack()
Destructor.
virtual void RunL()
Handles an active object's request completion event.
An active object that performs processing that is only performed once.
virtual IMPORT_C void Call()
Queues this active object to be run once.
RThread & Thread()
Gets a handle to the current thread.
virtual IMPORT_C ~CAsyncOneShot()
Frees resources prior to destruction.
virtual IMPORT_C void DoCancel()
Implements cancellation of an outstanding request.
CBase()
Default constructor.
virtual IMPORT_C TInt Extension_(TUint aExtensionId, TAny *&a0, TAny *a1)
Extension function.
virtual IMPORT_C ~CBase()
Virtual destructor.
static IMPORT_C void Delete(CBase *aPtr)
Deletes the specified object.
Defines the interface for dynamic buffers.
virtual void Delete(TInt aPos, TInt aLength)=0
Deletes data from the buffer.
IMPORT_C ~CBufBase()
Destructor.
virtual TPtr8 BackPtr(TInt aPos)=0
Gets a pointer descriptor to represent data from just before the specified data byte backward to the ...
virtual TPtr8 Ptr(TInt aPos)=0
Gets a pointer descriptor to represent the data from the specified position to the end of the conti...
IMPORT_C void Reset()
Deletes all data in the buffer.
IMPORT_C void InsertL(TInt aPos, const TDesC8 &aDes)
Inserts data into the buffer.
TInt Size() const
Gets the number of data bytes in the buffer.
virtual void Compress()=0
Compresses the buffer so as to occupy minimal space.
IMPORT_C void Write(TInt aPos, const TDesC8 &aDes)
Writes data from a descriptor to the buffer.
IMPORT_C void Read(TInt aPos, TDes8 &aDes) const
Reads data from the buffer into a descriptor.
IMPORT_C void ExpandL(TInt aPos, TInt aLength)
Inserts an uninitialised region into the buffer.
IMPORT_C void ResizeL(TInt aSize)
Re-sizes the buffer to the specified size.
Provides a flat storage dynamic buffer.
static IMPORT_C CBufFlat * NewL(TInt anExpandSize)
Allocates and constructs a flat buffer.
IMPORT_C void Delete(TInt aPos, TInt aLength)
Deletes data from the buffer.
IMPORT_C TPtr8 Ptr(TInt aPos)
Gets a pointer descriptor to represent the data from the specified position to the end of the conti...
TInt Capacity() const
Gets the size to which the buffer may expand without re-allocation.
IMPORT_C void SetReserveL(TInt aSize)
Specifies a minimum amount of space which the flat buffer should occupy.
IMPORT_C void Compress()
Compresses the buffer so as to occupy minimal space.
IMPORT_C TPtr8 BackPtr(TInt aPos)
Gets a pointer descriptor to represent data from just before the specified data byte backward to the ...
IMPORT_C ~CBufFlat()
Destructor.
Provides a segmented dynamic buffer.
void DeleteFromSegment(TBufSegLink *aSeg, TInt anOffset, TInt aLength)
IMPORT_C TPtr8 Ptr(TInt aPos)
Gets a pointer descriptor to represent the data from the specified position to the end of the conti...
void FreeSegment(TBufSegLink *aSeg)
IMPORT_C void Compress()
Compresses the buffer so as to occupy minimal space.
IMPORT_C void Delete(TInt aPos, TInt aLength)
Deletes data from the buffer.
static IMPORT_C CBufSeg * NewL(TInt anExpandSize)
Allocates and constructs a segmented buffer.
void AllocSegL(TBufSegLink *aSeg, TInt aNumber)
IMPORT_C TPtr8 BackPtr(TInt aPos)
Gets a pointer descriptor to represent data from just before the specified data byte backward to the ...
IMPORT_C ~CBufSeg()
Destructor.
void InsertIntoSegment(TBufSegLink *aSeg, TInt anOffset, const TAny *aPtr, TInt aLength)
Base class for circular buffers.
IMPORT_C void Reset()
Empties the buffer.
IMPORT_C TInt DoAdd(const TUint8 *aPtr)
Implementation function for CCirBuf::Add(const T*)
IMPORT_C TInt DoRemove(TUint8 *aPtr)
Implementation function for CCirBuf::Remove(T*)
TInt Length() const
Gets the maximum capacity of this circular buffer.
IMPORT_C ~CCirBufBase()
Destructor.
IMPORT_C void SetLengthL(TInt aLength)
Sets the maximum capacity of this circular buffer, and resets all of the buffer pointers.
TInt Count() const
Gets the current number of objects in this circular buffer.
A circular buffer containing objects of a type defined by the template parameter.
TInt Add(const T *aPtr)
Adds a single object to the circular buffer.
TInt Remove(T *aPtr)
Removes a single object from the circular buffer.
CCirBuf()
Default C++ constructor.
Circular buffer of unsigned 8-bit integers.
IMPORT_C ~CCirBuffer()
Destructor.
IMPORT_C TInt Get()
Removes an unsigned 8-bit integer value from the circular buffer and returns its value.
IMPORT_C CCirBuffer()
Default C++ constructor.
IMPORT_C TInt Put(TInt aVal)
Adds an unsigned 8-bit integer value in the range 0 to 255 to the circular buffer.
Implements the cleanup stack.
static IMPORT_C CCleanup * New()
Creates a new cleanup stack object.
IMPORT_C void Pop()
Pops a single cleanup item from the cleanup stack.
IMPORT_C void PushL(TAny *aPtr)
Pushes a cleanup item onto the cleanup stack.
IMPORT_C void DoPop(TInt aCount, TBool aDestroy)
Provides an implementation for Pop() and PopAndDestroy().
IMPORT_C CCleanup()
Default constructor.
IMPORT_C void Check(TAny *aExpectedItem)
Checks that the cleanup item at the top of the cleanup stack represents a cleanup operation for the s...
IMPORT_C void PopAndDestroyAll()
Pops all cleanup items at the current level, invokes their cleanup operations and then decrements the...
IMPORT_C void NextLevel()
Goes to the next cleanup level.
static IMPORT_C CCleanup * NewL()
Creates a new cleanup stack object, and leaves if there is insufficient memory to create it.
IMPORT_C void PopAndDestroy()
Pops a single cleanup item from the cleanup stack, and invokes its cleanup operation.
TCleanupStackItem * iBase
Pointer to the bottom of the cleanup stack.
IMPORT_C void DoPopAll(TBool aDestroy)
Provides an implementation for PopAll() and PopAndDestroyAll().
TCleanupStackItem * iNext
Pointer to the next availaible slot in the cleanup stack.
TCleanupStackItem * iTop
Pointer to the top of the cleanup stack.
IMPORT_C ~CCleanup()
Destructor.
IMPORT_C void PopAll()
Pops all cleanup items at the current level, and then decrements the level.
IMPORT_C void PreviousLevel()
Goes to the previous cleanup level.
IMPORT_C TInt QueueLong(TTimeIntervalMicroSeconds aTimeInMicroSeconds, TDeltaTimerEntry &aEntry)
Adds a new timed event entry into the timed event queue.
virtual IMPORT_C void Remove(TDeltaTimerEntry &aEntry)
Removes the specified timed event entry from the timer queue.
virtual IMPORT_C void Queue(TTimeIntervalMicroSeconds32 aTimeInMicroSeconds, TDeltaTimerEntry &aEntry)
Adds a new timed event entry into the timed event queue.
static IMPORT_C CDeltaTimer * NewL(TInt aPriority)
Creates a new timed event queue with the specified active object priority.
~CDeltaTimer()
Destructor.
IMPORT_C void Start(TTimerLockSpec aLock, MBeating *aBeating)
Starts generating heartbeat events.
IMPORT_C void RunL()
Handles an active object's request completion event.
IMPORT_C ~CHeartbeat()
Destructor.
static IMPORT_C CHeartbeat * New(TInt aPriority)
Allocates and constructs a CHeartbeat object - non-leaving.
static IMPORT_C CHeartbeat * NewL(TInt aPriority)
Allocates and constructs a CHeartbeat object - leaving.
An active object that performs low-priority processing when no higher-priority active objects are rea...
IMPORT_C ~CIdle()
Frees resources prior to destruction.
static IMPORT_C CIdle * New(TInt aPriority)
Allocates and initialises an Idle time active object and adds it to the active scheduler.
IMPORT_C void RunL()
Handles an active object's request completion event.
IMPORT_C void DoCancel()
Implements cancellation of an outstanding request.
static IMPORT_C CIdle * NewL(TInt aPriority)
Allocates and initialises an Idle time active object, adds it to the active scheduler,...
TCallBack iCallBack
The callback object that encapsulates the background task.
IMPORT_C void Start(TCallBack aCallBack)
Starts the background task.
A container for object containers.
static IMPORT_C CObjectConIx * NewL()
Creates a new container index.
IMPORT_C CObjectCon * Lookup(TInt aFindHandle) const
Gets a pointer to the object container with the unique ID from the specified find handle.
IMPORT_C CObjectCon * CreateL()
Creates a new object container and adds it into this container index's collection.
IMPORT_C CObjectConIx()
Default constructor.
IMPORT_C ~CObjectConIx()
Destructor.
IMPORT_C void CreateContainerL(CObjectCon *&anObject)
Actually create the container.
IMPORT_C void Remove(CObjectCon *aCon)
Removes the specified object container from this container index and deletes it.
TInt iUniqueID
The object container's unique Id value.
IMPORT_C CObject * operator[](TInt anIndex)
Gets a pointer to the reference counting object located at the specified offset within the object con...
IMPORT_C TInt FindByFullName(TInt &aFindHandle, const TDesC &aMatch, TFullName &aFullName) const
Searches for the reference counting object whose full name matches the specified match pattern.
TInt UniqueID() const
Gets this object container's unique ID.
IMPORT_C TInt CheckUniqueFullName(const CObject *anOwner, const TDesC &aName) const
Checks that a name will be unique.
IMPORT_C void AddL(CObject *anObj)
Adds a reference counting object to this object container.
IMPORT_C CObject * AtL(TInt aFindHandle) const
Gets a pointer to the reference counting object with the specified find-handle number,...
static IMPORT_C CObjectCon * NewL()
Creates an object container.
IMPORT_C void Remove(CObject *anObj)
Removes a reference counting object from this object container.
IMPORT_C TInt FindByName(TInt &aFindHandle, const TDesC &aMatch, TName &aName) const
Searches for the reference counting object whose name matches the specified match pattern.
TBool NamesMatch(const CObject *anObject, const CObject *aCurrentObject) const
protected recursive function for use by CheckUniqueFullName
TInt Count() const
Gets the number of reference counting objects in this object container.
IMPORT_C CObject * At(TInt aFindHandle) const
Gets a pointer to the reference counting object with the specified find-handle number.
IMPORT_C ~CObjectCon()
Destructor.
Generates handle numbers for reference counting objects.
IMPORT_C CObject * AtL(TInt aHandle, TInt aUniqueID)
Gets a pointer to the reference counting object with the specified handle number and matching unique ...
static IMPORT_C CObjectIx * NewL()
Creates a new object index.
IMPORT_C void Remove(TInt aHandle)
Removes the reference counting object identified by handle number from this object index and closes i...
IMPORT_C CObject * operator[](TInt anIndex)
Gets a pointer to a reference counting object located at the specified offset within the object index...
IMPORT_C CObject * At(TInt aHandle, TInt aUniqueID)
Gets a pointer to the reference counting object with the specified handle number and matching unique ...
IMPORT_C TInt AddL(CObject *anObj)
Adds the specified reference counting object into this object index and returns the handle number tha...
@ ENoClose
When ORd into the handle number, indicates that the reference counting object cannot be closed.
@ ELocalHandle
When ORed into the handle number, indicates that the handle is a local handle.
TInt Count() const
Gets the number greater then the last slot number used to hold valid CObject pointer.
TInt ActiveCount() const
Gets the current number of reference counting objects held by this object index.
IMPORT_C CObjectIx()
Default constructor.
IMPORT_C ~CObjectIx()
Destructor.
Implements reference counting to track concurrent references to itself.
void SetOwner(CObject *anOwner)
Sets the owner of this reference counting object.
virtual IMPORT_C TName Name() const
Gets the name of this reference counting object.
IMPORT_C void SetNameL(const TDesC *aName)
Sets or clears this reference counting object's name, and leaves on error.
virtual IMPORT_C TInt Extension_(TUint aExtensionId, TAny *&a0, TAny *a1)
Extension function.
IMPORT_C TInt SetName(const TDesC *aName)
Sets or clears this reference counting object's name.
TInt AccessCount() const
Gets the number of open references to this reference counting object.
IMPORT_C CObject()
Constructs the object and initializes the reference count to one.
void Inc()
Adds one to the reference count.
virtual IMPORT_C void Close()
Closes this reference counting object.
void Dec()
Subtracts one from the reference count.
virtual IMPORT_C TFullName FullName() const
Gets the full name of this reference counting object.
IMPORT_C ~CObject()
Destructor.
TInt UniqueID() const
Gets this reference counting object's unique ID.
virtual IMPORT_C TInt Open()
Opens this reference counting object.
CObject * Owner() const
Gets a pointer to the reference counting object which owns this reference counting object.
Periodic timer active object.
IMPORT_C void Start(TTimeIntervalMicroSeconds32 aDelay, TTimeIntervalMicroSeconds32 anInterval, TCallBack aCallBack)
Starts generating periodic events.
IMPORT_C void RunL()
Handles an active object's request completion event.
static IMPORT_C CPeriodic * New(TInt aPriority)
Allocates and constructs a CPeriodic object - non-leaving.
static IMPORT_C CPeriodic * NewL(TInt aPriority)
Allocates and constructs a CPeriodic object - leaving.
IMPORT_C ~CPeriodic()
Destructor.
Class specifying a security check and the action to take.
TStaticSecurityPolicy iPolicy
Security policy to check against the client which sent a message.
TInt iAction
Action to take on failure.
Object specifying which security checks to perform on each request number and what action to take if ...
const TUint8 * iElementsIndex
A pointer to an array of TUint8 values specifying the appropriate action to take for each range in iR...
TUint16 iRangeCount
Number of ranges in the iRanges array.
const TInt * iRanges
A pointer to an array of ordered ranges of request numbers.
TUint8 iOnConnect
The index into iElements, or an allowed value of TSpecialCase, that is used to check a connection att...
const TPolicyElement * iElements
A pointer to an array of distinct policy elements.
A security policy framework built on top of the normal CServer2 class.
virtual IMPORT_C TInt Extension_(TUint aExtensionId, TAny *&a0, TAny *a1)
Extension function.
virtual IMPORT_C TCustomResult CustomFailureActionL(const RMessage2 &aMsg, TInt aAction, const TSecurityInfo &aMissing)
Performs a custom action after the failure of a security check.
IMPORT_C void ProcessError(const RMessage2 &aMsg, TInt aError)
Called if a leave occurs during processing of a message.
TCustomResult
Enumeration of acceptable return codes from both of CustomSecurityCheckL() and CustomFailureActionL()...
@ EAsync
Security checking will be performed asynchronously.
@ EFail
Security check failed.
@ EPass
Security check passed.
TSpecialCase
Special case values which can be used instead of a policy element index contained in the array TPolic...
@ ENotSupported
Indicates that message is requesting an unsupported function.
@ ESpecialCaseLimit
Internal technology API.
@ ECustomCheck
Indicates a custom check should be made by calling CustomSecurityCheckL()
@ EAlwaysPass
Indicates that the message is requesting an unrestricted function and therefore should be processed w...
@ ESpecialCaseHardLimit
Internal technology API.
TFailureAction
Enumeration specifying action to take if a security check fails.
@ EPanicClient
Panic client.
@ EFailClient
Complete message with KErrPermissionDenied.
IMPORT_C void CheckFailedL(const RMessage2 &aMsg, TInt aAction, const TSecurityInfo &aMissing)
Called when a security check has failed.
virtual IMPORT_C TCustomResult CustomSecurityCheckL(const RMessage2 &aMsg, TInt &aAction, TSecurityInfo &aMissing)
Performs a custom security check.
IMPORT_C void ProcessL(const RMessage2 &aMsg)
Process an accepted message which has passed its policy check.
Abstract base class for servers (version 2).
IMPORT_C void SetMaster(const CServer2 *aServer)
Assigns a role (master or slave) for this server.
RServer2 Server() const
Gets a handle to the server.
IMPORT_C TInt Start(const TDesC &aName)
Adds the server with the specified name to the active scheduler, and issues the first request for mes...
IMPORT_C void SetPinClientDescriptors(TBool aPin)
Sets whether the kernel will pin descriptors passed to this server in the context of the client threa...
IMPORT_C TInt RunError(TInt aError)
Handles the situation where a call to CServer2::RunL(), leaves.
const RMessage2 & Message() const
Gets a reference to the server's current message.
TDblQueIter< CSession2 > iSessionIter
IMPORT_C void ReStart()
Restarts the server.
friend class CPolicyServer
@ EClientDoesntHaveRequiredCaps
@ ESessionAlreadyConnected
virtual IMPORT_C ~CServer2()=0
Frees resources prior to destruction.
IMPORT_C void RunL()
Handles an active object's request completion event.
virtual IMPORT_C void DoConnect(const RMessage2 &aMessage)
Handles the connect request from the client.
virtual IMPORT_C TInt Extension_(TUint aExtensionId, TAny *&a0, TAny *a1)
Extension function.
IMPORT_C void StartL(const TDesC &aName)
Adds the server with the specified name to the active scheduler, and issues the first request for mes...
TServerType
This enumeration defines the maximum sharability of sessions opened with this server; for backwards c...
@ EGlobalSharableSessions
IMPORT_C void DoCancel()
Implements cancellation of an outstanding request.
Represents a session (version 2) for a client thread on the server-side.
virtual IMPORT_C ~CSession2()=0
Destructor.
virtual IMPORT_C void ServiceError(const RMessage2 &aMessage, TInt aError)
Handles the situation when a call to CSession2::ServiceL(), which services a client request,...
IMPORT_C void ResourceCountMarkStart()
Marks the start of resource count checking.
virtual IMPORT_C TInt Extension_(TUint aExtensionId, TAny *&a0, TAny *a1)
Extension function.
IMPORT_C void ResourceCountMarkEnd(const RMessage2 &aMessage)
Marks the end of resource count checking.
virtual IMPORT_C TInt CountResources()
Gets the number of resources currently in use.
const CServer2 * Server() const
Gets the server active object that handles messages for this session.
@ ESesFoundResCountHeaven
@ ESesCountResourcesNotImplemented
virtual void ServiceL(const RMessage2 &aMessage)=0
Handles the servicing of a client request that has been passed to the server.
virtual IMPORT_C void Disconnect(const RMessage2 &aMessage)
Called by a server when it receives a disconnect message for the session.
IMPORT_C void SetServer(const CServer2 *aServer)
Designates the (master or slave) server that is to service this session.
IMPORT_C CSession2()
Default constructor.
Base class for a timer active object.
IMPORT_C void DoCancel()
Implements cancellation of an outstanding request.
IMPORT_C void After(TTimeIntervalMicroSeconds32 anInterval)
Requests an event after an interval.
IMPORT_C void HighRes(TTimeIntervalMicroSeconds32 aInterval)
Requests an event after the specified interval to a resolution of 1ms.
IMPORT_C void Inactivity(TTimeIntervalSeconds aSeconds)
Requests an event if no activity occurs within the specified interval.
IMPORT_C void AtUTC(const TTime &aTimeInUTC)
Requests an event at a given UTC time.
IMPORT_C void At(const TTime &aTime)
Requests an event at a given local time.
IMPORT_C ~CTimer()
Destructor.
IMPORT_C void Lock(TTimerLockSpec aLock)
Requests an event on a specified second fraction.
IMPORT_C void ConstructL()
Constructs a new asynchronous timer.
static IMPORT_C CTrapCleanup * New()
Allocates and constructs a cleanup stack.
IMPORT_C CTrapCleanup()
Default constructor.
IMPORT_C ~CTrapCleanup()
Destructor.
A utility class used by the templated function CleanupArrayDeletePushL() to create a TCleanupItem ite...
static void PushL(T *aPtr)
Creates a TCleanupItem for the specified array.
A utility class used by the templated function CleanupClosePushL() to create a TCleanupItem item that...
static void PushL(T &aRef)
Creates a TCleanupItem for the specified object.
A utility class used by the templated function CleanupDeletePushL() to create a TCleanupItem item tha...
static void PushL(T *aPtr)
Creates a TCleanupItem for the specified object.
A utility class used by the templated function CleanupReleasePushL() to create a TCleanupItem item th...
static void PushL(T &aRef)
Creates a TCleanupItem for the specified object.
A collection of static functions that are used to add resources to and remove resources from the clea...
static IMPORT_C void PushL(TAny *aPtr)
Pushes a pointer to an object onto the cleanup stack.
static IMPORT_C void Pop()
Pops an object previously pushed onto the cleanup stack by CleanupStack::PushL().
static IMPORT_C void PopAndDestroy()
Pops and cleans up an item pushed onto the stack.
static IMPORT_C void Check(TAny *aExpectedItem)
Checks that the specified object is at the top of the cleanup stack.
static IMPORT_C CConsoleBase * NewL(const TDesC &aTitle, TSize aSize)
Creates a new console object.
Heartbeat timer call-back handling interface.
virtual void Beat()=0
Handles a regular heartbeat timer event.
virtual void Synchronize()=0
Synchronises the heartbeat timer with system clock.
An object that encapsulates the details of a client request.
Asynchronous timer services.
Automatically calls Close() on an object when that object goes out of scope.
void Pop()
Pops a single cleanup item from the cleanup stack.
T iObj
An instance of the template class.
void PushL()
Pushes a cleanup item onto the cleanup stack, so that Close() is called on the templated class object...
Encapsulates a general call-back function.
Encapsulates a cleanup operation and an object on which the operation is to be performed.
friend class TCleanupStackItem
A templated class that provides the behaviour for iterating through a set of doubly linked list eleme...
An object embedded within a class T so that objects of type T can form part of a doubly linked list.
A templated class that provides the behaviour for managing a doubly linked list.
TDeltaTimerEntry()
Default constructor.
void Set(TCallBack &aCallback)
Sets the specified callback.
Defines the characteristics of a key used to access the elements of arrays of fixed length objects.
virtual IMPORT_C void Set(CBufBase *aBase, TInt aRecordLength)
IMPORT_C TAny * At(TInt anIndex) const
Gets a pointer to the key of a specified array element.
Defines the characteristics of a key used to access the elements of packed arrays.
virtual IMPORT_C void Set(CBufBase *aBase)
IMPORT_C TAny * At(TInt anIndex) const
Gets a pointer to the key of a specified array element.
Defines the characteristics of a key used to access the elements of arrays of variable length objects...
virtual IMPORT_C void Set(CBufBase *aBase)
IMPORT_C TAny * At(TInt anIndex) const
Gets a pointer to the key of a specified array element.
Defines the characteristics of a key used to access the elements of an array.
An object embedded within a class T so that objects of type T can form part of an ordered doubly link...
A templated class that provides the behaviour for managing a doubly linked list in which the elements...
Indicates the completion status of a request made to a service provider.
Class representing all security attributes of a process or DLL.
Stores a two-dimensional size as a width and a height value.
An object embedded within a class T so that objects of type T can form part of a doubly linked list s...
A class that provides the behaviour for managing a doubly linked list in which elements are added in ...
Represents a microsecond time interval stored in 32 rather than 64 bits.
Represents a time interval of a millionth of a second stored as a 64-bit integer.
Represents a time interval in seconds.
Stores and manipulates the date and time.
Abstract class that defines a handler to work with the TRAP mechanism.
A globally unique 32-bit number.
Contains version information.
void CleanupArrayDeletePushL(T *aPtr)
Constructs and pushes a TCleanupItem object onto the cleanup stack.
NONSHARABLE_CLASS(TCleanupTrapHandler)
Implementation for a handler to work with the TRAP mechanism.
void CleanupReleasePushL(T &aRef)
Constructs and pushes a TCleanupItem object onto the cleanup stack.
TBool IsLocalHandle(TInt aHandle)
void CleanupDeletePushL(T *aPtr)
Constructs and pushes a TCleanupItem object onto the cleanup stack.
void SetLocalHandle(TInt &aHandle)
void CleanupClosePushL(T &aRef)
Constructs and pushes a TCleanupItem object onto the cleanup stack.
void(* TCleanupOperation)(TAny *)
Defines a function which takes a single argument of type TAny* and returns void.
void UnSetLocalHandle(TInt &aHandle)
CBufBase *(* TBufRep)(TInt anExpandSize)
HBufC8 HBufC
Defines a build-independent heap descriptor.
TDesC8 TDesC
Defines a build-independent non-modifiable descriptor.
TKeyCmpText
Governs the type of comparison to be made between descriptor keys or between text keys.
TKeyCmpNumeric
Governs the type of comparison to be made between numeric keys.
Structure for compile-time initialisation of a security policy.