00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _SOPRANO_SERVER_DBUS_CLIENT_H_
00023 #define _SOPRANO_SERVER_DBUS_CLIENT_H_
00024
00025 #include <QtCore/QObject>
00026
00027 #include "backend.h"
00028 #include "error.h"
00029 #include "soprano_export.h"
00030
00031 namespace Soprano {
00032
00033 class Model;
00034
00035 namespace Client {
00036
00037 class DBusModel;
00038
00054 class SOPRANO_CLIENT_EXPORT DBusClient : public QObject, public Error::ErrorCache
00055 {
00056 Q_OBJECT
00057
00058 public:
00066 DBusClient( const QString& service = QString(), QObject* parent = 0 );
00067
00071 ~DBusClient();
00072
00079 bool isValid() const;
00080
00086 QStringList allModels() const;
00087
00097 DBusModel* createModel( const QString& name, const BackendSettings& settings = BackendSettings() );
00098
00107 void removeModel( const QString& name );
00108
00109 private:
00110 class Private;
00111 Private* const d;
00112 };
00113 }
00114 }
00115
00116 #endif