summaryrefslogtreecommitdiff
path: root/src/useragent/useragentinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/useragent/useragentinfo.cpp')
-rw-r--r--src/useragent/useragentinfo.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/useragent/useragentinfo.cpp b/src/useragent/useragentinfo.cpp
index 0829a7e1..6ac411ba 100644
--- a/src/useragent/useragentinfo.cpp
+++ b/src/useragent/useragentinfo.cpp
@@ -46,18 +46,13 @@
UserAgentInfo::UserAgentInfo()
{
- /* KService::List m_providers = KServiceTypeTrader::self()->query("UserAgentStrings");*/
-
- // NOTE: limiting User Agent Numbers
- m_providers << KService::serviceByDesktopName("firefox36oncurrent");
- m_providers << KService::serviceByDesktopName("ie70onwinnt51");
- m_providers << KService::serviceByDesktopName("ie60oncurrent");
- m_providers << KService::serviceByDesktopName("chrome50oncurrent");
- m_providers << KService::serviceByDesktopName("safari40");
- m_providers << KService::serviceByDesktopName("op962oncurrent");
- m_providers << KService::serviceByDesktopName("ns71oncurrent");
- m_providers << KService::serviceByDesktopName("android10");
- m_providers << KService::serviceByDesktopName("googlebot");
+ m_providers = KServiceTypeTrader::self()->query("UserAgentStrings");
+}
+
+
+KService::List UserAgentInfo::availableProviders() const
+{
+ return m_providers;
}