Soprano
2.7.6
|
Exports a Soprano Model via D-Bus. More...
#include <Soprano/Server/DBusExportModel>
Public Member Functions | |
DBusExportModel (Model *model=0) | |
~DBusExportModel () | |
bool | registerModel (const QString &dbusObjectPath) |
void | unregisterModel () |
QString | dbusObjectPath () const |
![]() | |
virtual | ~FilterModel () |
virtual void | setParentModel (Model *model) |
virtual Model * | parentModel () const |
virtual Error::ErrorCode | addStatement (const Statement &statement) |
Error::ErrorCode | addStatement (const Node &subject, const Node &predicate, const Node &object, const Node &context=Node()) |
virtual Error::ErrorCode | removeStatement (const Statement &statement) |
Error::ErrorCode | removeStatement (const Node &subject, const Node &predicate, const Node &object, const Node &context=Node()) |
virtual Error::ErrorCode | removeAllStatements (const Statement &statement) |
Error::ErrorCode | removeAllStatements (const Node &subject, const Node &predicate, const Node &object, const Node &context=Node()) |
virtual StatementIterator | listStatements (const Statement &partial) const |
StatementIterator | listStatements (const Node &subject, const Node &predicate, const Node &object, const Node &context=Node()) const |
virtual NodeIterator | listContexts () const |
virtual QueryResultIterator | executeQuery (const QString &query, Query::QueryLanguage language, const QString &userQueryLanguage=QString()) const |
virtual bool | containsStatement (const Statement &statement) const |
bool | containsStatement (const Node &subject, const Node &predicate, const Node &object, const Node &context=Node()) const |
virtual bool | containsAnyStatement (const Statement &statement) const |
bool | containsAnyStatement (const Node &subject, const Node &predicate, const Node &object, const Node &context=Node()) const |
virtual bool | isEmpty () const |
virtual int | statementCount () const |
virtual Error::ErrorCode | write (QTextStream &os) const |
virtual Node | createBlankNode () |
![]() | |
virtual | ~Model () |
Error::ErrorCode | addStatements (const QList< Statement > &statements) |
Error::ErrorCode | removeStatements (const QList< Statement > &statements) |
Error::ErrorCode | removeContext (const Node &) |
Error::ErrorCode | removeAllStatements () |
StatementIterator | listStatements () const |
StatementIterator | listStatementsInContext (const Node &context) const |
bool | containsContext (const Node &context) const |
![]() | |
QObject (QObject *parent=0) | |
blockSignals (bool block) | |
childEvent (QChildEvent *event) | |
children () | |
connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type=Qt::AutoCompatConnection) | |
connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type=Qt::AutoCompatConnection) | |
connectNotify (const char *signal) | |
customEvent (QEvent *event) | |
deleteLater () | |
destroyed (QObject *obj=0) | |
disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) | |
disconnect (const char *signal=0, const QObject *receiver=0, const char *method=0) | |
disconnect (const QObject *receiver, const char *method=0) | |
disconnectNotify (const char *signal) | |
dumpObjectInfo () | |
dumpObjectTree () | |
dynamicPropertyNames () | |
event (QEvent *e) | |
eventFilter (QObject *watched, QEvent *event) | |
findChild (const QString &name=QString() | |
findChildren (const QString &name=QString() | |
findChildren (const QRegExp ®Exp) | |
inherits (const char *className) | |
installEventFilter (QObject *filterObj) | |
isWidgetType () | |
killTimer (int id) | |
metaObject () | |
moveToThread (QThread *targetThread) | |
parent () | |
property (const char *name) | |
receivers (const char *signal) | |
removeEventFilter (QObject *obj) | |
sender () | |
setParent (QObject *parent) | |
setProperty (const char *name, const QVariant &value) | |
signalsBlocked () | |
startTimer (int interval) | |
thread () | |
timerEvent (QTimerEvent *event) | |
tr (const char *sourceText, const char *comment=0, int n=-1) | |
trUtf8 (const char *sourceText, const char *comment=0, int n=-1) | |
staticMetaObject | |
QObject (QObject *parent, const char *name) | |
checkConnectArgs (const char *signal, const QObject *object, const char *method) | |
child (const char *objName, const char *inheritsClass=0, bool recursiveSearch=true) | |
className () | |
insertChild (QObject *object) | |
isA (const char *className) | |
name () | |
name (const char *defaultName) | |
normalizeSignalSlot (const char *signalSlot) | |
removeChild (QObject *object) | |
setName (const char *name) | |
![]() | |
virtual | ~ErrorCache () |
virtual Error | lastError () const |
Additional Inherited Members | |
![]() | |
void | statementsAdded () |
void | statementsRemoved () |
void | statementAdded (const Soprano::Statement &statement) |
void | statementRemoved (const Soprano::Statement &statement) |
![]() | |
FilterModel () | |
FilterModel (Model *parent) | |
virtual void | parentStatementsAdded () |
virtual void | parentStatementsRemoved () |
virtual void | parentStatementAdded (const Statement &) |
virtual void | parentStatementRemoved (const Statement &) |
Exports a Soprano Model via D-Bus.
DBusExportModel is a FilterModel like any other. As such, it can occure anywhere in a stack of models. However, the model exported via D-Bus is actually the FilterModel::parentModel, not the DBusExportModel itself. Thus, subclassing DBusExportModel to modify the behaviour of methods called via D-Bus does not make sense. Instead stack the DBusExportModel on top of your own custom FilterModel.
For creating a simple Soprano D-Bus server see ServerCore::registerAsDBusObject.
The interface exported can be accessed via Client::DBusModel.
DBusExportModel automatically makes use of a Util::AsyncModel as parent model to create delayed D-Bus replies. If the parent model is not a Util::AsyncModel all calls will be performed syncroneously.
Definition at line 59 of file dbusexportmodel.h.
Soprano::Server::DBusExportModel::DBusExportModel | ( | Model * | model = 0 | ) |
Create a new D-Bus export model.
model | The parent model which should be exported. |
Soprano::Server::DBusExportModel::~DBusExportModel | ( | ) |
Destructor.
bool Soprano::Server::DBusExportModel::registerModel | ( | const QString & | dbusObjectPath | ) |
Register the model under the given D-Bus object path.
void Soprano::Server::DBusExportModel::unregisterModel | ( | ) |
Unregister the model from D-Bus.
QString Soprano::Server::DBusExportModel::dbusObjectPath | ( | ) | const |
The path this model is exported on. This is an empty string if the model is not exported.