Core class to handle a connection to a Soprano server through the DBus interface. More...
#include <Soprano/Client/DBusClient>

Public Member Functions | |
| DBusClient (const QString &service=QString(), QObject *parent=0) | |
| ~DBusClient () | |
| bool | isValid () const |
| QStringList | allModels () const |
| DBusModel * | createModel (const QString &name, const BackendSettings &settings=BackendSettings()) |
| void | removeModel (const QString &name) |
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.
Definition at line 54 of file dbusclient.h.
| Soprano::Client::DBusClient::DBusClient | ( | const QString & | service = QString(), |
|
| QObject * | parent = 0 | |||
| ) |
Create a new DBus client.
| service | The DBus service name. If empty the client will use the default Soprano service name. | |
| parent | The parent object. |
| Soprano::Client::DBusClient::~DBusClient | ( | ) |
Destructor
| bool Soprano::Client::DBusClient::isValid | ( | ) | const |
Check if the service is valid and available.
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.
| DBusModel* Soprano::Client::DBusClient::createModel | ( | const QString & | name, | |
| const BackendSettings & | settings = BackendSettings() | |||
| ) |
Creates a new Model instance that wraps a dbus server model.
| name | The name of the model to access. | |
| settings | Settings for future extension. Not used yet. |
| void Soprano::Client::DBusClient::removeModel | ( | const QString & | name | ) |
Deletes a model including all its data.
| name | The name of the model to remove. |
1.6.1