summaryrefslogtreecommitdiff
path: root/src/opensearch
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-05-27 22:58:44 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-05-27 23:34:32 +0200
commit807e20570cbfef6e258313565598905564f1bb86 (patch)
tree695b3c940bce02305224e5781a7c48b5a6fdab94 /src/opensearch
parentRuntime Nepomuk tagging check (diff)
downloadrekonq-807e20570cbfef6e258313565598905564f1bb86.tar.xz
Kitchen sink clean up
- astyle - copyrights - (some) includes
Diffstat (limited to 'src/opensearch')
-rw-r--r--src/opensearch/opensearchmanager.cpp6
-rw-r--r--src/opensearch/searchengine.h16
2 files changed, 11 insertions, 11 deletions
diff --git a/src/opensearch/opensearchmanager.cpp b/src/opensearch/opensearchmanager.cpp
index c315f9c8..5fad35ac 100644
--- a/src/opensearch/opensearchmanager.cpp
+++ b/src/opensearch/opensearchmanager.cpp
@@ -126,7 +126,7 @@ void OpenSearchManager::addOpenSearchEngine(const KUrl &url, const QString &titl
m_currentJob = KIO::get(url, KIO::NoReload, KIO::HideProgressInfo);
m_jobUrl = url;
m_state = REQ_DESCRIPTION;
- connect(m_currentJob, SIGNAL(data(KIO::Job*,QByteArray)), this, SLOT(dataReceived(KIO::Job*,QByteArray)));
+ connect(m_currentJob, SIGNAL(data(KIO::Job*, QByteArray)), this, SLOT(dataReceived(KIO::Job*, QByteArray)));
connect(m_currentJob, SIGNAL(result(KJob*)), this, SLOT(jobFinished(KJob*)));
}
@@ -155,7 +155,7 @@ void OpenSearchManager::requestSuggestion(const QString &searchText)
_typedText = searchText;
m_currentJob = KIO::get(url, KIO::NoReload, KIO::HideProgressInfo);
m_state = REQ_SUGGESTION;
- connect(m_currentJob, SIGNAL(data(KIO::Job*,QByteArray)), this, SLOT(dataReceived(KIO::Job*,QByteArray)));
+ connect(m_currentJob, SIGNAL(data(KIO::Job*, QByteArray)), this, SLOT(dataReceived(KIO::Job*, QByteArray)));
connect(m_currentJob, SIGNAL(result(KJob*)), this, SLOT(jobFinished(KJob*)));
}
}
@@ -222,7 +222,7 @@ void OpenSearchManager::jobFinished(KJob *job)
idleJob();
return;
}
-
+
// Do NOT parse if job had same errors or the typed string is empty
if (job->error() || _typedText.isEmpty())
{
diff --git a/src/opensearch/searchengine.h b/src/opensearch/searchengine.h
index 7cd37a67..21678e9d 100644
--- a/src/opensearch/searchengine.h
+++ b/src/opensearch/searchengine.h
@@ -41,19 +41,19 @@
namespace SearchEngine
{
- void reload();
-
- QString delimiter();
+void reload();
- KService::Ptr defaultEngine();
+QString delimiter();
- KService::List favorites();
+KService::Ptr defaultEngine();
- KService::Ptr fromString(const QString &text);
+KService::List favorites();
- QString buildQuery(KService::Ptr engine, const QString &text);
+KService::Ptr fromString(const QString &text);
- QString extractQuery(const QString &text);
+QString buildQuery(KService::Ptr engine, const QString &text);
+
+QString extractQuery(const QString &text);
}
#endif