|
Soprano
2.9.2
|
Creates a connection to the Soprano server through a local socket interface. More...
#include <Soprano/Client/LocalSocketClient>
Inheritance diagram for Soprano::Client::LocalSocketClient:Public Slots | |
| bool | connect (const QString &name=QString()) |
| void | disconnect () |
Public Member Functions | |
| LocalSocketClient (QObject *parent=0) | |
| virtual | ~LocalSocketClient () |
| bool | isConnected () const |
| Model * | createModel (const QString &name, const QList< BackendSetting > &settings=QList< BackendSetting >()) |
| 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 ®Exp) | |
| 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 |
Creates a connection to the Soprano server through a local socket interface.
The Soprano server supports more than one way of communication. Beside D-Bus (see DBusClient) it can be contacted via a local socket.
Models creates by this client are thread-safe and provide faster access to the server than D-Bus communication.
Definition at line 57 of file localsocketclient.h.
| Soprano::Client::LocalSocketClient::LocalSocketClient | ( | QObject * | parent = 0 | ) |
Create a new Client instance.
|
virtual |
Destructor.
| bool Soprano::Client::LocalSocketClient::isConnected | ( | ) | const |
Check if the client is connected to a server.
true if this client is connected to a server, false otherwise. | Model* Soprano::Client::LocalSocketClient::createModel | ( | const QString & | name, |
| const QList< BackendSetting > & | settings = QList< BackendSetting >() |
||
| ) |
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. |
| void Soprano::Client::LocalSocketClient::removeModel | ( | const QString & | name | ) |
Deletes a model including all its data.
| name | The name of the model to remove. |
Tries to connect to the Soprano server.
true on success, false if an error occured. Check lastError() for details.
|
slot |
Disconnect from the server. The created model instances are not deleted but remain useless; open iterators are closed.
1.8.5