add more spacing
[personal-kdebase.git] / runtime / nepomuk / server / legacystoragebridge.h
blob935245625de86fd161ab9a1766340838e69ce122
1 /*
2 Copyright (C) 2008 by Sebastian Trueg <trueg at kde.org>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 #ifndef _NEPOMUK_LEGACY_STORAGE_BRIDGE_H_
20 #define _NEPOMUK_LEGACY_STORAGE_BRIDGE_H_
22 #include <Soprano/Server/ServerCore>
24 namespace Soprano {
25 class Model;
26 namespace Client {
27 class DBusClient;
31 namespace Nepomuk {
32 /**
33 * Legacy class which makes sure the old org.kde.NepomukServer
34 * access to the storage service is still valid for
35 * backwards compatibility.
37 * \author Sebastian Trueg <trueg@kde.org>
39 class LegacyStorageBridge : public Soprano::Server::ServerCore
41 Q_OBJECT
43 public:
44 LegacyStorageBridge( QObject* parent = 0 );
45 ~LegacyStorageBridge();
47 /**
48 * Forwards the call to the storage server via the dbus interface.
50 Soprano::Model* model( const QString& name );
52 /**
53 * Forwards the call to the storage server via the dbus interface.
55 void removeModel( const QString& name );
57 /**
58 * Forwards the call to the storage server via the dbus interface.
60 QStringList allModels() const;
62 private:
63 void initClient();
64 Soprano::Client::DBusClient* m_client;
68 #endif