Soprano 2.6.0
/home/andrew/rpmbuild/BUILD/soprano-2.6.0/client/dbus/dbusclient.h
Go to the documentation of this file.
00001 /* 
00002  * This file is part of Soprano Project.
00003  *
00004  * Copyright (C) 2007 Sebastian Trueg <trueg@kde.org>
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Library General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Library General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Library General Public License
00017  * along with this library; see the file COPYING.LIB.  If not, write to
00018  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019  * Boston, MA 02110-1301, USA.
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