• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE Support
  • Sitemap
  • Contact Us
 

soprano

Soprano::Server::DBusExportModel

Soprano::Server::DBusExportModel Class Reference

Exports a Soprano Model via D-Bus. More...

#include <Soprano/Server/DBusExportModel>

Inheritance diagram for Soprano::Server::DBusExportModel:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DBusExportModel (Model *model=0)
 ~DBusExportModel ()
QString dbusObjectPath () const
bool registerModel (const QString &dbusObjectPath)
void unregisterModel ()

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.

Author:
Sebastian Trueg <trueg@kde.org>
See also:
Soprano D-Bus Interface
Since:
2.1

Definition at line 59 of file dbusexportmodel.h.


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  ) 

Register the model under the given D-Bus object path.

See also:
QDBusConnection::registerObject
void Soprano::Server::DBusExportModel::unregisterModel (  ) 

Unregister the model from D-Bus.

See also:
QDBusConnection::unregisterObject

The documentation for this class was generated from the following file:
  • dbusexportmodel.h

soprano

Skip menu "soprano"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE Support

Skip menu "KDE Support"
  • akonadi
  • Decibel
  • grantlee
  • kdewin
  • phonon
  •     Backend
  • polkit-qt
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for KDE Support by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal