mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-20 12:52:30 +02:00
* Fixed non-win32 builds.
This commit is contained in:
@@ -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()
|
||||||
|
@@ -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 IndexWriter;
|
class IndexReader;
|
||||||
// }
|
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
|
||||||
|
Reference in New Issue
Block a user