soprano
Soprano::Server::DBusExportModel Class Reference
#include <Soprano/Server/DBusExportModel>

Detailed Description
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.
- See also:
- Soprano D-Bus Interface
- Since:
- 2.1
Definition at line 59 of file dbusexportmodel.h.
Public Member Functions | |
| DBusExportModel (Model *model=0) | |
| QString | dbusObjectPath () const |
| bool | registerModel (const QString &dbusObjectPath) |
| void | unregisterModel () |
| ~DBusExportModel () | |
Constructor & Destructor Documentation
| Soprano::Server::DBusExportModel::DBusExportModel | ( | Model * | model = 0 |
) |
Create a new D-Bus export model.
- Parameters:
-
model The parent model which should be exported.
| Soprano::Server::DBusExportModel::~DBusExportModel | ( | ) |
Destructor.
Member Function Documentation
| QString Soprano::Server::DBusExportModel::dbusObjectPath | ( | ) | const |
The path this model is exported on.
This is an empty string if the model is not exported.
| bool Soprano::Server::DBusExportModel::registerModel | ( | const QString & | dbusObjectPath | ) |
| void Soprano::Server::DBusExportModel::unregisterModel | ( | ) |
The documentation for this class was generated from the following file:
KDE 4.2 API Reference