|
||
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 CContactDatabase
Defined in CContactOpenOperation
:
DoCancel()
For BC only, CActive is not used hereRunError()
For BC only, CActive is not used hereRunL()
For BC only, CActive is not used hereTakeDatabase()
Takes ownership of the contact database~CContactOpenOperation()
Deletes the active objectInherited from CActive
:
Cancel()
Cancels the wait for completion of an outstanding requestDeque()
Removes the active object from the active scheduler's list of active objectsEPriorityHigh
A priority higher than EPriorityUserInputEPriorityIdle
A low priority, useful for active objects representing background processingEPriorityLow
A priority higher than EPriorityIdle but lower than EPriorityStandardEPriorityStandard
Most active objects will have this priorityEPriorityUserInput
A priority higher than EPriorityStandard; useful for active objects handling user inputExtension_()
Extension functionIsActive()
Determines whether the active object has a request outstandingIsAdded()
Determines whether the active object has been added to the active scheduler's list of active objectsPriority()
Gets the priority of the active objectSetActive()
Indicates that the active object has issued a request and that it is now outstandingSetPriority()
Sets the priority of the active objectTPriority
Defines standard priorities for active objectsiStatus
The request status associated with an asynchronous requestInherited from CBase
:
Delete()
Deletes the specified objectoperator new()
Initialises the object to binary zeroesCContactDatabase::OpenL()
Opens the default contact databaseCapability: | 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.
|
CContactDatabase::Open()
Opens the default contact database asynchronously