Changeset View
Changeset View
Standalone View
Standalone View
src/urifilters/fixhost/fixhosturifilter.cpp
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Line(s) | |||||
85 | } | 85 | } | ||
86 | 86 | | |||
87 | bool FixHostUriFilter::exists(const QString& host) const | 87 | bool FixHostUriFilter::exists(const QString& host) const | ||
88 | { | 88 | { | ||
89 | QHostInfo info = resolveName(host, 1500); | 89 | QHostInfo info = resolveName(host, 1500); | ||
90 | return (info.error() == QHostInfo::NoError); | 90 | return (info.error() == QHostInfo::NoError); | ||
91 | } | 91 | } | ||
92 | 92 | | |||
93 | K_PLUGIN_FACTORY(FixHostUriFilterFactory, registerPlugin<FixHostUriFilter>();) | 93 | K_PLUGIN_FACTORY_WITH_JSON(FixHostUriFilterFactory, "fixhosturifilter.json", registerPlugin<FixHostUriFilter>();) | ||
94 | 94 | | |||
95 | #include "fixhosturifilter.moc" | 95 | #include "fixhosturifilter.moc" |