summaryrefslogtreecommitdiff
path: root/src/opensearch/opensearchmanager.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-07-19 23:00:41 +0200
committerAndrea Diamantini <adjam7@gmail.com>2011-07-19 23:00:41 +0200
commit1d1a6867589a8e71755624e1e9d9e8b95a5a1156 (patch)
tree35f54c5ad7edfb58af4c3a1db3e0dc8a83da9af6 /src/opensearch/opensearchmanager.cpp
parentAdded UI option to configure the "Do Not Track" feature (diff)
downloadrekonq-1d1a6867589a8e71755624e1e9d9e8b95a5a1156.tar.xz
Calm down kDebug messages
Diffstat (limited to 'src/opensearch/opensearchmanager.cpp')
-rw-r--r--src/opensearch/opensearchmanager.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/opensearch/opensearchmanager.cpp b/src/opensearch/opensearchmanager.cpp
index 35716d9a..ea2ace32 100644
--- a/src/opensearch/opensearchmanager.cpp
+++ b/src/opensearch/opensearchmanager.cpp
@@ -53,6 +53,7 @@
#include <QDBusMessage>
#include <QDBusConnection>
+
OpenSearchManager::OpenSearchManager(QObject *parent)
: QObject(parent)
, m_activeEngine(0)
@@ -81,14 +82,12 @@ void OpenSearchManager::setSearchProvider(const QString &searchProvider)
kDebug() << searchProvider << " trimmed name: " << trimmedEngineName(searchProvider) << " file name path: " << fileName;
if(fileName.isEmpty())
{
- kDebug() << "OpenSearch file name empty";
return;
}
QFile file(fileName);
if(!file.open(QIODevice::ReadOnly | QIODevice::Text))
{
- kDebug() << "Cannot open opensearch description file: " + fileName;
return;
}
@@ -154,7 +153,6 @@ void OpenSearchManager::requestSuggestion(const QString &searchText)
else
{
KUrl url = m_activeEngine->suggestionsUrl(searchText);
- kDebug() << "Requesting for suggestions: " << url.url();
_typedText = searchText;
m_currentJob = KIO::get(url, KIO::NoReload, KIO::HideProgressInfo);
m_state = REQ_SUGGESTION;
@@ -184,7 +182,6 @@ void OpenSearchManager::jobFinished(KJob *job)
if(m_state == REQ_SUGGESTION)
{
const ResponseList suggestionsList = m_activeEngine->parseSuggestion(_typedText, m_jobData);
- kDebug() << "Received suggestions in " << _typedText << " from " << m_activeEngine->name() << ": ";
Q_FOREACH(const Response & r, suggestionsList)
{
kDebug() << r.title;
@@ -251,7 +248,6 @@ void OpenSearchManager::loadEngines()
QFile file(KStandardDirs::locate("appdata", "opensearch/db_opensearch.json"));
if(!file.open(QIODevice::ReadOnly | QIODevice::Text))
{
- kDebug() << "opensearch db cannot be read";
return;
}
@@ -259,7 +255,6 @@ void OpenSearchManager::loadEngines()
QScriptEngine reader;
if(!reader.canEvaluate(fileContent))
{
- kDebug() << "opensearch db cannot be read";
return;
}
@@ -281,7 +276,6 @@ void OpenSearchManager::saveEngines()
QFile file(KStandardDirs::locateLocal("appdata", "opensearch/db_opensearch.json"));
if(!file.open(QIODevice::WriteOnly))
{
- kDebug() << "opensearch db cannot be writen";
return;
}
QTextStream out(&file);