Soprano::Util::AsyncResult Class Reference

A delayed result as returned by AsyncModel. More...

#include <Soprano/Util/AsyncResult>

Inheritance diagram for Soprano::Util::AsyncResult:

Inheritance graph
[legend]

List of all members.

Signals

void resultReady (Soprano::Util::AsyncResult *)

Public Member Functions

QVariant value () const


Detailed Description

A delayed result as returned by AsyncModel.

Author:
Sebastian Trueg <trueg@kde.org>
Since:
2.1

Definition at line 50 of file asyncmodel.h.


Member Function Documentation

void Soprano::Util::AsyncResult::resultReady ( Soprano::Util::AsyncResult  )  [signal]

Emitted once the async operation is completed and the result can be read.

The result will delete itself.

QVariant Soprano::Util::AsyncResult::value (  )  const [inline]

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.

Definition at line 77 of file asyncmodel.h.


The documentation for this class was generated from the following file:

Generated on Tue Jul 22 17:39:36 2008 for Soprano by  doxygen 1.5.6