Soprano  2.9.3
Public Member Functions | List of all members
Soprano::Client::DBusClient Class Reference

Core class to handle a connection to a Soprano server through the DBus interface. More...

#include <Soprano/Client/DBusClient>

+ Inheritance diagram for Soprano::Client::DBusClient:

Public Member Functions

 DBusClient (const QString &service=QString(), QObject *parent=0)
 
 ~DBusClient ()
 
bool isValid () const
 
QStringList allModels () const
 
DBusModelcreateModel (const QString &name, const BackendSettings &settings=BackendSettings())
 
void removeModel (const QString &name)
 
- Public Member Functions inherited from QObject
 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 &regExp)
 
 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)
 
- Public Member Functions inherited from Soprano::Error::ErrorCache
virtual ~ErrorCache ()
 
virtual Error lastError () const
 

Additional Inherited Members

- Protected Member Functions inherited from Soprano::Error::ErrorCache
 ErrorCache ()
 
void clearError () const
 
void setError (const Error &) const
 
void setError (const QString &errorMessage, int code=ErrorUnknown) const
 

Detailed Description

Core class to handle a connection to a Soprano server through the DBus interface.

DBusClient creates a connection to a running Soprano Server via its DBus interface. All DBus communication is handled internally.

See DBusModel for details about thread-safety.

Author
Sebastian Trueg trueg.nosp@m.@kde.nosp@m..org
See Also
Soprano D-Bus Interface

Definition at line 54 of file dbusclient.h.

Constructor & Destructor Documentation

Soprano::Client::DBusClient::DBusClient ( const QString service = QString(),
QObject parent = 0 
)

Create a new DBus client.

Parameters
serviceThe DBus service name. If empty the client will use the default Soprano service name.
parentThe parent object.
Soprano::Client::DBusClient::~DBusClient ( )

Destructor

Member Function Documentation

bool Soprano::Client::DBusClient::isValid ( ) const

Check if the service is valid and available.

Returns
true if the Soprano server service could be found and used. Otherwise returns false.
QStringList Soprano::Client::DBusClient::allModels ( ) const

Retrive a list of all models that are available.

Returns
A list of model names to be used with createModel()
DBusModel* Soprano::Client::DBusClient::createModel ( const QString name,
const BackendSettings settings = BackendSettings() 
)

Creates a new Model instance that wraps a dbus server model.

Parameters
nameThe name of the model to access.
settingsSettings for future extension. Not used yet.
Returns
A new Model instance wrapping the requested server model or 0 on error (check lastError() for details.)
void Soprano::Client::DBusClient::removeModel ( const QString name)

Deletes a model including all its data.

Parameters
nameThe name of the model to remove.
Warning
Calling this method will remove all data physically. It can not be reverted. Use with care.

The documentation for this class was generated from the following file: