Skip to content

Commit 407a92f

Browse files
committed
Remove Strigi support.
As discussed during the KDE PIM sprint. REVIEW: 113921
1 parent f044f11 commit 407a92f

14 files changed

+3
-681
lines changed

AkonadiConfig.cmake.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set(AKONADI_VERSION @AKONADI_VERSION@)
1111
set(AKONADI_VERSION_STRING "@AKONADI_VERSION_STRING@")
1212

1313
# set AKONADI_DEFINITIONS
14-
set(AKONADI_USE_STRIGI_SEARCH @AKONADI_USE_STRIGI_SEARCH@)
14+
set(AKONADI_USE_STRIGI_SEARCH FALSE) # backward compat, remove eventually
1515
set(AKONADI_DEFINITIONS "@AKONADI_DEFINITIONS@")
1616

1717
# set the directories

CMakeLists.txt

+1-10
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ include(CTest)
1818
include(CTestConfig.cmake)
1919
option(AKONADI_BUILD_TESTS "Build the Akonadi unit tests." TRUE)
2020
option(AKONADI_BUILD_QSQLITE "Build the Sqlite backend." TRUE)
21-
option(AKONADI_USE_STRIGI_SEARCH "Build Akonadi with strigi as search engine." FALSE)
2221
option(INSTALL_QSQLITE_IN_QT_PREFIX "Install the QSQLite plugin in QT_PLUGIN_DIR" FALSE)
2322
option(STATIC_LIBRARY "Build Akonadi as a static library." FALSE)
2423
option(QT5_BUILD "Build Akonadi using the Qt5 framework" FALSE)
@@ -31,14 +30,6 @@ if(AKONADI_BUILD_TESTS)
3130
enable_testing()
3231
endif()
3332

34-
if(AKONADI_USE_STRIGI_SEARCH)
35-
set(AKONADI_DEFINITIONS "-DAKONADI_USE_STRIGI_SEARCH")
36-
add_definitions(${AKONADI_DEFINITIONS})
37-
set(SOPRANO_TYPE "OPTIONAL")
38-
else()
39-
set(SOPRANO_TYPE "REQUIRED")
40-
endif()
41-
4233
############### CMake Macros ###############
4334

4435
include(InstallSettings)
@@ -168,7 +159,7 @@ endif()
168159
set_package_properties(Soprano PROPERTIES
169160
URL "http://soprano.sourceforge.net"
170161
DESCRIPTION "Storage of semantic data"
171-
TYPE ${SOPRANO_TYPE}
162+
TYPE REQUIRED
172163
PURPOSE "Soprano is needed for the Nepomuk search backend"
173164
)
174165

INSTALL

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ The following options are available when running CMake:
3131

3232
* AKONADI_BUILD_TESTS (Default: TRUE): Build the Akonadi unit tests
3333
* AKONADI_BUILD_QSQLITE (Default: TRUE): Build the SQLite backend
34-
* AKONADI_USE_STRIGI_SEARCH (Default: FALSE): Only useful for certain cases (eg: WINCE builds), don't use it
3534
* INSTALL_QSQLITE_IN_QT_PREFIX (Default: FALSE): Useful for distributions.
3635
Once enabled, the qsqlite3 backend will be installed in ${QT_PLUGINS_DIR}/sqldrivers
3736
* STATIC_LIBRARY (Default: FALSE): Build the Akonadi server libraries statically. Only useful for certain cases (eg: WINCE builds).

interfaces/org.freedesktop.xesam.Search.xml

-88
This file was deleted.

server/CMakeLists.txt

-8
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ set(libakonadiprivate_SRCS
139139
src/handler/transaction.cpp
140140
src/search/agentsearchengine.cpp
141141
src/search/searchmanager.cpp
142-
src/search/xesamsearchengine.cpp
143142

144143
src/storage/collectionqueryhelper.cpp
145144
src/storage/entity.cpp
@@ -181,7 +180,6 @@ set(libakonadiprivate_SRCS
181180
src/notificationsource.cpp
182181
src/resourcemanager.cpp
183182
src/cachecleaner.cpp
184-
src/xesamsearch.cpp
185183
src/debuginterface.cpp
186184
src/imapstreamparser.cpp
187185
src/preprocessorinstance.cpp
@@ -222,12 +220,6 @@ qt4_add_dbus_interfaces(libakonadiprivate_SRCS ${Akonadi_SOURCE_DIR}/interfaces/
222220
qt4_add_dbus_interface(libakonadiprivate_SRCS ${Akonadi_SOURCE_DIR}/interfaces/org.freedesktop.Akonadi.Preprocessor.xml preprocessorinterface)
223221
qt4_add_dbus_interface(libakonadiprivate_SRCS ${Akonadi_SOURCE_DIR}/interfaces/org.freedesktop.Akonadi.Agent.Control.xml agentcontrolinterface)
224222

225-
set(xesam_xml ${Akonadi_SOURCE_DIR}/interfaces/org.freedesktop.xesam.Search.xml)
226-
227-
set_source_files_properties(${xesam_xml} PROPERTIES INCLUDE "xesamtypes.h")
228-
229-
qt4_add_dbus_interface(libakonadiprivate_SRCS ${xesam_xml} xesaminterface)
230-
231223
qt4_add_resources(libakonadiprivate_SRCS src/storage/akonadidb.qrc)
232224

233225

server/src/akonadi.cpp

+1-9
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
#include "storage/itemretrievalthread.h"
3838
#include "preprocessormanager.h"
3939
#include "search/searchmanager.h"
40-
#include "xesamtypes.h"
4140
#include "response.h"
4241

4342
#include "libs/xdgbasedirs_p.h"
@@ -199,12 +198,7 @@ void AkonadiServer::init()
199198
mItemRetrievalThread->start( QThread::HighPriority );
200199

201200
const QStringList searchManagers = settings.value( QLatin1String( "Search/Manager" ),
202-
QStringList()
203-
#ifdef AKONADI_USE_STRIGI_SEARCH
204-
<< QLatin1String( "Xesam" )
205-
#else
206-
<< QLatin1String( "Nepomuk" )
207-
#endif
201+
QStringList() << QLatin1String( "Nepomuk" )
208202
<< QLatin1String( "Agent" ) ).toStringList();
209203
mSearchManager = new SearchManager( searchManagers, this );
210204

@@ -230,8 +224,6 @@ void AkonadiServer::init()
230224
// operation was interrupted...
231225
db->unhideAllPimItems();
232226

233-
qDBusRegisterMetaType<XesamVariantListVector>();
234-
235227
// We are ready, now register org.freedesktop.Akonadi service to DBus and
236228
// the fun can begin
237229
if ( !QDBusConnection::sessionBus().registerService( AkDBus::serviceName( AkDBus::Server ) ) ) {

server/src/handler/search.cpp

-7
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include "imapstreamparser.h"
2727
#include "nepomuksearch.h"
2828
#include "response.h"
29-
#include "xesamsearch.h"
3029

3130
#include <libs/protocol_p.h>
3231

@@ -50,15 +49,9 @@ bool Search::parseStream()
5049
return failureResponse( "No query specified" );
5150
}
5251

53-
#ifdef AKONADI_USE_STRIGI_SEARCH
54-
XesamSearch *service = new XesamSearch;
55-
const QStringList uids = service->search( QString::fromUtf8( queryString ) );
56-
delete service;
57-
#else
5852
NepomukSearch *service = new NepomukSearch;
5953
const QStringList uids = service->search( QString::fromUtf8( queryString ) );
6054
delete service;
61-
#endif
6255

6356
if ( uids.isEmpty() ) {
6457
m_streamParser->readUntilCommandEnd(); // skip the fetch scope

server/src/handler/searchpersistent.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,7 @@ bool SearchPersistent::parseStream()
6262
}
6363

6464
// for legacy clients we have to guess the language
65-
#ifdef AKONADI_USE_STRIGI_SEARCH
66-
QString lang = QLatin1String( "XESAM" );
67-
#else
6865
QString lang = QLatin1String( "SPARQL" );
69-
#endif
7066

7167
if ( m_streamParser->hasList() ) {
7268
m_streamParser->beginList();

server/src/search/searchmanager.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include "agentsearchengine.h"
2424
#include "nepomuksearchengine.h"
2525
#include "entities.h"
26-
#include "xesamsearchengine.h"
2726
#include <storage/notificationcollector.h>
2827

2928
using namespace Akonadi;
@@ -50,8 +49,6 @@ SearchManager::SearchManager( const QStringList &searchEngines, QObject *parent
5049
#endif
5150
} else if ( engineName == QLatin1String( "Agent" ) ) {
5251
m_engines.append( new AgentSearchEngine );
53-
} else if ( engineName == QLatin1String( "Xesam" ) ) {
54-
m_engines.append( new XesamSearchEngine );
5552
} else {
5653
akError() << "Unknown search engine type: " << engineName;
5754
}

0 commit comments

Comments
 (0)