| Motorola Mobility Confidential Restricted. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
ToiOperationManager Interface Reference DescriptionThis is a generic interface that is used by other platform services that expose asynchronous operations and their results to applications. Example of services that implement this interface can be found in ToiAssetManagerService::getAssetOperationManager() and ToiStorageService::getStorageOperationManager().
Inheritance diagram for ToiOperationManager:
Member Typedef Documentation
Type for operation errors.
Type for operation identifier.
Type for operation results.
State identifier used to identify the operation state.
Identifier for a metadata property. This with ToiOperationManager::TToiPropertyValue forms a key-value pair that is used by the ToiOperationManagerOperationInfo to provide additional information about operation informaiton .
Sequence of property tags.
Value for a metadata property. This with ToiOperationManager::TToiPropertyId forms a key-value pair that is used by the ToiOperationManagerOperationInfo toprovide additional information about operation informaiton . Member Function Documentation
Requests an operation to stop execution.
Creates a new operation. The operation identifier is used when starting a asynchronous request. When the operation is completed the operation shall either be released by calling ToiOperationManager::releaseOperation() or reused for another request.
Returns information about given operation. This method is normally not useful for an application that is listening to operation events since the same information is provided in the callback. In some circumstances it may still be relevant to use this method and that is when the application is using a polled approach to handle operation results instead of callbacks. But also if the application do not handle an incoming callback directly and want to get the latest updated operation information.
Releases any system resources associated with the operation and if needed cancels the operation as well. This method shall be called when the application is done with the operation and will use it no more.
Member Data Documentation
This is an Event identifier for ToiOperationOperationResultEvent. This constant can also be accessed from toi.consts.ToiOperationManager.ON_OPERATION_RESULT. Operation was canceled by user. This constant can also be accessed from toi.consts.ToiOperationManager.OP_ERROR_CANCELLED. Operation failed for unknown reason. This constant can also be accessed from toi.consts.ToiOperationManager.OP_ERROR_FAILED. The operation has no result. Can be used for operations that perform some action and only indicate progress, success and failure. This constant can also be accessed from toi.consts.ToiOperationManager.OP_RESULT_NONE. Asynchronous operation has finished and completed the request. This constant can also be accessed from toi.consts.ToiOperationManager.OPERATION_COMPLETED. Asynchronous operation has failed. This constant can also be accessed from toi.consts.ToiOperationManager.OPERATION_FAILED. Asynchronous operation is currently in progress. This constant can also be accessed from toi.consts.ToiOperationManager.OPERATION_PENDING. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||