Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _SOPRANO_SERVER_DBUS_CLIENT_MODEL_H_
00023 #define _SOPRANO_SERVER_DBUS_CLIENT_MODEL_H_
00024
00025 #include "storagemodel.h"
00026 #include "soprano_export.h"
00027
00028 namespace Soprano {
00029 namespace Client {
00030
00056 class SOPRANO_CLIENT_EXPORT DBusModel : public Soprano::StorageModel
00057 {
00058 Q_OBJECT
00059
00060 public:
00068 DBusModel( const QString& serviceName, const QString& dbusObject, const Backend* backend = 0 );
00069 ~DBusModel();
00070
00090 void setAsyncCalls( bool b );
00091
00095 bool asyncCalls() const;
00096
00097 Error::ErrorCode addStatement( const Statement &statement );
00098 NodeIterator listContexts() const;
00099 QueryResultIterator executeQuery( const QString& query, Query::QueryLanguage language, const QString& userQueryLanguage = QString() ) const;
00100 StatementIterator listStatements( const Statement &partial ) const;
00101 Error::ErrorCode removeStatement( const Statement &statement );
00102 Error::ErrorCode removeAllStatements( const Statement &statement );
00103 int statementCount() const;
00104 bool isEmpty() const;
00105 bool containsStatement( const Statement &statement ) const;
00106 bool containsAnyStatement( const Statement &statement ) const;
00107 Node createBlankNode();
00108
00109 using StorageModel::addStatement;
00110 using StorageModel::removeStatement;
00111 using StorageModel::removeAllStatements;
00112 using StorageModel::listStatements;
00113 using StorageModel::containsStatement;
00114 using StorageModel::containsAnyStatement;
00115
00116 private:
00117 class Private;
00118 Private* const d;
00119 };
00120 }
00121 }
00122
00123 #endif