API published in: S60 3rd Ed
Link against: eposlandmarks.lib
LocalServices NetworkServices ReadDeviceData ReadUserData WriteDeviceData WriteUserData
#include <epos_cposlmoperation.h>
Long running operations in the Landmarks API returns an object of this class so that the client can run it incrementally and check the progress of the operation.
The operation must explicitly be run by the client. The operation can be run incrementally by calling NextStep until it does not return the status KPosLmOperationNotComplete. Alternately the operation can be run synchronously by calling ExecuteL.
ExecuteAndDeleteLD can be used to handle the operation object if it is run in synchronous mode.
Public Member Functions | |
| virtual IMPORT_C | ~CPosLmOperation () |
| Destructor. | |
| virtual void | NextStep (TRequestStatus &aStatus, TReal32 &aProgress)=0 |
| Incremental execution of the operation. | |
| virtual void | ExecuteL ()=0 |
| Synchronous execution of the operation. | |
Protected Member Functions | |
| IMPORT_C | CPosLmOperation () |
|
|
Destructor. |
|
|
|
Synchronous execution of the operation. When this function returns, the operation has finished.
|
| ||||||||||||
|
Incremental execution of the operation.
The client should use an active object and call this function until it does not complete with status
When the operation has finished, this function will complete with status This function also returns a progress of the operation. Progress is a floating point number in the interval [0.0,1.0]. 0.0 indicates that the operation has not started and 1.0 indicates that the operation has completed. Note that this function is asynchronous which means that status and progress may not be set when the function returns. They are only guaranteed to be set when the request is completed. The only way to cancel an operation is to delete the operation object. This will also cancel any outstanding request to NextStep().
|