45 #ifndef QSPARQLRESULT_H
46 #define QSPARQLRESULT_H
48 #include <qsparqlresultrow.h>
49 #include <qsparqlquery.h>
51 #include <QtCore/qvariant.h>
52 #include <QtCore/qobject.h>
62 class QSparqlResultPrivate;
67 friend class QSparqlResultPrivate;
69 friend class QSparqlConnectionPrivate;
72 enum Feature { QuerySize, ForwardOnly, Sync } ;
77 virtual bool setPos(
int pos);
79 virtual bool previous();
82 virtual int size()
const;
92 virtual QVariant
value(
int i)
const = 0;
93 virtual QString stringValue(
int i)
const;
96 bool boolValue()
const;
99 virtual void waitForFinished();
100 virtual bool isFinished()
const;
102 bool hasError()
const;
105 QString query()
const;
108 bool isTable()
const;
109 bool isGraph()
const;
121 void setQuery(
const QString & query);
124 void setBoolValue(
bool v);
126 void updatePos(
int pos);
128 QSparqlResultPrivate* d;
138 #endif // QSPARQLRESULT_H
The QSparqlBinding class handles a binding between a SPARQL query variable name and the value of the ...
Definition: qsparqlbinding.h:62
virtual QSparqlBinding binding(int i) const =0
The QSparqlResultRow class encapsulates a row in the results of a query.
Definition: qsparqlresultrow.h:64
The QSparqlError class provides SPARQL error information.
Definition: qsparqlerror.h:65
virtual QSparqlResultRow current() const =0
The QSparqlConnection class provides an interface for accessing an RDF store.
Definition: qsparqlconnection.h:68
Feature
Definition: qsparqlresult.h:72
The QSparqlResult class provides an abstract interface for accessing the results of an executed QSpar...
Definition: qsparqlresult.h:65
StatementType
Definition: qsparqlquery.h:67
void dataReady(int totalCount)
virtual QVariant value(int i) const =0