Changeset View
Changeset View
Standalone View
Standalone View
src/urifilters/localdomain/localdomainurifilter.cpp
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Line(s) | |||||
79 | bool LocalDomainUriFilter::exists(const QString& host) const | 79 | bool LocalDomainUriFilter::exists(const QString& host) const | ||
80 | { | 80 | { | ||
81 | qCDebug(category) << "Checking if a host called" << host << "exists"; | 81 | qCDebug(category) << "Checking if a host called" << host << "exists"; | ||
82 | QHostInfo hostInfo = resolveName (host, 1500); | 82 | QHostInfo hostInfo = resolveName (host, 1500); | ||
83 | return (hostInfo.error() == QHostInfo::NoError); | 83 | return (hostInfo.error() == QHostInfo::NoError); | ||
84 | } | 84 | } | ||
85 | 85 | | |||
86 | 86 | | |||
87 | K_PLUGIN_FACTORY(LocalDomainUriFilterFactory, registerPlugin<LocalDomainUriFilter>();) | 87 | K_PLUGIN_FACTORY_WITH_JSON(LocalDomainUriFilterFactory, "localdomainurifilter.json", registerPlugin<LocalDomainUriFilter>();) | ||
88 | 88 | | |||
89 | #include "localdomainurifilter.moc" | 89 | #include "localdomainurifilter.moc" |