diff options
author | megabigbug <megabigbug@yahoo.fr> | 2010-10-04 08:32:21 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-10-30 11:38:06 +0200 |
commit | 72af78494652e97cf2caaf05a4ac1613359400f6 (patch) | |
tree | a3968f159fd075a10c20ad2165ecef66b14b9eef /src/opensearch/opensearchmanager.cpp | |
parent | Added CtestConfig.cmake (diff) | |
download | rekonq-72af78494652e97cf2caaf05a4ac1613359400f6.tar.xz |
add an xml parser to the opensearch engine.
Diffstat (limited to 'src/opensearch/opensearchmanager.cpp')
-rw-r--r-- | src/opensearch/opensearchmanager.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/opensearch/opensearchmanager.cpp b/src/opensearch/opensearchmanager.cpp index d0d47f63..ed8c5fc5 100644 --- a/src/opensearch/opensearchmanager.cpp +++ b/src/opensearch/opensearchmanager.cpp @@ -159,15 +159,19 @@ void OpenSearchManager::jobFinished(KJob *job) { if (job->error()) { - emit suggestionReceived(_typedText, QStringList()); + emit suggestionReceived(_typedText, ResponseList()); m_state = IDLE; return; // just silently return } if (m_state == REQ_SUGGESTION) { - const QStringList suggestionsList = m_activeEngine->parseSuggestion(m_jobData); - kDebug() << "Received suggestions in "<< _typedText << " from " << m_activeEngine->name() << ": " << suggestionsList; + const ResponseList suggestionsList = m_activeEngine->parseSuggestion(m_jobData); + kDebug() << "Received suggestions in "<< _typedText << " from " << m_activeEngine->name() << ": "; + foreach(Response r, suggestionsList) + { + kDebug() << r.title; + } emit suggestionReceived(_typedText, suggestionsList); idleJob(); |