TApaDocCleanupItem Class Reference
Allows CApaDocument-derived objects to be safely put onto the cleanup stack, by calling CApaProcess::DestroyDocument() should a leave or a call to CleanupStack::PopAndDestroy() occur.
It is used as follows.
TApaDocCleanupItem cleanup(iEikonEnv->Process(),doc);
CleanupStack::PushL(cleanup);
// some potentially leaving code here ...
CleanupStack::Pop(cleanup);
Constructor & Destructor Documentation
TApaDocCleanupItem(CApaProcess *, CApaDocument *)
Constructs a cleanup item object for the specified document.
Parameters
CApaProcess * aProcess | A pointer to the process object that will be used to destroy the document. |
CApaDocument * aDoc | The document to destroy as part of cleanup. |
Member Functions Documentation
DoCleanup(TAny *)
IMPORT_C void | DoCleanup | ( | TAny * | aPtr | ) | [private, static] |
operator TCleanupItem()
operator TCleanupItem | ( | ) | [inline] |
Member Data Documentation
CApaDocument * iApaDoc
The document to destroy as part of cleanup.
CApaProcess * iApaProcess
The process object that will be used to destroy the document.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.