3 * $Id: sourceheader 511311 2006-02-19 14:51:05Z trueg $
5 * This file is part of the Nepomuk KDE project.
6 * Copyright (C) 2006-2007 Sebastian Trueg <trueg@kde.org>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 * See the file "COPYING" for the exact licensing terms.
15 #ifndef _REPOSITORY_H_
16 #define _REPOSITORY_H_
18 #include <QtCore/QString>
19 #include <QtCore/QMap>
21 #include <soprano/version.h>
23 #ifndef SOPRANO_IS_VERSION
24 #define SOPRANO_IS_VERSION(a,b,c) false
27 #if SOPRANO_IS_VERSION(2,0,90)
28 #include <Soprano/Util/SignalCacheModel>
30 #include <Soprano/FilterModel>
37 class IndexFilterModel
;
44 class Repository
: public
45 #if SOPRANO_IS_VERSION(2,0,90)
46 Soprano::Util::SignalCacheModel
56 QString
name() const { return m_name
; }
58 static Repository
* open( const QString
& path
, const QString
& name
);
64 Soprano::Model
* m_model
;
65 Soprano::Index::CLuceneIndex
* m_index
;
66 Soprano::Index::IndexFilterModel
* m_indexModel
;
69 typedef QMap
<QString
, Repository
*> RepositoryMap
;