NepomukDaemons
repository.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef _REPOSITORY_H_
00016 #define _REPOSITORY_H_
00017
00018 #include <QtCore/QString>
00019 #include <QtCore/QMap>
00020
00021 namespace Soprano {
00022 class Model;
00023 namespace Index {
00024 class IndexFilterModel;
00025 class CLuceneIndex;
00026 }
00027 }
00028
00029 namespace Nepomuk {
00030
00031 class Repository
00032 {
00033 public:
00034 ~Repository();
00035
00036 QString name() const { return m_name; }
00037 Soprano::Model* model() const;
00038
00039 static Repository* open( const QString& path, const QString& name );
00040
00041 private:
00042 Repository();
00043
00044 QString m_name;
00045 Soprano::Model* m_model;
00046 Soprano::Index::CLuceneIndex* m_index;
00047 Soprano::Index::IndexFilterModel* m_indexModel;
00048 };
00049
00050 typedef QMap<QString, Repository*> RepositoryMap;
00051 }
00052
00053 #endif