diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-11-24 18:04:36 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-11-26 00:20:20 +0100 |
commit | 57afe14d972af3d7073926301c0c4f4ebf627171 (patch) | |
tree | 2b410f47ad1c74ba3f6973ceb548a5769f3a8780 /src/useragent/useragentinfo.cpp | |
parent | clean up UserAgentManager code (diff) | |
download | rekonq-57afe14d972af3d7073926301c0c4f4ebf627171.tar.xz |
refactor UA menu to let it be in the same shape as Konqueror
REVIEW: 103230
REVIEWED-BY: fritz_van_tom
Diffstat (limited to 'src/useragent/useragentinfo.cpp')
-rw-r--r-- | src/useragent/useragentinfo.cpp | 19 |
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; } |