KDE 4.1 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

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.

Author:
Sebastian Trueg <trueg@kde.org>

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.

  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal