Changeset View
Changeset View
Standalone View
Standalone View
src/urifilters/ikws/kuriikwsfilter.cpp
Show All 34 Lines | |||||
35 | QLoggingCategory category("org.kde.kurifilter-ikws", QtWarningMsg); | 35 | QLoggingCategory category("org.kde.kurifilter-ikws", QtWarningMsg); | ||
36 | } | 36 | } | ||
37 | 37 | | |||
38 | /** | 38 | /** | ||
39 | * IMPORTANT: If you change anything here, make sure you run the kurifiltertest | 39 | * IMPORTANT: If you change anything here, make sure you run the kurifiltertest | ||
40 | * regression test (this should be included as part of "make test"). | 40 | * regression test (this should be included as part of "make test"). | ||
41 | */ | 41 | */ | ||
42 | 42 | | |||
43 | K_PLUGIN_FACTORY(KAutoWebSearchFactory, registerPlugin<KAutoWebSearch>();) | 43 | K_PLUGIN_FACTORY_WITH_JSON(KAutoWebSearchFactory, "kuriikwsfilter.json", registerPlugin<KAutoWebSearch>();) | ||
44 | 44 | | |||
45 | KAutoWebSearch::KAutoWebSearch(QObject *parent, const QVariantList&) | 45 | KAutoWebSearch::KAutoWebSearch(QObject *parent, const QVariantList&) | ||
46 | :KUriFilterPlugin( QStringLiteral("kuriikwsfilter"), parent ) | 46 | :KUriFilterPlugin( QStringLiteral("kuriikwsfilter"), parent ) | ||
47 | { | 47 | { | ||
48 | KLocalizedString::insertQtDomain("kurifilter"); | 48 | KLocalizedString::insertQtDomain("kurifilter"); | ||
49 | QDBusConnection::sessionBus().connect(QString(), QStringLiteral("/"), QStringLiteral("org.kde.KUriFilterPlugin"), | 49 | QDBusConnection::sessionBus().connect(QString(), QStringLiteral("/"), QStringLiteral("org.kde.KUriFilterPlugin"), | ||
50 | QStringLiteral("configure"), this, SLOT(configure())); | 50 | QStringLiteral("configure"), this, SLOT(configure())); | ||
51 | } | 51 | } | ||
▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines |