AsyncResult Class Reference
from PyKDE4.soprano import *
Inherits: QObject,Soprano::Error::ErrorCache
Namespace: Soprano::Util
Detailed Description
\class AsyncResult asyncmodel.h Soprano/Util/AsyncResult
A delayed result as returned by AsyncModel.
- Since:
- 2.1
Signals | |
resultReady (Soprano.Util.AsyncResult a0) | |
Methods | |
__init__ (self) | |
resultReady (self, Soprano.Util.AsyncResult a0) | |
setResult (self, QVariant result, Soprano.Error.Error error) | |
QVariant | value (self) |
Method Documentation
__init__ | ( | self ) |
\endcond
resultReady | ( | self, | ||
Soprano.Util.AsyncResult | a0 | |||
) |
Emitted once the async operation is completed and the result can be read.
The result will delete itself.
- Signal syntax:
QObject.connect(source, SIGNAL("resultReady(AsyncResult*)"), target_slot)
setResult | ( | self, | ||
QVariant | result, | |||
Soprano.Error.Error | error | |||
) |
Internal method. Do not call.
QVariant value | ( | self ) |
The result of the async operation. Its type is dependent on the operation (for example Error.ErrorCode for AsyncModel.addStatementAsync or StatementIterator for AsyncModel.listStatementsAsync). Types may need to be registered with Q_DECLARE_METATYPE.
Use Error.ErrorCache.lastError() to check for error details.
This value is not ready before resultReady() as been emitted.