Creates a connection to the Soprano server through a TCP connection. More...
|TcpClient (QObject *parent=0)|
|bool||connect (const QHostAddress &address=QHostAddress::LocalHost, int port=DEFAULT_PORT)|
|Model *||createModel (const QString &name, const QList< BackendSetting > &settings=QList< BackendSetting >())|
|void||removeModel (const QString &name)|
|static const quint16||DEFAULT_PORT|
Creates a connection to the Soprano server through a TCP connection.
The Soprano server supports more than one way of communication. Beside D-Bus (see DBusClient) and local socket communication (LocalSocketClient) it can be contacted via TCP. For that to work the server has to be listening on some port (Server::ServerCore::listen).
|bool Soprano::Client::TcpClient::connect||(||const QHostAddress &||address =
Tries to connect to the Soprano server.
falseif an error occured. Check lastError() for details.
Check if the client is connected to a server.
trueif this client is connected to a server,
Disconnect from the server. The created model instances are not deleted but remain useless; open iterators are closed.
|Model* Soprano::Client::TcpClient::createModel||(||const QString &||name,|
|const QList< BackendSetting > &||settings =
Creates a new Model instance that wraps a server model. Client models are very light wrappers and creating them is very fast.
|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.|
Deletes a model including all its data.
|name||The name of the model to remove.|
|const quint16 Soprano::Client::TcpClient::DEFAULT_PORT