1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-18 03:41:27 +02:00

* Fixed non-win32 builds.

This commit is contained in:
Christian Muehlhaeuser
2011-02-10 11:50:36 +01:00
parent 8a530c1f15
commit 0f0c0d9026
2 changed files with 44 additions and 20 deletions

View File

@@ -8,6 +8,15 @@
#include <CLucene.h>
#ifndef WIN32
using namespace lucene::analysis;
using namespace lucene::document;
using namespace lucene::store;
using namespace lucene::index;
using namespace lucene::queryParser;
using namespace lucene::search;
#endif
FuzzyIndex::FuzzyIndex( DatabaseImpl& db )
: QObject()

View File

@@ -7,26 +7,34 @@
#include <QString>
#include <QMutex>
//namespace lucene
//{
// namespace analysis
// {
class SimpleAnalyzer;
// }
// namespace store
// {
class Directory;
// }
// namespace index
// {
class IndexReader;
class IndexWriter;
// }
// namespace search
// {
class IndexSearcher;
// }
//}
#ifndef WIN32
namespace lucene
{
namespace analysis
{
class SimpleAnalyzer;
}
namespace store
{
class Directory;
}
namespace index
{
class IndexReader;
class IndexWriter;
}
namespace search
{
class IndexSearcher;
}
}
#else
class SimpleAnalyzer;
class Directory;
class IndexReader;
class IndexWriter;
class IndexSearcher;
#endif
class DatabaseImpl;
@@ -54,10 +62,17 @@ private:
DatabaseImpl& m_db;
QMutex m_mutex;
#ifndef WIN32
lucene::analysis::SimpleAnalyzer* m_analyzer;
lucene::store::Directory* m_luceneDir;
lucene::index::IndexReader* m_luceneReader;
lucene::search::IndexSearcher* m_luceneSearcher;
#else
SimpleAnalyzer* m_analyzer;
Directory* m_luceneDir;
IndexReader* m_luceneReader;
IndexSearcher* m_luceneSearcher;
#endif
};
#endif // FUZZYINDEX_H