Changeset View
Changeset View
Standalone View
Standalone View
runners/baloo/baloosearchrunner.cpp
Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Line(s) | |||||
118 | void SearchRunner::performMatch() | 118 | void SearchRunner::performMatch() | ||
119 | { | 119 | { | ||
120 | RemoteMatches matches; | 120 | RemoteMatches matches; | ||
121 | matches << matchInternal(m_searchTerm, QStringLiteral("Audio"), i18n("Audio")); | 121 | matches << matchInternal(m_searchTerm, QStringLiteral("Audio"), i18n("Audio")); | ||
122 | matches << matchInternal(m_searchTerm, QStringLiteral("Image"), i18n("Image")); | 122 | matches << matchInternal(m_searchTerm, QStringLiteral("Image"), i18n("Image")); | ||
123 | matches << matchInternal(m_searchTerm, QStringLiteral("Document"), i18n("Document")); | 123 | matches << matchInternal(m_searchTerm, QStringLiteral("Document"), i18n("Document")); | ||
124 | matches << matchInternal(m_searchTerm, QStringLiteral("Video"), i18n("Video")); | 124 | matches << matchInternal(m_searchTerm, QStringLiteral("Video"), i18n("Video")); | ||
125 | matches << matchInternal(m_searchTerm, QStringLiteral("Folder"), i18n("Folder")); | 125 | matches << matchInternal(m_searchTerm, QStringLiteral("Folder"), i18n("Folder")); | ||
126 | matches << matchInternal(m_searchTerm, QStringLiteral("Archive"), i18n("Archive")); | ||||
127 | matches << matchInternal(m_searchTerm, QStringLiteral("Spreadsheet"), i18n("Spreadsheet")); | ||||
128 | matches << matchInternal(m_searchTerm, QStringLiteral("Presentation"), i18n("Presentation")); | ||||
126 | 129 | | |||
127 | QDBusConnection::sessionBus().send(m_lastRequest.createReply(QVariant::fromValue(matches))); | 130 | QDBusConnection::sessionBus().send(m_lastRequest.createReply(QVariant::fromValue(matches))); | ||
128 | m_lastRequest = QDBusMessage(); | 131 | m_lastRequest = QDBusMessage(); | ||
129 | } | 132 | } | ||
130 | 133 | | |||
131 | RemoteMatches SearchRunner::matchInternal(const QString& searchTerm, const QString &type, const QString &category) | 134 | RemoteMatches SearchRunner::matchInternal(const QString& searchTerm, const QString &type, const QString &category) | ||
132 | { | 135 | { | ||
133 | Baloo::Query query; | 136 | Baloo::Query query; | ||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |