Location:
CNTDB.H
Link against: cntmodel.lib
class CContactOpenOperation : private CActive;
A class that manages the asynchronous open operation for a CContactDatabase
.
The object can be deleted before the asynchronous open completes. This will set the state of the client supplied TRequestStatus
to KErrCancel.
When the client supplied TRequestStatus
is completed with KErrNone the TakeDatabase()
method is called to pass ownership of the open database to the client.
CBase
- Base class for all classes to be instantiated on the heap
CActive
- The core class of the active object abstraction
CContactOpenOperation
- A class that manages the asynchronous open operation for a
Defined in CContactOpenOperation
:
DoCancel()
, RunError()
, RunL()
, TakeDatabase()
, ~CContactOpenOperation()
Inherited from CActive
:
Cancel()
,
Deque()
,
EPriorityHigh
,
EPriorityIdle
,
EPriorityLow
,
EPriorityStandard
,
EPriorityUserInput
,
Extension_()
,
IsActive()
,
IsAdded()
,
Priority()
,
SetActive()
,
SetPriority()
,
TPriority
,
iStatus
Inherited from CBase
:
Delete()
,
operator new()
Capability: | Illegal |
IMPORT_C ~CContactOpenOperation();
Deletes the active object.
If the asynchronous open is still in progress it is cancelled.
If the TakeDatabase()
API has not been called and the database has been opened it is closed.
IMPORT_C CContactDatabase *TakeDatabase();
Takes ownership of the contact database.
Ownership of the contact database is passed to the client. Subsequent calls return NULL.
|