Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: e32base.h

Class TCleanupItem

class TCleanupItem;

Description

Encapsulates a cleanup operation and an object on which the operation is to be performed.

The class allows cleanup to be more sophisticated than simply deleting objects, for example, releasing access to some shared resource.

Members

Defined in TCleanupItem:
TCleanupItem(), TCleanupItem()


Construction and destruction


TCleanupItem()

inline TCleanupItem(TCleanupOperation anOperation);

Description

Constructs the object with a cleanup operation.

Parameters

TCleanupOperation anOperation

A cleanup operation which will be invoked by the pop and destroy action resulting from a subsequent call to CleanupStack::PopAndDestroy().


TCleanupItem()

inline TCleanupItem(TCleanupOperation anOperation, TAny *aPtr);

Description

Constructs the object with a cleanup operation and a pointer to the object to be cleaned up.

Parameters

TCleanupOperation anOperation

A cleanup operation which will be invoked by the pop and destroy action resulting from a subsequent call to CleanupStack::PopAndDestroy().

TAny *aPtr

A pointer to an object which is the target of the cleanup operation.