*** empty log message ***
This commit is contained in:
parent
388b5b4e14
commit
be8f0a2b4e
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char rcsid[] = "@(#$Id: kio_recoll.cpp,v 1.13 2008-11-17 14:51:38 dockes Exp $ (C) 2005 J.F.Dockes";
|
static char rcsid[] = "@(#$Id: kio_recoll.cpp,v 1.14 2008-11-19 12:28:59 dockes Exp $ (C) 2005 J.F.Dockes";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -101,7 +101,8 @@ bool RecollProtocol::maybeOpenDb(string &reason)
|
|||||||
|
|
||||||
void RecollProtocol::get(const KUrl & url)
|
void RecollProtocol::get(const KUrl & url)
|
||||||
{
|
{
|
||||||
kDebug(7130) << "RecollProtocol::get:" << url << endl;
|
kDebug() << "RecollProtocol::get:" << url << endl;
|
||||||
|
|
||||||
mimeType("text/html");
|
mimeType("text/html");
|
||||||
|
|
||||||
if (!m_initok || !maybeOpenDb(m_reason)) {
|
if (!m_initok || !maybeOpenDb(m_reason)) {
|
||||||
@ -119,7 +120,7 @@ void RecollProtocol::get(const KUrl & url)
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString path = url.path();
|
QString path = url.path();
|
||||||
kDebug(7130) << "RecollProtocol::get:path:" << path << endl;
|
kDebug() << "RecollProtocol::get:path:" << path << endl;
|
||||||
QByteArray u8 = path.toUtf8();
|
QByteArray u8 = path.toUtf8();
|
||||||
|
|
||||||
RefCntr<Rcl::SearchData> sdata = wasaStringToRcl((const char*)u8, m_reason);
|
RefCntr<Rcl::SearchData> sdata = wasaStringToRcl((const char*)u8, m_reason);
|
||||||
@ -202,7 +203,7 @@ void RecollProtocol::get(const KUrl & url)
|
|||||||
os << "</body></html>";
|
os << "</body></html>";
|
||||||
|
|
||||||
data(output);
|
data(output);
|
||||||
kDebug(7130) << "call finished" << endl;
|
kDebug() << "call finished" << endl;
|
||||||
finished();
|
finished();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -220,8 +221,10 @@ void RecollProtocol::outputError(const QString& errmsg)
|
|||||||
data(array);
|
data(array);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Note: KDE_EXPORT is actually needed on Unix when building with
|
||||||
extern "C" {int kdemain(int argc, char **argv);}
|
// cmake. Says something like __attribute__(visibility(defautl))
|
||||||
|
// (cmake apparently sets all symbols to not exported)
|
||||||
|
extern "C" {KDE_EXPORT int kdemain(int argc, char **argv);}
|
||||||
|
|
||||||
int kdemain(int argc, char **argv)
|
int kdemain(int argc, char **argv)
|
||||||
{
|
{
|
||||||
@ -233,17 +236,17 @@ int kdemain(int argc, char **argv)
|
|||||||
#else
|
#else
|
||||||
KComponentData instance("kio_recoll");
|
KComponentData instance("kio_recoll");
|
||||||
#endif
|
#endif
|
||||||
kDebug(7130) << "*** starting kio_recoll " << endl;
|
kDebug() << "*** starting kio_recoll " << endl;
|
||||||
|
|
||||||
if (argc != 4) {
|
if (argc != 4) {
|
||||||
kDebug(7130) << "Usage: kio_recoll proto dom-socket1 dom-socket2\n" << endl;
|
kDebug() << "Usage: kio_recoll proto dom-socket1 dom-socket2\n" << endl;
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
RecollProtocol slave(argv[2], argv[3]);
|
RecollProtocol slave(argv[2], argv[3]);
|
||||||
slave.dispatchLoop();
|
slave.dispatchLoop();
|
||||||
|
|
||||||
kDebug(7130) << "kio_recoll Done" << endl;
|
kDebug() << "kio_recoll Done" << endl;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user