Soprano::Client::UnixSocketClient Class Reference

Creates a connection to the Soprano server through a unix socket interface. More...

#include <Soprano/Client/UnixSocketClient>

Inheritance diagram for Soprano::Client::UnixSocketClient:
[legend]

List of all members.

Public Member Functions

 UnixSocketClient (QObject *parent=0)
virtual ~UnixSocketClient ()
bool connect (const QString &name=QString())
bool isConnected ()
void disconnect ()
ModelcreateModel (const QString &name, const QList< BackendSetting > &settings=QList< BackendSetting >())


Detailed Description

Creates a connection to the Soprano server through a unix socket interface.

Author:
Sebastian Trueg <trueg@kde.org>

Definition at line 46 of file unixsocketclient.h.


Constructor & Destructor Documentation

Soprano::Client::UnixSocketClient::UnixSocketClient ( QObject parent = 0  ) 

Create a new Client instance.

virtual Soprano::Client::UnixSocketClient::~UnixSocketClient (  )  [virtual]

Destructor.


Member Function Documentation

bool Soprano::Client::UnixSocketClient::connect ( const QString name = QString()  ) 

Tries to connect to the Soprano server.

Returns:
true on success, false if an error occured. Check lastError() for details.

bool Soprano::Client::UnixSocketClient::isConnected (  ) 

Check if the client is connected to a server.

Returns:
true if this client is connected to a server, false otherwise.

void Soprano::Client::UnixSocketClient::disconnect (  ) 

Disconnect from the server. The created model instances are not deleted but remain useless; open iterators are closed.

Model* Soprano::Client::UnixSocketClient::createModel ( const QString name,
const QList< BackendSetting > &  settings = QListBackendSetting >() 
)

Creates a new Model instance that wraps a server model. Client models are very light wrappers and creating them is very fast.

Parameters:
name The name of the model to access.
settings The settings to send to the server for creating a new model. These settings may be ignored by the server if a model with that name has already been created.
Returns:
A new Model instance wrapping the requested server model or 0 on error (check lastError() for details.)


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

Generated on Wed Mar 5 20:45:27 2008 for Soprano by  doxygen 1.5.5