1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-21 13:21:52 +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> #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 ) FuzzyIndex::FuzzyIndex( DatabaseImpl& db )
: QObject() : QObject()

View File

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