From 472156a41b1348c714986c772759ad950fffbe75 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 27 Jan 2013 15:11:21 -0600 Subject: Rename kioslaves --- kcontrol/CMakeLists.txt | 2 +- kcontrol/kfontinst/CMakeLists.txt | 2 +- kcontrol/kfontinst/kio/CMakeLists.txt | 39 - kcontrol/kfontinst/kio/KioFonts.cpp | 2534 --------------------- kcontrol/kfontinst/kio/KioFonts.h | 161 -- kcontrol/kfontinst/kio/Makefile.am | 20 - kcontrol/kfontinst/kio/folder.desktop | 80 - kcontrol/kfontinst/kio/fonts.desktop | 85 - kcontrol/kfontinst/kio/fonts.protocol | 18 - kcontrol/kfontinst/kio/package.desktop | 74 - kcontrol/kfontinst/kio/system-folder.desktop | 79 - kcontrol/kfontinst/tdeio/CMakeLists.txt | 39 + kcontrol/kfontinst/tdeio/KioFonts.cpp | 2534 +++++++++++++++++++++ kcontrol/kfontinst/tdeio/KioFonts.h | 161 ++ kcontrol/kfontinst/tdeio/Makefile.am | 20 + kcontrol/kfontinst/tdeio/folder.desktop | 80 + kcontrol/kfontinst/tdeio/fonts.desktop | 85 + kcontrol/kfontinst/tdeio/fonts.protocol | 18 + kcontrol/kfontinst/tdeio/package.desktop | 74 + kcontrol/kfontinst/tdeio/system-folder.desktop | 79 + kcontrol/kio/CMakeLists.txt | 55 - kcontrol/kio/Makefile.am | 39 - kcontrol/kio/UA-DESKTOP-FILE-HOWTO | 135 -- kcontrol/kio/cache.cpp | 127 -- kcontrol/kio/cache.desktop | 220 -- kcontrol/kio/cache.h | 50 - kcontrol/kio/cache_ui.ui | 187 -- kcontrol/kio/cookies.desktop | 215 -- kcontrol/kio/envvarproxy_ui.ui | 175 -- kcontrol/kio/fakeuaprovider.cpp | 176 -- kcontrol/kio/fakeuaprovider.h | 57 - kcontrol/kio/kcookiesmain.cpp | 99 - kcontrol/kio/kcookiesmain.h | 37 - kcontrol/kio/kcookiesmanagement.cpp | 489 ---- kcontrol/kio/kcookiesmanagement.h | 101 - kcontrol/kio/kcookiesmanagementdlg_ui.ui | 323 --- kcontrol/kio/kcookiespolicies.cpp | 474 ---- kcontrol/kio/kcookiespolicies.h | 81 - kcontrol/kio/kcookiespoliciesdlg_ui.ui | 323 --- kcontrol/kio/kenvvarproxydlg.cpp | 303 --- kcontrol/kio/kenvvarproxydlg.h | 57 - kcontrol/kio/kio_ftprc.kcfg | 22 - kcontrol/kio/kio_ftprc.kcfgc | 5 - kcontrol/kio/kmanualproxydlg.cpp | 498 ---- kcontrol/kio/kmanualproxydlg.h | 77 - kcontrol/kio/kproxydlg.cpp | 375 --- kcontrol/kio/kproxydlg.h | 82 - kcontrol/kio/kproxydlg_ui.ui | 441 ---- kcontrol/kio/kproxydlgbase.cpp | 74 - kcontrol/kio/kproxydlgbase.h | 68 - kcontrol/kio/ksaveioconfig.cpp | 260 --- kcontrol/kio/ksaveioconfig.h | 96 - kcontrol/kio/lanbrowser.desktop | 226 -- kcontrol/kio/main.cpp | 158 -- kcontrol/kio/main.h | 46 - kcontrol/kio/manualproxy_ui.ui | 317 --- kcontrol/kio/netpref.cpp | 138 -- kcontrol/kio/netpref.desktop | 205 -- kcontrol/kio/netpref.h | 44 - kcontrol/kio/policydlg.cpp | 107 - kcontrol/kio/policydlg.h | 87 - kcontrol/kio/policydlg_ui.ui | 106 - kcontrol/kio/proxy.desktop | 209 -- kcontrol/kio/smb.desktop | 233 -- kcontrol/kio/smbrodlg.cpp | 191 -- kcontrol/kio/smbrodlg.h | 55 - kcontrol/kio/socks.cpp | 279 --- kcontrol/kio/socks.h | 73 - kcontrol/kio/socks.upd | 8 - kcontrol/kio/socksbase.ui | 335 --- kcontrol/kio/tdeioslave.kcfg | 44 - kcontrol/kio/tdeioslave.kcfgc | 5 - kcontrol/kio/uagentproviderdlg.cpp | 149 -- kcontrol/kio/uagentproviderdlg.h | 68 - kcontrol/kio/uagentproviderdlg_ui.ui | 207 -- kcontrol/kio/uasprovider.desktop | 98 - kcontrol/kio/uasproviders/CMakeLists.txt | 18 - kcontrol/kio/uasproviders/Makefile.am | 9 - kcontrol/kio/uasproviders/ie401onwinnt4.desktop | 98 - kcontrol/kio/uasproviders/ie45onwinnt5.desktop | 80 - kcontrol/kio/uasproviders/ie501onwinnt5.desktop | 79 - kcontrol/kio/uasproviders/ie50onppc.desktop | 98 - kcontrol/kio/uasproviders/ie55onwin98.desktop | 79 - kcontrol/kio/uasproviders/ie55onwinnt5.desktop | 98 - kcontrol/kio/uasproviders/ie60oncurrent.desktop | 93 - kcontrol/kio/uasproviders/ie60onwinnt51.desktop | 98 - kcontrol/kio/uasproviders/lynxoncurrent.desktop | 95 - kcontrol/kio/uasproviders/ns71oncurrent.desktop | 93 - kcontrol/kio/uasproviders/ns71onwinnt51.desktop | 95 - kcontrol/kio/uasproviders/op75oncurrent.desktop | 69 - kcontrol/kio/uasproviders/w3moncurrent.desktop | 95 - kcontrol/kio/uasproviders/wgetoncurrent.desktop | 74 - kcontrol/kio/uninstall.desktop | 2 - kcontrol/kio/useragent.desktop | 232 -- kcontrol/kio/useragentdlg.cpp | 403 ---- kcontrol/kio/useragentdlg.h | 83 - kcontrol/kio/useragentdlg_ui.ui | 355 --- kcontrol/tdeio/CMakeLists.txt | 55 + kcontrol/tdeio/Makefile.am | 39 + kcontrol/tdeio/UA-DESKTOP-FILE-HOWTO | 135 ++ kcontrol/tdeio/cache.cpp | 127 ++ kcontrol/tdeio/cache.desktop | 220 ++ kcontrol/tdeio/cache.h | 50 + kcontrol/tdeio/cache_ui.ui | 187 ++ kcontrol/tdeio/cookies.desktop | 215 ++ kcontrol/tdeio/envvarproxy_ui.ui | 175 ++ kcontrol/tdeio/fakeuaprovider.cpp | 176 ++ kcontrol/tdeio/fakeuaprovider.h | 57 + kcontrol/tdeio/kcookiesmain.cpp | 99 + kcontrol/tdeio/kcookiesmain.h | 37 + kcontrol/tdeio/kcookiesmanagement.cpp | 489 ++++ kcontrol/tdeio/kcookiesmanagement.h | 101 + kcontrol/tdeio/kcookiesmanagementdlg_ui.ui | 323 +++ kcontrol/tdeio/kcookiespolicies.cpp | 474 ++++ kcontrol/tdeio/kcookiespolicies.h | 81 + kcontrol/tdeio/kcookiespoliciesdlg_ui.ui | 323 +++ kcontrol/tdeio/kenvvarproxydlg.cpp | 303 +++ kcontrol/tdeio/kenvvarproxydlg.h | 57 + kcontrol/tdeio/kmanualproxydlg.cpp | 498 ++++ kcontrol/tdeio/kmanualproxydlg.h | 77 + kcontrol/tdeio/kproxydlg.cpp | 375 +++ kcontrol/tdeio/kproxydlg.h | 82 + kcontrol/tdeio/kproxydlg_ui.ui | 441 ++++ kcontrol/tdeio/kproxydlgbase.cpp | 74 + kcontrol/tdeio/kproxydlgbase.h | 68 + kcontrol/tdeio/ksaveioconfig.cpp | 260 +++ kcontrol/tdeio/ksaveioconfig.h | 96 + kcontrol/tdeio/lanbrowser.desktop | 226 ++ kcontrol/tdeio/main.cpp | 158 ++ kcontrol/tdeio/main.h | 46 + kcontrol/tdeio/manualproxy_ui.ui | 317 +++ kcontrol/tdeio/netpref.cpp | 138 ++ kcontrol/tdeio/netpref.desktop | 205 ++ kcontrol/tdeio/netpref.h | 44 + kcontrol/tdeio/policydlg.cpp | 107 + kcontrol/tdeio/policydlg.h | 87 + kcontrol/tdeio/policydlg_ui.ui | 106 + kcontrol/tdeio/proxy.desktop | 209 ++ kcontrol/tdeio/smb.desktop | 233 ++ kcontrol/tdeio/smbrodlg.cpp | 191 ++ kcontrol/tdeio/smbrodlg.h | 55 + kcontrol/tdeio/socks.cpp | 279 +++ kcontrol/tdeio/socks.h | 73 + kcontrol/tdeio/socks.upd | 8 + kcontrol/tdeio/socksbase.ui | 335 +++ kcontrol/tdeio/tdeio_ftprc.kcfg | 22 + kcontrol/tdeio/tdeio_ftprc.kcfgc | 5 + kcontrol/tdeio/tdeioslave.kcfg | 44 + kcontrol/tdeio/tdeioslave.kcfgc | 5 + kcontrol/tdeio/uagentproviderdlg.cpp | 149 ++ kcontrol/tdeio/uagentproviderdlg.h | 68 + kcontrol/tdeio/uagentproviderdlg_ui.ui | 207 ++ kcontrol/tdeio/uasprovider.desktop | 98 + kcontrol/tdeio/uasproviders/CMakeLists.txt | 18 + kcontrol/tdeio/uasproviders/Makefile.am | 9 + kcontrol/tdeio/uasproviders/ie401onwinnt4.desktop | 98 + kcontrol/tdeio/uasproviders/ie45onwinnt5.desktop | 80 + kcontrol/tdeio/uasproviders/ie501onwinnt5.desktop | 79 + kcontrol/tdeio/uasproviders/ie50onppc.desktop | 98 + kcontrol/tdeio/uasproviders/ie55onwin98.desktop | 79 + kcontrol/tdeio/uasproviders/ie55onwinnt5.desktop | 98 + kcontrol/tdeio/uasproviders/ie60oncurrent.desktop | 93 + kcontrol/tdeio/uasproviders/ie60onwinnt51.desktop | 98 + kcontrol/tdeio/uasproviders/lynxoncurrent.desktop | 95 + kcontrol/tdeio/uasproviders/ns71oncurrent.desktop | 93 + kcontrol/tdeio/uasproviders/ns71onwinnt51.desktop | 95 + kcontrol/tdeio/uasproviders/op75oncurrent.desktop | 69 + kcontrol/tdeio/uasproviders/w3moncurrent.desktop | 95 + kcontrol/tdeio/uasproviders/wgetoncurrent.desktop | 74 + kcontrol/tdeio/uninstall.desktop | 2 + kcontrol/tdeio/useragent.desktop | 232 ++ kcontrol/tdeio/useragentdlg.cpp | 403 ++++ kcontrol/tdeio/useragentdlg.h | 83 + kcontrol/tdeio/useragentdlg_ui.ui | 355 +++ 174 files changed, 14547 insertions(+), 14547 deletions(-) delete mode 100644 kcontrol/kfontinst/kio/CMakeLists.txt delete mode 100644 kcontrol/kfontinst/kio/KioFonts.cpp delete mode 100644 kcontrol/kfontinst/kio/KioFonts.h delete mode 100644 kcontrol/kfontinst/kio/Makefile.am delete mode 100644 kcontrol/kfontinst/kio/folder.desktop delete mode 100644 kcontrol/kfontinst/kio/fonts.desktop delete mode 100644 kcontrol/kfontinst/kio/fonts.protocol delete mode 100644 kcontrol/kfontinst/kio/package.desktop delete mode 100644 kcontrol/kfontinst/kio/system-folder.desktop create mode 100644 kcontrol/kfontinst/tdeio/CMakeLists.txt create mode 100644 kcontrol/kfontinst/tdeio/KioFonts.cpp create mode 100644 kcontrol/kfontinst/tdeio/KioFonts.h create mode 100644 kcontrol/kfontinst/tdeio/Makefile.am create mode 100644 kcontrol/kfontinst/tdeio/folder.desktop create mode 100644 kcontrol/kfontinst/tdeio/fonts.desktop create mode 100644 kcontrol/kfontinst/tdeio/fonts.protocol create mode 100644 kcontrol/kfontinst/tdeio/package.desktop create mode 100644 kcontrol/kfontinst/tdeio/system-folder.desktop delete mode 100644 kcontrol/kio/CMakeLists.txt delete mode 100644 kcontrol/kio/Makefile.am delete mode 100644 kcontrol/kio/UA-DESKTOP-FILE-HOWTO delete mode 100644 kcontrol/kio/cache.cpp delete mode 100644 kcontrol/kio/cache.desktop delete mode 100644 kcontrol/kio/cache.h delete mode 100644 kcontrol/kio/cache_ui.ui delete mode 100644 kcontrol/kio/cookies.desktop delete mode 100644 kcontrol/kio/envvarproxy_ui.ui delete mode 100644 kcontrol/kio/fakeuaprovider.cpp delete mode 100644 kcontrol/kio/fakeuaprovider.h delete mode 100644 kcontrol/kio/kcookiesmain.cpp delete mode 100644 kcontrol/kio/kcookiesmain.h delete mode 100644 kcontrol/kio/kcookiesmanagement.cpp delete mode 100644 kcontrol/kio/kcookiesmanagement.h delete mode 100644 kcontrol/kio/kcookiesmanagementdlg_ui.ui delete mode 100644 kcontrol/kio/kcookiespolicies.cpp delete mode 100644 kcontrol/kio/kcookiespolicies.h delete mode 100644 kcontrol/kio/kcookiespoliciesdlg_ui.ui delete mode 100644 kcontrol/kio/kenvvarproxydlg.cpp delete mode 100644 kcontrol/kio/kenvvarproxydlg.h delete mode 100644 kcontrol/kio/kio_ftprc.kcfg delete mode 100644 kcontrol/kio/kio_ftprc.kcfgc delete mode 100644 kcontrol/kio/kmanualproxydlg.cpp delete mode 100644 kcontrol/kio/kmanualproxydlg.h delete mode 100644 kcontrol/kio/kproxydlg.cpp delete mode 100644 kcontrol/kio/kproxydlg.h delete mode 100644 kcontrol/kio/kproxydlg_ui.ui delete mode 100644 kcontrol/kio/kproxydlgbase.cpp delete mode 100644 kcontrol/kio/kproxydlgbase.h delete mode 100644 kcontrol/kio/ksaveioconfig.cpp delete mode 100644 kcontrol/kio/ksaveioconfig.h delete mode 100644 kcontrol/kio/lanbrowser.desktop delete mode 100644 kcontrol/kio/main.cpp delete mode 100644 kcontrol/kio/main.h delete mode 100644 kcontrol/kio/manualproxy_ui.ui delete mode 100644 kcontrol/kio/netpref.cpp delete mode 100644 kcontrol/kio/netpref.desktop delete mode 100644 kcontrol/kio/netpref.h delete mode 100644 kcontrol/kio/policydlg.cpp delete mode 100644 kcontrol/kio/policydlg.h delete mode 100644 kcontrol/kio/policydlg_ui.ui delete mode 100644 kcontrol/kio/proxy.desktop delete mode 100644 kcontrol/kio/smb.desktop delete mode 100644 kcontrol/kio/smbrodlg.cpp delete mode 100644 kcontrol/kio/smbrodlg.h delete mode 100644 kcontrol/kio/socks.cpp delete mode 100644 kcontrol/kio/socks.h delete mode 100644 kcontrol/kio/socks.upd delete mode 100644 kcontrol/kio/socksbase.ui delete mode 100644 kcontrol/kio/tdeioslave.kcfg delete mode 100644 kcontrol/kio/tdeioslave.kcfgc delete mode 100644 kcontrol/kio/uagentproviderdlg.cpp delete mode 100644 kcontrol/kio/uagentproviderdlg.h delete mode 100644 kcontrol/kio/uagentproviderdlg_ui.ui delete mode 100644 kcontrol/kio/uasprovider.desktop delete mode 100644 kcontrol/kio/uasproviders/CMakeLists.txt delete mode 100644 kcontrol/kio/uasproviders/Makefile.am delete mode 100644 kcontrol/kio/uasproviders/ie401onwinnt4.desktop delete mode 100644 kcontrol/kio/uasproviders/ie45onwinnt5.desktop delete mode 100644 kcontrol/kio/uasproviders/ie501onwinnt5.desktop delete mode 100644 kcontrol/kio/uasproviders/ie50onppc.desktop delete mode 100644 kcontrol/kio/uasproviders/ie55onwin98.desktop delete mode 100644 kcontrol/kio/uasproviders/ie55onwinnt5.desktop delete mode 100644 kcontrol/kio/uasproviders/ie60oncurrent.desktop delete mode 100644 kcontrol/kio/uasproviders/ie60onwinnt51.desktop delete mode 100644 kcontrol/kio/uasproviders/lynxoncurrent.desktop delete mode 100644 kcontrol/kio/uasproviders/ns71oncurrent.desktop delete mode 100644 kcontrol/kio/uasproviders/ns71onwinnt51.desktop delete mode 100644 kcontrol/kio/uasproviders/op75oncurrent.desktop delete mode 100644 kcontrol/kio/uasproviders/w3moncurrent.desktop delete mode 100644 kcontrol/kio/uasproviders/wgetoncurrent.desktop delete mode 100644 kcontrol/kio/uninstall.desktop delete mode 100644 kcontrol/kio/useragent.desktop delete mode 100644 kcontrol/kio/useragentdlg.cpp delete mode 100644 kcontrol/kio/useragentdlg.h delete mode 100644 kcontrol/kio/useragentdlg_ui.ui create mode 100644 kcontrol/tdeio/CMakeLists.txt create mode 100644 kcontrol/tdeio/Makefile.am create mode 100644 kcontrol/tdeio/UA-DESKTOP-FILE-HOWTO create mode 100644 kcontrol/tdeio/cache.cpp create mode 100644 kcontrol/tdeio/cache.desktop create mode 100644 kcontrol/tdeio/cache.h create mode 100644 kcontrol/tdeio/cache_ui.ui create mode 100644 kcontrol/tdeio/cookies.desktop create mode 100644 kcontrol/tdeio/envvarproxy_ui.ui create mode 100644 kcontrol/tdeio/fakeuaprovider.cpp create mode 100644 kcontrol/tdeio/fakeuaprovider.h create mode 100644 kcontrol/tdeio/kcookiesmain.cpp create mode 100644 kcontrol/tdeio/kcookiesmain.h create mode 100644 kcontrol/tdeio/kcookiesmanagement.cpp create mode 100644 kcontrol/tdeio/kcookiesmanagement.h create mode 100644 kcontrol/tdeio/kcookiesmanagementdlg_ui.ui create mode 100644 kcontrol/tdeio/kcookiespolicies.cpp create mode 100644 kcontrol/tdeio/kcookiespolicies.h create mode 100644 kcontrol/tdeio/kcookiespoliciesdlg_ui.ui create mode 100644 kcontrol/tdeio/kenvvarproxydlg.cpp create mode 100644 kcontrol/tdeio/kenvvarproxydlg.h create mode 100644 kcontrol/tdeio/kmanualproxydlg.cpp create mode 100644 kcontrol/tdeio/kmanualproxydlg.h create mode 100644 kcontrol/tdeio/kproxydlg.cpp create mode 100644 kcontrol/tdeio/kproxydlg.h create mode 100644 kcontrol/tdeio/kproxydlg_ui.ui create mode 100644 kcontrol/tdeio/kproxydlgbase.cpp create mode 100644 kcontrol/tdeio/kproxydlgbase.h create mode 100644 kcontrol/tdeio/ksaveioconfig.cpp create mode 100644 kcontrol/tdeio/ksaveioconfig.h create mode 100644 kcontrol/tdeio/lanbrowser.desktop create mode 100644 kcontrol/tdeio/main.cpp create mode 100644 kcontrol/tdeio/main.h create mode 100644 kcontrol/tdeio/manualproxy_ui.ui create mode 100644 kcontrol/tdeio/netpref.cpp create mode 100644 kcontrol/tdeio/netpref.desktop create mode 100644 kcontrol/tdeio/netpref.h create mode 100644 kcontrol/tdeio/policydlg.cpp create mode 100644 kcontrol/tdeio/policydlg.h create mode 100644 kcontrol/tdeio/policydlg_ui.ui create mode 100644 kcontrol/tdeio/proxy.desktop create mode 100644 kcontrol/tdeio/smb.desktop create mode 100644 kcontrol/tdeio/smbrodlg.cpp create mode 100644 kcontrol/tdeio/smbrodlg.h create mode 100644 kcontrol/tdeio/socks.cpp create mode 100644 kcontrol/tdeio/socks.h create mode 100644 kcontrol/tdeio/socks.upd create mode 100644 kcontrol/tdeio/socksbase.ui create mode 100644 kcontrol/tdeio/tdeio_ftprc.kcfg create mode 100644 kcontrol/tdeio/tdeio_ftprc.kcfgc create mode 100644 kcontrol/tdeio/tdeioslave.kcfg create mode 100644 kcontrol/tdeio/tdeioslave.kcfgc create mode 100644 kcontrol/tdeio/uagentproviderdlg.cpp create mode 100644 kcontrol/tdeio/uagentproviderdlg.h create mode 100644 kcontrol/tdeio/uagentproviderdlg_ui.ui create mode 100644 kcontrol/tdeio/uasprovider.desktop create mode 100644 kcontrol/tdeio/uasproviders/CMakeLists.txt create mode 100644 kcontrol/tdeio/uasproviders/Makefile.am create mode 100644 kcontrol/tdeio/uasproviders/ie401onwinnt4.desktop create mode 100644 kcontrol/tdeio/uasproviders/ie45onwinnt5.desktop create mode 100644 kcontrol/tdeio/uasproviders/ie501onwinnt5.desktop create mode 100644 kcontrol/tdeio/uasproviders/ie50onppc.desktop create mode 100644 kcontrol/tdeio/uasproviders/ie55onwin98.desktop create mode 100644 kcontrol/tdeio/uasproviders/ie55onwinnt5.desktop create mode 100644 kcontrol/tdeio/uasproviders/ie60oncurrent.desktop create mode 100644 kcontrol/tdeio/uasproviders/ie60onwinnt51.desktop create mode 100644 kcontrol/tdeio/uasproviders/lynxoncurrent.desktop create mode 100644 kcontrol/tdeio/uasproviders/ns71oncurrent.desktop create mode 100644 kcontrol/tdeio/uasproviders/ns71onwinnt51.desktop create mode 100644 kcontrol/tdeio/uasproviders/op75oncurrent.desktop create mode 100644 kcontrol/tdeio/uasproviders/w3moncurrent.desktop create mode 100644 kcontrol/tdeio/uasproviders/wgetoncurrent.desktop create mode 100644 kcontrol/tdeio/uninstall.desktop create mode 100644 kcontrol/tdeio/useragent.desktop create mode 100644 kcontrol/tdeio/useragentdlg.cpp create mode 100644 kcontrol/tdeio/useragentdlg.h create mode 100644 kcontrol/tdeio/useragentdlg_ui.ui (limited to 'kcontrol') diff --git a/kcontrol/CMakeLists.txt b/kcontrol/CMakeLists.txt index 92a032463..1d4dfcf59 100644 --- a/kcontrol/CMakeLists.txt +++ b/kcontrol/CMakeLists.txt @@ -38,7 +38,7 @@ if( BUILD_KCONTROL ) add_subdirectory( launch ) add_subdirectory( keys ) add_subdirectory( tdm ) - add_subdirectory( kio ) + add_subdirectory( tdeio ) add_subdirectory( konq ) add_subdirectory( style ) add_subdirectory( konqhtml ) diff --git a/kcontrol/kfontinst/CMakeLists.txt b/kcontrol/kfontinst/CMakeLists.txt index 0fe56e1b4..e974f2a10 100644 --- a/kcontrol/kfontinst/CMakeLists.txt +++ b/kcontrol/kfontinst/CMakeLists.txt @@ -15,6 +15,6 @@ add_subdirectory( viewpart ) add_subdirectory( kcmfontinst ) add_subdirectory( tdefile-plugin ) add_subdirectory( kfontinst ) -add_subdirectory( kio ) +add_subdirectory( tdeio ) install( FILES installfont.desktop DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus ) diff --git a/kcontrol/kfontinst/kio/CMakeLists.txt b/kcontrol/kfontinst/kio/CMakeLists.txt deleted file mode 100644 index 9c6d0ad83..000000000 --- a/kcontrol/kfontinst/kio/CMakeLists.txt +++ /dev/null @@ -1,39 +0,0 @@ -################################################# -# -# (C) 2010-2011 Serghei Amelian -# serghei (DOT) amelian (AT) gmail.com -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -include_directories( - ${CMAKE_CURRENT_BINARY_DIR} - ${CMAKE_BINARY_DIR} - ${CMAKE_SOURCE_DIR}/kcontrol/kfontinst/lib - ${CMAKE_SOURCE_DIR}/kcontrol/fonts - ${TDE_INCLUDE_DIR} - ${TQT_INCLUDE_DIRS} -) - -link_directories( - ${TQT_LIBRARY_DIRS} -) - - -##### other data ################################ - -install( FILES fonts.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) -install( FILES fonts.desktop DESTINATION ${DATA_INSTALL_DIR}/konqsidebartng/virtual_folders/services ) -install( FILES folder.desktop system-folder.desktop package.desktop DESTINATION ${MIME_INSTALL_DIR}/fonts ) - - -##### kio_fonts (module) ####################### - -tde_add_kpart( kio_fonts AUTOMOC - SOURCES KioFonts.cpp - LINK kxftconfig-static kfontinst-shared tdesu-shared - DESTINATION ${PLUGIN_INSTALL_DIR} -) diff --git a/kcontrol/kfontinst/kio/KioFonts.cpp b/kcontrol/kfontinst/kio/KioFonts.cpp deleted file mode 100644 index 4c28a1c33..000000000 --- a/kcontrol/kfontinst/kio/KioFonts.cpp +++ /dev/null @@ -1,2534 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// Class Name : KFI::CKioFonts -// Author : Craig Drummond -// Project : K Font Installer -// Creation Date : 05/03/2003 -// Version : $Revision$ $Date$ -// -//////////////////////////////////////////////////////////////////////////////// -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// as published by the Free Software Foundation; either version 2 -// of the License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -// -//////////////////////////////////////////////////////////////////////////////// -// (C) Craig Drummond, 2003, 2004 -//////////////////////////////////////////////////////////////////////////////// - -/*************************************************************************** - - NOTE: Large sections of this code are copied from kio_file - -- can't just inherit from kio_file as kio_file uses "error(...); - return;" So there is no way to know if an error occured! - - ***************************************************************************/ - -#include "KioFonts.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "KfiConstants.h" -#include "FcEngine.h" -#include "Misc.h" -#include -#include -#include - -//#define KFI_FORCE_DEBUG_TO_STDERR - -#ifdef KFI_FORCE_DEBUG_TO_STDERR - -#include -TQTextOStream ostr(stderr); -#define KFI_DBUG ostr << "[" << (int)(getpid()) << "] " - -#else - -#define KFI_DBUG kdDebug() << "[" << (int)(getpid()) << "] " - -#endif - -#define MAX_IPC_SIZE (1024*32) -#define TIMEOUT 2 // Time between last mod and writing files... -#define MAX_NEW_FONTS 50 // #fonts that can be installed before automatically configuring (related to above) -#define FC_CACHE_CMD "fc-cache" - -static const char * constMultipleExtension=".fonts.tar.gz"; // Fonts that have multiple files are returned as a .tar.gz! -static const int constMaxLastDestTime=5; -static const int constMaxFcCheckTime=10; - -extern "C" -{ - KDE_EXPORT int kdemain(int argc, char **argv); -} - -int kdemain(int argc, char **argv) -{ - if (argc != 4) - { - fprintf(stderr, "Usage: kio_" KFI_KIO_FONTS_PROTOCOL " protocol domain-socket1 domain-socket2\n"); - exit(-1); - } - - KLocale::setMainCatalogue(KFI_CATALOGUE); - - TDEInstance instance("kio_" KFI_KIO_FONTS_PROTOCOL); - KFI::CKioFonts slave(argv[2], argv[3]); - - slave.dispatchLoop(); - - return 0; -} - -namespace KFI -{ - -inline bool isSysFolder(const TQString §) -{ - return i18n(KFI_KIO_FONTS_SYS)==sect || KFI_KIO_FONTS_SYS==sect; -} - -inline bool isUserFolder(const TQString §) -{ - return i18n(KFI_KIO_FONTS_USER)==sect || KFI_KIO_FONTS_USER==sect; -} - -static TQString removeMultipleExtension(const KURL &url) -{ - TQString fname(url.fileName()); - int pos; - - if(-1!=(pos=fname.findRev(TQString::fromLatin1(constMultipleExtension)))) - fname=fname.left(pos); - - return fname; -} - -static TQString modifyName(const TQString &fname) -{ - static const char constSymbols[]={ '-', ' ', ':', 0 }; - - TQString rv(fname); - int dotPos=rv.findRev('.'); - - if(-1!=dotPos) - { - unsigned int rvLen=rv.length(); - - for(unsigned int i=dotPos+1; i-1) - size+=s; - } - - return size; -} - -static int getSize(TQValueList &patterns) -{ - TQValueList::Iterator it, - end=patterns.end(); - int size=0; - - for(it=patterns.begin(); it!=end; ++it) - size+=getFontSize(CFcEngine::getFcString(*it, FC_FILE)); - - return size; -} - -static void addAtom(TDEIO::UDSEntry &entry, unsigned int ID, long l, const TQString &s=TQString::null) -{ - TDEIO::UDSAtom atom; - atom.m_uds = ID; - atom.m_long = l; - atom.m_str = s; - entry.append(atom); -} - -static bool createFolderUDSEntry(TDEIO::UDSEntry &entry, const TQString &name, const TQString &path, bool sys) -{ - KFI_DBUG << "createFolderUDSEntry " << name << ' ' << path << ' ' << sys << ' ' << endl; - - KDE_struct_stat buff; - TQCString cPath(TQFile::encodeName(path)); - - entry.clear(); - - if(-1!=KDE_lstat(cPath, &buff)) - { - addAtom(entry, TDEIO::UDS_NAME, 0, name); - - if (S_ISLNK(buff.st_mode)) - { - KFI_DBUG << path << " is a link" << endl; - - char buffer2[1000]; - int n=readlink(cPath, buffer2, 1000); - if(n!= -1) - buffer2[n]='\0'; - - addAtom(entry, TDEIO::UDS_LINK_DEST, 0, TQString::fromLocal8Bit(buffer2)); - - if(-1==KDE_stat(cPath, &buff)) - { - // It is a link pointing to nowhere - addAtom(entry, TDEIO::UDS_FILE_TYPE, S_IFMT - 1); - addAtom(entry, TDEIO::UDS_ACCESS, S_IRWXU | S_IRWXG | S_IRWXO); - addAtom(entry, TDEIO::UDS_SIZE, 0); - goto notype; - } - } - - addAtom(entry, TDEIO::UDS_FILE_TYPE, buff.st_mode&S_IFMT); - addAtom(entry, TDEIO::UDS_ACCESS, buff.st_mode&07777); - addAtom(entry, TDEIO::UDS_SIZE, buff.st_size); - - notype: - addAtom(entry, TDEIO::UDS_MODIFICATION_TIME, buff.st_mtime); - - struct passwd *user = getpwuid(buff.st_uid); - addAtom(entry, TDEIO::UDS_USER, 0, user ? user->pw_name : TQString::number(buff.st_uid).latin1()); - - struct group *grp = getgrgid(buff.st_gid); - addAtom(entry, TDEIO::UDS_GROUP, 0, grp ? grp->gr_name : TQString::number(buff.st_gid).latin1()); - - addAtom(entry, TDEIO::UDS_ACCESS_TIME, buff.st_atime); - addAtom(entry, TDEIO::UDS_MIME_TYPE, 0, sys - ? KFI_KIO_FONTS_PROTOCOL"/system-folder" - : KFI_KIO_FONTS_PROTOCOL"/folder"); - addAtom(entry, TDEIO::UDS_GUESSED_MIME_TYPE, 0, "application/octet-stream"); - TQString url(KFI_KIO_FONTS_PROTOCOL+TQString::fromLatin1(":/")); - return true; - } - else if (sys && !Misc::root()) // Default system fonts folder does not actually exist yet! - { - KFI_DBUG << "Default system folder (" << path << ") does not yet exist, so create dummy entry" << endl; - addAtom(entry, TDEIO::UDS_NAME, 0, name); - addAtom(entry, TDEIO::UDS_FILE_TYPE, S_IFDIR); - addAtom(entry, TDEIO::UDS_ACCESS, 0744); - addAtom(entry, TDEIO::UDS_USER, 0, "root"); - addAtom(entry, TDEIO::UDS_GROUP, 0, "root"); - addAtom(entry, TDEIO::UDS_MIME_TYPE, 0, KFI_KIO_FONTS_PROTOCOL"/system-folder"); - addAtom(entry, TDEIO::UDS_GUESSED_MIME_TYPE, 0, "application/octet-stream"); - - return true; - } - - - return false; -} - -static bool createFontUDSEntry(TDEIO::UDSEntry &entry, const TQString &name, TQValueList &patterns, bool sys) -{ - KFI_DBUG << "createFontUDSEntry " << name << ' ' << patterns.count() << endl; - - bool multiple=true; - - if(1==patterns.count()) // Only one font file, but are there any .pfm or .afm files? - { - KURL::List urls; - - Misc::getAssociatedUrls(KURL(CFcEngine::getFcString(patterns.first(), FC_FILE)), urls); - - if(0==urls.count()) - multiple=false; - } - - // - // In case of mixed bitmap/scalable - prefer scalable - TQValueList sortedPatterns; - TQValueList::Iterator it, - end(patterns.end()); - FcBool b=FcFalse; - - for(it=patterns.begin(); it!=end; ++it) - if(FcResultMatch==FcPatternGetBool(*it, FC_SCALABLE, 0, &b) && b) - sortedPatterns.prepend(*it); - else - sortedPatterns.append(*it); - - end=sortedPatterns.end(); - entry.clear(); - addAtom(entry, TDEIO::UDS_SIZE, getSize(patterns)); - - for(it=sortedPatterns.begin(); it!=end; ++it) - { - TQString path(CFcEngine::getFcString(*it, FC_FILE)); - TQCString cPath(TQFile::encodeName(path)); - KDE_struct_stat buff; - - if(-1!=KDE_lstat(cPath, &buff)) - { - addAtom(entry, TDEIO::UDS_NAME, 0, name); - - if (S_ISLNK(buff.st_mode)) - { - KFI_DBUG << path << " is a link" << endl; - - char buffer2[1000]; - int n=readlink(cPath, buffer2, 1000); - - if(n!= -1) - buffer2[n]='\0'; - - addAtom(entry, TDEIO::UDS_LINK_DEST, 0, TQString::fromLocal8Bit(buffer2)); - - if(-1==KDE_stat(cPath, &buff)) - { - // It is a link pointing to nowhere - addAtom(entry, TDEIO::UDS_FILE_TYPE, S_IFMT - 1); - addAtom(entry, TDEIO::UDS_ACCESS, S_IRWXU | S_IRWXG | S_IRWXO); - goto notype; - } - } - - addAtom(entry, TDEIO::UDS_FILE_TYPE, buff.st_mode&S_IFMT); - addAtom(entry, TDEIO::UDS_ACCESS, buff.st_mode&07777); - - notype: - addAtom(entry, TDEIO::UDS_MODIFICATION_TIME, buff.st_mtime); - - struct passwd *user = getpwuid(buff.st_uid); - addAtom(entry, TDEIO::UDS_USER, 0, user ? user->pw_name : TQString::number(buff.st_uid).latin1()); - - struct group *grp = getgrgid(buff.st_gid); - addAtom(entry, TDEIO::UDS_GROUP, 0, grp ? grp->gr_name : TQString::number(buff.st_gid).latin1()); - - addAtom(entry, TDEIO::UDS_ACCESS_TIME, buff.st_atime); - addAtom(entry, TDEIO::UDS_MIME_TYPE, 0, KMimeType::findByPath(path, 0, true)->name()); - addAtom(entry, TDEIO::UDS_GUESSED_MIME_TYPE, 0, "application/octet-stream"); - - TQString url(KFI_KIO_FONTS_PROTOCOL+TQString::fromLatin1(":/")); - - if(!Misc::root()) - { - url+=sys ? i18n(KFI_KIO_FONTS_SYS) : i18n(KFI_KIO_FONTS_USER); - url+=TQString::fromLatin1("/"); - } - if(multiple) - url+=name+TQString::fromLatin1(constMultipleExtension); - else - url+=Misc::getFile(path); - addAtom(entry, TDEIO::UDS_URL, 0, url); - return true; // This file was OK, so use its values... - } - } - return false; -} - -enum EUrlStatus -{ - BAD_URL, - URL_OK, - REDIRECT_URL -}; - -static KURL getRedirect(const KURL &u) -{ - // Go from fonts:/System to fonts:/ - - KURL redirect(u); - TQString path(u.path()), - sect(CKioFonts::getSect(path)); - - path.remove(sect); - path.replace("//", "/"); - redirect.setPath(path); - - KFI_DBUG << "Redirect from " << u.path() << " to " << redirect.path() << endl; - return redirect; -} - -static bool nonRootSys(const KURL &u) -{ - return !Misc::root() && isSysFolder(CKioFonts::getSect(u.path())); -} - -static TQString getFontFolder(const TQString &defaultDir, const TQString &root, TQStringList &dirs) -{ - if(dirs.contains(defaultDir)) - return defaultDir; - else - { - TQStringList::Iterator it, - end=dirs.end(); - bool found=false; - - for(it=dirs.begin(); it!=end && !found; ++it) - if(0==(*it).find(root)) - return *it; - } - - return TQString::null; -} - -static bool writeAll(int fd, const char *buf, size_t len) -{ - while(len>0) - { - ssize_t written=write(fd, buf, len); - if (written<0 && EINTR!=errno) - return false; - buf+=written; - len-=written; - } - return true; -} - -static bool checkExt(const char *fname, const char *ext) -{ - unsigned int len=strlen(fname); - - return len>4 ? (fname[len-4]=='.' && tolower(fname[len-3])==ext[0] && tolower(fname[len-2])==ext[1] && - tolower(fname[len-1])==ext[2]) - : false; -} - -static bool isAAfm(const TQString &fname) -{ - if(checkExt(TQFile::encodeName(fname), "afm")) // CPD? Is this a necessary check? - { - TQFile file(fname); - - if(file.open(IO_ReadOnly)) - { - TQTextStream stream(&file); - TQString line; - - for(int lc=0; lc<30 && !stream.atEnd(); ++lc) - { - line=stream.readLine(); - - if(line.contains("StartFontMetrics")) - { - file.close(); - return true; - } - } - - file.close(); - } - } - - return false; -} - -static bool isAPfm(const TQString &fname) -{ - bool ok=false; - - // I know extension checking is bad, but Ghostscript's pf2afm requires the pfm file to - // have the .pfm extension... - if(checkExt(TQFile::encodeName(fname), "pfm")) - { - // - // OK, the extension matches, so perform a little contents checking... - FILE *f=fopen(TQFile::encodeName(fname).data(), "r"); - - if(f) - { - static const unsigned long constCopyrightLen = 60; - static const unsigned long constTypeToExt = 49; - static const unsigned long constExtToFname = 20; - static const unsigned long constExtLen = 30; - static const unsigned long constFontnameMin = 75; - static const unsigned long constFontnameMax = 512; - - unsigned short version=0, - type=0, - extlen=0; - unsigned long length=0, - fontname=0, - fLength=0; - - fseek(f, 0, SEEK_END); - fLength=ftell(f); - fseek(f, 0, SEEK_SET); - - if(2==fread(&version, 1, 2, f) && // Read version - 4==fread(&length, 1, 4, f) && // length... - length==fLength && - 0==fseek(f, constCopyrightLen, SEEK_CUR) && // Skip copyright notice... - 2==fread(&type, 1, 2, f) && - 0==fseek(f, constTypeToExt, SEEK_CUR) && - 2==fread(&extlen, 1, 2, f) && - extlen==constExtLen && - 0==fseek(f, constExtToFname, SEEK_CUR) && - 4==fread(&fontname, 1, 4, f) && - fontname>constFontnameMin && fontname paths; - - bool operator==(const FontList &f) const { return f.name==name; } -}; - -// -// This function returns a set of maping of from -> to for copy/move operations -static bool getFontList(const TQStringList &files, TQMap &map) -{ - // - // First of all create a list of font files, and their paths - TQStringList::ConstIterator it=files.begin(), - end=files.end(); - TQValueList list; - - for(;it!=end; ++it) - { - TQString name(Misc::getFile(*it)), - path(Misc::getDir(*it)); - TQValueList::Iterator entry=list.find(FontList(name)); - - if(entry!=list.end()) - { - if(!(*entry).paths.contains(path)) - (*entry).paths.append(path); - } - else - list.append(FontList(name, path)); - } - - TQValueList::Iterator fIt(list.begin()), - fEnd(list.end()); - - for(; fIt!=fEnd; ++fIt) - { - TQValueList::Iterator pBegin((*fIt).paths.begin()), - pIt(++pBegin), - pEnd((*fIt).paths.end()); - --pBegin; - - if((*fIt).paths.count()>1) - { - // There's more than 1 file with the same name, but in a different locations - // therefore, take the unique part of the path, and replace / with _ - // e.g. - // /usr/X11R6/lib/X11/fonts/75dpi/times.pcf.gz - // /usr/X11R6/lib/X11/fonts/100dpi/times.pcf.gz - // - // Will produce: - // 75dpi_times.pcf.gz - // 100dpi_times.pcf.gz - unsigned int beginLen((*pBegin).orig.length()); - - for(; pIt!=pEnd; ++pIt) - { - unsigned int len=TQMIN((*pIt).orig.length(), beginLen); - - for(unsigned int i=0; i0) - for(int path=0; path >::Iterator it=itsFolders[folder].fontMap.begin(), - end=itsFolders[folder].fontMap.end(); - - for ( ; it != end; ++it) - { - entry.clear(); - if(createFontUDSEntry(entry, it.key(), it.data(), FOLDER_SYS==folder)) - listEntry(entry, false); - } - } - } - else - { - size=2; - totalSize(size); - createFolderUDSEntry(entry, i18n(KFI_KIO_FONTS_USER), itsFolders[FOLDER_USER].location, false); - listEntry(entry, false); - createFolderUDSEntry(entry, i18n(KFI_KIO_FONTS_SYS), itsFolders[FOLDER_SYS].location, true); - listEntry(entry, false); - } - - listEntry(size ? entry : TDEIO::UDSEntry(), true); - finished(); - } - - KFI_DBUG << "listDir - finished!" << endl; -} - -void CKioFonts::stat(const KURL &url) -{ - KFI_DBUG << "stat " << url.prettyURL() << endl; - - if(updateFontList() && checkUrl(url, true)) - { - TQString path(url.path(-1)); - - if(path.isEmpty()) - { - error(TDEIO::ERR_COULD_NOT_STAT, url.prettyURL()); - return; - } - - TQStringList pathList(TQStringList::split('/', path, false)); - TDEIO::UDSEntry entry; - bool err=false; - - switch(pathList.count()) - { - case 0: - err=!createFolderUDSEntry(entry, i18n("Fonts"), itsFolders[itsRoot ? FOLDER_SYS : FOLDER_USER].location, false); - break; - case 1: - if(itsRoot) - err=!createStatEntry(entry, url, FOLDER_SYS); - else - if(isUserFolder(pathList[0])) - err=!createFolderUDSEntry(entry, i18n(KFI_KIO_FONTS_USER), itsFolders[FOLDER_USER].location, false); - else if(isSysFolder(pathList[0])) - err=!createFolderUDSEntry(entry, i18n(KFI_KIO_FONTS_SYS), itsFolders[FOLDER_USER].location, true); - else - { - error(TDEIO::ERR_SLAVE_DEFINED, - i18n("Please specify \"%1\" or \"%2\".").arg(i18n(KFI_KIO_FONTS_USER)).arg(i18n(KFI_KIO_FONTS_SYS))); - return; - } - break; - default: - err=!createStatEntry(entry, url, getFolder(url)); - } - - if(err) - { - error(TDEIO::ERR_DOES_NOT_EXIST, url.prettyURL()); - return; - } - - statEntry(entry); - finished(); - } -} - -bool CKioFonts::createStatEntry(TDEIO::UDSEntry &entry, const KURL &url, EFolder folder) -{ - KFI_DBUG << "createStatEntry " << url.path() << endl; - - TQMap >::Iterator it=getMap(url); - - if(it!=itsFolders[folder].fontMap.end()) - return createFontUDSEntry(entry, it.key(), it.data(), FOLDER_SYS==folder); - return false; -} - -void CKioFonts::get(const KURL &url) -{ - KFI_DBUG << "get " << url.path() << " query:" << url.query() << endl; - - bool thumb="1"==metaData("thumbnail"); - TQStringList srcFiles; - - if(updateFontList() && checkUrl(url) && getSourceFiles(url, srcFiles)) // Any error will be logged in getSourceFiles - { - // - // The thumbnail job always donwloads non-local files to /tmp/... and passes this file name to the thumbnail - // creator. However, in the case of fonts which are split among many files, this wont work. Therefore, when the - // thumbnail code asks for the font to donwload, just return the URL used. This way the font-thumbnail creator can - // read this and just ask Xft/fontconfig for the font data. - if(thumb) - { - TQByteArray array; - TQTextOStream stream(array); - - emit mimeType("text/plain"); - - KFI_DBUG << "hasMetaData(\"thumbnail\"), so return: " << url.prettyURL() << endl; - - stream << url.prettyURL(); - totalSize(array.size()); - data(array); - processedSize(array.size()); - data(TQByteArray()); - processedSize(array.size()); - finished(); - return; - } - - TQString realPath, - useMime; - KDE_struct_stat buff; - bool multiple=false; - - if(1==srcFiles.count()) - realPath=srcFiles.first(); - else // Font is made up of multiple files - so create .tar.gz of them all! - { - KTempFile tmpFile; - KTar tar(tmpFile.name(), "application/x-gzip"); - - tmpFile.setAutoDelete(false); - realPath=tmpFile.name(); - - if(tar.open(IO_WriteOnly)) - { - TQMap map; - - getFontList(srcFiles, map); - - TQMap::Iterator fIt(map.begin()), - fEnd(map.end()); - - // - // Iterate through created list, and add to tar archive - for(; fIt!=fEnd; ++fIt) - tar.addLocalFile(fIt.key(), fIt.data()); - - multiple=true; - tar.close(); - } - } - - TQCString realPathC(TQFile::encodeName(realPath)); - KFI_DBUG << "real: " << realPathC << endl; - - if (-2==KDE_stat(realPathC.data(), &buff)) - error(EACCES==errno ? TDEIO::ERR_ACCESS_DENIED : TDEIO::ERR_DOES_NOT_EXIST, url.prettyURL()); - else if (S_ISDIR(buff.st_mode)) - error(TDEIO::ERR_IS_DIRECTORY, url.prettyURL()); - else if (!S_ISREG(buff.st_mode)) - error(TDEIO::ERR_CANNOT_OPEN_FOR_READING, url.prettyURL()); - else - { - int fd = KDE_open(realPathC.data(), O_RDONLY); - - if (fd < 0) - error(TDEIO::ERR_CANNOT_OPEN_FOR_READING, url.prettyURL()); - else - { - // Determine the mimetype of the file to be retrieved, and emit it. - // This is mandatory in all slaves (for KRun/BrowserRun to work). - emit mimeType(useMime.isEmpty() ? KMimeType::findByPath(realPathC, buff.st_mode, true)->name() : useMime); - - totalSize(buff.st_size); - - TDEIO::filesize_t processed=0; - char buffer[MAX_IPC_SIZE]; - TQByteArray array; - - while(1) - { - int n=::read(fd, buffer, MAX_IPC_SIZE); - if (-1==n) - { - if (errno == EINTR) - continue; - error(TDEIO::ERR_COULD_NOT_READ, url.prettyURL()); - close(fd); - if(multiple) - ::unlink(realPathC); - return; - } - if (0==n) - break; // Finished - - array.setRawData(buffer, n); - data(array); - array.resetRawData(buffer, n); - - processed+=n; - processedSize(processed); - } - - data(TQByteArray()); - close(fd); - - processedSize(buff.st_size); - finished(); - } - } - if(multiple) - ::unlink(realPathC); - } -} - -void CKioFonts::put(const KURL &u, int mode, bool overwrite, bool resume) -{ - KFI_DBUG << "put " << u.path() << endl; - - if(isHidden(u)) - { - error(TDEIO::ERR_WRITE_ACCESS_DENIED, u.prettyURL()); - return; - } - - // updateFontList(); // CPD: dont update font list upon a put - is too slow. Just stat on filename! - - //checkUrl(u) // CPD: Don't need to check URL, as the call to "confirmUrl()" below will sort out any probs! - - KURL url(u); - bool changed=confirmUrl(url), - nrs=nonRootSys(url); - EFolder destFolder(getFolder(url)); - TQString dest=itsFolders[destFolder].location+modifyName(url.fileName()), - passwd; - TQCString destC=TQFile::encodeName(dest); - KDE_struct_stat buffDest; - bool destExists=(KDE_lstat(destC.data(), &buffDest)!= -1); - - if (destExists && !overwrite && !resume) - { - error(TDEIO::ERR_FILE_ALREADY_EXIST, url.prettyURL()); - return; - } - - if(nrs) // Need to check can get root passwd before start download... - { - passwd=getRootPasswd(); - - if(passwd.isEmpty()) - { - error(TDEIO::ERR_SLAVE_DEFINED, i18n("Could not access \"%1\" folder.").arg(i18n(KFI_KIO_FONTS_SYS))); - return; - } - } - - // - // As we don't get passed a mime-type the following needs to happen: - // - // 1. Download to a temporary file - // 2. Check with FreeType that the file is a font, or that it is - // an AFM or PFM file - // 3. If its OK, then get the fonts "name" from - KTempFile tmpFile; - TQCString tmpFileC(TQFile::encodeName(tmpFile.name())); - - tmpFile.setAutoDelete(true); - - if(putReal(tmpFile.name(), tmpFileC, destExists, mode, resume)) - { - if(!checkFile(tmpFile.name())) // error logged in checkFile - return; - - if(nrs) // Ask root to copy the font... - { - TQCString cmd; - - if(!Misc::dExists(itsFolders[destFolder].location)) - { - cmd+="mkdir "; - cmd+=TQFile::encodeName(TDEProcess::quote(itsFolders[destFolder].location)); - cmd+=" && chmod 0755 "; - cmd+=TQFile::encodeName(TDEProcess::quote(itsFolders[destFolder].location)); - cmd+=" && "; - } - cmd+="cp -f "; - cmd+=TQFile::encodeName(TDEProcess::quote(tmpFileC)); - cmd+=" "; - cmd+=TQFile::encodeName(TDEProcess::quote(destC)); - cmd+=" && chmod 0644 "; - cmd+=destC; - - if(!itsCanStorePasswd) - createRootRefreshCmd(cmd); - - // Get root to move this to fonts folder... - if(doRootCmd(cmd, passwd)) - { - modified(FOLDER_SYS); - createAfm(dest, true, passwd); - } - else - { - error(TDEIO::ERR_SLAVE_DEFINED, i18n("Could not access \"%1\" folder.").arg(i18n(KFI_KIO_FONTS_SYS))); - return; - } - } - else // Move it to our font folder... - { - tmpFile.setAutoDelete(false); - if(Misc::doCmd("mv", "-f", tmpFileC, destC)) - { - ::chmod(destC.data(), Misc::FILE_PERMS); - modified(FOLDER_USER); - createAfm(dest); - } - else - { - error(TDEIO::ERR_SLAVE_DEFINED, i18n("Could not access \"%1\" folder.").arg(i18n(KFI_KIO_FONTS_USER))); - return; - } - } - - finished(); - - if(changed) - itsLastDestTime=time(NULL); - } -} - -bool CKioFonts::putReal(const TQString &destOrig, const TQCString &destOrigC, bool origExists, - int mode, bool resume) -{ - bool markPartial=config()->readBoolEntry("MarkPartial", true); - TQString dest; - - if (markPartial) - { - TQString destPart(destOrig+TQString::fromLatin1(".part")); - TQCString destPartC(TQFile::encodeName(destPart)); - - dest = destPart; - - KDE_struct_stat buffPart; - bool partExists=(-1!=KDE_stat(destPartC.data(), &buffPart)); - - if (partExists && !resume && buffPart.st_size>0) - { - // Maybe we can use this partial file for resuming - // Tell about the size we have, and the app will tell us - // if it's ok to resume or not. - resume=canResume(buffPart.st_size); - - if (!resume) - if (!::remove(destPartC.data())) - partExists = false; - else - { - error(TDEIO::ERR_CANNOT_DELETE_PARTIAL, destPart); - return false; - } - } - } - else - { - dest = destOrig; - if (origExists && !resume) - ::remove(destOrigC.data()); - // Catch errors when we try to open the file. - } - - TQCString destC(TQFile::encodeName(dest)); - - int fd; - - if (resume) - { - fd = KDE_open(destC.data(), O_RDWR); // append if resuming - KDE_lseek(fd, 0, SEEK_END); // Seek to end - } - else - { - // WABA: Make sure that we keep writing permissions ourselves, - // otherwise we can be in for a surprise on NFS. - fd = KDE_open(destC.data(), O_CREAT | O_TRUNC | O_WRONLY, -1==mode ? 0666 : mode | S_IWUSR | S_IRUSR); - } - - if (fd < 0) - { - error(EACCES==errno ? TDEIO::ERR_WRITE_ACCESS_DENIED : TDEIO::ERR_CANNOT_OPEN_FOR_WRITING, dest); - return false; - } - - int result; - // Loop until we got 0 (end of data) - do - { - TQByteArray buffer; - - dataReq(); // Request for data - result = readData(buffer); - if(result > 0 && !writeAll(fd, buffer.data(), buffer.size())) - { - if(ENOSPC==errno) // disk full - { - error(TDEIO::ERR_DISK_FULL, destOrig); - result = -2; // means: remove dest file - } - else - { - error(TDEIO::ERR_COULD_NOT_WRITE, destOrig); - result = -1; - } - } - } - while(result>0); - - if (result<0) - { - close(fd); - if (-1==result) - ::remove(destC.data()); - else if (markPartial) - { - KDE_struct_stat buff; - - if ((-1==KDE_stat(destC.data(), &buff)) || - (buff.st_sizereadNumEntry("MinimumKeepSize", DEFAULT_MINIMUM_KEEP_SIZE))) - ::remove(destC.data()); - } - ::exit(255); - } - - if (-1==fd) // we got nothing to write out, so we never opened the file - { - finished(); - return false; - } - - if (close(fd)) - { - error(TDEIO::ERR_COULD_NOT_WRITE, destOrig); - return false; - } - - // after full download rename the file back to original name - if (markPartial && ::rename(destC.data(), destOrigC.data())) - { - error(TDEIO::ERR_CANNOT_RENAME_PARTIAL, destOrig); - return false; - } - - return true; -} - -void CKioFonts::copy(const KURL &src, const KURL &d, int mode, bool overwrite) -{ - // - // Support: - // Copying to fonts:/ - // Copying from fonts:/ and file:/ - // - KFI_DBUG << "copy " << src.prettyURL() << " - " << d.prettyURL() << endl; - - if(isHidden(d)) - { - error(TDEIO::ERR_WRITE_ACCESS_DENIED, d.prettyURL()); - return; - } - - bool fromFonts=KFI_KIO_FONTS_PROTOCOL==src.protocol(); - - if((!fromFonts || updateFontList()) // CPD: dont update font list upon a copy from file - is too slow. Just stat on filename! - && checkUrl(src) && checkAllowed(src)) - { - //checkUrl(u) // CPD as per comment in ::put() - - TQStringList srcFiles; - - if(getSourceFiles(src, srcFiles)) // Any error will be logged in getSourceFiles - { - KURL dest(d); - bool changed=confirmUrl(dest); - EFolder destFolder(getFolder(dest)); - TQMap map; - - if(!fromFonts) - map[src.path()]=src.fileName(); - - // As above, if copying from file, then only stat on dest filename, but if from fonts to fonts need to - // get the list of possible source files, etc. - if(fromFonts ? confirmMultiple(src, srcFiles, FOLDER_SYS==destFolder ? FOLDER_USER : FOLDER_SYS, OP_COPY) && - getFontList(srcFiles, map) && - checkDestFiles(src, map, dest, destFolder, overwrite) - : checkDestFile(src, dest, destFolder, overwrite) ) - { - if(nonRootSys(dest)) - { - TQCString cmd; - int size=0; - - if(!Misc::dExists(itsFolders[destFolder].location)) - { - cmd+="mkdir "; - cmd+=TQFile::encodeName(TDEProcess::quote(itsFolders[destFolder].location)); - cmd+=" && chmod 0755 "; - cmd+=TQFile::encodeName(TDEProcess::quote(itsFolders[destFolder].location)); - cmd+=" && "; - } - - TQMap::Iterator fIt(map.begin()), - fEnd(map.end()); - - for(; fIt!=fEnd; ++fIt) - { - cmd+="cp -f "; - cmd+=TQFile::encodeName(TDEProcess::quote(fIt.key())); - cmd+=" "; - cmd+=TQFile::encodeName(TDEProcess::quote(itsFolders[destFolder].location+modifyName(fIt.data()))); - int s=getSize(TQFile::encodeName(fIt.key())); - if(s>0) - size+=s; - if(++fIt!=fEnd) - cmd+=" && "; - --fIt; - } - - if(!itsCanStorePasswd) - createRootRefreshCmd(cmd); - - totalSize(size); - - TQString passwd=getRootPasswd(); - - if(doRootCmd(cmd, passwd)) - { - modified(destFolder); - processedSize(size); - if(src.isLocalFile() && 1==srcFiles.count()) - createAfm(itsFolders[destFolder].location+modifyName(map.begin().data()), true, passwd); - } - else - { - error(TDEIO::ERR_SLAVE_DEFINED, i18n("Could not access \"%1\" folder.").arg(i18n(KFI_KIO_FONTS_SYS))); - return; - } - } - else - { - TQMap::Iterator fIt(map.begin()), - fEnd(map.end()); - - for(; fIt!=fEnd; ++fIt) - { - TQCString realSrc(TQFile::encodeName(fIt.key())), - realDest(TQFile::encodeName(itsFolders[destFolder].location+modifyName(fIt.data()))); - KDE_struct_stat buffSrc; - - if(-1==KDE_stat(realSrc.data(), &buffSrc)) - { - error(EACCES==errno ? TDEIO::ERR_ACCESS_DENIED : TDEIO::ERR_DOES_NOT_EXIST, src.prettyURL()); - return; - } - - int srcFd=KDE_open(realSrc.data(), O_RDONLY); - - if (srcFd<0) - { - error(TDEIO::ERR_CANNOT_OPEN_FOR_READING, src.prettyURL()); - return; - } - - if(!Misc::dExists(itsFolders[destFolder].location)) - Misc::createDir(itsFolders[destFolder].location); - - // WABA: Make sure that we keep writing permissions ourselves, - // otherwise we can be in for a surprise on NFS. - int destFd=KDE_open(realDest.data(), O_CREAT | O_TRUNC | O_WRONLY, -1==mode ? 0666 : mode | S_IWUSR); - - if (destFd<0) - { - error(EACCES==errno ? TDEIO::ERR_WRITE_ACCESS_DENIED : TDEIO::ERR_CANNOT_OPEN_FOR_WRITING, dest.prettyURL()); - close(srcFd); - return; - } - - totalSize(buffSrc.st_size); - - TDEIO::filesize_t processed = 0; - char buffer[MAX_IPC_SIZE]; - TQByteArray array; - - while(1) - { - int n=::read(srcFd, buffer, MAX_IPC_SIZE); - - if(-1==n) - { - if (errno == EINTR) - continue; - error(TDEIO::ERR_COULD_NOT_READ, src.prettyURL()); - close(srcFd); - close(destFd); - return; - } - if(0==n) - break; // Finished - - if(!writeAll(destFd, buffer, n)) - { - close(srcFd); - close(destFd); - if (ENOSPC==errno) // disk full - { - error(TDEIO::ERR_DISK_FULL, dest.prettyURL()); - remove(realDest.data()); - } - else - error(TDEIO::ERR_COULD_NOT_WRITE, dest.prettyURL()); - return; - } - - processed += n; - processedSize(processed); - } - - close(srcFd); - - if(close(destFd)) - { - error(TDEIO::ERR_COULD_NOT_WRITE, dest.prettyURL()); - return; - } - - ::chmod(realDest.data(), Misc::FILE_PERMS); - - // copy access and modification time - struct utimbuf ut; - - ut.actime = buffSrc.st_atime; - ut.modtime = buffSrc.st_mtime; - ::utime(realDest.data(), &ut); - - processedSize(buffSrc.st_size); - modified(destFolder); - } - - if(src.isLocalFile() && 1==srcFiles.count()) - createAfm(itsFolders[destFolder].location+modifyName(map.begin().data())); - } - - finished(); - - if(changed) - itsLastDestTime=time(NULL); - } - } - } -} - -void CKioFonts::rename(const KURL &src, const KURL &d, bool overwrite) -{ - KFI_DBUG << "rename " << src.prettyURL() << " - " << d.prettyURL() << ", " << overwrite << endl; - - if(src.directory()==d.directory()) - error(TDEIO::ERR_SLAVE_DEFINED, i18n("Sorry, fonts cannot be renamed.")); - else if(itsRoot) // Should never happen... - error(TDEIO::ERR_UNSUPPORTED_ACTION, unsupportedActionErrorString(mProtocol, TDEIO::CMD_RENAME)); - else - { - // - // Can't rename from/to file:/ -> therefore rename can only be from fonts:/System to fonts:/Personal, - // or vice versa. - - TQStringList srcFiles; - - if(getSourceFiles(src, srcFiles)) // Any error will be logged in getSourceFiles - { - KURL dest(d); - bool changed=confirmUrl(dest); - EFolder destFolder(getFolder(dest)); - TQMap map; - - if(confirmMultiple(src, srcFiles, FOLDER_SYS==destFolder ? FOLDER_USER : FOLDER_SYS, OP_MOVE) && - getFontList(srcFiles, map) && - checkDestFiles(src, map, dest, destFolder, overwrite)) - { - TQMap::Iterator fIt(map.begin()), - fEnd(map.end()); - bool askPasswd=true, - toSys=FOLDER_SYS==destFolder; - TQCString userId, - groupId, - destDir(TQFile::encodeName(TDEProcess::quote(itsFolders[destFolder].location))); - - userId.setNum(toSys ? 0 : getuid()); - groupId.setNum(toSys ? 0 : getgid()); - - for(; fIt!=fEnd; ++fIt) - { - TQCString cmd, - destFile(TQFile::encodeName(TDEProcess::quote(itsFolders[destFolder].location+fIt.data()))); - - if(toSys && !Misc::dExists(itsFolders[destFolder].location)) - { - cmd+="mkdir "; - cmd+=destDir; - cmd+=" && "; - } - - cmd+="mv -f "; - cmd+=TQFile::encodeName(TDEProcess::quote(fIt.key())); - cmd+=" "; - cmd+=destFile; - cmd+=" && chmod -f 0644 "; - cmd+=destFile; - cmd+=" && chown -f "; - cmd+=userId; - cmd+=":"; - cmd+=groupId; - cmd+=" "; - cmd+=destFile; - - TQString sysDir, - userDir; - - if(FOLDER_SYS==destFolder) - { - sysDir=itsFolders[destFolder].location; - userDir=Misc::getDir(fIt.key()); - } - else - { - userDir=itsFolders[destFolder].location; - sysDir=Misc::getDir(fIt.key()); - } - - if(!itsCanStorePasswd) - createRootRefreshCmd(cmd, sysDir); - - if(doRootCmd(cmd, askPasswd)) - { - modified(FOLDER_SYS, true, sysDir); - modified(FOLDER_USER, true, userDir); - askPasswd=false; // Don't keep on asking for password... - } - else - { - error(TDEIO::ERR_SLAVE_DEFINED, i18n("Could not access \"%1\" folder.").arg(i18n(KFI_KIO_FONTS_SYS))); - return; - } - } - if(changed) - itsLastDestTime=time(NULL); - } - } - } -} - -void CKioFonts::del(const KURL &url, bool) -{ - KFI_DBUG << "del " << url.path() << endl; - - TQValueList *entries; - - if(checkUrl(url) && checkAllowed(url) && - updateFontList() && (entries=getEntries(url)) && entries->count() && - confirmMultiple(url, entries, getFolder(url), OP_DELETE)) - { - TQValueList::Iterator it, - end=entries->end(); - CDirList modifiedDirs; - bool clearList=KFI_KIO_NO_CLEAR!=url.query(); - - if(nonRootSys(url)) - { - TQCString cmd("rm -f"); - - for(it=entries->begin(); it!=end; ++it) - { - TQString file(CFcEngine::getFcString(*it, FC_FILE)); - - modifiedDirs.add(Misc::getDir(file)); - cmd+=" "; - cmd+=TQFile::encodeName(TDEProcess::quote(file)); - - KURL::List urls; - - Misc::getAssociatedUrls(KURL(file), urls); - - if(urls.count()) - { - KURL::List::Iterator uIt, - uEnd=urls.end(); - - for(uIt=urls.begin(); uIt!=uEnd; ++uIt) - { - cmd+=" "; - cmd+=TQFile::encodeName(TDEProcess::quote((*uIt).path())); - } - } - } - - if(!itsCanStorePasswd) - createRootRefreshCmd(cmd, modifiedDirs); - - if(doRootCmd(cmd)) - modified(FOLDER_SYS, clearList, modifiedDirs); - else - error(TDEIO::ERR_SLAVE_DEFINED, i18n("Could not access \"%1\" folder.").arg(i18n(KFI_KIO_FONTS_SYS))); - } - else - { - for(it=entries->begin(); it!=end; ++it) - { - TQString file(CFcEngine::getFcString(*it, FC_FILE)); - - if (0!=unlink(TQFile::encodeName(file).data())) - error(EACCES==errno || EPERM==errno - ? TDEIO::ERR_ACCESS_DENIED - : EISDIR==errno - ? TDEIO::ERR_IS_DIRECTORY - : TDEIO::ERR_CANNOT_DELETE, - file); - else - { - modifiedDirs.add(Misc::getDir(file)); - - KURL::List urls; - - Misc::getAssociatedUrls(KURL(file), urls); - - if(urls.count()) - { - KURL::List::Iterator uIt, - uEnd=urls.end(); - - for(uIt=urls.begin(); uIt!=uEnd; ++uIt) - unlink(TQFile::encodeName((*uIt).path()).data()); - } - } - } - modified(itsRoot ? FOLDER_SYS : FOLDER_USER, clearList, modifiedDirs); - } - finished(); - } -} - -void CKioFonts::modified(EFolder folder, bool clearList, const CDirList &dirs) -{ - KFI_DBUG << "modified(" << (int)folder << ")\n"; - - if(FOLDER_SYS!=folder || itsCanStorePasswd || itsRoot) - { - if(dirs.count()) - { - CDirList::ConstIterator it(dirs.begin()), - end(dirs.end()); - - for(; it!=end; ++it) - itsFolders[folder].modified.add(*it); - } - else - itsFolders[folder].modified.add(itsFolders[folder].location); - - if(++itsFontChanges>MAX_NEW_FONTS) - { - setTimeoutSpecialCommand(0); // Cancel timer - doModified(); - } - else - setTimeoutSpecialCommand(TIMEOUT); - } - - if(FOLDER_SYS==folder && !itsRoot && !itsCanStorePasswd) - { - // If we modified sys, we're not root, and couldn't store the passwd, then kfontinst has already been called - // so no need to ask it to add folder to fontconfig and X's config files... - itsHasSys=true; - itsAddToSysFc=false; - } - if(clearList) - clearFontList(); // List of fonts has changed.../ -} - -void CKioFonts::special(const TQByteArray &a) -{ - KFI_DBUG << "special" << endl; - - if(a.size()) - { - TQDataStream stream(a, IO_ReadOnly); - int cmd; - - stream >> cmd; - - switch (cmd) - { - case SPECIAL_RESCAN: - clearFontList(); - updateFontList(); - finished(); - break; - case SPECIAL_RECONFIG: // Only itended to be called from kcmfontinst - when a user has re-enabled doX or doGs - if(itsRoot && !itsFolders[FOLDER_SYS].modified.contains(itsFolders[FOLDER_SYS].location)) - itsFolders[FOLDER_SYS].modified.add(itsFolders[FOLDER_SYS].location); - else if(!itsRoot && !itsFolders[FOLDER_USER].modified.contains(itsFolders[FOLDER_USER].location)) - itsFolders[FOLDER_USER].modified.add(itsFolders[FOLDER_USER].location); - - doModified(); - finished(); - break; - default: - error( TDEIO::ERR_UNSUPPORTED_ACTION, TQString::number(cmd)); - } - } - else - doModified(); -} - -void CKioFonts::createRootRefreshCmd(TQCString &cmd, const CDirList &dirs, bool reparseCfg) -{ - if(reparseCfg) - reparseConfig(); - - if(!cmd.isEmpty()) - cmd+=" && "; - - cmd+=FC_CACHE_CMD; - - if(dirs.count()) - { - CDirList::ConstIterator it(dirs.begin()), - end(dirs.end()); - - for(; it!=end; ++it) - { - TQCString tmpCmd; - - if(*it==itsFolders[FOLDER_SYS].location) - { - if(0!=itsNrsKfiParams[0]) - tmpCmd+=itsNrsKfiParams; - } - else - if(0!=itsNrsNonMainKfiParams[0]) - tmpCmd+=itsNrsNonMainKfiParams; - - if(!tmpCmd.isEmpty()) - { - cmd+=" && kfontinst "; - cmd+=tmpCmd; - cmd+=" "; - cmd+=TQFile::encodeName(TDEProcess::quote(*it)); - } - } - } - else if (0!=itsNrsKfiParams[0]) - { - cmd+=" && kfontinst "; - cmd+=itsNrsKfiParams; - cmd+=" "; - cmd+=TQFile::encodeName(TDEProcess::quote(itsFolders[FOLDER_SYS].location)); - } -} - -void CKioFonts::doModified() -{ - KFI_DBUG << "doModified" << endl; - - if(itsFolders[FOLDER_SYS].modified.count() || itsFolders[FOLDER_USER].modified.count()) - reparseConfig(); - - itsFontChanges=0; - if(itsFolders[FOLDER_SYS].modified.count()) - { - if(itsRoot) - { - Misc::doCmd(FC_CACHE_CMD); - KFI_DBUG << "RUN(root): " << FC_CACHE_CMD << endl; - - // - // If a non-default folder has been modified, always configure X - if(NULL==strchr(itsKfiParams, 'x') && - (itsFolders[FOLDER_SYS].modified.count()>1 || !itsFolders[FOLDER_SYS].modified.contains(itsFolders[FOLDER_SYS].location))) - { - if(0==itsKfiParams[0]) - strcpy(itsKfiParams, "-x"); - else - strcat(itsKfiParams, "x"); - } - - if(0!=itsKfiParams[0]) - { - CDirList::ConstIterator it(itsFolders[FOLDER_SYS].modified.begin()), - end(itsFolders[FOLDER_SYS].modified.end()); - - for(; it!=end; ++it) - { - Misc::doCmd("kfontinst", itsKfiParams, TQFile::encodeName(*it)); - KFI_DBUG << "RUN(root): kfontinst " << itsKfiParams << ' ' << *it << endl; - } - - if(itsFolders[FOLDER_SYS].modified.contains(itsFolders[FOLDER_SYS].location)) - { - itsHasSys=true; - itsAddToSysFc=false; - } - } - } - else - { - TQCString cmd; - - createRootRefreshCmd(cmd, itsFolders[FOLDER_SYS].modified, false); - if(doRootCmd(cmd, false) && itsFolders[FOLDER_SYS].modified.contains(itsFolders[FOLDER_SYS].location)) - { - itsHasSys=true; - itsAddToSysFc=false; - } - if(NULL==strstr(itsNrsKfiParams, "s")) - Misc::doCmd("xset", "fp", "rehash"); // doRootCmd can only refresh if xfs is being used, so try here anyway... - } - itsFolders[FOLDER_SYS].modified.clear(); - } - - if(!itsRoot && itsFolders[FOLDER_USER].modified.count()) - { - Misc::doCmd(FC_CACHE_CMD); - KFI_DBUG << "RUN(non-root): " << FC_CACHE_CMD << endl; - - if(0!=itsKfiParams[0]) - { - CDirList::ConstIterator it(itsFolders[FOLDER_USER].modified.begin()), - end(itsFolders[FOLDER_USER].modified.end()); - - for(; it!=end; ++it) - { - Misc::doCmd("kfontinst", itsKfiParams, TQFile::encodeName(*it)); - KFI_DBUG << "RUN(non-root): kfontinst " << itsKfiParams << ' ' << *it << endl; - } - } - itsFolders[FOLDER_USER].modified.clear(); - } - - KFI_DBUG << "finished ModifiedDirs" << endl; -} - -#define SYS_USER "root" -TQString CKioFonts::getRootPasswd(bool askPasswd) -{ - KFI_DBUG << "getRootPasswd" << endl; - TDEIO::AuthInfo authInfo; - SuProcess proc(SYS_USER); - bool error=false; - int attempts=0; - TQString errorMsg; - - authInfo.url=KURL(KFI_KIO_FONTS_PROTOCOL ":///"); - authInfo.username=SYS_USER; - authInfo.keepPassword=true; - - if(!checkCachedAuthentication(authInfo) && !askPasswd) - authInfo.password=itsPasswd; - - if(askPasswd) - while(!error && 0!=proc.checkInstall(authInfo.password.local8Bit())) - { - KFI_DBUG << "ATTEMPT : " << attempts << endl; - if(1==attempts) - errorMsg=i18n("Incorrect password.\n"); - if((!openPassDlg(authInfo, errorMsg) && attempts) || ++attempts>4 || SYS_USER!=authInfo.username) - error=true; - } - else - error=proc.checkInstall(authInfo.password.local8Bit()) ? true : false; - return error ? TQString::null : authInfo.password; -} - -bool CKioFonts::doRootCmd(const char *cmd, const TQString &passwd) -{ - KFI_DBUG << "doRootCmd " << cmd << endl; - - if(!passwd.isEmpty()) - { - SuProcess proc(SYS_USER); - - if(itsCanStorePasswd) - itsPasswd=passwd; - - KFI_DBUG << "Try to run command" << endl; - proc.setCommand(cmd); - return proc.exec(passwd.local8Bit()) ? false : true; - } - - return false; -} - -bool CKioFonts::confirmUrl(KURL &url) -{ - KFI_DBUG << "confirmUrl " << url.path() << endl; - if(!itsRoot) - { - TQString sect(getSect(url.path())); - - if(!isSysFolder(sect) && !isUserFolder(sect)) - { - bool changeToSystem=false; - - if(DEST_UNCHANGED!=itsLastDest && itsLastDestTime && (abs(time(NULL)-itsLastDestTime) < constMaxLastDestTime)) - changeToSystem=DEST_SYS==itsLastDest; - else - changeToSystem=KMessageBox::No==messageBox(QuestionYesNo, - i18n("Do you wish to install the font into \"%1\" (in which " - "case the font will only be usable by you), or \"%2\" (" - "the font will be usable by all users - but you will " - "need to know the administrator's password)?") - .arg(i18n(KFI_KIO_FONTS_USER)).arg(i18n(KFI_KIO_FONTS_SYS)), - i18n("Where to Install"), i18n(KFI_KIO_FONTS_USER), - i18n(KFI_KIO_FONTS_SYS)); - - if(changeToSystem) - { - itsLastDest=DEST_SYS; - url.setPath(TQChar('/')+i18n(KFI_KIO_FONTS_SYS)+TQChar('/')+url.fileName()); - } - else - { - itsLastDest=DEST_USER; - url.setPath(TQChar('/')+i18n(KFI_KIO_FONTS_USER)+TQChar('/')+url.fileName()); - } - - KFI_DBUG << "Changed URL to:" << url.path() << endl; - return true; - } - } - - return false; -} - -void CKioFonts::clearFontList() -{ - KFI_DBUG << "clearFontList" << endl; - - if(itsFontList) - FcFontSetDestroy(itsFontList); - - itsFontList=NULL; - itsFolders[FOLDER_SYS].fontMap.clear(); - itsFolders[FOLDER_USER].fontMap.clear(); -} - -bool CKioFonts::updateFontList() -{ - KFI_DBUG << "updateFontList" << endl; - - if(!itsFontList || !FcConfigUptoDate(0) || // For some reason just the "!FcConfigUptoDate(0)" check does not always work :-( - (abs(time(NULL)-itsLastFcCheckTime)>constMaxFcCheckTime)) - { - FcInitReinitialize(); - clearFontList(); - } - - if(!itsFontList) - { - KFI_DBUG << "updateFontList - update list of fonts " << endl; - - itsLastFcCheckTime=time(NULL); - - FcPattern *pat = FcPatternCreate(); - FcObjectSet *os = FcObjectSetBuild(FC_FILE, FC_FAMILY, FC_WEIGHT, FC_SCALABLE, -#ifdef KFI_FC_HAS_WIDTHS - FC_WIDTH, -#endif - FC_SLANT, (void*)0); - - itsFontList=FcFontList(0, pat, os); - - FcPatternDestroy(pat); - FcObjectSetDestroy(os); - - if (itsFontList) - { - TQString home(Misc::dirSyntax(TQDir::homeDirPath())); - - for (int i = 0; i < itsFontList->nfont; i++) - { - EFolder folder=FOLDER_SYS; - TQString file(Misc::fileSyntax(CFcEngine::getFcString(itsFontList->fonts[i], FC_FILE))); - - if(!file.isEmpty()) - { - if(!itsRoot && 0==file.find(home)) - folder=FOLDER_USER; - - TQValueList &patterns= - itsFolders[folder].fontMap[CFcEngine::createName(itsFontList->fonts[i])]; - bool use=true; - - if(patterns.count()) // Check for duplicates... - { - TQValueList::Iterator it, - end=patterns.end(); - - for(it=patterns.begin(); use && it!=end; ++it) - if(file==(Misc::fileSyntax(CFcEngine::getFcString(*it, FC_FILE)))) - use=false; - } - if(use) - patterns.append(itsFontList->fonts[i]); - } - } - } - } - - if(NULL==itsFontList) - { - error(TDEIO::ERR_SLAVE_DEFINED, i18n("Internal fontconfig error.")); - return false; - } - - return true; -} - -CKioFonts::EFolder CKioFonts::getFolder(const KURL &url) -{ - return itsRoot || isSysFolder(getSect(url.path())) ? FOLDER_SYS : FOLDER_USER; -} - -TQMap >::Iterator CKioFonts::getMap(const KURL &url) -{ - EFolder folder(getFolder(url)); - TQMap >::Iterator it=itsFolders[folder].fontMap.find(removeMultipleExtension(url)); - - if(it==itsFolders[folder].fontMap.end()) // Perhaps it was fonts:/System/times.ttf ??? - { - FcPattern *pat=getEntry(folder, url.fileName(), false); - - if(pat) - it=itsFolders[folder].fontMap.find(CFcEngine::createName(pat)); - } - - return it; -} - -TQValueList * CKioFonts::getEntries(const KURL &url) -{ - TQMap >::Iterator it=getMap(url); - - if(it!=itsFolders[getFolder(url)].fontMap.end()) - return &(it.data()); - - error(TDEIO::ERR_SLAVE_DEFINED, i18n("Could not access \"%1\".").arg(url.prettyURL())); - return NULL; -} - -FcPattern * CKioFonts::getEntry(EFolder folder, const TQString &file, bool full) -{ - TQMap >::Iterator it, - end=itsFolders[folder].fontMap.end(); - - for(it=itsFolders[folder].fontMap.begin(); it!=end; ++it) - { - TQValueList::Iterator patIt, - patEnd=it.data().end(); - - for(patIt=it.data().begin(); patIt!=patEnd; ++patIt) - if( (full && CFcEngine::getFcString(*patIt, FC_FILE)==file) || - (!full && Misc::getFile(CFcEngine::getFcString(*patIt, FC_FILE))==file)) - return *patIt; - } - - return NULL; -} - -bool CKioFonts::checkFile(const TQString &file) -{ - TQCString cFile(TQFile::encodeName(file)); - - // - // To speed things up, check the files extension 1st... - if(checkExt(cFile, "ttf") || checkExt(cFile, "otf") || checkExt(cFile, "ttc") || checkExt(cFile, "pfa") || checkExt(cFile, "pfb") || - isAAfm(file) || isAPfm(file)) - return true; - - // - // No exension match, so try querying with FreeType... - int count=0; - FcPattern *pat=FcFreeTypeQuery((const FcChar8 *)(TQFile::encodeName(file).data()), 0, NULL, &count); - - if(pat) - { - FcPatternDestroy(pat); - return true; - } - - error(TDEIO::ERR_SLAVE_DEFINED, i18n("

Only fonts may be installed.

If installing a fonts package (*%1), then " - "extract the components, and install individually.

").arg(constMultipleExtension)); - return false; -} - -bool CKioFonts::getSourceFiles(const KURL &src, TQStringList &files) -{ - if(KFI_KIO_FONTS_PROTOCOL==src.protocol()) - { - TQValueList *entries=getEntries(src); - - if(entries && entries->count()) - { - TQValueList::Iterator it, - end=entries->end(); - - for(it=entries->begin(); it!=end; ++it) - files.append(CFcEngine::getFcString(*it, FC_FILE)); - } - - if(files.count()) - { - TQStringList::Iterator sIt, - sEnd=files.end(); - - for(sIt=files.begin(); sIt!=sEnd; ++sIt) - { - KURL::List urls; - - Misc::getAssociatedUrls(KURL(*sIt), urls); - - if(urls.count()) - { - KURL::List::Iterator uIt, - uEnd=urls.end(); - - for(uIt=urls.begin(); uIt!=uEnd; ++uIt) - if(-1==files.findIndex((*uIt).path())) - files.append((*uIt).path()); - } - } - } - } - else - if(src.isLocalFile()) - if(checkFile(src.path())) - files.append(src.path()); - else - return false; // error logged in checkFile... - - if(files.count()) - { - TQStringList::Iterator it, - end=files.end(); - - for(it=files.begin(); it!=end; ++it) - { - TQCString realSrc=TQFile::encodeName(*it); - KDE_struct_stat buffSrc; - - if (-1==KDE_stat(realSrc.data(), &buffSrc)) - { - error(EACCES==errno ? TDEIO::ERR_ACCESS_DENIED : TDEIO::ERR_DOES_NOT_EXIST, src.prettyURL()); - return false; - } - if(S_ISDIR(buffSrc.st_mode)) - { - error(TDEIO::ERR_IS_DIRECTORY, src.prettyURL()); - return false; - } - if(S_ISFIFO(buffSrc.st_mode) || S_ISSOCK(buffSrc.st_mode)) - { - error(TDEIO::ERR_CANNOT_OPEN_FOR_READING, src.prettyURL()); - return false; - } - } - } - else - { - error(TDEIO::ERR_DOES_NOT_EXIST, src.prettyURL()); - return false; - } - - return true; -} - -bool CKioFonts::checkDestFile(const KURL &src, const KURL &dest, EFolder destFolder, bool overwrite) -{ - if(!overwrite && (Misc::fExists(itsFolders[destFolder].location+src.fileName()) || - Misc::fExists(itsFolders[destFolder].location+modifyName(src.fileName())) ) ) - { - error(TDEIO::ERR_FILE_ALREADY_EXIST, dest.prettyURL()); - return false; - } - - return true; -} - -bool CKioFonts::checkDestFiles(const KURL &src, TQMap &map, const KURL &dest, EFolder destFolder, bool overwrite) -{ - // - // Check whether files exist at destination... - // - if(dest.protocol()==src.protocol() && - dest.directory()==src.directory()) // Check whether confirmUrl changed a "cp fonts:/System fonts:/" - // to "cp fonts:/System fonts:/System" - { - error(TDEIO::ERR_FILE_ALREADY_EXIST, dest.prettyURL()); - return false; - } - - if(!overwrite) - { - TQMap::Iterator fIt(map.begin()), - fEnd(map.end()); - - for(; fIt!=fEnd; ++fIt) - if(NULL!=getEntry(destFolder, fIt.data()) || NULL!=getEntry(destFolder, modifyName(fIt.data()))) - { - error(TDEIO::ERR_FILE_ALREADY_EXIST, dest.prettyURL()); - return false; - } - } - - return true; -} - -// -// Gather the number and names of the font faces located in "files". If there is more than 1 face -// (such as there would be for a TTC font), then ask the user for confirmation of the action. -bool CKioFonts::confirmMultiple(const KURL &url, const TQStringList &files, EFolder folder, EOp op) -{ - if(KFI_KIO_FONTS_PROTOCOL!=url.protocol()) - return true; - - TQStringList::ConstIterator it, - end=files.end(); - TQStringList fonts; - - for(it=files.begin(); it!=files.end(); ++it) - { - FcPattern *pat=getEntry(folder, *it, false); - - if(pat) - { - TQString name(CFcEngine::createName(pat)); - - if(-1==fonts.findIndex(name)) - fonts.append(name); - } - } - - if(fonts.count()>1) - { - TQString out; - TQStringList::Iterator it, - end=fonts.end(); - - for(it=fonts.begin(); it!=end; ++it) - out+=TQString("
  • ")+*it+TQString("
  • "); - - if(KMessageBox::No==messageBox(QuestionYesNo, - OP_MOVE==op - ? i18n("

    This font is located in a file alongside other fonts; in order " - "to proceed with the moving they will all have to be moved. " - "The other affected fonts are:

      %1

    \n Do you wish to " - "move all of these?

    ").arg(out) - : OP_COPY==op - ? i18n("

    This font is located in a file alongside other fonts; in order " - "to proceed with the copying they will all have to be copied. " - "The other affected fonts are:

      %1

    \n Do you wish to " - "copy all of these?

    ").arg(out) - : i18n("

    This font is located in a file alongside other fonts; in order " - "to proceed with the deleting they will all have to be deleted. " - "The other affected fonts are:

      %1

    \n Do you wish to " - "delete all of these?

    ").arg(out))) - { - error(TDEIO::ERR_USER_CANCELED, url.prettyURL()); - return false; - } - } - - return true; -} - -bool CKioFonts::confirmMultiple(const KURL &url, TQValueList *patterns, EFolder folder, EOp op) -{ - if(KFI_KIO_FONTS_PROTOCOL!=url.protocol()) - return true; - - TQStringList files; - - if(patterns && patterns->count()) - { - TQValueList::Iterator it, - end=patterns->end(); - - for(it=patterns->begin(); it!=end; ++it) - files.append(CFcEngine::getFcString(*it, FC_FILE)); - } - - return confirmMultiple(url, files, folder, op); -} - -bool CKioFonts::checkUrl(const KURL &u, bool rootOk) -{ - if(KFI_KIO_FONTS_PROTOCOL==u.protocol() && (!rootOk || (rootOk && "/"!=u.path()))) - { - TQString sect(getSect(u.path())); - - if(itsRoot) - { - if((isSysFolder(sect) || isUserFolder(sect)) && - (itsFolders[FOLDER_SYS].fontMap.end()==itsFolders[FOLDER_SYS].fontMap.find(sect))) -//CPD: TODO: || it has a font specified! e.g. fonts:/System/Times -> even in have a fonts:/System font, redirect -//should still happen - { - redirection(getRedirect(u)); - finished(); - return false; - } - } - else - if(!isSysFolder(sect) && !isUserFolder(sect)) - { - error(TDEIO::ERR_SLAVE_DEFINED, i18n("Please specify \"%1\" or \"%2\".") - .arg(i18n(KFI_KIO_FONTS_USER)).arg(i18n(KFI_KIO_FONTS_SYS))); - return false; - } - } - - return true; -} - -bool CKioFonts::checkAllowed(const KURL &u) -{ - if (KFI_KIO_FONTS_PROTOCOL==u.protocol()) - { - TQString ds(Misc::dirSyntax(u.path())); - - if(ds==TQString(TQChar('/')+i18n(KFI_KIO_FONTS_USER)+TQChar('/')) || - ds==TQString(TQChar('/')+i18n(KFI_KIO_FONTS_SYS)+TQChar('/')) || - ds==TQString(TQChar('/')+TQString::fromLatin1(KFI_KIO_FONTS_USER)+TQChar('/')) || - ds==TQString(TQChar('/')+TQString::fromLatin1(KFI_KIO_FONTS_SYS)+TQChar('/'))) - { - error(TDEIO::ERR_SLAVE_DEFINED, i18n("Sorry, you cannot rename, move, copy, or delete either \"%1\" or \"%2\".") - .arg(i18n(KFI_KIO_FONTS_USER)).arg(i18n(KFI_KIO_FONTS_SYS))); \ - return false; - } - } - - return true; -} - -// -// Create an AFM from a Type 1 (pfa/pfb) font and its PFM file... -void CKioFonts::createAfm(const TQString &file, bool nrs, const TQString &passwd) -{ - if(nrs && passwd.isEmpty()) - return; - - bool type1=isAType1(file), - pfm=!type1 && isAPfm(file); // No point checking if is pfm if its a type1 - - if(type1 || pfm) - { - TQString afm=getMatch(file, "afm"); // pf2afm wants files with lowercase extension, so just check for lowercase! - // -- when a font is installed, the extensio is converted to lowercase anyway... - - if(afm.isEmpty()) // No point creating if AFM already exists! - { - TQString pfm, - t1; - - if(type1) // Its a Type1, so look for existing PFM - { - pfm=getMatch(file, "pfm"); - t1=file; - } - else // Its a PFM, so look for existing Type1 - { - t1=getMatch(file, "pfa"); - if(t1.isEmpty()) - t1=getMatch(file, "pfb"); - pfm=file; - } - - if(!t1.isEmpty() && !pfm.isEmpty()) // Do we have both Type1 and PFM? - { - TQString name(t1.left(t1.length()-4)); // pf2afm wants name without extension... - - if(nrs) - { - TQCString cmd("pf2afm "); - cmd+=TQFile::encodeName(TDEProcess::quote(name)); - doRootCmd(cmd, passwd); - } - else - Misc::doCmd("pf2afm", TQFile::encodeName(name)); - } - } - } -} - -void CKioFonts::reparseConfig() -{ - KFI_DBUG << "reparseConfig" << endl; - - itsKfiParams[0]=0; - if(!itsRoot) - { - itsNrsKfiParams[0]=0; - itsNrsNonMainKfiParams[0]=0; - } - - if(itsRoot) - { - TDEConfig cfg(KFI_ROOT_CFG_FILE); - bool doX=cfg.readBoolEntry(KFI_CFG_X_KEY, KFI_DEFAULT_CFG_X), - doGs=cfg.readBoolEntry(KFI_CFG_GS_KEY, KFI_DEFAULT_CFG_GS); - - if(doX || !doGs) - { - strcpy(itsKfiParams, doGs ? "-g" : "-"); - if(doX) - { - if(!itsUsingXfsFpe) - strcat(itsKfiParams, "r"); - - if(!itsUsingFcFpe) - { - strcat(itsKfiParams, itsUsingXfsFpe ? "sx" : "x"); - if(!itsHasSys) - strcat(itsKfiParams, "a"); - } - } - } - } - else - { - TDEConfig rootCfg(KFI_ROOT_CFG_FILE); - bool rootDoX=rootCfg.readBoolEntry(KFI_CFG_X_KEY, KFI_DEFAULT_CFG_X), - rootDoGs=rootCfg.readBoolEntry(KFI_CFG_GS_KEY, KFI_DEFAULT_CFG_GS); - - strcpy(itsNrsKfiParams, "-"); - - if(rootDoX || rootDoGs) - { - strcpy(itsNrsKfiParams, "-"); - strcpy(itsNrsNonMainKfiParams, "-"); - - if(rootDoGs) - { - strcpy(itsNrsKfiParams, "g"); - strcpy(itsNrsNonMainKfiParams, "g"); - } - - if(rootDoX && !itsUsingFcFpe) - { - strcat(itsNrsKfiParams, itsUsingXfsFpe ? "sx" : "x"); // Can't get root to refresh X, only xfs! - strcat(itsNrsNonMainKfiParams, itsUsingXfsFpe ? "sx" : "x"); - if(!itsHasSys) - strcat(itsNrsKfiParams, "a"); - } - if(0==itsNrsNonMainKfiParams[1]) - itsNrsNonMainKfiParams[0]=0; - } - - if(itsAddToSysFc) - strcpy(itsNrsKfiParams, "f"); - - if(0==itsNrsKfiParams[1]) - itsNrsKfiParams[0]=0; - - TDEConfig cfg(KFI_CFG_FILE); - bool doX=cfg.readBoolEntry(KFI_CFG_X_KEY, KFI_DEFAULT_CFG_X), - doGs=cfg.readBoolEntry(KFI_CFG_GS_KEY, KFI_DEFAULT_CFG_GS); - - strcpy(itsKfiParams, doGs ? "-g" : "-"); - - if(doX) - strcat(itsKfiParams, itsUsingFcFpe ? "r" : "rx"); - } - - if(0==itsKfiParams[1]) - itsKfiParams[0]=0; -} - -} diff --git a/kcontrol/kfontinst/kio/KioFonts.h b/kcontrol/kfontinst/kio/KioFonts.h deleted file mode 100644 index ec8c69c4e..000000000 --- a/kcontrol/kfontinst/kio/KioFonts.h +++ /dev/null @@ -1,161 +0,0 @@ -#ifndef __KIO_FONTS_H__ -#define __KIO_FONTS_H__ - -//////////////////////////////////////////////////////////////////////////////// -// -// Class Name : KFI::CKioFonts -// Author : Craig Drummond -// Project : K Font Installer -// Creation Date : 05/03/2003 -// Version : $Revision$ $Date$ -// -//////////////////////////////////////////////////////////////////////////////// -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// as published by the Free Software Foundation; either version 2 -// of the License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -// -//////////////////////////////////////////////////////////////////////////////// -// (C) Craig Drummond, 2003, 2004 -//////////////////////////////////////////////////////////////////////////////// - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "Misc.h" -#include "KfiConstants.h" - -namespace KFI -{ - -class CKioFonts : public TDEIO::SlaveBase -{ - private: - - enum EConstants - { - KFI_PARAMS = 8 - }; - - enum EDest - { - DEST_UNCHANGED, - DEST_SYS, - DEST_USER - }; - - enum EFolder - { - FOLDER_SYS, - FOLDER_USER, - - FOLDER_COUNT - }; - - enum EOp - { - OP_COPY, - OP_MOVE, - OP_DELETE - }; - - class CDirList : public TQStringList - { - public: - - CDirList() { } - CDirList(const TQString &str) : TQStringList(str) { } - - void add(const TQString &d) { if ( contains(d)) append(d); } - }; - - struct TFolder - { - TQString location; - CDirList modified; - TQMap > fontMap; // Maps from "Times New Roman" -> $HOME/.fonts/times.ttf - }; - - public: - - CKioFonts(const TQCString &pool, const TQCString &app); - virtual ~CKioFonts(); - - static TQString getSect(const TQString &f) { return f.section('/', 1, 1); } - - void listDir(const KURL &url); - void stat(const KURL &url); - bool createStatEntry(TDEIO::UDSEntry &entry, const KURL &url, EFolder folder); - void get(const KURL &url); - void put(const KURL &url, int mode, bool overwrite, bool resume); - void copy(const KURL &src, const KURL &dest, int mode, bool overwrite); - void rename(const KURL &src, const KURL &dest, bool overwrite); - void del(const KURL &url, bool isFile); - - private: - - bool putReal(const TQString &destOrig, const TQCString &destOrigC, bool origExists, int mode, bool resume); - void modified(EFolder folder, bool clearList=true, const CDirList &dirs=CDirList()); - void special(const TQByteArray &a); - void createRootRefreshCmd(TQCString &cmd, const CDirList &dirs=CDirList(), bool reparseCfg=true); - void doModified(); - TQString getRootPasswd(bool askPasswd=true); - bool doRootCmd(const char *cmd, const TQString &passwd); - bool doRootCmd(const char *cmd, bool askPasswd=true) { return doRootCmd(cmd, getRootPasswd(askPasswd)); } - bool confirmUrl(KURL &url); - void clearFontList(); - bool updateFontList(); - EFolder getFolder(const KURL &url); - TQMap >::Iterator getMap(const KURL &url); - TQValueList * getEntries(const KURL &url); - FcPattern * getEntry(EFolder folder, const TQString &file, bool full=false); - bool checkFile(const TQString &file); - bool getSourceFiles(const KURL &src, TQStringList &files); - bool checkDestFile(const KURL &src, const KURL &dest, EFolder destFolder, bool overwrite); - bool checkDestFiles(const KURL &src, TQMap &map, const KURL &dest, EFolder destFolder, bool overwrite); - bool confirmMultiple(const KURL &url, const TQStringList &files, EFolder folder, EOp op); - bool confirmMultiple(const KURL &url, TQValueList *patterns, EFolder folder, EOp op); - bool checkUrl(const KURL &u, bool rootOk=false); - bool checkAllowed(const KURL &u); - void createAfm(const TQString &file, bool nrs=false, const TQString &passwd=TQString::null); - void reparseConfig(); - - private: - - bool itsRoot, - itsCanStorePasswd, - itsUsingFcFpe, - itsUsingXfsFpe, - itsHasSys, - itsAddToSysFc; - TQString itsPasswd; - unsigned int itsFontChanges; - EDest itsLastDest; - time_t itsLastDestTime, - itsLastFcCheckTime; - FcFontSet *itsFontList; - TFolder itsFolders[FOLDER_COUNT]; - char itsNrsKfiParams[KFI_PARAMS], - itsNrsNonMainKfiParams[KFI_PARAMS], - itsKfiParams[KFI_PARAMS]; -}; - -} - -#endif diff --git a/kcontrol/kfontinst/kio/Makefile.am b/kcontrol/kfontinst/kio/Makefile.am deleted file mode 100644 index ca22d13bd..000000000 --- a/kcontrol/kfontinst/kio/Makefile.am +++ /dev/null @@ -1,20 +0,0 @@ -kde_module_LTLIBRARIES = kio_fonts.la -kio_fonts_la_SOURCES = \ -KioFonts.cpp - -kio_fonts_la_LIBADD = ../../fonts/libkxftconfig.la $(LIBFONTCONFIG_LIBS) $(LIBFREETYPE_LIBS) $(LIB_KIO) -ltdesu ../lib/libkfontinst.la -kio_fonts_la_LDFLAGS = $(KDE_PLUGIN) $(all_libraries) $(KDE_RPATH) $(LIBFONTCONFIG_RPATH) $(LIBFREETYPE_RPATH) -module -avoid-version -no-undefined -AM_CPPFLAGS= -I$(srcdir)/../lib -I$(srcdir)/../../fonts $(all_includes) $(LIBFREETYPE_CFLAGS) $(LIBFONTCONFIG_CFLAGS) -D_LARGEFILE64_SOURCE - -# The kxftconfig stuf really belongs to tdebase/kcontrol/fonts - here only so that can distribute this as an archive. -noinst_HEADERS = \ -KioFonts.h - -servicesdir = $(kde_servicesdir) -services_DATA = fonts.protocol - -vfsdata_DATA = fonts.desktop -vfsdatadir = $(kde_datadir)/konqsidebartng/virtual_folders/services - -mimetype_DATA = folder.desktop system-folder.desktop package.desktop -mimetypedir = $(kde_mimedir)/fonts diff --git a/kcontrol/kfontinst/kio/folder.desktop b/kcontrol/kfontinst/kio/folder.desktop deleted file mode 100644 index 848feabe5..000000000 --- a/kcontrol/kfontinst/kio/folder.desktop +++ /dev/null @@ -1,80 +0,0 @@ -[Desktop Entry] -Comment=Fonts Folder -Comment[af]=Skrif tipe Gids -Comment[ar]=مجلد المحارف -Comment[be]=Тэчка шрыфтоў -Comment[bg]=Директория за шрифтове -Comment[bn]=ফন্ট ফোল্ডার -Comment[br]=Renkell ar fontoù -Comment[bs]=Direktorij sa fontovima -Comment[ca]=Carpeta de lletres -Comment[cs]=Složka písem -Comment[csb]=Katalog fòntów -Comment[da]=Skrifttypemappe -Comment[de]=Ordner für Schriftarten -Comment[el]=Φάκελος γραμματοσειρών -Comment[eo]=Tipardosierujo -Comment[es]=Carpeta de tipos de letra -Comment[et]=Fontide kataloog -Comment[eu]=Letra-tipoen karpeta -Comment[fa]=پوشۀ قلم -Comment[fi]=Kirjasinkansio -Comment[fr]=Dossier de polices de caractères -Comment[fy]=Lettertypenmap -Comment[ga]=Fillteán na gClónna -Comment[gl]=Cartafol das Fontes -Comment[he]=תיקיית גופנים -Comment[hi]=फ़ॉन्ट्स फ़ोल्डर -Comment[hr]=Mapa fontova -Comment[hu]=Betűtípuskönyvtár -Comment[id]=Folder Fonts -Comment[is]=Leturmappa -Comment[it]=Cartella dei caratteri -Comment[ja]=フォントフォルダ -Comment[ka]=ფონტების საქაღალდე -Comment[kk]=Қаріп қапшығы -Comment[km]=ថត​ពុម្ពអក្សរ -Comment[ko]=홈 폴더 -Comment[lt]=Šriftų aplankas -Comment[lv]=Fontu mape -Comment[mk]=Папка со фонтови -Comment[ms]=Folder Fon -Comment[mt]=Direttorju tal-fonts -Comment[nb]=Mappe for skrifttyper -Comment[nds]=Schriftoorden-Orner -Comment[ne]=फन्ट फोल्डर -Comment[nl]=Lettertypenmap -Comment[nn]=Skriftmappe -Comment[pa]=ਫੋਂਟ ਫੋਲਡਰ -Comment[pl]=Katalog czcionek -Comment[pt]=Pasta de Tipos de Letra -Comment[pt_BR]=Pasta de Fontes -Comment[ro]=Folder de fonturi -Comment[ru]=Папка шрифтов -Comment[rw]=Ububiko bw'Imyandikire -Comment[se]=Fontamáhppa -Comment[sk]=Priečinok písiem -Comment[sl]=Mapa za pisave -Comment[sr]=Фасцикла за фонтове -Comment[sr@Latn]=Fascikla za fontove -Comment[sv]=Teckensnittskatalog -Comment[ta]=எழுத்துருக்கள் அடைவு -Comment[tg]=Феҳристи ҳарфҳо -Comment[th]=โฟลเดอร์แฟ้มแบบอักษร -Comment[tr]=Yazıtipi Klasörü -Comment[tt]=Yazu lar Törgäge -Comment[uk]=Тека шрифтів -Comment[uz]=Shriftlarning jildi -Comment[uz@cyrillic]=Шрифтларнинг жилди -Comment[vi]=Thư mục Phông chữ -Comment[wa]=Ridant di fontes -Comment[zh_CN]=字体文件夹 -Comment[zh_TW]=字型資料夾 -Icon=folder -Type=MimeType -MimeType=fonts/folder -Patterns= - -X-TDE-AutoEmbed=true -X-TDE-IsAlso=inode/directory - diff --git a/kcontrol/kfontinst/kio/fonts.desktop b/kcontrol/kfontinst/kio/fonts.desktop deleted file mode 100644 index ac0f592cf..000000000 --- a/kcontrol/kfontinst/kio/fonts.desktop +++ /dev/null @@ -1,85 +0,0 @@ -[Desktop Entry] -Type=Link -URL=fonts:/ -Icon=fonts -Name=Fonts -Name[af]=Skriftipes -Name[ar]=المحارف -Name[az]=Yazı növləri -Name[be]=Шрыфты -Name[bg]=Шрифтове -Name[bn]=ফন্ট -Name[br]=Fontoù -Name[bs]=Fontovi -Name[ca]=Lletres -Name[cs]=Písma -Name[csb]=Fòntë -Name[cy]=Ffontiau -Name[da]=Skrifttyper -Name[de]=Schriftarten -Name[el]=Γραμματοσειρές -Name[eo]=Tiparoj -Name[es]=Tipos de letra -Name[et]=Fondid -Name[eu]=Letra-tipoak -Name[fa]=قلمها -Name[fi]=Kirjasimet -Name[fr]=Polices -Name[fy]=Lettertypen -Name[ga]=Clónna -Name[gl]=Fontes -Name[he]=גופנים -Name[hi]=फ़ॉन्ट्स -Name[hr]=Fontovi -Name[hu]=Betűtípusok -Name[is]=Letur -Name[it]=Tipi di carattere -Name[ja]=フォント -Name[ka]=ფონტები -Name[kk]=Қаріптер -Name[km]=ពុម្ពអក្សរ -Name[ko]=글꼴 -Name[lo]=ຮູບແບບຕົວອັກສອນ -Name[lt]=Šriftai -Name[lv]=Fonti -Name[mk]=Фонтови -Name[mn]=Бичгүүд -Name[ms]=Fon -Name[nb]=Skrifttype -Name[nds]=Schriftoorden -Name[ne]=फन्ट -Name[nl]=Lettertypen -Name[nn]=Skrifttypar -Name[nso]=Difonto -Name[pa]=ਫੋਂਟ -Name[pl]=Czcionki -Name[pt]=Tipos de Letra -Name[pt_BR]=Fontes -Name[ro]=Fonturi -Name[ru]=Шрифты -Name[rw]=Imyandikire -Name[se]=Fonttat -Name[sk]=Písma -Name[sl]=Pisave -Name[sr]=Фонтови -Name[sr@Latn]=Fontovi -Name[ss]=Timo tetinhlamvu temagama -Name[sv]=Teckensnitt -Name[ta]=எழுத்துருக்கள் -Name[tg]=Ҳарфҳо -Name[th]=แบบอักษร -Name[tr]=Yazıtipleri -Name[tt]=Yazu -Name[uk]=Шрифти -Name[uz]=Shriftlar -Name[uz@cyrillic]=Шрифтлар -Name[ven]=Fontu -Name[vi]=Phông chữ -Name[wa]=Fontes -Name[xh]=Uhlobo lwamagama -Name[zh_CN]=字体 -Name[zh_TW]=字型 -Name[zu]=Izinhlobo zamagama -Open=false -X-TDE-TreeModule=Directory -X-TDE-KonqSidebarModule=konqsidebar_tree diff --git a/kcontrol/kfontinst/kio/fonts.protocol b/kcontrol/kfontinst/kio/fonts.protocol deleted file mode 100644 index 7f54dd0cc..000000000 --- a/kcontrol/kfontinst/kio/fonts.protocol +++ /dev/null @@ -1,18 +0,0 @@ -[Protocol] -exec=kio_fonts -protocol=fonts -input=none -output=filesystem -listing=Name,Type,Size,Date,AccessDate,Access,Owner,Group,Link -reading=true -writing=true -makedir=false -deleting=true -moving=true -linking=false -copyToFile=false -copyFromFile=true -Icon=fonts -defaultMimetype=application/octet-stream -maxInstances=1 -Class=:local diff --git a/kcontrol/kfontinst/kio/package.desktop b/kcontrol/kfontinst/kio/package.desktop deleted file mode 100644 index 2d2e1e4af..000000000 --- a/kcontrol/kfontinst/kio/package.desktop +++ /dev/null @@ -1,74 +0,0 @@ -[Desktop Entry] -Type=MimeType -MimeType=fonts/package -Icon=font -Patterns=*.fonts.tar.gz -Comment=Fonts Package -Comment[af]=Skriftipes Paket -Comment[ar]=حزمة المحارف -Comment[be]=Пакет шрыфтоў -Comment[bg]=Пакет с шрифтове -Comment[bn]=ফন্ট প্যাকেজ -Comment[bs]=Paket fontova -Comment[ca]=Paquet de lletres -Comment[cs]=Balík písem -Comment[csb]=Paczét fòntów -Comment[da]=Skrifttypepakke -Comment[de]=Schriftartenpaket -Comment[el]=Πακέτο γραμματοσειρών -Comment[eo]=Tiparpakaĵo -Comment[es]=Paquete de tipos de letra -Comment[et]=Fondipakett -Comment[eu]=Letra-tipoen paketea -Comment[fa]=بستۀ قلمها -Comment[fi]=Kirjasinpaketti -Comment[fr]=Paquet de polices -Comment[fy]=Lettertypenpakket -Comment[ga]=Pacáiste na gClónna -Comment[gl]=Pacote das Fontes -Comment[he]=חבילת גופנים -Comment[hr]=Paket fontova -Comment[hu]=Betűtípuscsomag -Comment[id]=Paket Font -Comment[is]=Leturpakki -Comment[it]=Pacchetto tipi di caratteri -Comment[ja]=フォントパッケージ -Comment[ka]=შრიფტების პაკეტი -Comment[kk]=Қаріп дестесі -Comment[km]=កញ្ចប់​ពុម្ពអក្សរ -Comment[lt]=Šriftų paketas -Comment[mk]=Пакет со фонтови -Comment[ms]=Pakej Fon -Comment[nb]=Pakke for skrifttyper -Comment[nds]=Schriftoorden-Paket -Comment[ne]=फन्ट प्याकेज -Comment[nl]=Lettertypenpakket -Comment[nn]=Pakke for skrifter -Comment[pa]=ਫੋਂਟ ਪੈਕੇਜ -Comment[pl]=Pakiet czcionek -Comment[pt]=Pacote de Tipos de Letra -Comment[pt_BR]=Pacote de Fontes -Comment[ro]=Pachet de fonturi -Comment[ru]=Пакет шрифтов -Comment[rw]=Rukomatanya y'Imyandikire -Comment[se]=Fontapáhkka -Comment[sk]=Balík písiem -Comment[sl]=Paket pisav -Comment[sr]=Пакет фонтова -Comment[sr@Latn]=Paket fontova -Comment[sv]=Teckensnittspaket -Comment[tg]=Бастаи ҳарфҳо -Comment[th]=แพคเกจแบบอักษร -Comment[tr]=Yazıtipi Paketi -Comment[tt]=Yazular Tuplaması -Comment[uk]=Пакунок шрифтів -Comment[uz]=Shrift -Comment[uz@cyrillic]=Шрифт -Comment[vi]=Gói Phông chữ -Comment[wa]=Paket di fontes -Comment[zh_CN]=字体包 -Comment[zh_TW]=字型套件 - -[Property::X-TDE-LocalProtocol] -Type=TQString -Value=tar diff --git a/kcontrol/kfontinst/kio/system-folder.desktop b/kcontrol/kfontinst/kio/system-folder.desktop deleted file mode 100644 index d2500c295..000000000 --- a/kcontrol/kfontinst/kio/system-folder.desktop +++ /dev/null @@ -1,79 +0,0 @@ -[Desktop Entry] -Comment=System Fonts Folder -Comment[af]=Stelsel Skrif tipe Gids -Comment[ar]=مجلد محارف النظام -Comment[be]=Тэчка сістэмных шрыфтоў -Comment[bg]=Директория за системните шрифтове -Comment[bn]=সিস্টেম ফন্ট ফোল্ডার -Comment[br]=Renkell fontoù ar reizhiad -Comment[bs]=Sistemski direktorij sa fontovima -Comment[ca]=Carpeta de lletres del sistema -Comment[cs]=Složka se systémovými písmy -Comment[csb]=Katalog systemòwëch fòntów -Comment[da]=Mappe til systemets skrifttyper -Comment[de]=Ordner für Systemschriften -Comment[el]=Φάκελος γραμματοσειρών συστήματος -Comment[eo]=Sistema tipardosierujo -Comment[es]=Carpeta de tipos de letra del sistema -Comment[et]=Süsteemi fontide kataloog -Comment[eu]=Sistemaren letra-tipoen karpeta -Comment[fa]=پوشۀ قلمهای سیستم -Comment[fi]=Järjestelmän kirjasinkansio -Comment[fr]=Dossier système de polices de caractères -Comment[fy]=Systeemlettertypenmap -Comment[ga]=Fillteán Clónna an Chórais -Comment[gl]=Cartafol das Fontes do Sistema -Comment[he]=תיקיית גופני מערכת -Comment[hi]=तंत्र फ़ॉन्ट्स फ़ोल्डर -Comment[hr]=Mapa sistemskih fontova -Comment[hu]=A rendszer betűtípusainak könyvtára -Comment[id]=Folder Font Sistem -Comment[is]=Kerfisleturmappa -Comment[it]=Cartella dei caratteri di sistema -Comment[ja]=システムフォントフォルダ -Comment[ka]=სისტემური ფონტების საქაღალდე -Comment[kk]=Жүйелік қаріптер қапшығы -Comment[km]=ថត​ពុម្ពអក្សរ​ប្រព័ន្ធ -Comment[lt]=Sistemos šriftų aplankas -Comment[lv]=Sistēmas fontu mape -Comment[mk]=Папка со системски фонтови -Comment[ms]=Folder Fon Sistem -Comment[mt]=Direttorju tal-fonts tas-sistema -Comment[nb]=Mappe for systemskrifttyper -Comment[nds]=Orner för de Systeemschriftoorden -Comment[ne]=फन्ट फोल्डर प्रणाली -Comment[nl]=Systeemlettertypenmap -Comment[nn]=Systemskriftmappe -Comment[pa]=ਸਿਸਟਮ ਫੋਂਟ ਫੋਲਡਰ -Comment[pl]=Katalog czcionek systemowych -Comment[pt]=Pasta de Tipos de Letra do Sistema -Comment[pt_BR]=Pasta de Fontes do Sistema -Comment[ro]=Folder fonturi de sistem -Comment[ru]=Папка системных шрифтов -Comment[rw]=Ububiko bw'Imyandikire Sisitemu -Comment[se]=Vuogádatfontamáhppa -Comment[sk]=Priečinok systémových písiem -Comment[sl]=Mapa za sistemske pisave -Comment[sr]=Фасцикла за системске фонтове -Comment[sr@Latn]=Fascikla za sistemske fontove -Comment[sv]=Systemteckensnittskatalog -Comment[ta]=அமைப்பு எழுத்துருக்கள் அடைவு -Comment[tg]=Системаи феҳристи ҳарфҳо -Comment[th]=โฟลเดอร์แฟ้มแบบอักษรของระบบ -Comment[tr]=Sistem Yazı Tipi Klasörü -Comment[tt]=Sistem Yazular Törgäge -Comment[uk]=Тека системних шрифтів -Comment[uz]=Tizim shriftlarining jildi -Comment[uz@cyrillic]=Тизим шрифтларининг жилди -Comment[vi]=Thư mục Phông chữ Hệ thống -Comment[wa]=Ridant di fontes do sistinme -Comment[zh_CN]=系统字体文件夹 -Comment[zh_TW]=系統字型資料夾 -Icon=folder_red -Type=MimeType -MimeType=fonts/system-folder -Patterns= - -X-TDE-AutoEmbed=true -X-TDE-IsAlso=inode/directory - diff --git a/kcontrol/kfontinst/tdeio/CMakeLists.txt b/kcontrol/kfontinst/tdeio/CMakeLists.txt new file mode 100644 index 000000000..dff38b281 --- /dev/null +++ b/kcontrol/kfontinst/tdeio/CMakeLists.txt @@ -0,0 +1,39 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/kcontrol/kfontinst/lib + ${CMAKE_SOURCE_DIR}/kcontrol/fonts + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES fonts.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES fonts.desktop DESTINATION ${DATA_INSTALL_DIR}/konqsidebartng/virtual_folders/services ) +install( FILES folder.desktop system-folder.desktop package.desktop DESTINATION ${MIME_INSTALL_DIR}/fonts ) + + +##### tdeio_fonts (module) ####################### + +tde_add_kpart( tdeio_fonts AUTOMOC + SOURCES KioFonts.cpp + LINK kxftconfig-static kfontinst-shared tdesu-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kcontrol/kfontinst/tdeio/KioFonts.cpp b/kcontrol/kfontinst/tdeio/KioFonts.cpp new file mode 100644 index 000000000..a443ef546 --- /dev/null +++ b/kcontrol/kfontinst/tdeio/KioFonts.cpp @@ -0,0 +1,2534 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Class Name : KFI::CKioFonts +// Author : Craig Drummond +// Project : K Font Installer +// Creation Date : 05/03/2003 +// Version : $Revision$ $Date$ +// +//////////////////////////////////////////////////////////////////////////////// +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +// +//////////////////////////////////////////////////////////////////////////////// +// (C) Craig Drummond, 2003, 2004 +//////////////////////////////////////////////////////////////////////////////// + +/*************************************************************************** + + NOTE: Large sections of this code are copied from tdeio_file + -- can't just inherit from tdeio_file as tdeio_file uses "error(...); + return;" So there is no way to know if an error occured! + + ***************************************************************************/ + +#include "KioFonts.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "KfiConstants.h" +#include "FcEngine.h" +#include "Misc.h" +#include +#include +#include + +//#define KFI_FORCE_DEBUG_TO_STDERR + +#ifdef KFI_FORCE_DEBUG_TO_STDERR + +#include +TQTextOStream ostr(stderr); +#define KFI_DBUG ostr << "[" << (int)(getpid()) << "] " + +#else + +#define KFI_DBUG kdDebug() << "[" << (int)(getpid()) << "] " + +#endif + +#define MAX_IPC_SIZE (1024*32) +#define TIMEOUT 2 // Time between last mod and writing files... +#define MAX_NEW_FONTS 50 // #fonts that can be installed before automatically configuring (related to above) +#define FC_CACHE_CMD "fc-cache" + +static const char * constMultipleExtension=".fonts.tar.gz"; // Fonts that have multiple files are returned as a .tar.gz! +static const int constMaxLastDestTime=5; +static const int constMaxFcCheckTime=10; + +extern "C" +{ + KDE_EXPORT int kdemain(int argc, char **argv); +} + +int kdemain(int argc, char **argv) +{ + if (argc != 4) + { + fprintf(stderr, "Usage: tdeio_" KFI_KIO_FONTS_PROTOCOL " protocol domain-socket1 domain-socket2\n"); + exit(-1); + } + + KLocale::setMainCatalogue(KFI_CATALOGUE); + + TDEInstance instance("tdeio_" KFI_KIO_FONTS_PROTOCOL); + KFI::CKioFonts slave(argv[2], argv[3]); + + slave.dispatchLoop(); + + return 0; +} + +namespace KFI +{ + +inline bool isSysFolder(const TQString §) +{ + return i18n(KFI_KIO_FONTS_SYS)==sect || KFI_KIO_FONTS_SYS==sect; +} + +inline bool isUserFolder(const TQString §) +{ + return i18n(KFI_KIO_FONTS_USER)==sect || KFI_KIO_FONTS_USER==sect; +} + +static TQString removeMultipleExtension(const KURL &url) +{ + TQString fname(url.fileName()); + int pos; + + if(-1!=(pos=fname.findRev(TQString::fromLatin1(constMultipleExtension)))) + fname=fname.left(pos); + + return fname; +} + +static TQString modifyName(const TQString &fname) +{ + static const char constSymbols[]={ '-', ' ', ':', 0 }; + + TQString rv(fname); + int dotPos=rv.findRev('.'); + + if(-1!=dotPos) + { + unsigned int rvLen=rv.length(); + + for(unsigned int i=dotPos+1; i-1) + size+=s; + } + + return size; +} + +static int getSize(TQValueList &patterns) +{ + TQValueList::Iterator it, + end=patterns.end(); + int size=0; + + for(it=patterns.begin(); it!=end; ++it) + size+=getFontSize(CFcEngine::getFcString(*it, FC_FILE)); + + return size; +} + +static void addAtom(TDEIO::UDSEntry &entry, unsigned int ID, long l, const TQString &s=TQString::null) +{ + TDEIO::UDSAtom atom; + atom.m_uds = ID; + atom.m_long = l; + atom.m_str = s; + entry.append(atom); +} + +static bool createFolderUDSEntry(TDEIO::UDSEntry &entry, const TQString &name, const TQString &path, bool sys) +{ + KFI_DBUG << "createFolderUDSEntry " << name << ' ' << path << ' ' << sys << ' ' << endl; + + KDE_struct_stat buff; + TQCString cPath(TQFile::encodeName(path)); + + entry.clear(); + + if(-1!=KDE_lstat(cPath, &buff)) + { + addAtom(entry, TDEIO::UDS_NAME, 0, name); + + if (S_ISLNK(buff.st_mode)) + { + KFI_DBUG << path << " is a link" << endl; + + char buffer2[1000]; + int n=readlink(cPath, buffer2, 1000); + if(n!= -1) + buffer2[n]='\0'; + + addAtom(entry, TDEIO::UDS_LINK_DEST, 0, TQString::fromLocal8Bit(buffer2)); + + if(-1==KDE_stat(cPath, &buff)) + { + // It is a link pointing to nowhere + addAtom(entry, TDEIO::UDS_FILE_TYPE, S_IFMT - 1); + addAtom(entry, TDEIO::UDS_ACCESS, S_IRWXU | S_IRWXG | S_IRWXO); + addAtom(entry, TDEIO::UDS_SIZE, 0); + goto notype; + } + } + + addAtom(entry, TDEIO::UDS_FILE_TYPE, buff.st_mode&S_IFMT); + addAtom(entry, TDEIO::UDS_ACCESS, buff.st_mode&07777); + addAtom(entry, TDEIO::UDS_SIZE, buff.st_size); + + notype: + addAtom(entry, TDEIO::UDS_MODIFICATION_TIME, buff.st_mtime); + + struct passwd *user = getpwuid(buff.st_uid); + addAtom(entry, TDEIO::UDS_USER, 0, user ? user->pw_name : TQString::number(buff.st_uid).latin1()); + + struct group *grp = getgrgid(buff.st_gid); + addAtom(entry, TDEIO::UDS_GROUP, 0, grp ? grp->gr_name : TQString::number(buff.st_gid).latin1()); + + addAtom(entry, TDEIO::UDS_ACCESS_TIME, buff.st_atime); + addAtom(entry, TDEIO::UDS_MIME_TYPE, 0, sys + ? KFI_KIO_FONTS_PROTOCOL"/system-folder" + : KFI_KIO_FONTS_PROTOCOL"/folder"); + addAtom(entry, TDEIO::UDS_GUESSED_MIME_TYPE, 0, "application/octet-stream"); + TQString url(KFI_KIO_FONTS_PROTOCOL+TQString::fromLatin1(":/")); + return true; + } + else if (sys && !Misc::root()) // Default system fonts folder does not actually exist yet! + { + KFI_DBUG << "Default system folder (" << path << ") does not yet exist, so create dummy entry" << endl; + addAtom(entry, TDEIO::UDS_NAME, 0, name); + addAtom(entry, TDEIO::UDS_FILE_TYPE, S_IFDIR); + addAtom(entry, TDEIO::UDS_ACCESS, 0744); + addAtom(entry, TDEIO::UDS_USER, 0, "root"); + addAtom(entry, TDEIO::UDS_GROUP, 0, "root"); + addAtom(entry, TDEIO::UDS_MIME_TYPE, 0, KFI_KIO_FONTS_PROTOCOL"/system-folder"); + addAtom(entry, TDEIO::UDS_GUESSED_MIME_TYPE, 0, "application/octet-stream"); + + return true; + } + + + return false; +} + +static bool createFontUDSEntry(TDEIO::UDSEntry &entry, const TQString &name, TQValueList &patterns, bool sys) +{ + KFI_DBUG << "createFontUDSEntry " << name << ' ' << patterns.count() << endl; + + bool multiple=true; + + if(1==patterns.count()) // Only one font file, but are there any .pfm or .afm files? + { + KURL::List urls; + + Misc::getAssociatedUrls(KURL(CFcEngine::getFcString(patterns.first(), FC_FILE)), urls); + + if(0==urls.count()) + multiple=false; + } + + // + // In case of mixed bitmap/scalable - prefer scalable + TQValueList sortedPatterns; + TQValueList::Iterator it, + end(patterns.end()); + FcBool b=FcFalse; + + for(it=patterns.begin(); it!=end; ++it) + if(FcResultMatch==FcPatternGetBool(*it, FC_SCALABLE, 0, &b) && b) + sortedPatterns.prepend(*it); + else + sortedPatterns.append(*it); + + end=sortedPatterns.end(); + entry.clear(); + addAtom(entry, TDEIO::UDS_SIZE, getSize(patterns)); + + for(it=sortedPatterns.begin(); it!=end; ++it) + { + TQString path(CFcEngine::getFcString(*it, FC_FILE)); + TQCString cPath(TQFile::encodeName(path)); + KDE_struct_stat buff; + + if(-1!=KDE_lstat(cPath, &buff)) + { + addAtom(entry, TDEIO::UDS_NAME, 0, name); + + if (S_ISLNK(buff.st_mode)) + { + KFI_DBUG << path << " is a link" << endl; + + char buffer2[1000]; + int n=readlink(cPath, buffer2, 1000); + + if(n!= -1) + buffer2[n]='\0'; + + addAtom(entry, TDEIO::UDS_LINK_DEST, 0, TQString::fromLocal8Bit(buffer2)); + + if(-1==KDE_stat(cPath, &buff)) + { + // It is a link pointing to nowhere + addAtom(entry, TDEIO::UDS_FILE_TYPE, S_IFMT - 1); + addAtom(entry, TDEIO::UDS_ACCESS, S_IRWXU | S_IRWXG | S_IRWXO); + goto notype; + } + } + + addAtom(entry, TDEIO::UDS_FILE_TYPE, buff.st_mode&S_IFMT); + addAtom(entry, TDEIO::UDS_ACCESS, buff.st_mode&07777); + + notype: + addAtom(entry, TDEIO::UDS_MODIFICATION_TIME, buff.st_mtime); + + struct passwd *user = getpwuid(buff.st_uid); + addAtom(entry, TDEIO::UDS_USER, 0, user ? user->pw_name : TQString::number(buff.st_uid).latin1()); + + struct group *grp = getgrgid(buff.st_gid); + addAtom(entry, TDEIO::UDS_GROUP, 0, grp ? grp->gr_name : TQString::number(buff.st_gid).latin1()); + + addAtom(entry, TDEIO::UDS_ACCESS_TIME, buff.st_atime); + addAtom(entry, TDEIO::UDS_MIME_TYPE, 0, KMimeType::findByPath(path, 0, true)->name()); + addAtom(entry, TDEIO::UDS_GUESSED_MIME_TYPE, 0, "application/octet-stream"); + + TQString url(KFI_KIO_FONTS_PROTOCOL+TQString::fromLatin1(":/")); + + if(!Misc::root()) + { + url+=sys ? i18n(KFI_KIO_FONTS_SYS) : i18n(KFI_KIO_FONTS_USER); + url+=TQString::fromLatin1("/"); + } + if(multiple) + url+=name+TQString::fromLatin1(constMultipleExtension); + else + url+=Misc::getFile(path); + addAtom(entry, TDEIO::UDS_URL, 0, url); + return true; // This file was OK, so use its values... + } + } + return false; +} + +enum EUrlStatus +{ + BAD_URL, + URL_OK, + REDIRECT_URL +}; + +static KURL getRedirect(const KURL &u) +{ + // Go from fonts:/System to fonts:/ + + KURL redirect(u); + TQString path(u.path()), + sect(CKioFonts::getSect(path)); + + path.remove(sect); + path.replace("//", "/"); + redirect.setPath(path); + + KFI_DBUG << "Redirect from " << u.path() << " to " << redirect.path() << endl; + return redirect; +} + +static bool nonRootSys(const KURL &u) +{ + return !Misc::root() && isSysFolder(CKioFonts::getSect(u.path())); +} + +static TQString getFontFolder(const TQString &defaultDir, const TQString &root, TQStringList &dirs) +{ + if(dirs.contains(defaultDir)) + return defaultDir; + else + { + TQStringList::Iterator it, + end=dirs.end(); + bool found=false; + + for(it=dirs.begin(); it!=end && !found; ++it) + if(0==(*it).find(root)) + return *it; + } + + return TQString::null; +} + +static bool writeAll(int fd, const char *buf, size_t len) +{ + while(len>0) + { + ssize_t written=write(fd, buf, len); + if (written<0 && EINTR!=errno) + return false; + buf+=written; + len-=written; + } + return true; +} + +static bool checkExt(const char *fname, const char *ext) +{ + unsigned int len=strlen(fname); + + return len>4 ? (fname[len-4]=='.' && tolower(fname[len-3])==ext[0] && tolower(fname[len-2])==ext[1] && + tolower(fname[len-1])==ext[2]) + : false; +} + +static bool isAAfm(const TQString &fname) +{ + if(checkExt(TQFile::encodeName(fname), "afm")) // CPD? Is this a necessary check? + { + TQFile file(fname); + + if(file.open(IO_ReadOnly)) + { + TQTextStream stream(&file); + TQString line; + + for(int lc=0; lc<30 && !stream.atEnd(); ++lc) + { + line=stream.readLine(); + + if(line.contains("StartFontMetrics")) + { + file.close(); + return true; + } + } + + file.close(); + } + } + + return false; +} + +static bool isAPfm(const TQString &fname) +{ + bool ok=false; + + // I know extension checking is bad, but Ghostscript's pf2afm requires the pfm file to + // have the .pfm extension... + if(checkExt(TQFile::encodeName(fname), "pfm")) + { + // + // OK, the extension matches, so perform a little contents checking... + FILE *f=fopen(TQFile::encodeName(fname).data(), "r"); + + if(f) + { + static const unsigned long constCopyrightLen = 60; + static const unsigned long constTypeToExt = 49; + static const unsigned long constExtToFname = 20; + static const unsigned long constExtLen = 30; + static const unsigned long constFontnameMin = 75; + static const unsigned long constFontnameMax = 512; + + unsigned short version=0, + type=0, + extlen=0; + unsigned long length=0, + fontname=0, + fLength=0; + + fseek(f, 0, SEEK_END); + fLength=ftell(f); + fseek(f, 0, SEEK_SET); + + if(2==fread(&version, 1, 2, f) && // Read version + 4==fread(&length, 1, 4, f) && // length... + length==fLength && + 0==fseek(f, constCopyrightLen, SEEK_CUR) && // Skip copyright notice... + 2==fread(&type, 1, 2, f) && + 0==fseek(f, constTypeToExt, SEEK_CUR) && + 2==fread(&extlen, 1, 2, f) && + extlen==constExtLen && + 0==fseek(f, constExtToFname, SEEK_CUR) && + 4==fread(&fontname, 1, 4, f) && + fontname>constFontnameMin && fontname paths; + + bool operator==(const FontList &f) const { return f.name==name; } +}; + +// +// This function returns a set of maping of from -> to for copy/move operations +static bool getFontList(const TQStringList &files, TQMap &map) +{ + // + // First of all create a list of font files, and their paths + TQStringList::ConstIterator it=files.begin(), + end=files.end(); + TQValueList list; + + for(;it!=end; ++it) + { + TQString name(Misc::getFile(*it)), + path(Misc::getDir(*it)); + TQValueList::Iterator entry=list.find(FontList(name)); + + if(entry!=list.end()) + { + if(!(*entry).paths.contains(path)) + (*entry).paths.append(path); + } + else + list.append(FontList(name, path)); + } + + TQValueList::Iterator fIt(list.begin()), + fEnd(list.end()); + + for(; fIt!=fEnd; ++fIt) + { + TQValueList::Iterator pBegin((*fIt).paths.begin()), + pIt(++pBegin), + pEnd((*fIt).paths.end()); + --pBegin; + + if((*fIt).paths.count()>1) + { + // There's more than 1 file with the same name, but in a different locations + // therefore, take the unique part of the path, and replace / with _ + // e.g. + // /usr/X11R6/lib/X11/fonts/75dpi/times.pcf.gz + // /usr/X11R6/lib/X11/fonts/100dpi/times.pcf.gz + // + // Will produce: + // 75dpi_times.pcf.gz + // 100dpi_times.pcf.gz + unsigned int beginLen((*pBegin).orig.length()); + + for(; pIt!=pEnd; ++pIt) + { + unsigned int len=TQMIN((*pIt).orig.length(), beginLen); + + for(unsigned int i=0; i0) + for(int path=0; path >::Iterator it=itsFolders[folder].fontMap.begin(), + end=itsFolders[folder].fontMap.end(); + + for ( ; it != end; ++it) + { + entry.clear(); + if(createFontUDSEntry(entry, it.key(), it.data(), FOLDER_SYS==folder)) + listEntry(entry, false); + } + } + } + else + { + size=2; + totalSize(size); + createFolderUDSEntry(entry, i18n(KFI_KIO_FONTS_USER), itsFolders[FOLDER_USER].location, false); + listEntry(entry, false); + createFolderUDSEntry(entry, i18n(KFI_KIO_FONTS_SYS), itsFolders[FOLDER_SYS].location, true); + listEntry(entry, false); + } + + listEntry(size ? entry : TDEIO::UDSEntry(), true); + finished(); + } + + KFI_DBUG << "listDir - finished!" << endl; +} + +void CKioFonts::stat(const KURL &url) +{ + KFI_DBUG << "stat " << url.prettyURL() << endl; + + if(updateFontList() && checkUrl(url, true)) + { + TQString path(url.path(-1)); + + if(path.isEmpty()) + { + error(TDEIO::ERR_COULD_NOT_STAT, url.prettyURL()); + return; + } + + TQStringList pathList(TQStringList::split('/', path, false)); + TDEIO::UDSEntry entry; + bool err=false; + + switch(pathList.count()) + { + case 0: + err=!createFolderUDSEntry(entry, i18n("Fonts"), itsFolders[itsRoot ? FOLDER_SYS : FOLDER_USER].location, false); + break; + case 1: + if(itsRoot) + err=!createStatEntry(entry, url, FOLDER_SYS); + else + if(isUserFolder(pathList[0])) + err=!createFolderUDSEntry(entry, i18n(KFI_KIO_FONTS_USER), itsFolders[FOLDER_USER].location, false); + else if(isSysFolder(pathList[0])) + err=!createFolderUDSEntry(entry, i18n(KFI_KIO_FONTS_SYS), itsFolders[FOLDER_USER].location, true); + else + { + error(TDEIO::ERR_SLAVE_DEFINED, + i18n("Please specify \"%1\" or \"%2\".").arg(i18n(KFI_KIO_FONTS_USER)).arg(i18n(KFI_KIO_FONTS_SYS))); + return; + } + break; + default: + err=!createStatEntry(entry, url, getFolder(url)); + } + + if(err) + { + error(TDEIO::ERR_DOES_NOT_EXIST, url.prettyURL()); + return; + } + + statEntry(entry); + finished(); + } +} + +bool CKioFonts::createStatEntry(TDEIO::UDSEntry &entry, const KURL &url, EFolder folder) +{ + KFI_DBUG << "createStatEntry " << url.path() << endl; + + TQMap >::Iterator it=getMap(url); + + if(it!=itsFolders[folder].fontMap.end()) + return createFontUDSEntry(entry, it.key(), it.data(), FOLDER_SYS==folder); + return false; +} + +void CKioFonts::get(const KURL &url) +{ + KFI_DBUG << "get " << url.path() << " query:" << url.query() << endl; + + bool thumb="1"==metaData("thumbnail"); + TQStringList srcFiles; + + if(updateFontList() && checkUrl(url) && getSourceFiles(url, srcFiles)) // Any error will be logged in getSourceFiles + { + // + // The thumbnail job always donwloads non-local files to /tmp/... and passes this file name to the thumbnail + // creator. However, in the case of fonts which are split among many files, this wont work. Therefore, when the + // thumbnail code asks for the font to donwload, just return the URL used. This way the font-thumbnail creator can + // read this and just ask Xft/fontconfig for the font data. + if(thumb) + { + TQByteArray array; + TQTextOStream stream(array); + + emit mimeType("text/plain"); + + KFI_DBUG << "hasMetaData(\"thumbnail\"), so return: " << url.prettyURL() << endl; + + stream << url.prettyURL(); + totalSize(array.size()); + data(array); + processedSize(array.size()); + data(TQByteArray()); + processedSize(array.size()); + finished(); + return; + } + + TQString realPath, + useMime; + KDE_struct_stat buff; + bool multiple=false; + + if(1==srcFiles.count()) + realPath=srcFiles.first(); + else // Font is made up of multiple files - so create .tar.gz of them all! + { + KTempFile tmpFile; + KTar tar(tmpFile.name(), "application/x-gzip"); + + tmpFile.setAutoDelete(false); + realPath=tmpFile.name(); + + if(tar.open(IO_WriteOnly)) + { + TQMap map; + + getFontList(srcFiles, map); + + TQMap::Iterator fIt(map.begin()), + fEnd(map.end()); + + // + // Iterate through created list, and add to tar archive + for(; fIt!=fEnd; ++fIt) + tar.addLocalFile(fIt.key(), fIt.data()); + + multiple=true; + tar.close(); + } + } + + TQCString realPathC(TQFile::encodeName(realPath)); + KFI_DBUG << "real: " << realPathC << endl; + + if (-2==KDE_stat(realPathC.data(), &buff)) + error(EACCES==errno ? TDEIO::ERR_ACCESS_DENIED : TDEIO::ERR_DOES_NOT_EXIST, url.prettyURL()); + else if (S_ISDIR(buff.st_mode)) + error(TDEIO::ERR_IS_DIRECTORY, url.prettyURL()); + else if (!S_ISREG(buff.st_mode)) + error(TDEIO::ERR_CANNOT_OPEN_FOR_READING, url.prettyURL()); + else + { + int fd = KDE_open(realPathC.data(), O_RDONLY); + + if (fd < 0) + error(TDEIO::ERR_CANNOT_OPEN_FOR_READING, url.prettyURL()); + else + { + // Determine the mimetype of the file to be retrieved, and emit it. + // This is mandatory in all slaves (for KRun/BrowserRun to work). + emit mimeType(useMime.isEmpty() ? KMimeType::findByPath(realPathC, buff.st_mode, true)->name() : useMime); + + totalSize(buff.st_size); + + TDEIO::filesize_t processed=0; + char buffer[MAX_IPC_SIZE]; + TQByteArray array; + + while(1) + { + int n=::read(fd, buffer, MAX_IPC_SIZE); + if (-1==n) + { + if (errno == EINTR) + continue; + error(TDEIO::ERR_COULD_NOT_READ, url.prettyURL()); + close(fd); + if(multiple) + ::unlink(realPathC); + return; + } + if (0==n) + break; // Finished + + array.setRawData(buffer, n); + data(array); + array.resetRawData(buffer, n); + + processed+=n; + processedSize(processed); + } + + data(TQByteArray()); + close(fd); + + processedSize(buff.st_size); + finished(); + } + } + if(multiple) + ::unlink(realPathC); + } +} + +void CKioFonts::put(const KURL &u, int mode, bool overwrite, bool resume) +{ + KFI_DBUG << "put " << u.path() << endl; + + if(isHidden(u)) + { + error(TDEIO::ERR_WRITE_ACCESS_DENIED, u.prettyURL()); + return; + } + + // updateFontList(); // CPD: dont update font list upon a put - is too slow. Just stat on filename! + + //checkUrl(u) // CPD: Don't need to check URL, as the call to "confirmUrl()" below will sort out any probs! + + KURL url(u); + bool changed=confirmUrl(url), + nrs=nonRootSys(url); + EFolder destFolder(getFolder(url)); + TQString dest=itsFolders[destFolder].location+modifyName(url.fileName()), + passwd; + TQCString destC=TQFile::encodeName(dest); + KDE_struct_stat buffDest; + bool destExists=(KDE_lstat(destC.data(), &buffDest)!= -1); + + if (destExists && !overwrite && !resume) + { + error(TDEIO::ERR_FILE_ALREADY_EXIST, url.prettyURL()); + return; + } + + if(nrs) // Need to check can get root passwd before start download... + { + passwd=getRootPasswd(); + + if(passwd.isEmpty()) + { + error(TDEIO::ERR_SLAVE_DEFINED, i18n("Could not access \"%1\" folder.").arg(i18n(KFI_KIO_FONTS_SYS))); + return; + } + } + + // + // As we don't get passed a mime-type the following needs to happen: + // + // 1. Download to a temporary file + // 2. Check with FreeType that the file is a font, or that it is + // an AFM or PFM file + // 3. If its OK, then get the fonts "name" from + KTempFile tmpFile; + TQCString tmpFileC(TQFile::encodeName(tmpFile.name())); + + tmpFile.setAutoDelete(true); + + if(putReal(tmpFile.name(), tmpFileC, destExists, mode, resume)) + { + if(!checkFile(tmpFile.name())) // error logged in checkFile + return; + + if(nrs) // Ask root to copy the font... + { + TQCString cmd; + + if(!Misc::dExists(itsFolders[destFolder].location)) + { + cmd+="mkdir "; + cmd+=TQFile::encodeName(TDEProcess::quote(itsFolders[destFolder].location)); + cmd+=" && chmod 0755 "; + cmd+=TQFile::encodeName(TDEProcess::quote(itsFolders[destFolder].location)); + cmd+=" && "; + } + cmd+="cp -f "; + cmd+=TQFile::encodeName(TDEProcess::quote(tmpFileC)); + cmd+=" "; + cmd+=TQFile::encodeName(TDEProcess::quote(destC)); + cmd+=" && chmod 0644 "; + cmd+=destC; + + if(!itsCanStorePasswd) + createRootRefreshCmd(cmd); + + // Get root to move this to fonts folder... + if(doRootCmd(cmd, passwd)) + { + modified(FOLDER_SYS); + createAfm(dest, true, passwd); + } + else + { + error(TDEIO::ERR_SLAVE_DEFINED, i18n("Could not access \"%1\" folder.").arg(i18n(KFI_KIO_FONTS_SYS))); + return; + } + } + else // Move it to our font folder... + { + tmpFile.setAutoDelete(false); + if(Misc::doCmd("mv", "-f", tmpFileC, destC)) + { + ::chmod(destC.data(), Misc::FILE_PERMS); + modified(FOLDER_USER); + createAfm(dest); + } + else + { + error(TDEIO::ERR_SLAVE_DEFINED, i18n("Could not access \"%1\" folder.").arg(i18n(KFI_KIO_FONTS_USER))); + return; + } + } + + finished(); + + if(changed) + itsLastDestTime=time(NULL); + } +} + +bool CKioFonts::putReal(const TQString &destOrig, const TQCString &destOrigC, bool origExists, + int mode, bool resume) +{ + bool markPartial=config()->readBoolEntry("MarkPartial", true); + TQString dest; + + if (markPartial) + { + TQString destPart(destOrig+TQString::fromLatin1(".part")); + TQCString destPartC(TQFile::encodeName(destPart)); + + dest = destPart; + + KDE_struct_stat buffPart; + bool partExists=(-1!=KDE_stat(destPartC.data(), &buffPart)); + + if (partExists && !resume && buffPart.st_size>0) + { + // Maybe we can use this partial file for resuming + // Tell about the size we have, and the app will tell us + // if it's ok to resume or not. + resume=canResume(buffPart.st_size); + + if (!resume) + if (!::remove(destPartC.data())) + partExists = false; + else + { + error(TDEIO::ERR_CANNOT_DELETE_PARTIAL, destPart); + return false; + } + } + } + else + { + dest = destOrig; + if (origExists && !resume) + ::remove(destOrigC.data()); + // Catch errors when we try to open the file. + } + + TQCString destC(TQFile::encodeName(dest)); + + int fd; + + if (resume) + { + fd = KDE_open(destC.data(), O_RDWR); // append if resuming + KDE_lseek(fd, 0, SEEK_END); // Seek to end + } + else + { + // WABA: Make sure that we keep writing permissions ourselves, + // otherwise we can be in for a surprise on NFS. + fd = KDE_open(destC.data(), O_CREAT | O_TRUNC | O_WRONLY, -1==mode ? 0666 : mode | S_IWUSR | S_IRUSR); + } + + if (fd < 0) + { + error(EACCES==errno ? TDEIO::ERR_WRITE_ACCESS_DENIED : TDEIO::ERR_CANNOT_OPEN_FOR_WRITING, dest); + return false; + } + + int result; + // Loop until we got 0 (end of data) + do + { + TQByteArray buffer; + + dataReq(); // Request for data + result = readData(buffer); + if(result > 0 && !writeAll(fd, buffer.data(), buffer.size())) + { + if(ENOSPC==errno) // disk full + { + error(TDEIO::ERR_DISK_FULL, destOrig); + result = -2; // means: remove dest file + } + else + { + error(TDEIO::ERR_COULD_NOT_WRITE, destOrig); + result = -1; + } + } + } + while(result>0); + + if (result<0) + { + close(fd); + if (-1==result) + ::remove(destC.data()); + else if (markPartial) + { + KDE_struct_stat buff; + + if ((-1==KDE_stat(destC.data(), &buff)) || + (buff.st_sizereadNumEntry("MinimumKeepSize", DEFAULT_MINIMUM_KEEP_SIZE))) + ::remove(destC.data()); + } + ::exit(255); + } + + if (-1==fd) // we got nothing to write out, so we never opened the file + { + finished(); + return false; + } + + if (close(fd)) + { + error(TDEIO::ERR_COULD_NOT_WRITE, destOrig); + return false; + } + + // after full download rename the file back to original name + if (markPartial && ::rename(destC.data(), destOrigC.data())) + { + error(TDEIO::ERR_CANNOT_RENAME_PARTIAL, destOrig); + return false; + } + + return true; +} + +void CKioFonts::copy(const KURL &src, const KURL &d, int mode, bool overwrite) +{ + // + // Support: + // Copying to fonts:/ + // Copying from fonts:/ and file:/ + // + KFI_DBUG << "copy " << src.prettyURL() << " - " << d.prettyURL() << endl; + + if(isHidden(d)) + { + error(TDEIO::ERR_WRITE_ACCESS_DENIED, d.prettyURL()); + return; + } + + bool fromFonts=KFI_KIO_FONTS_PROTOCOL==src.protocol(); + + if((!fromFonts || updateFontList()) // CPD: dont update font list upon a copy from file - is too slow. Just stat on filename! + && checkUrl(src) && checkAllowed(src)) + { + //checkUrl(u) // CPD as per comment in ::put() + + TQStringList srcFiles; + + if(getSourceFiles(src, srcFiles)) // Any error will be logged in getSourceFiles + { + KURL dest(d); + bool changed=confirmUrl(dest); + EFolder destFolder(getFolder(dest)); + TQMap map; + + if(!fromFonts) + map[src.path()]=src.fileName(); + + // As above, if copying from file, then only stat on dest filename, but if from fonts to fonts need to + // get the list of possible source files, etc. + if(fromFonts ? confirmMultiple(src, srcFiles, FOLDER_SYS==destFolder ? FOLDER_USER : FOLDER_SYS, OP_COPY) && + getFontList(srcFiles, map) && + checkDestFiles(src, map, dest, destFolder, overwrite) + : checkDestFile(src, dest, destFolder, overwrite) ) + { + if(nonRootSys(dest)) + { + TQCString cmd; + int size=0; + + if(!Misc::dExists(itsFolders[destFolder].location)) + { + cmd+="mkdir "; + cmd+=TQFile::encodeName(TDEProcess::quote(itsFolders[destFolder].location)); + cmd+=" && chmod 0755 "; + cmd+=TQFile::encodeName(TDEProcess::quote(itsFolders[destFolder].location)); + cmd+=" && "; + } + + TQMap::Iterator fIt(map.begin()), + fEnd(map.end()); + + for(; fIt!=fEnd; ++fIt) + { + cmd+="cp -f "; + cmd+=TQFile::encodeName(TDEProcess::quote(fIt.key())); + cmd+=" "; + cmd+=TQFile::encodeName(TDEProcess::quote(itsFolders[destFolder].location+modifyName(fIt.data()))); + int s=getSize(TQFile::encodeName(fIt.key())); + if(s>0) + size+=s; + if(++fIt!=fEnd) + cmd+=" && "; + --fIt; + } + + if(!itsCanStorePasswd) + createRootRefreshCmd(cmd); + + totalSize(size); + + TQString passwd=getRootPasswd(); + + if(doRootCmd(cmd, passwd)) + { + modified(destFolder); + processedSize(size); + if(src.isLocalFile() && 1==srcFiles.count()) + createAfm(itsFolders[destFolder].location+modifyName(map.begin().data()), true, passwd); + } + else + { + error(TDEIO::ERR_SLAVE_DEFINED, i18n("Could not access \"%1\" folder.").arg(i18n(KFI_KIO_FONTS_SYS))); + return; + } + } + else + { + TQMap::Iterator fIt(map.begin()), + fEnd(map.end()); + + for(; fIt!=fEnd; ++fIt) + { + TQCString realSrc(TQFile::encodeName(fIt.key())), + realDest(TQFile::encodeName(itsFolders[destFolder].location+modifyName(fIt.data()))); + KDE_struct_stat buffSrc; + + if(-1==KDE_stat(realSrc.data(), &buffSrc)) + { + error(EACCES==errno ? TDEIO::ERR_ACCESS_DENIED : TDEIO::ERR_DOES_NOT_EXIST, src.prettyURL()); + return; + } + + int srcFd=KDE_open(realSrc.data(), O_RDONLY); + + if (srcFd<0) + { + error(TDEIO::ERR_CANNOT_OPEN_FOR_READING, src.prettyURL()); + return; + } + + if(!Misc::dExists(itsFolders[destFolder].location)) + Misc::createDir(itsFolders[destFolder].location); + + // WABA: Make sure that we keep writing permissions ourselves, + // otherwise we can be in for a surprise on NFS. + int destFd=KDE_open(realDest.data(), O_CREAT | O_TRUNC | O_WRONLY, -1==mode ? 0666 : mode | S_IWUSR); + + if (destFd<0) + { + error(EACCES==errno ? TDEIO::ERR_WRITE_ACCESS_DENIED : TDEIO::ERR_CANNOT_OPEN_FOR_WRITING, dest.prettyURL()); + close(srcFd); + return; + } + + totalSize(buffSrc.st_size); + + TDEIO::filesize_t processed = 0; + char buffer[MAX_IPC_SIZE]; + TQByteArray array; + + while(1) + { + int n=::read(srcFd, buffer, MAX_IPC_SIZE); + + if(-1==n) + { + if (errno == EINTR) + continue; + error(TDEIO::ERR_COULD_NOT_READ, src.prettyURL()); + close(srcFd); + close(destFd); + return; + } + if(0==n) + break; // Finished + + if(!writeAll(destFd, buffer, n)) + { + close(srcFd); + close(destFd); + if (ENOSPC==errno) // disk full + { + error(TDEIO::ERR_DISK_FULL, dest.prettyURL()); + remove(realDest.data()); + } + else + error(TDEIO::ERR_COULD_NOT_WRITE, dest.prettyURL()); + return; + } + + processed += n; + processedSize(processed); + } + + close(srcFd); + + if(close(destFd)) + { + error(TDEIO::ERR_COULD_NOT_WRITE, dest.prettyURL()); + return; + } + + ::chmod(realDest.data(), Misc::FILE_PERMS); + + // copy access and modification time + struct utimbuf ut; + + ut.actime = buffSrc.st_atime; + ut.modtime = buffSrc.st_mtime; + ::utime(realDest.data(), &ut); + + processedSize(buffSrc.st_size); + modified(destFolder); + } + + if(src.isLocalFile() && 1==srcFiles.count()) + createAfm(itsFolders[destFolder].location+modifyName(map.begin().data())); + } + + finished(); + + if(changed) + itsLastDestTime=time(NULL); + } + } + } +} + +void CKioFonts::rename(const KURL &src, const KURL &d, bool overwrite) +{ + KFI_DBUG << "rename " << src.prettyURL() << " - " << d.prettyURL() << ", " << overwrite << endl; + + if(src.directory()==d.directory()) + error(TDEIO::ERR_SLAVE_DEFINED, i18n("Sorry, fonts cannot be renamed.")); + else if(itsRoot) // Should never happen... + error(TDEIO::ERR_UNSUPPORTED_ACTION, unsupportedActionErrorString(mProtocol, TDEIO::CMD_RENAME)); + else + { + // + // Can't rename from/to file:/ -> therefore rename can only be from fonts:/System to fonts:/Personal, + // or vice versa. + + TQStringList srcFiles; + + if(getSourceFiles(src, srcFiles)) // Any error will be logged in getSourceFiles + { + KURL dest(d); + bool changed=confirmUrl(dest); + EFolder destFolder(getFolder(dest)); + TQMap map; + + if(confirmMultiple(src, srcFiles, FOLDER_SYS==destFolder ? FOLDER_USER : FOLDER_SYS, OP_MOVE) && + getFontList(srcFiles, map) && + checkDestFiles(src, map, dest, destFolder, overwrite)) + { + TQMap::Iterator fIt(map.begin()), + fEnd(map.end()); + bool askPasswd=true, + toSys=FOLDER_SYS==destFolder; + TQCString userId, + groupId, + destDir(TQFile::encodeName(TDEProcess::quote(itsFolders[destFolder].location))); + + userId.setNum(toSys ? 0 : getuid()); + groupId.setNum(toSys ? 0 : getgid()); + + for(; fIt!=fEnd; ++fIt) + { + TQCString cmd, + destFile(TQFile::encodeName(TDEProcess::quote(itsFolders[destFolder].location+fIt.data()))); + + if(toSys && !Misc::dExists(itsFolders[destFolder].location)) + { + cmd+="mkdir "; + cmd+=destDir; + cmd+=" && "; + } + + cmd+="mv -f "; + cmd+=TQFile::encodeName(TDEProcess::quote(fIt.key())); + cmd+=" "; + cmd+=destFile; + cmd+=" && chmod -f 0644 "; + cmd+=destFile; + cmd+=" && chown -f "; + cmd+=userId; + cmd+=":"; + cmd+=groupId; + cmd+=" "; + cmd+=destFile; + + TQString sysDir, + userDir; + + if(FOLDER_SYS==destFolder) + { + sysDir=itsFolders[destFolder].location; + userDir=Misc::getDir(fIt.key()); + } + else + { + userDir=itsFolders[destFolder].location; + sysDir=Misc::getDir(fIt.key()); + } + + if(!itsCanStorePasswd) + createRootRefreshCmd(cmd, sysDir); + + if(doRootCmd(cmd, askPasswd)) + { + modified(FOLDER_SYS, true, sysDir); + modified(FOLDER_USER, true, userDir); + askPasswd=false; // Don't keep on asking for password... + } + else + { + error(TDEIO::ERR_SLAVE_DEFINED, i18n("Could not access \"%1\" folder.").arg(i18n(KFI_KIO_FONTS_SYS))); + return; + } + } + if(changed) + itsLastDestTime=time(NULL); + } + } + } +} + +void CKioFonts::del(const KURL &url, bool) +{ + KFI_DBUG << "del " << url.path() << endl; + + TQValueList *entries; + + if(checkUrl(url) && checkAllowed(url) && + updateFontList() && (entries=getEntries(url)) && entries->count() && + confirmMultiple(url, entries, getFolder(url), OP_DELETE)) + { + TQValueList::Iterator it, + end=entries->end(); + CDirList modifiedDirs; + bool clearList=KFI_KIO_NO_CLEAR!=url.query(); + + if(nonRootSys(url)) + { + TQCString cmd("rm -f"); + + for(it=entries->begin(); it!=end; ++it) + { + TQString file(CFcEngine::getFcString(*it, FC_FILE)); + + modifiedDirs.add(Misc::getDir(file)); + cmd+=" "; + cmd+=TQFile::encodeName(TDEProcess::quote(file)); + + KURL::List urls; + + Misc::getAssociatedUrls(KURL(file), urls); + + if(urls.count()) + { + KURL::List::Iterator uIt, + uEnd=urls.end(); + + for(uIt=urls.begin(); uIt!=uEnd; ++uIt) + { + cmd+=" "; + cmd+=TQFile::encodeName(TDEProcess::quote((*uIt).path())); + } + } + } + + if(!itsCanStorePasswd) + createRootRefreshCmd(cmd, modifiedDirs); + + if(doRootCmd(cmd)) + modified(FOLDER_SYS, clearList, modifiedDirs); + else + error(TDEIO::ERR_SLAVE_DEFINED, i18n("Could not access \"%1\" folder.").arg(i18n(KFI_KIO_FONTS_SYS))); + } + else + { + for(it=entries->begin(); it!=end; ++it) + { + TQString file(CFcEngine::getFcString(*it, FC_FILE)); + + if (0!=unlink(TQFile::encodeName(file).data())) + error(EACCES==errno || EPERM==errno + ? TDEIO::ERR_ACCESS_DENIED + : EISDIR==errno + ? TDEIO::ERR_IS_DIRECTORY + : TDEIO::ERR_CANNOT_DELETE, + file); + else + { + modifiedDirs.add(Misc::getDir(file)); + + KURL::List urls; + + Misc::getAssociatedUrls(KURL(file), urls); + + if(urls.count()) + { + KURL::List::Iterator uIt, + uEnd=urls.end(); + + for(uIt=urls.begin(); uIt!=uEnd; ++uIt) + unlink(TQFile::encodeName((*uIt).path()).data()); + } + } + } + modified(itsRoot ? FOLDER_SYS : FOLDER_USER, clearList, modifiedDirs); + } + finished(); + } +} + +void CKioFonts::modified(EFolder folder, bool clearList, const CDirList &dirs) +{ + KFI_DBUG << "modified(" << (int)folder << ")\n"; + + if(FOLDER_SYS!=folder || itsCanStorePasswd || itsRoot) + { + if(dirs.count()) + { + CDirList::ConstIterator it(dirs.begin()), + end(dirs.end()); + + for(; it!=end; ++it) + itsFolders[folder].modified.add(*it); + } + else + itsFolders[folder].modified.add(itsFolders[folder].location); + + if(++itsFontChanges>MAX_NEW_FONTS) + { + setTimeoutSpecialCommand(0); // Cancel timer + doModified(); + } + else + setTimeoutSpecialCommand(TIMEOUT); + } + + if(FOLDER_SYS==folder && !itsRoot && !itsCanStorePasswd) + { + // If we modified sys, we're not root, and couldn't store the passwd, then kfontinst has already been called + // so no need to ask it to add folder to fontconfig and X's config files... + itsHasSys=true; + itsAddToSysFc=false; + } + if(clearList) + clearFontList(); // List of fonts has changed.../ +} + +void CKioFonts::special(const TQByteArray &a) +{ + KFI_DBUG << "special" << endl; + + if(a.size()) + { + TQDataStream stream(a, IO_ReadOnly); + int cmd; + + stream >> cmd; + + switch (cmd) + { + case SPECIAL_RESCAN: + clearFontList(); + updateFontList(); + finished(); + break; + case SPECIAL_RECONFIG: // Only itended to be called from kcmfontinst - when a user has re-enabled doX or doGs + if(itsRoot && !itsFolders[FOLDER_SYS].modified.contains(itsFolders[FOLDER_SYS].location)) + itsFolders[FOLDER_SYS].modified.add(itsFolders[FOLDER_SYS].location); + else if(!itsRoot && !itsFolders[FOLDER_USER].modified.contains(itsFolders[FOLDER_USER].location)) + itsFolders[FOLDER_USER].modified.add(itsFolders[FOLDER_USER].location); + + doModified(); + finished(); + break; + default: + error( TDEIO::ERR_UNSUPPORTED_ACTION, TQString::number(cmd)); + } + } + else + doModified(); +} + +void CKioFonts::createRootRefreshCmd(TQCString &cmd, const CDirList &dirs, bool reparseCfg) +{ + if(reparseCfg) + reparseConfig(); + + if(!cmd.isEmpty()) + cmd+=" && "; + + cmd+=FC_CACHE_CMD; + + if(dirs.count()) + { + CDirList::ConstIterator it(dirs.begin()), + end(dirs.end()); + + for(; it!=end; ++it) + { + TQCString tmpCmd; + + if(*it==itsFolders[FOLDER_SYS].location) + { + if(0!=itsNrsKfiParams[0]) + tmpCmd+=itsNrsKfiParams; + } + else + if(0!=itsNrsNonMainKfiParams[0]) + tmpCmd+=itsNrsNonMainKfiParams; + + if(!tmpCmd.isEmpty()) + { + cmd+=" && kfontinst "; + cmd+=tmpCmd; + cmd+=" "; + cmd+=TQFile::encodeName(TDEProcess::quote(*it)); + } + } + } + else if (0!=itsNrsKfiParams[0]) + { + cmd+=" && kfontinst "; + cmd+=itsNrsKfiParams; + cmd+=" "; + cmd+=TQFile::encodeName(TDEProcess::quote(itsFolders[FOLDER_SYS].location)); + } +} + +void CKioFonts::doModified() +{ + KFI_DBUG << "doModified" << endl; + + if(itsFolders[FOLDER_SYS].modified.count() || itsFolders[FOLDER_USER].modified.count()) + reparseConfig(); + + itsFontChanges=0; + if(itsFolders[FOLDER_SYS].modified.count()) + { + if(itsRoot) + { + Misc::doCmd(FC_CACHE_CMD); + KFI_DBUG << "RUN(root): " << FC_CACHE_CMD << endl; + + // + // If a non-default folder has been modified, always configure X + if(NULL==strchr(itsKfiParams, 'x') && + (itsFolders[FOLDER_SYS].modified.count()>1 || !itsFolders[FOLDER_SYS].modified.contains(itsFolders[FOLDER_SYS].location))) + { + if(0==itsKfiParams[0]) + strcpy(itsKfiParams, "-x"); + else + strcat(itsKfiParams, "x"); + } + + if(0!=itsKfiParams[0]) + { + CDirList::ConstIterator it(itsFolders[FOLDER_SYS].modified.begin()), + end(itsFolders[FOLDER_SYS].modified.end()); + + for(; it!=end; ++it) + { + Misc::doCmd("kfontinst", itsKfiParams, TQFile::encodeName(*it)); + KFI_DBUG << "RUN(root): kfontinst " << itsKfiParams << ' ' << *it << endl; + } + + if(itsFolders[FOLDER_SYS].modified.contains(itsFolders[FOLDER_SYS].location)) + { + itsHasSys=true; + itsAddToSysFc=false; + } + } + } + else + { + TQCString cmd; + + createRootRefreshCmd(cmd, itsFolders[FOLDER_SYS].modified, false); + if(doRootCmd(cmd, false) && itsFolders[FOLDER_SYS].modified.contains(itsFolders[FOLDER_SYS].location)) + { + itsHasSys=true; + itsAddToSysFc=false; + } + if(NULL==strstr(itsNrsKfiParams, "s")) + Misc::doCmd("xset", "fp", "rehash"); // doRootCmd can only refresh if xfs is being used, so try here anyway... + } + itsFolders[FOLDER_SYS].modified.clear(); + } + + if(!itsRoot && itsFolders[FOLDER_USER].modified.count()) + { + Misc::doCmd(FC_CACHE_CMD); + KFI_DBUG << "RUN(non-root): " << FC_CACHE_CMD << endl; + + if(0!=itsKfiParams[0]) + { + CDirList::ConstIterator it(itsFolders[FOLDER_USER].modified.begin()), + end(itsFolders[FOLDER_USER].modified.end()); + + for(; it!=end; ++it) + { + Misc::doCmd("kfontinst", itsKfiParams, TQFile::encodeName(*it)); + KFI_DBUG << "RUN(non-root): kfontinst " << itsKfiParams << ' ' << *it << endl; + } + } + itsFolders[FOLDER_USER].modified.clear(); + } + + KFI_DBUG << "finished ModifiedDirs" << endl; +} + +#define SYS_USER "root" +TQString CKioFonts::getRootPasswd(bool askPasswd) +{ + KFI_DBUG << "getRootPasswd" << endl; + TDEIO::AuthInfo authInfo; + SuProcess proc(SYS_USER); + bool error=false; + int attempts=0; + TQString errorMsg; + + authInfo.url=KURL(KFI_KIO_FONTS_PROTOCOL ":///"); + authInfo.username=SYS_USER; + authInfo.keepPassword=true; + + if(!checkCachedAuthentication(authInfo) && !askPasswd) + authInfo.password=itsPasswd; + + if(askPasswd) + while(!error && 0!=proc.checkInstall(authInfo.password.local8Bit())) + { + KFI_DBUG << "ATTEMPT : " << attempts << endl; + if(1==attempts) + errorMsg=i18n("Incorrect password.\n"); + if((!openPassDlg(authInfo, errorMsg) && attempts) || ++attempts>4 || SYS_USER!=authInfo.username) + error=true; + } + else + error=proc.checkInstall(authInfo.password.local8Bit()) ? true : false; + return error ? TQString::null : authInfo.password; +} + +bool CKioFonts::doRootCmd(const char *cmd, const TQString &passwd) +{ + KFI_DBUG << "doRootCmd " << cmd << endl; + + if(!passwd.isEmpty()) + { + SuProcess proc(SYS_USER); + + if(itsCanStorePasswd) + itsPasswd=passwd; + + KFI_DBUG << "Try to run command" << endl; + proc.setCommand(cmd); + return proc.exec(passwd.local8Bit()) ? false : true; + } + + return false; +} + +bool CKioFonts::confirmUrl(KURL &url) +{ + KFI_DBUG << "confirmUrl " << url.path() << endl; + if(!itsRoot) + { + TQString sect(getSect(url.path())); + + if(!isSysFolder(sect) && !isUserFolder(sect)) + { + bool changeToSystem=false; + + if(DEST_UNCHANGED!=itsLastDest && itsLastDestTime && (abs(time(NULL)-itsLastDestTime) < constMaxLastDestTime)) + changeToSystem=DEST_SYS==itsLastDest; + else + changeToSystem=KMessageBox::No==messageBox(QuestionYesNo, + i18n("Do you wish to install the font into \"%1\" (in which " + "case the font will only be usable by you), or \"%2\" (" + "the font will be usable by all users - but you will " + "need to know the administrator's password)?") + .arg(i18n(KFI_KIO_FONTS_USER)).arg(i18n(KFI_KIO_FONTS_SYS)), + i18n("Where to Install"), i18n(KFI_KIO_FONTS_USER), + i18n(KFI_KIO_FONTS_SYS)); + + if(changeToSystem) + { + itsLastDest=DEST_SYS; + url.setPath(TQChar('/')+i18n(KFI_KIO_FONTS_SYS)+TQChar('/')+url.fileName()); + } + else + { + itsLastDest=DEST_USER; + url.setPath(TQChar('/')+i18n(KFI_KIO_FONTS_USER)+TQChar('/')+url.fileName()); + } + + KFI_DBUG << "Changed URL to:" << url.path() << endl; + return true; + } + } + + return false; +} + +void CKioFonts::clearFontList() +{ + KFI_DBUG << "clearFontList" << endl; + + if(itsFontList) + FcFontSetDestroy(itsFontList); + + itsFontList=NULL; + itsFolders[FOLDER_SYS].fontMap.clear(); + itsFolders[FOLDER_USER].fontMap.clear(); +} + +bool CKioFonts::updateFontList() +{ + KFI_DBUG << "updateFontList" << endl; + + if(!itsFontList || !FcConfigUptoDate(0) || // For some reason just the "!FcConfigUptoDate(0)" check does not always work :-( + (abs(time(NULL)-itsLastFcCheckTime)>constMaxFcCheckTime)) + { + FcInitReinitialize(); + clearFontList(); + } + + if(!itsFontList) + { + KFI_DBUG << "updateFontList - update list of fonts " << endl; + + itsLastFcCheckTime=time(NULL); + + FcPattern *pat = FcPatternCreate(); + FcObjectSet *os = FcObjectSetBuild(FC_FILE, FC_FAMILY, FC_WEIGHT, FC_SCALABLE, +#ifdef KFI_FC_HAS_WIDTHS + FC_WIDTH, +#endif + FC_SLANT, (void*)0); + + itsFontList=FcFontList(0, pat, os); + + FcPatternDestroy(pat); + FcObjectSetDestroy(os); + + if (itsFontList) + { + TQString home(Misc::dirSyntax(TQDir::homeDirPath())); + + for (int i = 0; i < itsFontList->nfont; i++) + { + EFolder folder=FOLDER_SYS; + TQString file(Misc::fileSyntax(CFcEngine::getFcString(itsFontList->fonts[i], FC_FILE))); + + if(!file.isEmpty()) + { + if(!itsRoot && 0==file.find(home)) + folder=FOLDER_USER; + + TQValueList &patterns= + itsFolders[folder].fontMap[CFcEngine::createName(itsFontList->fonts[i])]; + bool use=true; + + if(patterns.count()) // Check for duplicates... + { + TQValueList::Iterator it, + end=patterns.end(); + + for(it=patterns.begin(); use && it!=end; ++it) + if(file==(Misc::fileSyntax(CFcEngine::getFcString(*it, FC_FILE)))) + use=false; + } + if(use) + patterns.append(itsFontList->fonts[i]); + } + } + } + } + + if(NULL==itsFontList) + { + error(TDEIO::ERR_SLAVE_DEFINED, i18n("Internal fontconfig error.")); + return false; + } + + return true; +} + +CKioFonts::EFolder CKioFonts::getFolder(const KURL &url) +{ + return itsRoot || isSysFolder(getSect(url.path())) ? FOLDER_SYS : FOLDER_USER; +} + +TQMap >::Iterator CKioFonts::getMap(const KURL &url) +{ + EFolder folder(getFolder(url)); + TQMap >::Iterator it=itsFolders[folder].fontMap.find(removeMultipleExtension(url)); + + if(it==itsFolders[folder].fontMap.end()) // Perhaps it was fonts:/System/times.ttf ??? + { + FcPattern *pat=getEntry(folder, url.fileName(), false); + + if(pat) + it=itsFolders[folder].fontMap.find(CFcEngine::createName(pat)); + } + + return it; +} + +TQValueList * CKioFonts::getEntries(const KURL &url) +{ + TQMap >::Iterator it=getMap(url); + + if(it!=itsFolders[getFolder(url)].fontMap.end()) + return &(it.data()); + + error(TDEIO::ERR_SLAVE_DEFINED, i18n("Could not access \"%1\".").arg(url.prettyURL())); + return NULL; +} + +FcPattern * CKioFonts::getEntry(EFolder folder, const TQString &file, bool full) +{ + TQMap >::Iterator it, + end=itsFolders[folder].fontMap.end(); + + for(it=itsFolders[folder].fontMap.begin(); it!=end; ++it) + { + TQValueList::Iterator patIt, + patEnd=it.data().end(); + + for(patIt=it.data().begin(); patIt!=patEnd; ++patIt) + if( (full && CFcEngine::getFcString(*patIt, FC_FILE)==file) || + (!full && Misc::getFile(CFcEngine::getFcString(*patIt, FC_FILE))==file)) + return *patIt; + } + + return NULL; +} + +bool CKioFonts::checkFile(const TQString &file) +{ + TQCString cFile(TQFile::encodeName(file)); + + // + // To speed things up, check the files extension 1st... + if(checkExt(cFile, "ttf") || checkExt(cFile, "otf") || checkExt(cFile, "ttc") || checkExt(cFile, "pfa") || checkExt(cFile, "pfb") || + isAAfm(file) || isAPfm(file)) + return true; + + // + // No exension match, so try querying with FreeType... + int count=0; + FcPattern *pat=FcFreeTypeQuery((const FcChar8 *)(TQFile::encodeName(file).data()), 0, NULL, &count); + + if(pat) + { + FcPatternDestroy(pat); + return true; + } + + error(TDEIO::ERR_SLAVE_DEFINED, i18n("

    Only fonts may be installed.

    If installing a fonts package (*%1), then " + "extract the components, and install individually.

    ").arg(constMultipleExtension)); + return false; +} + +bool CKioFonts::getSourceFiles(const KURL &src, TQStringList &files) +{ + if(KFI_KIO_FONTS_PROTOCOL==src.protocol()) + { + TQValueList *entries=getEntries(src); + + if(entries && entries->count()) + { + TQValueList::Iterator it, + end=entries->end(); + + for(it=entries->begin(); it!=end; ++it) + files.append(CFcEngine::getFcString(*it, FC_FILE)); + } + + if(files.count()) + { + TQStringList::Iterator sIt, + sEnd=files.end(); + + for(sIt=files.begin(); sIt!=sEnd; ++sIt) + { + KURL::List urls; + + Misc::getAssociatedUrls(KURL(*sIt), urls); + + if(urls.count()) + { + KURL::List::Iterator uIt, + uEnd=urls.end(); + + for(uIt=urls.begin(); uIt!=uEnd; ++uIt) + if(-1==files.findIndex((*uIt).path())) + files.append((*uIt).path()); + } + } + } + } + else + if(src.isLocalFile()) + if(checkFile(src.path())) + files.append(src.path()); + else + return false; // error logged in checkFile... + + if(files.count()) + { + TQStringList::Iterator it, + end=files.end(); + + for(it=files.begin(); it!=end; ++it) + { + TQCString realSrc=TQFile::encodeName(*it); + KDE_struct_stat buffSrc; + + if (-1==KDE_stat(realSrc.data(), &buffSrc)) + { + error(EACCES==errno ? TDEIO::ERR_ACCESS_DENIED : TDEIO::ERR_DOES_NOT_EXIST, src.prettyURL()); + return false; + } + if(S_ISDIR(buffSrc.st_mode)) + { + error(TDEIO::ERR_IS_DIRECTORY, src.prettyURL()); + return false; + } + if(S_ISFIFO(buffSrc.st_mode) || S_ISSOCK(buffSrc.st_mode)) + { + error(TDEIO::ERR_CANNOT_OPEN_FOR_READING, src.prettyURL()); + return false; + } + } + } + else + { + error(TDEIO::ERR_DOES_NOT_EXIST, src.prettyURL()); + return false; + } + + return true; +} + +bool CKioFonts::checkDestFile(const KURL &src, const KURL &dest, EFolder destFolder, bool overwrite) +{ + if(!overwrite && (Misc::fExists(itsFolders[destFolder].location+src.fileName()) || + Misc::fExists(itsFolders[destFolder].location+modifyName(src.fileName())) ) ) + { + error(TDEIO::ERR_FILE_ALREADY_EXIST, dest.prettyURL()); + return false; + } + + return true; +} + +bool CKioFonts::checkDestFiles(const KURL &src, TQMap &map, const KURL &dest, EFolder destFolder, bool overwrite) +{ + // + // Check whether files exist at destination... + // + if(dest.protocol()==src.protocol() && + dest.directory()==src.directory()) // Check whether confirmUrl changed a "cp fonts:/System fonts:/" + // to "cp fonts:/System fonts:/System" + { + error(TDEIO::ERR_FILE_ALREADY_EXIST, dest.prettyURL()); + return false; + } + + if(!overwrite) + { + TQMap::Iterator fIt(map.begin()), + fEnd(map.end()); + + for(; fIt!=fEnd; ++fIt) + if(NULL!=getEntry(destFolder, fIt.data()) || NULL!=getEntry(destFolder, modifyName(fIt.data()))) + { + error(TDEIO::ERR_FILE_ALREADY_EXIST, dest.prettyURL()); + return false; + } + } + + return true; +} + +// +// Gather the number and names of the font faces located in "files". If there is more than 1 face +// (such as there would be for a TTC font), then ask the user for confirmation of the action. +bool CKioFonts::confirmMultiple(const KURL &url, const TQStringList &files, EFolder folder, EOp op) +{ + if(KFI_KIO_FONTS_PROTOCOL!=url.protocol()) + return true; + + TQStringList::ConstIterator it, + end=files.end(); + TQStringList fonts; + + for(it=files.begin(); it!=files.end(); ++it) + { + FcPattern *pat=getEntry(folder, *it, false); + + if(pat) + { + TQString name(CFcEngine::createName(pat)); + + if(-1==fonts.findIndex(name)) + fonts.append(name); + } + } + + if(fonts.count()>1) + { + TQString out; + TQStringList::Iterator it, + end=fonts.end(); + + for(it=fonts.begin(); it!=end; ++it) + out+=TQString("
  • ")+*it+TQString("
  • "); + + if(KMessageBox::No==messageBox(QuestionYesNo, + OP_MOVE==op + ? i18n("

    This font is located in a file alongside other fonts; in order " + "to proceed with the moving they will all have to be moved. " + "The other affected fonts are:

      %1

    \n Do you wish to " + "move all of these?

    ").arg(out) + : OP_COPY==op + ? i18n("

    This font is located in a file alongside other fonts; in order " + "to proceed with the copying they will all have to be copied. " + "The other affected fonts are:

      %1

    \n Do you wish to " + "copy all of these?

    ").arg(out) + : i18n("

    This font is located in a file alongside other fonts; in order " + "to proceed with the deleting they will all have to be deleted. " + "The other affected fonts are:

      %1

    \n Do you wish to " + "delete all of these?

    ").arg(out))) + { + error(TDEIO::ERR_USER_CANCELED, url.prettyURL()); + return false; + } + } + + return true; +} + +bool CKioFonts::confirmMultiple(const KURL &url, TQValueList *patterns, EFolder folder, EOp op) +{ + if(KFI_KIO_FONTS_PROTOCOL!=url.protocol()) + return true; + + TQStringList files; + + if(patterns && patterns->count()) + { + TQValueList::Iterator it, + end=patterns->end(); + + for(it=patterns->begin(); it!=end; ++it) + files.append(CFcEngine::getFcString(*it, FC_FILE)); + } + + return confirmMultiple(url, files, folder, op); +} + +bool CKioFonts::checkUrl(const KURL &u, bool rootOk) +{ + if(KFI_KIO_FONTS_PROTOCOL==u.protocol() && (!rootOk || (rootOk && "/"!=u.path()))) + { + TQString sect(getSect(u.path())); + + if(itsRoot) + { + if((isSysFolder(sect) || isUserFolder(sect)) && + (itsFolders[FOLDER_SYS].fontMap.end()==itsFolders[FOLDER_SYS].fontMap.find(sect))) +//CPD: TODO: || it has a font specified! e.g. fonts:/System/Times -> even in have a fonts:/System font, redirect +//should still happen + { + redirection(getRedirect(u)); + finished(); + return false; + } + } + else + if(!isSysFolder(sect) && !isUserFolder(sect)) + { + error(TDEIO::ERR_SLAVE_DEFINED, i18n("Please specify \"%1\" or \"%2\".") + .arg(i18n(KFI_KIO_FONTS_USER)).arg(i18n(KFI_KIO_FONTS_SYS))); + return false; + } + } + + return true; +} + +bool CKioFonts::checkAllowed(const KURL &u) +{ + if (KFI_KIO_FONTS_PROTOCOL==u.protocol()) + { + TQString ds(Misc::dirSyntax(u.path())); + + if(ds==TQString(TQChar('/')+i18n(KFI_KIO_FONTS_USER)+TQChar('/')) || + ds==TQString(TQChar('/')+i18n(KFI_KIO_FONTS_SYS)+TQChar('/')) || + ds==TQString(TQChar('/')+TQString::fromLatin1(KFI_KIO_FONTS_USER)+TQChar('/')) || + ds==TQString(TQChar('/')+TQString::fromLatin1(KFI_KIO_FONTS_SYS)+TQChar('/'))) + { + error(TDEIO::ERR_SLAVE_DEFINED, i18n("Sorry, you cannot rename, move, copy, or delete either \"%1\" or \"%2\".") + .arg(i18n(KFI_KIO_FONTS_USER)).arg(i18n(KFI_KIO_FONTS_SYS))); \ + return false; + } + } + + return true; +} + +// +// Create an AFM from a Type 1 (pfa/pfb) font and its PFM file... +void CKioFonts::createAfm(const TQString &file, bool nrs, const TQString &passwd) +{ + if(nrs && passwd.isEmpty()) + return; + + bool type1=isAType1(file), + pfm=!type1 && isAPfm(file); // No point checking if is pfm if its a type1 + + if(type1 || pfm) + { + TQString afm=getMatch(file, "afm"); // pf2afm wants files with lowercase extension, so just check for lowercase! + // -- when a font is installed, the extensio is converted to lowercase anyway... + + if(afm.isEmpty()) // No point creating if AFM already exists! + { + TQString pfm, + t1; + + if(type1) // Its a Type1, so look for existing PFM + { + pfm=getMatch(file, "pfm"); + t1=file; + } + else // Its a PFM, so look for existing Type1 + { + t1=getMatch(file, "pfa"); + if(t1.isEmpty()) + t1=getMatch(file, "pfb"); + pfm=file; + } + + if(!t1.isEmpty() && !pfm.isEmpty()) // Do we have both Type1 and PFM? + { + TQString name(t1.left(t1.length()-4)); // pf2afm wants name without extension... + + if(nrs) + { + TQCString cmd("pf2afm "); + cmd+=TQFile::encodeName(TDEProcess::quote(name)); + doRootCmd(cmd, passwd); + } + else + Misc::doCmd("pf2afm", TQFile::encodeName(name)); + } + } + } +} + +void CKioFonts::reparseConfig() +{ + KFI_DBUG << "reparseConfig" << endl; + + itsKfiParams[0]=0; + if(!itsRoot) + { + itsNrsKfiParams[0]=0; + itsNrsNonMainKfiParams[0]=0; + } + + if(itsRoot) + { + TDEConfig cfg(KFI_ROOT_CFG_FILE); + bool doX=cfg.readBoolEntry(KFI_CFG_X_KEY, KFI_DEFAULT_CFG_X), + doGs=cfg.readBoolEntry(KFI_CFG_GS_KEY, KFI_DEFAULT_CFG_GS); + + if(doX || !doGs) + { + strcpy(itsKfiParams, doGs ? "-g" : "-"); + if(doX) + { + if(!itsUsingXfsFpe) + strcat(itsKfiParams, "r"); + + if(!itsUsingFcFpe) + { + strcat(itsKfiParams, itsUsingXfsFpe ? "sx" : "x"); + if(!itsHasSys) + strcat(itsKfiParams, "a"); + } + } + } + } + else + { + TDEConfig rootCfg(KFI_ROOT_CFG_FILE); + bool rootDoX=rootCfg.readBoolEntry(KFI_CFG_X_KEY, KFI_DEFAULT_CFG_X), + rootDoGs=rootCfg.readBoolEntry(KFI_CFG_GS_KEY, KFI_DEFAULT_CFG_GS); + + strcpy(itsNrsKfiParams, "-"); + + if(rootDoX || rootDoGs) + { + strcpy(itsNrsKfiParams, "-"); + strcpy(itsNrsNonMainKfiParams, "-"); + + if(rootDoGs) + { + strcpy(itsNrsKfiParams, "g"); + strcpy(itsNrsNonMainKfiParams, "g"); + } + + if(rootDoX && !itsUsingFcFpe) + { + strcat(itsNrsKfiParams, itsUsingXfsFpe ? "sx" : "x"); // Can't get root to refresh X, only xfs! + strcat(itsNrsNonMainKfiParams, itsUsingXfsFpe ? "sx" : "x"); + if(!itsHasSys) + strcat(itsNrsKfiParams, "a"); + } + if(0==itsNrsNonMainKfiParams[1]) + itsNrsNonMainKfiParams[0]=0; + } + + if(itsAddToSysFc) + strcpy(itsNrsKfiParams, "f"); + + if(0==itsNrsKfiParams[1]) + itsNrsKfiParams[0]=0; + + TDEConfig cfg(KFI_CFG_FILE); + bool doX=cfg.readBoolEntry(KFI_CFG_X_KEY, KFI_DEFAULT_CFG_X), + doGs=cfg.readBoolEntry(KFI_CFG_GS_KEY, KFI_DEFAULT_CFG_GS); + + strcpy(itsKfiParams, doGs ? "-g" : "-"); + + if(doX) + strcat(itsKfiParams, itsUsingFcFpe ? "r" : "rx"); + } + + if(0==itsKfiParams[1]) + itsKfiParams[0]=0; +} + +} diff --git a/kcontrol/kfontinst/tdeio/KioFonts.h b/kcontrol/kfontinst/tdeio/KioFonts.h new file mode 100644 index 000000000..ec8c69c4e --- /dev/null +++ b/kcontrol/kfontinst/tdeio/KioFonts.h @@ -0,0 +1,161 @@ +#ifndef __KIO_FONTS_H__ +#define __KIO_FONTS_H__ + +//////////////////////////////////////////////////////////////////////////////// +// +// Class Name : KFI::CKioFonts +// Author : Craig Drummond +// Project : K Font Installer +// Creation Date : 05/03/2003 +// Version : $Revision$ $Date$ +// +//////////////////////////////////////////////////////////////////////////////// +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +// +//////////////////////////////////////////////////////////////////////////////// +// (C) Craig Drummond, 2003, 2004 +//////////////////////////////////////////////////////////////////////////////// + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "Misc.h" +#include "KfiConstants.h" + +namespace KFI +{ + +class CKioFonts : public TDEIO::SlaveBase +{ + private: + + enum EConstants + { + KFI_PARAMS = 8 + }; + + enum EDest + { + DEST_UNCHANGED, + DEST_SYS, + DEST_USER + }; + + enum EFolder + { + FOLDER_SYS, + FOLDER_USER, + + FOLDER_COUNT + }; + + enum EOp + { + OP_COPY, + OP_MOVE, + OP_DELETE + }; + + class CDirList : public TQStringList + { + public: + + CDirList() { } + CDirList(const TQString &str) : TQStringList(str) { } + + void add(const TQString &d) { if ( contains(d)) append(d); } + }; + + struct TFolder + { + TQString location; + CDirList modified; + TQMap > fontMap; // Maps from "Times New Roman" -> $HOME/.fonts/times.ttf + }; + + public: + + CKioFonts(const TQCString &pool, const TQCString &app); + virtual ~CKioFonts(); + + static TQString getSect(const TQString &f) { return f.section('/', 1, 1); } + + void listDir(const KURL &url); + void stat(const KURL &url); + bool createStatEntry(TDEIO::UDSEntry &entry, const KURL &url, EFolder folder); + void get(const KURL &url); + void put(const KURL &url, int mode, bool overwrite, bool resume); + void copy(const KURL &src, const KURL &dest, int mode, bool overwrite); + void rename(const KURL &src, const KURL &dest, bool overwrite); + void del(const KURL &url, bool isFile); + + private: + + bool putReal(const TQString &destOrig, const TQCString &destOrigC, bool origExists, int mode, bool resume); + void modified(EFolder folder, bool clearList=true, const CDirList &dirs=CDirList()); + void special(const TQByteArray &a); + void createRootRefreshCmd(TQCString &cmd, const CDirList &dirs=CDirList(), bool reparseCfg=true); + void doModified(); + TQString getRootPasswd(bool askPasswd=true); + bool doRootCmd(const char *cmd, const TQString &passwd); + bool doRootCmd(const char *cmd, bool askPasswd=true) { return doRootCmd(cmd, getRootPasswd(askPasswd)); } + bool confirmUrl(KURL &url); + void clearFontList(); + bool updateFontList(); + EFolder getFolder(const KURL &url); + TQMap >::Iterator getMap(const KURL &url); + TQValueList * getEntries(const KURL &url); + FcPattern * getEntry(EFolder folder, const TQString &file, bool full=false); + bool checkFile(const TQString &file); + bool getSourceFiles(const KURL &src, TQStringList &files); + bool checkDestFile(const KURL &src, const KURL &dest, EFolder destFolder, bool overwrite); + bool checkDestFiles(const KURL &src, TQMap &map, const KURL &dest, EFolder destFolder, bool overwrite); + bool confirmMultiple(const KURL &url, const TQStringList &files, EFolder folder, EOp op); + bool confirmMultiple(const KURL &url, TQValueList *patterns, EFolder folder, EOp op); + bool checkUrl(const KURL &u, bool rootOk=false); + bool checkAllowed(const KURL &u); + void createAfm(const TQString &file, bool nrs=false, const TQString &passwd=TQString::null); + void reparseConfig(); + + private: + + bool itsRoot, + itsCanStorePasswd, + itsUsingFcFpe, + itsUsingXfsFpe, + itsHasSys, + itsAddToSysFc; + TQString itsPasswd; + unsigned int itsFontChanges; + EDest itsLastDest; + time_t itsLastDestTime, + itsLastFcCheckTime; + FcFontSet *itsFontList; + TFolder itsFolders[FOLDER_COUNT]; + char itsNrsKfiParams[KFI_PARAMS], + itsNrsNonMainKfiParams[KFI_PARAMS], + itsKfiParams[KFI_PARAMS]; +}; + +} + +#endif diff --git a/kcontrol/kfontinst/tdeio/Makefile.am b/kcontrol/kfontinst/tdeio/Makefile.am new file mode 100644 index 000000000..9f59e28b8 --- /dev/null +++ b/kcontrol/kfontinst/tdeio/Makefile.am @@ -0,0 +1,20 @@ +kde_module_LTLIBRARIES = tdeio_fonts.la +tdeio_fonts_la_SOURCES = \ +KioFonts.cpp + +tdeio_fonts_la_LIBADD = ../../fonts/libkxftconfig.la $(LIBFONTCONFIG_LIBS) $(LIBFREETYPE_LIBS) $(LIB_KIO) -ltdesu ../lib/libkfontinst.la +tdeio_fonts_la_LDFLAGS = $(KDE_PLUGIN) $(all_libraries) $(KDE_RPATH) $(LIBFONTCONFIG_RPATH) $(LIBFREETYPE_RPATH) -module -avoid-version -no-undefined +AM_CPPFLAGS= -I$(srcdir)/../lib -I$(srcdir)/../../fonts $(all_includes) $(LIBFREETYPE_CFLAGS) $(LIBFONTCONFIG_CFLAGS) -D_LARGEFILE64_SOURCE + +# The kxftconfig stuf really belongs to tdebase/kcontrol/fonts - here only so that can distribute this as an archive. +noinst_HEADERS = \ +KioFonts.h + +servicesdir = $(kde_servicesdir) +services_DATA = fonts.protocol + +vfsdata_DATA = fonts.desktop +vfsdatadir = $(kde_datadir)/konqsidebartng/virtual_folders/services + +mimetype_DATA = folder.desktop system-folder.desktop package.desktop +mimetypedir = $(kde_mimedir)/fonts diff --git a/kcontrol/kfontinst/tdeio/folder.desktop b/kcontrol/kfontinst/tdeio/folder.desktop new file mode 100644 index 000000000..848feabe5 --- /dev/null +++ b/kcontrol/kfontinst/tdeio/folder.desktop @@ -0,0 +1,80 @@ +[Desktop Entry] +Comment=Fonts Folder +Comment[af]=Skrif tipe Gids +Comment[ar]=مجلد المحارف +Comment[be]=Тэчка шрыфтоў +Comment[bg]=Директория за шрифтове +Comment[bn]=ফন্ট ফোল্ডার +Comment[br]=Renkell ar fontoù +Comment[bs]=Direktorij sa fontovima +Comment[ca]=Carpeta de lletres +Comment[cs]=Složka písem +Comment[csb]=Katalog fòntów +Comment[da]=Skrifttypemappe +Comment[de]=Ordner für Schriftarten +Comment[el]=Φάκελος γραμματοσειρών +Comment[eo]=Tipardosierujo +Comment[es]=Carpeta de tipos de letra +Comment[et]=Fontide kataloog +Comment[eu]=Letra-tipoen karpeta +Comment[fa]=پوشۀ قلم +Comment[fi]=Kirjasinkansio +Comment[fr]=Dossier de polices de caractères +Comment[fy]=Lettertypenmap +Comment[ga]=Fillteán na gClónna +Comment[gl]=Cartafol das Fontes +Comment[he]=תיקיית גופנים +Comment[hi]=फ़ॉन्ट्स फ़ोल्डर +Comment[hr]=Mapa fontova +Comment[hu]=Betűtípuskönyvtár +Comment[id]=Folder Fonts +Comment[is]=Leturmappa +Comment[it]=Cartella dei caratteri +Comment[ja]=フォントフォルダ +Comment[ka]=ფონტების საქაღალდე +Comment[kk]=Қаріп қапшығы +Comment[km]=ថត​ពុម្ពអក្សរ +Comment[ko]=홈 폴더 +Comment[lt]=Šriftų aplankas +Comment[lv]=Fontu mape +Comment[mk]=Папка со фонтови +Comment[ms]=Folder Fon +Comment[mt]=Direttorju tal-fonts +Comment[nb]=Mappe for skrifttyper +Comment[nds]=Schriftoorden-Orner +Comment[ne]=फन्ट फोल्डर +Comment[nl]=Lettertypenmap +Comment[nn]=Skriftmappe +Comment[pa]=ਫੋਂਟ ਫੋਲਡਰ +Comment[pl]=Katalog czcionek +Comment[pt]=Pasta de Tipos de Letra +Comment[pt_BR]=Pasta de Fontes +Comment[ro]=Folder de fonturi +Comment[ru]=Папка шрифтов +Comment[rw]=Ububiko bw'Imyandikire +Comment[se]=Fontamáhppa +Comment[sk]=Priečinok písiem +Comment[sl]=Mapa za pisave +Comment[sr]=Фасцикла за фонтове +Comment[sr@Latn]=Fascikla za fontove +Comment[sv]=Teckensnittskatalog +Comment[ta]=எழுத்துருக்கள் அடைவு +Comment[tg]=Феҳристи ҳарфҳо +Comment[th]=โฟลเดอร์แฟ้มแบบอักษร +Comment[tr]=Yazıtipi Klasörü +Comment[tt]=Yazu lar Törgäge +Comment[uk]=Тека шрифтів +Comment[uz]=Shriftlarning jildi +Comment[uz@cyrillic]=Шрифтларнинг жилди +Comment[vi]=Thư mục Phông chữ +Comment[wa]=Ridant di fontes +Comment[zh_CN]=字体文件夹 +Comment[zh_TW]=字型資料夾 +Icon=folder +Type=MimeType +MimeType=fonts/folder +Patterns= + +X-TDE-AutoEmbed=true +X-TDE-IsAlso=inode/directory + diff --git a/kcontrol/kfontinst/tdeio/fonts.desktop b/kcontrol/kfontinst/tdeio/fonts.desktop new file mode 100644 index 000000000..ac0f592cf --- /dev/null +++ b/kcontrol/kfontinst/tdeio/fonts.desktop @@ -0,0 +1,85 @@ +[Desktop Entry] +Type=Link +URL=fonts:/ +Icon=fonts +Name=Fonts +Name[af]=Skriftipes +Name[ar]=المحارف +Name[az]=Yazı növləri +Name[be]=Шрыфты +Name[bg]=Шрифтове +Name[bn]=ফন্ট +Name[br]=Fontoù +Name[bs]=Fontovi +Name[ca]=Lletres +Name[cs]=Písma +Name[csb]=Fòntë +Name[cy]=Ffontiau +Name[da]=Skrifttyper +Name[de]=Schriftarten +Name[el]=Γραμματοσειρές +Name[eo]=Tiparoj +Name[es]=Tipos de letra +Name[et]=Fondid +Name[eu]=Letra-tipoak +Name[fa]=قلمها +Name[fi]=Kirjasimet +Name[fr]=Polices +Name[fy]=Lettertypen +Name[ga]=Clónna +Name[gl]=Fontes +Name[he]=גופנים +Name[hi]=फ़ॉन्ट्स +Name[hr]=Fontovi +Name[hu]=Betűtípusok +Name[is]=Letur +Name[it]=Tipi di carattere +Name[ja]=フォント +Name[ka]=ფონტები +Name[kk]=Қаріптер +Name[km]=ពុម្ពអក្សរ +Name[ko]=글꼴 +Name[lo]=ຮູບແບບຕົວອັກສອນ +Name[lt]=Šriftai +Name[lv]=Fonti +Name[mk]=Фонтови +Name[mn]=Бичгүүд +Name[ms]=Fon +Name[nb]=Skrifttype +Name[nds]=Schriftoorden +Name[ne]=फन्ट +Name[nl]=Lettertypen +Name[nn]=Skrifttypar +Name[nso]=Difonto +Name[pa]=ਫੋਂਟ +Name[pl]=Czcionki +Name[pt]=Tipos de Letra +Name[pt_BR]=Fontes +Name[ro]=Fonturi +Name[ru]=Шрифты +Name[rw]=Imyandikire +Name[se]=Fonttat +Name[sk]=Písma +Name[sl]=Pisave +Name[sr]=Фонтови +Name[sr@Latn]=Fontovi +Name[ss]=Timo tetinhlamvu temagama +Name[sv]=Teckensnitt +Name[ta]=எழுத்துருக்கள் +Name[tg]=Ҳарфҳо +Name[th]=แบบอักษร +Name[tr]=Yazıtipleri +Name[tt]=Yazu +Name[uk]=Шрифти +Name[uz]=Shriftlar +Name[uz@cyrillic]=Шрифтлар +Name[ven]=Fontu +Name[vi]=Phông chữ +Name[wa]=Fontes +Name[xh]=Uhlobo lwamagama +Name[zh_CN]=字体 +Name[zh_TW]=字型 +Name[zu]=Izinhlobo zamagama +Open=false +X-TDE-TreeModule=Directory +X-TDE-KonqSidebarModule=konqsidebar_tree diff --git a/kcontrol/kfontinst/tdeio/fonts.protocol b/kcontrol/kfontinst/tdeio/fonts.protocol new file mode 100644 index 000000000..02e5e5f29 --- /dev/null +++ b/kcontrol/kfontinst/tdeio/fonts.protocol @@ -0,0 +1,18 @@ +[Protocol] +exec=tdeio_fonts +protocol=fonts +input=none +output=filesystem +listing=Name,Type,Size,Date,AccessDate,Access,Owner,Group,Link +reading=true +writing=true +makedir=false +deleting=true +moving=true +linking=false +copyToFile=false +copyFromFile=true +Icon=fonts +defaultMimetype=application/octet-stream +maxInstances=1 +Class=:local diff --git a/kcontrol/kfontinst/tdeio/package.desktop b/kcontrol/kfontinst/tdeio/package.desktop new file mode 100644 index 000000000..2d2e1e4af --- /dev/null +++ b/kcontrol/kfontinst/tdeio/package.desktop @@ -0,0 +1,74 @@ +[Desktop Entry] +Type=MimeType +MimeType=fonts/package +Icon=font +Patterns=*.fonts.tar.gz +Comment=Fonts Package +Comment[af]=Skriftipes Paket +Comment[ar]=حزمة المحارف +Comment[be]=Пакет шрыфтоў +Comment[bg]=Пакет с шрифтове +Comment[bn]=ফন্ট প্যাকেজ +Comment[bs]=Paket fontova +Comment[ca]=Paquet de lletres +Comment[cs]=Balík písem +Comment[csb]=Paczét fòntów +Comment[da]=Skrifttypepakke +Comment[de]=Schriftartenpaket +Comment[el]=Πακέτο γραμματοσειρών +Comment[eo]=Tiparpakaĵo +Comment[es]=Paquete de tipos de letra +Comment[et]=Fondipakett +Comment[eu]=Letra-tipoen paketea +Comment[fa]=بستۀ قلمها +Comment[fi]=Kirjasinpaketti +Comment[fr]=Paquet de polices +Comment[fy]=Lettertypenpakket +Comment[ga]=Pacáiste na gClónna +Comment[gl]=Pacote das Fontes +Comment[he]=חבילת גופנים +Comment[hr]=Paket fontova +Comment[hu]=Betűtípuscsomag +Comment[id]=Paket Font +Comment[is]=Leturpakki +Comment[it]=Pacchetto tipi di caratteri +Comment[ja]=フォントパッケージ +Comment[ka]=შრიფტების პაკეტი +Comment[kk]=Қаріп дестесі +Comment[km]=កញ្ចប់​ពុម្ពអក្សរ +Comment[lt]=Šriftų paketas +Comment[mk]=Пакет со фонтови +Comment[ms]=Pakej Fon +Comment[nb]=Pakke for skrifttyper +Comment[nds]=Schriftoorden-Paket +Comment[ne]=फन्ट प्याकेज +Comment[nl]=Lettertypenpakket +Comment[nn]=Pakke for skrifter +Comment[pa]=ਫੋਂਟ ਪੈਕੇਜ +Comment[pl]=Pakiet czcionek +Comment[pt]=Pacote de Tipos de Letra +Comment[pt_BR]=Pacote de Fontes +Comment[ro]=Pachet de fonturi +Comment[ru]=Пакет шрифтов +Comment[rw]=Rukomatanya y'Imyandikire +Comment[se]=Fontapáhkka +Comment[sk]=Balík písiem +Comment[sl]=Paket pisav +Comment[sr]=Пакет фонтова +Comment[sr@Latn]=Paket fontova +Comment[sv]=Teckensnittspaket +Comment[tg]=Бастаи ҳарфҳо +Comment[th]=แพคเกจแบบอักษร +Comment[tr]=Yazıtipi Paketi +Comment[tt]=Yazular Tuplaması +Comment[uk]=Пакунок шрифтів +Comment[uz]=Shrift +Comment[uz@cyrillic]=Шрифт +Comment[vi]=Gói Phông chữ +Comment[wa]=Paket di fontes +Comment[zh_CN]=字体包 +Comment[zh_TW]=字型套件 + +[Property::X-TDE-LocalProtocol] +Type=TQString +Value=tar diff --git a/kcontrol/kfontinst/tdeio/system-folder.desktop b/kcontrol/kfontinst/tdeio/system-folder.desktop new file mode 100644 index 000000000..d2500c295 --- /dev/null +++ b/kcontrol/kfontinst/tdeio/system-folder.desktop @@ -0,0 +1,79 @@ +[Desktop Entry] +Comment=System Fonts Folder +Comment[af]=Stelsel Skrif tipe Gids +Comment[ar]=مجلد محارف النظام +Comment[be]=Тэчка сістэмных шрыфтоў +Comment[bg]=Директория за системните шрифтове +Comment[bn]=সিস্টেম ফন্ট ফোল্ডার +Comment[br]=Renkell fontoù ar reizhiad +Comment[bs]=Sistemski direktorij sa fontovima +Comment[ca]=Carpeta de lletres del sistema +Comment[cs]=Složka se systémovými písmy +Comment[csb]=Katalog systemòwëch fòntów +Comment[da]=Mappe til systemets skrifttyper +Comment[de]=Ordner für Systemschriften +Comment[el]=Φάκελος γραμματοσειρών συστήματος +Comment[eo]=Sistema tipardosierujo +Comment[es]=Carpeta de tipos de letra del sistema +Comment[et]=Süsteemi fontide kataloog +Comment[eu]=Sistemaren letra-tipoen karpeta +Comment[fa]=پوشۀ قلمهای سیستم +Comment[fi]=Järjestelmän kirjasinkansio +Comment[fr]=Dossier système de polices de caractères +Comment[fy]=Systeemlettertypenmap +Comment[ga]=Fillteán Clónna an Chórais +Comment[gl]=Cartafol das Fontes do Sistema +Comment[he]=תיקיית גופני מערכת +Comment[hi]=तंत्र फ़ॉन्ट्स फ़ोल्डर +Comment[hr]=Mapa sistemskih fontova +Comment[hu]=A rendszer betűtípusainak könyvtára +Comment[id]=Folder Font Sistem +Comment[is]=Kerfisleturmappa +Comment[it]=Cartella dei caratteri di sistema +Comment[ja]=システムフォントフォルダ +Comment[ka]=სისტემური ფონტების საქაღალდე +Comment[kk]=Жүйелік қаріптер қапшығы +Comment[km]=ថត​ពុម្ពអក្សរ​ប្រព័ន្ធ +Comment[lt]=Sistemos šriftų aplankas +Comment[lv]=Sistēmas fontu mape +Comment[mk]=Папка со системски фонтови +Comment[ms]=Folder Fon Sistem +Comment[mt]=Direttorju tal-fonts tas-sistema +Comment[nb]=Mappe for systemskrifttyper +Comment[nds]=Orner för de Systeemschriftoorden +Comment[ne]=फन्ट फोल्डर प्रणाली +Comment[nl]=Systeemlettertypenmap +Comment[nn]=Systemskriftmappe +Comment[pa]=ਸਿਸਟਮ ਫੋਂਟ ਫੋਲਡਰ +Comment[pl]=Katalog czcionek systemowych +Comment[pt]=Pasta de Tipos de Letra do Sistema +Comment[pt_BR]=Pasta de Fontes do Sistema +Comment[ro]=Folder fonturi de sistem +Comment[ru]=Папка системных шрифтов +Comment[rw]=Ububiko bw'Imyandikire Sisitemu +Comment[se]=Vuogádatfontamáhppa +Comment[sk]=Priečinok systémových písiem +Comment[sl]=Mapa za sistemske pisave +Comment[sr]=Фасцикла за системске фонтове +Comment[sr@Latn]=Fascikla za sistemske fontove +Comment[sv]=Systemteckensnittskatalog +Comment[ta]=அமைப்பு எழுத்துருக்கள் அடைவு +Comment[tg]=Системаи феҳристи ҳарфҳо +Comment[th]=โฟลเดอร์แฟ้มแบบอักษรของระบบ +Comment[tr]=Sistem Yazı Tipi Klasörü +Comment[tt]=Sistem Yazular Törgäge +Comment[uk]=Тека системних шрифтів +Comment[uz]=Tizim shriftlarining jildi +Comment[uz@cyrillic]=Тизим шрифтларининг жилди +Comment[vi]=Thư mục Phông chữ Hệ thống +Comment[wa]=Ridant di fontes do sistinme +Comment[zh_CN]=系统字体文件夹 +Comment[zh_TW]=系統字型資料夾 +Icon=folder_red +Type=MimeType +MimeType=fonts/system-folder +Patterns= + +X-TDE-AutoEmbed=true +X-TDE-IsAlso=inode/directory + diff --git a/kcontrol/kio/CMakeLists.txt b/kcontrol/kio/CMakeLists.txt deleted file mode 100644 index c807b075e..000000000 --- a/kcontrol/kio/CMakeLists.txt +++ /dev/null @@ -1,55 +0,0 @@ -################################################# -# -# (C) 2010-2011 Serghei Amelian -# serghei (DOT) amelian (AT) gmail.com -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -add_subdirectory( uasproviders ) - -include_directories( - ${CMAKE_CURRENT_BINARY_DIR} - ${CMAKE_BINARY_DIR} - ${TDE_INCLUDE_DIR} - ${TQT_INCLUDE_DIRS} -) - -link_directories( - ${TQT_LIBRARY_DIRS} -) - -##### other data ################################ - -install( FILES - cookies.desktop useragent.desktop cache.desktop - lanbrowser.desktop netpref.desktop proxy.desktop - DESTINATION ${XDG_APPS_INSTALL_DIR} ) - -install( FILES uninstall.desktop - RENAME smb.desktop - DESTINATION ${APPS_INSTALL_DIR}/Settings/WebBrowsing ) - -install( FILES socks.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR} ) -install( FILES uasprovider.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} ) -install( FILES smb.desktop DESTINATION ${APPS_INSTALL_DIR}/.hidden ) - - -##### kcm_kio (module) ########################## - -tde_add_kpart( kcm_kio AUTOMOC - SOURCES - policydlg.cpp kcookiesmain.cpp kcookiespolicies.cpp - main.cpp smbrodlg.cpp useragentdlg.cpp kproxydlgbase.cpp - kmanualproxydlg.cpp kenvvarproxydlg.cpp kproxydlg.cpp - kcookiesmanagement.cpp fakeuaprovider.cpp uagentproviderdlg.cpp - netpref.cpp cache.cpp ksaveioconfig.cpp socks.cpp socksbase.ui - kproxydlg_ui.ui kcookiesmanagementdlg_ui.ui kcookiespoliciesdlg_ui.ui - policydlg_ui.ui useragentdlg_ui.ui uagentproviderdlg_ui.ui - manualproxy_ui.ui envvarproxy_ui.ui cache_ui.ui - LINK tdeio-shared tdeutils-shared - DESTINATION ${PLUGIN_INSTALL_DIR} -) diff --git a/kcontrol/kio/Makefile.am b/kcontrol/kio/Makefile.am deleted file mode 100644 index e2d8d7ae5..000000000 --- a/kcontrol/kio/Makefile.am +++ /dev/null @@ -1,39 +0,0 @@ -SUBDIRS = uasproviders - -AM_CPPFLAGS = $(all_includes) -AM_LDFLAGS = $(all_libraries) - -METASOURCES = AUTO - -kde_module_LTLIBRARIES = kcm_kio.la - -kcm_kio_la_SOURCES = policydlg.cpp kcookiesmain.cpp kcookiespolicies.cpp \ - main.cpp smbrodlg.cpp useragentdlg.cpp kproxydlgbase.cpp \ - kmanualproxydlg.cpp kenvvarproxydlg.cpp kproxydlg.cpp \ - kcookiesmanagement.cpp fakeuaprovider.cpp uagentproviderdlg.cpp \ - netpref.cpp cache.cpp ksaveioconfig.cpp socks.cpp socksbase.ui \ - kproxydlg_ui.ui kcookiesmanagementdlg_ui.ui kcookiespoliciesdlg_ui.ui \ - policydlg_ui.ui useragentdlg_ui.ui uagentproviderdlg_ui.ui \ - manualproxy_ui.ui envvarproxy_ui.ui cache_ui.ui - -kcm_kio_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) -kcm_kio_la_LIBADD = $(LIB_KIO) $(LIB_KUTILS) - -messages: rc.cpp - $(XGETTEXT) *.cpp -o $(podir)/kcmkio.pot - -update_DATA = socks.upd -updatedir = $(kde_datadir)/tdeconf_update - -servicetypes_DATA = uasprovider.desktop -servicetypesdir = $(kde_servicetypesdir) - -xdg_apps_DATA = cookies.desktop useragent.desktop cache.desktop \ - lanbrowser.desktop netpref.desktop proxy.desktop - -smb_DATA = smb.desktop -smbdir = $(kde_appsdir)/.hidden - -install-data-local: uninstall.desktop - $(mkinstalldirs) $(DESTDIR)$(kde_appsdir)/Settings/WebBrowsing - $(INSTALL_DATA) $(srcdir)/uninstall.desktop $(DESTDIR)$(kde_appsdir)/Settings/WebBrowsing/smb.desktop diff --git a/kcontrol/kio/UA-DESKTOP-FILE-HOWTO b/kcontrol/kio/UA-DESKTOP-FILE-HOWTO deleted file mode 100644 index a592d4b57..000000000 --- a/kcontrol/kio/UA-DESKTOP-FILE-HOWTO +++ /dev/null @@ -1,135 +0,0 @@ -Mini HOWTO create a "User-Agent" description file for KDE -========================================================= - -This mini HOWTO describes the procedure for creating a new user-agent -description file to extend the ones that come pre-packaged with KDE. -The purpose of a user agent description file is to fake or spoof sites -that refuse to render pages with the default KDE user-agent identification. - -In order to create new user-agent description files, simply follow the -normal desktop file specifications set by the "DESKTOP ENTRY STANDARD" -augmented with the following requirements: - -REQUIREMENTS: -============= -The following properties as defined by the DESKTOP ENTRY STANDARD -must be set as shown below: - -Name=UADescription (XXXX) -Type=Service -ServiceTypes=UserAgentStrings - -Though the (XXXX) value shown above can be any text, it is a good idea -to make it a short identification of the browser being emulated. However, -there is NO requirement on what the text should be. It can even be left -out. It is only meant to give people a quick idea which browser is being -emulated by your desktop file. - -NEW PROPERTIES: -=============== -X-TDE-UA-TAG -FIELD: REQUIRED -TYPE: QString -TRANSLATE: NO -DESCRIPTION: -An abbreviation of the actual browser-brand and is used -to group the entries whenever necessary. Currently there are 5 -approximations: IE, NN, MOZ, OP, MISC. These represent Internet -Explorer, Netscape Navigator, Mozilla, Opera and Miscellaneous -respectively. NOTE: you can enter any value here as it is just -a place holder that would be automatically replaced with the -actual user-agent name (X-TDE-UA-NAME). - -X-TDE-UA-FULL -FIELD: REQUIRED -TYPE: QString -TRANSLATE: NO -DESCRIPTION: -The full user-agent description that will be sent to the remote -site. It can contain the following keywords that would be replaced -with the appropriate value as defined by "uname": - -appSysName the name of the operating system (ex: Linux). -appPlatform the name of the platform. Currently hardcoded to "X11". -appLanguage the language values as set in the control panel (ex: en, en-US). -appSysRelease the version of the operating system (ex: 2.2.18). -appKDERelease the current release number as set by KDE (ex: 2.1.9 >=20010310). -appMachineType the processor or machine type (ex: i686). - -NOTE: if you use any of these values and want them to be replaced -automatically, make sure you include the X-TDE-UA-DYNAMIC-ENTRY field -and set its value to 1 (for true). - -X-TDE-UA-NAME -FIELD: REQUIRED -TYPE: QString -TRANSLATE: YES -DESCRIPTION: -The actual name of the browser or user-agent. - -X-TDE-UA-VERSION -FIELD: REQUIRED -TYPE: QString -TRANSLATE: YES -DESCRIPTION: -The actual version of the browser or user-agent. - -X-TDE-UA-SYSNAME -FIELD: OPTIONAL -TYPE: QString -TRANSLATE: YES -DESCRIPTION: -The system name (for example Linux) where the browser -identification was obtained from. - -X-TDE-UA-SYSRELEASE -FIELD: OPTIONAL -TYPE: QString -TRANSLATE: YES -DESCRIPTION: -The system version (for example 2.4.1) where the browser -identification was obtained from. - -X-TDE-UA-DYNAMIC-ENTRY -FIELD: OPTIONAL -TYPE: BOOLEAN (0/1) -TRANSLATE: NO -DESCRIPTION: -A boolean that indicates whether the keywords described under -X-TDE-UA-FULL should be translated. Make sure this field is -there with its value set to "1" if you want the keywords to -be replaced appropriately. - - -EXAMPLES: -========= -[Desktop Entry] -Name=UADescription (IE 5.5 on Win 98) -Type=Service -ServiceTypes=UserAgentStrings -X-TDE-UA-TAG=IE -X-TDE-UA-FULL=Mozilla/4.0 (compatible; MSIE 5.5; Windows 98) -X-TDE-UA-NAME=Internet Explorer -X-TDE-UA-VERSION=5.5 -X-TDE-UA-SYSNAME=Windows -X-TDE-UA-SYSRELEASE=98 - -[Desktop Entry] -Name=UADescription (NN 4.76 on current) -Type=Service -ServiceTypes=UserAgentStrings -X-TDE-UA-TAG=NN -X-TDE-UA-FULL=Mozilla/4.76 (appPlatform; U; appSysName appSysRelease appMachineType) -X-TDE-UA-NAME=Netscape Navigator -X-TDE-UA-VERSION=4.76 -X-TDE-UA-DYNAMIC-ENTRY=1 - -The first entry is a description file for Internet Explorer running on -a Windows 98 machine while the second one is an example of a description -file for Netscape browser using the "keyword" based approach to describe -the fields that should be replaced dynamically based on the current system -settings. Note that all "keyword" based desktop files should always set -X-TDE-UA-DYNAMIC-ENTRY to 1. - -Enjoy, -Dawit A. diff --git a/kcontrol/kio/cache.cpp b/kcontrol/kio/cache.cpp deleted file mode 100644 index db831ca6f..000000000 --- a/kcontrol/kio/cache.cpp +++ /dev/null @@ -1,127 +0,0 @@ -/* - cache.cpp - Proxy configuration dialog - - Copyright (C) 2001,02,03 Dawit Alemayehu - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public - License (GPL) version 2 as published by the Free Software - Foundation. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include - -#include "ksaveioconfig.h" -#include - -#include "cache.h" -#include "cache_ui.h" - -KCacheConfigDialog::KCacheConfigDialog( TQWidget* parent ) - :TDECModule( parent, "kcmkio" ) -{ - TQVBoxLayout* mainLayout = new TQVBoxLayout(this, 0, 0); - m_dlg = new CacheDlgUI(this); - mainLayout->addWidget(m_dlg); - mainLayout->addStretch(); - - load(); -} - -void KCacheConfigDialog::load() -{ - m_dlg->cbUseCache->setChecked(KProtocolManager::useCache()); - m_dlg->sbMaxCacheSize->setValue( KProtocolManager::maxCacheSize() ); - - TDEIO::CacheControl cc = KProtocolManager::cacheControl(); - - if (cc==TDEIO::CC_Verify) - m_dlg->rbVerifyCache->setChecked( true ); - else if (cc==TDEIO::CC_Refresh) - m_dlg->rbVerifyCache->setChecked( true ); - else if (cc==TDEIO::CC_CacheOnly) - m_dlg->rbOfflineMode->setChecked( true ); - else if (cc==TDEIO::CC_Cache) - m_dlg->rbCacheIfPossible->setChecked( true ); - - // Config changed notifications... - connect ( m_dlg->cbUseCache, TQT_SIGNAL(toggled(bool)), TQT_SLOT(configChanged()) ); - connect ( m_dlg->bgCachePolicy, TQT_SIGNAL(clicked (int)), TQT_SLOT(configChanged()) ); - connect ( m_dlg->sbMaxCacheSize, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(configChanged()) ); - connect ( m_dlg->pbClearCache, TQT_SIGNAL(clicked()), TQT_SLOT(slotClearCache()) ); - emit changed( false ); -} - -void KCacheConfigDialog::save() -{ - KSaveIOConfig::setUseCache( m_dlg->cbUseCache->isChecked() ); - KSaveIOConfig::setMaxCacheSize( m_dlg->sbMaxCacheSize->value() ); - - if ( !m_dlg->cbUseCache->isChecked() ) - KSaveIOConfig::setCacheControl(TDEIO::CC_Refresh); - else if ( m_dlg->rbVerifyCache->isChecked() ) - KSaveIOConfig::setCacheControl(TDEIO::CC_Refresh); - else if ( m_dlg->rbOfflineMode->isChecked() ) - KSaveIOConfig::setCacheControl(TDEIO::CC_CacheOnly); - else if ( m_dlg->rbCacheIfPossible->isChecked() ) - KSaveIOConfig::setCacheControl(TDEIO::CC_Cache); - - // Update running io-slaves... - KSaveIOConfig::updateRunningIOSlaves (this); - - emit changed( false ); -} - -void KCacheConfigDialog::defaults() -{ - m_dlg->cbUseCache->setChecked( true ); - m_dlg->rbVerifyCache->setChecked( true ); - m_dlg->sbMaxCacheSize->setValue( DEFAULT_MAX_CACHE_SIZE ); -} - -TQString KCacheConfigDialog::quickHelp() const -{ - return i18n( "

    Cache

    This module lets you configure your cache settings.

    " - "

    The cache is an internal memory in Konqueror where recently " - "read web pages are stored. If you want to retrieve a web " - "page again that you have recently read, it will not be " - "downloaded from the Internet, but rather retrieved from the " - "cache, which is a lot faster.

    " ); -} - -void KCacheConfigDialog::configChanged() -{ - emit changed( true ); -} - -void KCacheConfigDialog::slotClearCache() -{ - TDEProcess process; - process << "kio_http_cache_cleaner" << "--clear-all"; - process.start(TDEProcess::DontCare); - // Cleaning up might take a while. Better detach. - process.detach(); -} - -#include "cache.moc" diff --git a/kcontrol/kio/cache.desktop b/kcontrol/kio/cache.desktop deleted file mode 100644 index affcb30bf..000000000 --- a/kcontrol/kio/cache.desktop +++ /dev/null @@ -1,220 +0,0 @@ -[Desktop Entry] -Type=Application -DocPath=kcontrol/cache/index.html -Icon=cache -Exec=tdecmshell cache - - -X-TDE-Library=kio -X-TDE-FactoryName=cache -X-TDE-ParentApp=kcontrol - -Name=Cache -Name[af]=Kas -Name[ar]=الخابية -Name[az]=Ön Yaddaş -Name[be]=Кэш -Name[bg]=Временна памет -Name[bn]=ক্যাশে (Cache) -Name[br]=Krubuilh -Name[ca]=Cau -Name[de]=Zwischenspeicher -Name[el]=Λανθάνουσα μνήμη -Name[eo]=Tenejo -Name[es]=Caché -Name[et]=Puhver -Name[eu]=Katxea -Name[fa]=نهانگاه -Name[fi]=Välimuisti -Name[fy]=Lyts ûnthâld -Name[ga]=Taisce -Name[gl]=Caché -Name[he]=מטמון -Name[hi]=कैश -Name[hr]=Pohrana -Name[hu]=Gyorstár -Name[is]=Skyndiminni -Name[ja]=キャッシュ -Name[ka]=ქეში -Name[kk]=Бүркеме -Name[km]=ឃ្លាំង​សម្ងាត់ -Name[ko]=캐시 -Name[lo]=ແຄຊ -Name[lt]=Krepšys -Name[lv]=Kešatmiņa -Name[mk]=Кеш -Name[mn]=Завсрын хадгалагч -Name[nb]=Mellomlager -Name[nds]=Twischenspieker -Name[ne]=क्यास -Name[nn]=Mellomlager -Name[nso]=Polokelo -Name[pa]=ਕੈਂਚੇ -Name[pl]=Bufor -Name[ru]=Кэш -Name[rw]=Ubwihisho -Name[se]=Gaskarájus -Name[sk]=Vyrovnávacia pamäť -Name[sl]=Prepomnilnik -Name[sr]=Кеш -Name[sr@Latn]=Keš -Name[ta]=தற்காலிக -Name[te]=కెష్ -Name[tg]=Кэш -Name[th]=แคช -Name[tr]=Önbellek -Name[tt]=Alxäter -Name[uk]=Кеш -Name[uz]=Kesh -Name[uz@cyrillic]=Кэш -Name[vi]=Bộ đệm -Name[wa]=Muchete -Name[xh]=Indawo yokugcina efihlakeleyo -Name[zh_CN]=缓存 -Name[zh_TW]=快取 -Comment=Configure web cache settings -Comment[af]=Konfigureer web kas instellings -Comment[ar]=إعداد الخابية للشبكة -Comment[az]=Veb ün yaddaş qurğuları -Comment[be]=Настаўленні сеціўнага кэша -Comment[bg]=Настройване на временната памет -Comment[bn]=ওয়েব ক্যাশে সেটিংস কনফিগার করুন -Comment[br]=Kefluniañ krubuilh ar gwiad -Comment[bs]=Podesite postavke web cache-a -Comment[ca]=Configura les opcions per al cau web -Comment[cs]=Nastavení cache pro webové stránky -Comment[csb]=Kònfigùracëjô nastôwù cache -Comment[cy]=Ffurfweddu gosodiadau'r storfa w? -Comment[da]=Indstil cache-opsætning -Comment[de]=Einstellungen zum Zwischenspeicher vornehmen -Comment[el]=Ρυθμίστε τη λανθάνουσα μνήμη ιστοσελίδων -Comment[eo]=Agordo de tenejo -Comment[es]=Preferencias del caché de web -Comment[et]=Veebi vahemälu seadistamine -Comment[eu]=Konfiguratu web katxearen ezarpenak -Comment[fa]=پیکربندی تنظیمات نهانگاه وب -Comment[fi]=WWW-välimuistin asetuksia -Comment[fr]=Configuration des réglages du cache web -Comment[fy]=Hjir kinne jo it lyts ûnthâld fan it web ynstelle -Comment[gl]=Configurar as opcións da caché web -Comment[he]=שינוי הגדרות המטמון -Comment[hi]=वेब कैश विन्यास कॉन्फ़िगर करें -Comment[hr]=Konfiguriranje postavki web-pohrane -Comment[hu]=A webböngészési gyorstár beállításai -Comment[is]=Stilla skyndiminni fyrir vefflakk -Comment[it]=Configura le impostazioni della cache del web -Comment[ja]=ウェブキャッシュの設定 -Comment[ka]=ვებ კეშის პარამეტრების კონფიგურაცია -Comment[kk]=Веб бүркеме параметрлерін баптау -Comment[km]=កំណត់​រចនាសម្ព័ន្ធ​ការ​កំណត់​ឃ្លាំង​សម្ងាត់​បណ្ដាញ -Comment[ko]=웹 캐시 설정 -Comment[lo]=ປັບແຕ່ງການຕັ້ງຄ່າລະບົບແຄຊທີ່ນີ້ -Comment[lt]=Konfigūruokite žiniatinklio krepšio nustatymus -Comment[lv]=Šeit jūs varat konfigurēt tīmekļa kešatmiņas uzstādījumus -Comment[mk]=Конфигурирајте ги поставувањата за веб-кешот -Comment[mn]=Завсрын хадгалагч тохируулах -Comment[ms]=Konfigur seting cache web -Comment[mt]=Ikkonfigura l-cache tal-web -Comment[nb]=Tilpass vev-mellomlageret -Comment[nds]=Den Nett-Twischenspieker instellen -Comment[ne]=वेब क्यास सेटिङ कन्फिगर गर्नुहोस् -Comment[nl]=Hier kunt u de webcache instellen -Comment[nn]=Oppsett av vevmellomlager -Comment[nso]=Beakanya dipeakanyo tsa polokelo ya web -Comment[pa]=ਵੈੱਬ ਕੈਂਚੇ ਸੈਟਿੰਗ ਸੰਰਚਨਾ -Comment[pl]=Konfiguracja ustawień bufora (cache'a) -Comment[pt]=Configuração das opções da 'cache' da Web -Comment[pt_BR]=Configura as preferências de cache -Comment[ro]=Configurează setările cache-ului web -Comment[ru]=Настройка кэша -Comment[rw]=Kuboneza amagenamiterere y'ubwihisho bw'urubuga -Comment[se]=Heivet fierpmádatgaskarádjusa -Comment[sk]=Nastavenie vyrovnávacej pamäte pre WWW -Comment[sl]=Nastavitve spletnega predpomnilnika -Comment[sr]=Подешавање поставки веб кеша -Comment[sr@Latn]=Podešavanje postavki veb keša -Comment[sv]=Anpassa webbcacheinställningar -Comment[ta]=வலை தற்காலிக அமைப்புகளை வடிவமை -Comment[tg]=Танзимоти қароргоҳи пинҳонии интернет -Comment[th]=ปรับแต่งการตั้งค่าระบบแคช -Comment[tr]=Web önbellek ayarlarını buradan yapabilirsiniz -Comment[tt]=Alxäter caylawı -Comment[uk]=Налаштування установок кешу Тенет -Comment[uz]=Veb-kesh moslamalarini moslash -Comment[uz@cyrillic]=Веб-кэш мосламаларини мослаш -Comment[ven]=Dzudzanyani mavhekanyele a cache a webu -Comment[vi]=Cấu hình các thiết lập bộ đệm cho duyệt mạng -Comment[wa]=Fijhoz l' apontiaedje del muchete des pådjes waibe chal -Comment[xh]=Qwalasela izicwangciso ze web yendawo yokugcina efihlakeleyo -Comment[zh_CN]=配置网页缓存设置 -Comment[zh_TW]=設定網頁快取設定 -Comment[zu]=Hlanganisela izilungiselelo ze-cache ye-web -Keywords=Cache,History,Browsing History,Ports,Size -Keywords[ar]=الخابية,الخط الزمني,خط زمن التصفح,المنافذ,القياس الحجم,الذاكرة المخبئية,التأريخ,تأريخ المتصفح,المنافذ,الحجم -Keywords[az]=Kaşe,Keçmiş,Səyahət Keçmişi,Qapılar,Böyüklük -Keywords[be]=Кэш,Гісторыя,Гісторыя вандровак,Вандраванне,Парты,Памер,Cache,History,Browsing History,Ports,Size -Keywords[bg]=кеш, памет, временни, копия, страница, Cache, History, Browsing History, Ports, Size -Keywords[br]=Krubuilh,istor,furchal an istor,porzhioù,ment -Keywords[ca]=Cau,Historial,Historial de navegació,Ports,Mida -Keywords[cs]=Cache,Historie,Porty,Velikost -Keywords[csb]=cache,historëjô,historëjô przezéraniô,pòrtë,miara -Keywords[cy]=Storfa,Hanes,Hanes Pori,Pyrth,Maint -Keywords[da]=Cache,Historik,Netsøgningshistorik,Porte,Størrelse -Keywords[de]=Cache,Verlauf,History,Ports,Zwischenspeicher, Größe -Keywords[el]=Λανθάνουσα μνήμη,Ιστορικό,Ιστορικό περιήγησης,Θύρες,Μέγεθος -Keywords[eo]=Tenejo,Historio,TTT-umado,Pordoj,Grandeco -Keywords[es]=Caché,Historia,Historia de navegación,Puertos,Tamaño -Keywords[et]=cache,puhver,lehitsemise puhver,pordid,suurus -Keywords[eu]=Katxea,Historia,Arakaketa historia,Atakak,Neurria -Keywords[fa]=نهانگاه، تاریخچه، تاریخچۀ مرور، درگاهها، اندازه -Keywords[fi]=Välimuisti,Historia,Selailuhistoria,Portit,Koko -Keywords[fr]=Cache,historique,navigation de l'historique,ports,taille -Keywords[fy]=cache,lyts ûnthâld,history,Histoarje,grutte,Ynternet -Keywords[ga]=Taisce,Stair,Stair Brabhsála,Poirt,Méid -Keywords[gl]=Caché,Historial,Historial de Navegación,Portos,Tamaño -Keywords[he]=מטמון,היסטוריה,היסטוריית גלישה,יציאות,גודל,Cache,History,Browsing History,Ports,Size -Keywords[hi]=कैश,इतिहास,ब्राउज़िंग इतिहास,पोर्ट,आकार -Keywords[hr]=Cache,Pohrana,History,Povijest,Browsing History,Ports,Portovi,Size,Veličina,Povijest pretraživanja -Keywords[hu]=gyorstár,napló,böngészési napló,portok,méret -Keywords[is]=Skyndiminni,Saga,Vafrasaga,Gáttir,Stærð -Keywords[it]=cache,cronologia,navigazione,cronologia di navigazione,porte,dimensione -Keywords[ja]=キャッシュ,履歴,ブラウズの履歴,ポート,サイズ -Keywords[ka]=ქეში,ისტორია,მიმოხილვის ისტორია,პორტები,ზომა -Keywords[km]=ឃ្លាំង​សម្ងាត់,ប្រវត្តិ,ប្រវត្តិ​ការ​រុករក,ច្រក,ទំហំ -Keywords[lo]=ແຄຊ,ປະຫວັດການໃຊ້,ປະຫວັດການທ່ອງເວບประวัต,ພັອດ,ຂະຫນາດ -Keywords[lt]=Cache,History,Browsing History,Ports,Size, kešas,krepšys,žurnalas,istorija,naršymo žurnalas,naršymo istorija,portai,dydis -Keywords[mk]=Cache,History,Browsing History,Ports,Size,Кеш,Историја,Прелистување на историјата,Портови,Големина -Keywords[mn]=Cache,Түүх,History,Порт,Завсрын хадгалагч,Хэмжээ -Keywords[nb]=Mellomlager,Historie,Lesehistorie,Porter,Størrelse -Keywords[nds]=Twischenspieker,Vörgeschicht,Browsing History,Porten,Grött -Keywords[ne]=क्यास, इतिहास, ब्राउज इतिहास, पोर्ट, साइज -Keywords[nl]=cache,historie,geschiedenis,grootte,internet -Keywords[nn]=cache,mellomlager,historie,nettlesarhistorie,portar,storleik -Keywords[nso]=Polokelo,Histori,Hostori ya Boinyakisi,Maboemo,Bogolo -Keywords[pa]=ਅਕਾਰ,ਅਤੀਤ,ਝਲਕਾਰਾ,ਕੈਂਚੇ,ਪੋਰਟ -Keywords[pl]=cache,bufor,historia,historia przeglądania,porty,rozmiar -Keywords[pt]=Cache,Histórico,Histórico de Navegação,Portos,Tamanho -Keywords[pt_BR]=Cache,Histórico,Histórico de Navegação,Portas,Tamanho -Keywords[ro]=cache,istoric,navigare în istoric,porturi,mărime -Keywords[rw]=Ubwihisho,Amateka,Amateka yo Gucukumbura,Imiyoboro,Ingano -Keywords[se]=gaskarájus,historihkka,fierpmádatloganhistorihkka,verráhat,sturrodat -Keywords[sk]=Cache,Keš,vyrovnávacia pamäť,prehliadanie,história,porty,veľkosť -Keywords[sl]=predpomnilnik,zgodovina,zgodovina brskanja,vrata,velikost -Keywords[sr]=Кеш, Историјат, Прегледање историјата, Портови, Величина -Keywords[sr@Latn]=Keš, Istorijat, Pregledanje istorijata, Portovi, Veličina -Keywords[sv]=Cache,Historik,Webbläsningshistorik,Portar,Storlek -Keywords[ta]=தற்காலிக,வரலாறு,உலாவுதலின் வரலாறு,முனையங்கள்,அளவு -Keywords[th]=แคช,ประวัติการใช้,ประวัติการท่องเว็บ,พอร์ต,ขนาด -Keywords[tr]=Arabellek,Tarihçe,Gözatma Tarihçesi,Portlar -Keywords[uk]=кеш,історія, історія навігації,порти,розмір -Keywords[uz]=Kesh,Veb-sahifalar tarihi,Tarix,Portlar -Keywords[uz@cyrillic]=Кэш,Веб-саҳифалар тариҳи,Тарих,Портлар -Keywords[ven]=Cache,Divhazwakale,Divahzwakale ya Burausini,Ports,Saizi -Keywords[vi]=Đệm,Lịch sử,Lịch sử duyệt,Cổng,Cỡ -Keywords[wa]=Muchete,Istwere,Istwere do foytaedje,Pôrts,Grandeu -Keywords[xh]=Indawo yokugcina, Imbali, imbali Yokhangelo zincwadi, Amazibuko, Ubungakanani -Keywords[zh_CN]=Cache,History,Browsing History,Ports,Size,缓存,历史 -Keywords[zh_TW]=Cache,History,Browsing History,Ports,Size,快取 -Keywords[zu]=Cache,Umlando,Umlando wokucinga,Izikhumulo,Usayizi - -Categories=Qt;TDE;X-TDE-settings-webbrowsing; diff --git a/kcontrol/kio/cache.h b/kcontrol/kio/cache.h deleted file mode 100644 index 03a4d0581..000000000 --- a/kcontrol/kio/cache.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - cache.h - Proxy configuration dialog - - Copyright (C) 2001,02,03 Dawit Alemayehu - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public - License (GPL) version 2 as published by the Free Software - Foundation. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#ifndef CACHE_H -#define CACHE_H - -#include - -class CacheDlgUI; - -class KCacheConfigDialog : public TDECModule -{ - Q_OBJECT - -public: - KCacheConfigDialog( TQWidget* parent = 0 ); - ~KCacheConfigDialog() {}; - - virtual void load(); - virtual void save(); - virtual void defaults(); - TQString quickHelp() const; - -protected slots: - void configChanged(); - void slotClearCache(); - -private: - CacheDlgUI* m_dlg; -}; - -#endif // CACHE_H diff --git a/kcontrol/kio/cache_ui.ui b/kcontrol/kio/cache_ui.ui deleted file mode 100644 index ce9aed797..000000000 --- a/kcontrol/kio/cache_ui.ui +++ /dev/null @@ -1,187 +0,0 @@ - -CacheDlgUI - - - CacheDlgUI - - - - 0 - 0 - 424 - 172 - - - - - unnamed - - - 1 - - - - spacer1 - - - Horizontal - - - Fixed - - - - 16 - 21 - - - - - - lbMaxCacheSize - - - false - - - Disk cache &size: - - - sbMaxCacheSize - - - - - sbMaxCacheSize - - - false - - - 1 - - - 999999 - - - KB - - - - - pbClearCache - - - false - - - C&lear Cache - - - - - spacer2 - - - Horizontal - - - MinimumExpanding - - - - 0 - 21 - - - - - - cbUseCache - - - &Use cache - - - Check this box if you want the web pages you visit to be stored on your hard disk for quicker access. The stored pages will only be updated as needed instead of on every visit to that site. This is especially useful if you have a slow connection to the Internet. - - - - - bgCachePolicy - - - false - - - Policy - - - - unnamed - - - - rbVerifyCache - - - &Keep cache in sync - - - Verify whether the cached web page is valid before attempting to fetch the web page again. - - - - - rbCacheIfPossible - - - Use cache whenever &possible - - - Always use documents from the cache when available. You can still use the reload button to synchronize the cache with the remote host. - - - - - rbOfflineMode - - - O&ffline browsing mode - - - Do not fetch web pages that are not already stored in the cache. Offline mode prevents you from viewing pages that you have not previously visited. - - - - - - - - - cbUseCache - toggled(bool) - bgCachePolicy - setEnabled(bool) - - - cbUseCache - toggled(bool) - lbMaxCacheSize - setEnabled(bool) - - - cbUseCache - toggled(bool) - sbMaxCacheSize - setEnabled(bool) - - - cbUseCache - toggled(bool) - pbClearCache - setEnabled(bool) - - - - diff --git a/kcontrol/kio/cookies.desktop b/kcontrol/kio/cookies.desktop deleted file mode 100644 index 433be9a18..000000000 --- a/kcontrol/kio/cookies.desktop +++ /dev/null @@ -1,215 +0,0 @@ -[Desktop Entry] -Type=Application -DocPath=kcontrol/cookies/index.html -Icon=cookie -Exec=tdecmshell cookies - - -X-TDE-Library=kio -X-TDE-FactoryName=cookie -X-TDE-ParentApp=kcontrol - -Name=Cookies -Name[af]=Koekies -Name[ar]=الكعكات -Name[az]=Kökələr (Cookies) -Name[bg]=Бисквитки -Name[bn]=কুকি -Name[br]=Toupinoù -Name[bs]=Kolačići -Name[ca]=Galetes -Name[csb]=Kùszczi -Name[cy]=Cwcis -Name[da]=Cookier -Name[eo]=Kuketoj -Name[et]=Küpsised -Name[eu]=Cookie-ak -Name[fa]=کوکیها -Name[fi]=Evästeet -Name[fy]=Koekjes -Name[ga]=Fianáin -Name[he]=עוגיות -Name[hi]=कुकीज़ -Name[hr]=Kolačići -Name[hu]=Cookie-k -Name[is]=Smákökur -Name[it]=Cookie -Name[ja]=クッキー -Name[ka]=ქუქები -Name[km]=ខូគី -Name[ko]=쿠키 -Name[lo]=ຄຸກກີ້ -Name[lt]=Slapukai -Name[lv]=Cepumi -Name[mk]=Колачиња -Name[nb]=Informasjonskapsler -Name[nds]=Kookjes -Name[ne]=कुकी -Name[nn]=Informasjonskapslar -Name[nso]=Di-Cookie -Name[pa]=ਕੂਕੀਜ਼ -Name[pl]=Ciasteczka -Name[ro]=Cookie-uri -Name[rw]=Inyandikonyakwirema -Name[se]=Diehtočoahkku -Name[sl]=Piškotki -Name[sr]=Колачићи -Name[sr@Latn]=Kolačići -Name[sv]=Kakor -Name[ta]=தற்காலிக நினைவுகள் -Name[te]=కుకిస్ -Name[th]=คุกกี้ -Name[tr]=Çerezler -Name[tt]=Cookie -Name[uk]=Куки -Name[uz]=Kukilar -Name[uz@cyrillic]=Кукилар -Name[wa]=Coukes - -Comment=Configure the way cookies work -Comment[af]=Konfigureer die weg koekies werk -Comment[ar]=إعداد أسلوب العمل للكعكات -Comment[az]=Kökələrin işləmə yollarını quraşdır -Comment[be]=Наставіць cookies -Comment[bg]=Настройване на бисквитките -Comment[bn]=কুকি কনফিগার করুন -Comment[br]=Kefluniañ peseurt mod e labour an toupinoù -Comment[bs]=Podesite način rada cookie-ja -Comment[ca]=Configura com treballaran les galetes -Comment[cs]=Nastavení chování cookies -Comment[csb]=Kònfigùracëjô dzéjaniô kùszków (cookies) -Comment[cy]=Ffurfweddu'r ffordd y mae cwcis yn gweithio -Comment[da]=Indstil den måde cookier virker -Comment[de]=Einstellungen zu Cookies vornehmen -Comment[el]=Ρυθμίστε τον τρόπο με τον οποίο δουλεύουν τα cookies -Comment[eo]=Agordo de kuketoj -Comment[es]=Configuración del funcionamiento de las cookies -Comment[et]=Küpsiste käitumise seadistamine -Comment[eu]=Konfiguratu cookien portaera -Comment[fa]=پیکربندی روش کار کردن کوکیها -Comment[fi]=Evästeiden toiminta -Comment[fr]=Configuration de la manière dont les cookies fonctionnent -Comment[fy]=Hjir kinne jo de wurkwize fan koekjes ynstelle -Comment[gl]=Configurar o funcionamento das cookies -Comment[he]=שינוי הגדרות פעולת העוגיות -Comment[hi]=कुकीज़ के कार्य करने के ढंग कॉन्फ़िगर करें -Comment[hr]=Konfiguriranje funkcioniranja kolačića -Comment[hu]=A cookie-k beállításai -Comment[is]=Stilla hvernig tekið er við smákökum -Comment[it]=Configurazione del funzionamento dei cookie -Comment[ja]=クッキーの扱いを設定 -Comment[kk]=Cookies жұмысын баптау -Comment[km]=កំណត់​រចនាសម្ព័ន្ធ​របៀប​ដែល​ខូគី​ដំណើរការ -Comment[ko]=쿠키 작동 방법을 설정합니다 -Comment[lo]=ປັບແຕ່ງການຕັ້ງຄ່າລະບົບແຄຊທີ່ນີ້ -Comment[lt]=Čia galite keisti slapukų veikimą -Comment[lv]=Šeit jūs varat konfigurēt cepumus -Comment[mk]=Конфигурирајте го начинот на кој работат колачињата -Comment[mn]=Cookies ажлыг тохируулах -Comment[ms]=Konfigur cara cookies berfungsi -Comment[mt]=Ikkonfigura kif jaħdmu l-"cookies" -Comment[nb]=Oppsett av informasjonskapsler -Comment[nds]=Instellen, woans de Kookjes funkscheneert -Comment[ne]=कुकीको कार्य तरिका कन्फिगर गर्नुहोस् -Comment[nl]=Hier kunt u het cookiesbeleid instellen -Comment[nn]=Oppsett av informasjonskapslar -Comment[nso]=Beakanya kamokgwa wo di-cookies di berekago kagona -Comment[pa]=ਕੂਕੀਜ਼ ਕੰਮ ਦੇ ਢੰਗ ਦੀ ਸੰਰਚਨਾ -Comment[pl]=Konfiguracja działania ciasteczek (cookies) -Comment[pt]=Configuração da forma como os 'cookies' funcionam -Comment[pt_BR]=Configura a maneira como os cookies funcionarão -Comment[ro]=Configurează modul în care acționează cookie-urile -Comment[ru]=Настройка cookies -Comment[rw]=Kuboneza uburyo inyandikonyakwirema zikora -Comment[se]=Diehtočoahkkoheivehusat -Comment[sk]=Nastavenie podpory cookies -Comment[sl]=Nastavitve delovanja piškotkov -Comment[sr]=Подешавање начина на који раде колачићи -Comment[sr@Latn]=Podešavanje načina na koji rade kolačići -Comment[sv]=Anpassa hur kakor fungerar -Comment[ta]=தற்காலிக நினைவகங்கள் வேலையை வடிவமை -Comment[tg]=Мизроб кардани cookies -Comment[th]=ปรับแต่งวิธีการทำงานของคุกกี้ -Comment[tr]=Çerezlerin çalışmasını yapılandırır -Comment[tt]=Cookies caylawı -Comment[uk]=Налаштування механізму кук -Comment[uz]=Kukilar ishlashini moslash -Comment[uz@cyrillic]=Кукилар ишлашини мослаш -Comment[ven]=Dzudzanyani ndila ine cookies dza shuma ngayo -Comment[vi]=Cấu hình cách cookies hoạt động -Comment[wa]=Apontyî l' dujhance des coukes -Comment[xh]=Qwalasela indlela ezisebenza ngayo i cookies -Comment[zh_CN]=配置 cookies 相关设置 -Comment[zh_TW]=設定 cookies 運作方式 -Comment[zu]=Hlanganisela indlela i-cookies esebenza ngayo - -Keywords=Cookies,Browsing,Internet,WWW,Network,Policy,Domains -Keywords[ar]=الكعكات,التصفح,الإنترنت,الشبكة العالمية,الشبكة,السياسة,أسماء النطاقات -Keywords[az]=Kökələr,Darama,İnternet,WWW,Şəbəkə,Sahə -Keywords[be]="Печыва",Вандроўка,Вандраванне,Інтэрнэт,Сетка,Правілы,Домены,Cookies,Browsing,Internet,WWW,Network,Policy,Domains -Keywords[bg]=бисквитка, бисквитки, Интернет, сърфиране, сесия, сигурност, Cookies, Browsing, Internet, WWW, Network, Policy, Domains -Keywords[ca]=Galetes,fullejar,Internet,WWW,Xarxa,Política,Dominis -Keywords[cs]=Cookie,Prohlížení,Internet,WWW,Síť,Domény -Keywords[csb]=kùszczi,przezéranié,Internet,WWW,séc,reglë,domenë -Keywords[cy]=Cwcis,Pori,Rhyngrwyd,WWW,Rhwydwaith,Polisi,Parthau -Keywords[da]=Cookier,Netsøgning,Internet,www,Netværk,Politik,Domæner -Keywords[de]=Cookies,Durchsuchen,Browsen,Surfen,Internet,WWW,Netzwerk,Regelungen,Domains -Keywords[el]=Cookies,Περιήγηση,Διαδίκτυο,WWW,Δίκτυο,Πολιτική,Τομείς -Keywords[eo]=kuketoj,TTT,Interreto,WWW,reto,konduto,retregionoj -Keywords[es]=Cookies,Navegación,Internet,WWW,Red,Política,Dominios -Keywords[et]=küpsised,lehitsemine,Internet,WWW,võrk,reeglid,domeenid -Keywords[eu]=Cookie-ak,Arakaketa,Internet,WWW,Sarea,Arautegia,Domeinuak -Keywords[fa]=کوکیها، مرور، اینترنت، WWW، شبکه، سیاست، دامنه‌ها -Keywords[fi]=Evästeet,Selailu,Internet,WWW,Verkko,Politiikka,Verkkoalueet -Keywords[fr]=Cookies,navigation,internet,WWW,Web,réseau,règle,politique,domaine -Keywords[fy]=Koekjes,blêdzjen,ynternet,www,netwurk,wurkwize,domeinen -Keywords[ga]=Fianán,Brabhsáil,Idirlíon,WWW,Líonra,Polasaí,Fearainn -Keywords[gl]=Cookies,Navegación,Internet,WWW,Rede,Política,Dominios -Keywords[he]=עוגיות,גלישה,אינטרנט,WWW,רשת,מדיניות,תחומים, Cookies,Browsing,Internet,Network,Policy,Domains -Keywords[hi]=कुकीज़,ब्राउजिंग,इंटरनेट,डब्ल्यूडब्ल्यूडब्ल्यू,नेटवर्क,पालिसी,डोमेन्स -Keywords[hr]=Cookies,Browsing,Internet,WWW,Network,Policy,Domains,Kolačići,Domene,Mreža,Pravila,Pregledavanje,Pretraživanje -Keywords[hu]=cookie-k,böngészés,internet,WWW,hálózat,házirend,tartományok -Keywords[id]=Cookies,Browsing,Internet,WWW,Jaringan,Policy,Domains -Keywords[is]=Smákökur,Flakk,Flakkari,Vafr,Vafri,Vefurinn,Netið,lén -Keywords[it]=cookie,navigazione,Internet,WWW,rete,politica,domini -Keywords[ja]=クッキー,ブラウス,インターネット,WWW,ネットワーク,ポリシー,ドメイン -Keywords[ka]=ქუქები,მიმოხილვა,ინტერნეტი,WWW,ქსელი,პოლისი,დომენები -Keywords[km]=ខូគី,រុករក,អ៊ិនធឺណិត,វើលវ៉ាយវិប,បណ្ដាញ,ភាព​ឯកជន,ដែន -Keywords[lo]=ຄຸກກີ້,ການຮງກເບິ່ງເວບເພດ,ອິນເຕີເນັດ,WWW,ລະບົບເຄືອຂ່າຍ, ຂໍ້ກຳນົດ,ໂດເມນ -Keywords[lt]=Slapukai,Naršymas,Internetas,WWW,Tinklas,Taisyklės,Sritys -Keywords[lv]=Cepumi,Pārlūkošana,Internets,WWW,Tīkls,Politika,Domēni -Keywords[mk]=Cookies,Browsing,Internet,WWW,Network,Policy,Domains,Колачиња,Прелистување,Интернет,Мрежа,Политика,Домени -Keywords[mn]=Cookies,Нэгжих,Browsing,Тэнэх,Интернэт,WWW,Сүлжээ,Дүрмүүд,Домайн -Keywords[nb]=cookies,informasjonskapsler,surfing,internett,WWW,verdensveven,nettverk,praksis,domene -Keywords[nds]=Kookjes,Nettkieken,Internet,WWW,Nettwark,Regel,Domänen -Keywords[ne]=कुकी,ब्राउजिङ, इन्टरनेट, WWW, सञ्जाल, नीति, डोमेन -Keywords[nl]=cookies,browsing,internet,www,netwerk,beleid,domeinen -Keywords[nn]=cookies,informasjonskapslar,surfing,internett,WWW,verdsveven,nettverk,praksis,domene -Keywords[nso]=Di-Cookies,Boinyakisi,Internet,WWW,Kgokagano,Molao,Ditikologo -Keywords[pa]=Cookies,Browsing,Internet,WWW,Network,ਨੀਤੀ, ਡੋਮੇਨ,ਇੰਟਰਨੈਟ -Keywords[pl]=ciasteczka,przeglądanie,Internet,WWW,sieć,zasady,domeny -Keywords[pt]=cookies,navegação,internet,WWW,rede,política,domínios -Keywords[pt_BR]=Cookies,Navegação,Internet,WWW,Rede,Política,Domínios -Keywords[ro]=cookies,navigare,Internet,WWW,rețea,politici,domenii -Keywords[rw]=Inyandikonyakwirema,Gucukumbura,Interineti,WWW,Urusobemiyoboro,Politiki,Indangarubuga -Keywords[se]=diehtočoahkku,bláđđen,fierpmádat,WWW,fierbmi,geavat,domeana -Keywords[sk]=Cookies,Prehliadanie, Internet, WWW, Sieť,Politika,Domény -Keywords[sl]=piškotki,brskanje,internet,splet,WWW,omrežje,politika,domene -Keywords[sr]=Cookies,Browsing,Интернет,WWW,Network,Policy,Domains,колачићи,Прегледање,мрежа,полиса,домени -Keywords[sr@Latn]=Cookies,Browsing,Internet,WWW,Network,Policy,Domains,kolačići,Pregledanje,mreža,polisa,domeni -Keywords[sv]=Kakor,Surfning,Internet,WWW,Nätverk,Policy,Domäner -Keywords[ta]=தற்காலிக நினைவகம்,உலாவுதல்,இணையம்t,WWW,வலைப்பின்னல்,கொள்கை,வலைதளங்கள் -Keywords[th]=คุกกี้,การเรียกดูเว็บเพจ,อินเทอร์เน็ต,WWW,ระบบเครือข่าย,ข้อกำหนด,โดเมน -Keywords[tr]=Çerezler,Tarama,İnternet,WWW,Ağ,Alan -Keywords[uk]=куки,навігація,Internet,Інтернет,WWW,мережа,правила,домени,Тенета -Keywords[uz]=Kukilar,Internet,WWW,Tarmoq,Qoida,Domenlar -Keywords[uz@cyrillic]=Кукилар,Интернет,WWW,Тармоқ,Қоида,Доменлар -Keywords[ven]=Cookies,Burousini.Inithenete,WWW -EnvVarProxyDlgUI - - - EnvVarProxyDlgUI - - - - 0 - 0 - 438 - 133 - - - - - unnamed - - - 0 - - - - leFtp - - - <qt> -Enter the name of the environment variable, e.g. <b>FTP_PROXY</b>, used to store the address of the FTP proxy server.<p> -Alternatively, you can click on the <b>"Auto Detect"</b> button to attempt an automatic discovery of this variable. -</qt> - - - - - leHttp - - - <qt> -Enter the name of the environment variable, e.g. <b>HTTP_PROXY</b>, used to store the address of the HTTP proxy server.<p> -Alternatively, you can click on the <b>"Auto Detect"</b> button to attempt automatic discovery of this variable. -</qt> - - - - - lbFtp - - - &FTP: - - - leFtp - - - <qt> -Enter the name of the environment variable, e.g. <b>FTP_PROXY</b>, used to store the address of the FTP proxy server.<p> -Alternatively, you can click on the <b>"Auto Detect"</b> button to attempt an automatic discovery of this variable. -</qt> - - - - - lbHttps - - - HTTP&S: - - - leHttps - - - <qt> -Enter the name of the environment variable, e.g. <b>HTTPS_PROXY</b>, used to store the address of the HTTPS proxy server.<p> -Alternatively, you can click on the <b>"Auto Detect"</b> button to attempt an automatic discovery of this variable. -</qt> - - - - - cbShowValue - - - Show the &value of the environment variables - - - - - pbVerify - - - &Verify - - - <qt>Verify whether or not the environment variable names you supplied are valid. If an environment variable is not found, the associated labels will be <b>highlighted</b> to indicate that they are invalid.</qt> - - - - - pbDetect - - - Auto &Detect - - - <qt>Attempt automatic discovery of the environment variables used for setting system wide proxy information.<p> This feature works by searching for commonly used variable names such as HTTP_PROXY, FTP_PROXY and NO_PROXY.</qt> - - - - - lbHttp - - - H&TTP: - - - leHttp - - - <qt> -Enter the name of the environment variable, e.g. <b>HTTP_PROXY</b>, used to store the address of the HTTP proxy server.<p> -Alternatively, you can click on the <b>"Auto Detect"</b> button to attempt automatic discovery of this variable. -</qt> - - - - - leHttps - - - <qt> -Enter the name of the environment variable, e.g. <b>HTTPS_PROXY</b>, used to store the address of the HTTPS proxy server.<p> -Alternatively, you can click on the <b>"Auto Detect"</b> button to attempt an automatic discovery of this variable. -</qt> - - - - - leNoProxy - - - <qt> -Enter the environment variable, e.g. <b>NO_PROXY</b>, used to store the addresses of sites for which the proxy server should not be used.<p> -Alternatively, you can click on the <b>"Auto Detect"</b> button to attempt an automatic discovery of this variable. -</qt> - - - - - lbNoProxy - - - NO &PROXY: - - - leNoProxy - - - <qt> -Enter the environment variable, e.g. <b>NO_PROXY</b>, used to store the addresses of sites for which the proxy server should not be used.<p> -Alternatively, you can click on the <b>"Auto Detect"</b> button to attempt an automatic discovery of this variable. -</qt> - - - - - - leHttp - leHttps - leFtp - leNoProxy - pbVerify - pbDetect - - - diff --git a/kcontrol/kio/fakeuaprovider.cpp b/kcontrol/kio/fakeuaprovider.cpp deleted file mode 100644 index e00c63862..000000000 --- a/kcontrol/kio/fakeuaprovider.cpp +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Copyright (c) 2001 Dawit Alemayehu - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include -#include - - -#include -#include -#include - -#include "fakeuaprovider.h" - -#define UA_PTOS(x) (*it)->property(x).toString() -#define QFL(x) TQString::fromLatin1(x) - -FakeUASProvider::FakeUASProvider() -{ - m_bIsDirty = true; -} - -FakeUASProvider::StatusCode FakeUASProvider::createNewUAProvider( const TQString& uaStr ) -{ - TQStringList split; - int pos = (uaStr).find("::"); - - if ( pos == -1 ) - { - pos = (uaStr).find(':'); - if ( pos != -1 ) - { - split.append(uaStr.left(pos)); - split.append(uaStr.mid(pos+1)); - } - } - else - { - split = TQStringList::split("::", uaStr); - } - - if ( m_lstIdentity.contains(split[1]) ) - return DUPLICATE_ENTRY; - else - { - int count = split.count(); - m_lstIdentity.append( split[1] ); - if ( count > 2 ) - m_lstAlias.append(split[2]); - else - m_lstAlias.append( split[1]); - } - - return SUCCEEDED; -} - -void FakeUASProvider::loadFromDesktopFiles() -{ - m_providers.clear(); - m_providers = KTrader::self()->query("UserAgentStrings"); -} - -void FakeUASProvider::parseDescription() -{ - TQString tmp; - - KTrader::OfferList::ConstIterator it = m_providers.begin(); - KTrader::OfferList::ConstIterator lastItem = m_providers.end(); - - for ( ; it != lastItem; ++it ) - { - tmp = UA_PTOS("X-TDE-UA-FULL"); - - if ( (*it)->property("X-TDE-UA-DYNAMIC-ENTRY").toBool() ) - { - struct utsname utsn; - uname( &utsn ); - - tmp.replace( QFL("appSysName"), TQString(utsn.sysname) ); - tmp.replace( QFL("appSysRelease"), TQString(utsn.release) ); - tmp.replace( QFL("appMachineType"), TQString(utsn.machine) ); - - TQStringList languageList = TDEGlobal::locale()->languageList(); - if ( languageList.count() ) - { - TQStringList::Iterator it = languageList.find( TQString::fromLatin1("C") ); - if( it != languageList.end() ) - { - if( languageList.contains( TQString::fromLatin1("en") ) > 0 ) - languageList.remove( it ); - else - (*it) = TQString::fromLatin1("en"); - } - } - - tmp.replace( QFL("appLanguage"), TQString("%1").arg(languageList.join(", ")) ); - tmp.replace( QFL("appPlatform"), QFL("X11") ); - } - - // Ignore dups... - if ( m_lstIdentity.contains(tmp) ) - continue; - - m_lstIdentity << tmp; - - tmp = TQString("%1 %2").arg(UA_PTOS("X-TDE-UA-SYSNAME")).arg(UA_PTOS("X-TDE-UA-SYSRELEASE")); - if ( tmp.stripWhiteSpace().isEmpty() ) - tmp = TQString("%1 %2").arg(UA_PTOS("X-TDE-UA-" - "NAME")).arg(UA_PTOS("X-TDE-UA-VERSION")); - else - tmp = TQString("%1 %2 on %3").arg(UA_PTOS("X-TDE-UA-" - "NAME")).arg(UA_PTOS("X-TDE-UA-VERSION")).arg(tmp); - - m_lstAlias << tmp; - } - - m_bIsDirty = false; -} - -TQString FakeUASProvider::aliasStr( const TQString& name ) -{ - int id = userAgentStringList().findIndex(name); - if ( id == -1 ) - return TQString::null; - else - return m_lstAlias[id]; -} - -TQString FakeUASProvider::agentStr( const TQString& name ) -{ - int id = userAgentAliasList().findIndex(name); - if ( id == -1 ) - return TQString::null; - else - return m_lstIdentity[id]; -} - - -TQStringList FakeUASProvider::userAgentStringList() -{ - if ( m_bIsDirty ) - { - loadFromDesktopFiles(); - if ( !m_providers.count() ) - return TQStringList(); - parseDescription(); - } - return m_lstIdentity; -} - -TQStringList FakeUASProvider::userAgentAliasList () -{ - if ( m_bIsDirty ) - { - loadFromDesktopFiles(); - if ( !m_providers.count() ) - return TQStringList(); - parseDescription(); - } - return m_lstAlias; -} - diff --git a/kcontrol/kio/fakeuaprovider.h b/kcontrol/kio/fakeuaprovider.h deleted file mode 100644 index 8aedb639d..000000000 --- a/kcontrol/kio/fakeuaprovider.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2001 Dawit Alemayehu - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef __FAKE_UAS_PROVIDER_H___ -#define __FAKE_UAS_PROVIDER_H___ - -#include - -class TQString; -class TQStringList; - -class FakeUASProvider -{ -public: - enum StatusCode { - SUCCEEDED=0, - ALREADY_EXISTS, - DUPLICATE_ENTRY - }; - - FakeUASProvider(); - ~FakeUASProvider(){}; - - StatusCode createNewUAProvider( const TQString& ); - TQString aliasStr( const TQString& ); - TQString agentStr( const TQString& ); - TQStringList userAgentStringList(); - TQStringList userAgentAliasList(); - bool isListDirty() const { return m_bIsDirty; } - void setListDirty( bool dirty ) { m_bIsDirty = dirty; } - -protected: - void loadFromDesktopFiles(); - void parseDescription(); - -private: - KTrader::OfferList m_providers; - TQStringList m_lstIdentity; - TQStringList m_lstAlias; - bool m_bIsDirty; -}; -#endif diff --git a/kcontrol/kio/kcookiesmain.cpp b/kcontrol/kio/kcookiesmain.cpp deleted file mode 100644 index a17c70603..000000000 --- a/kcontrol/kio/kcookiesmain.cpp +++ /dev/null @@ -1,99 +0,0 @@ -// kcookiesmain.cpp - Cookies configuration -// -// First version of cookies configuration by Waldo Bastian -// This dialog box created by David Faure - -#include -#include - -#include -#include -#include -#include -#include - -#include "kcookiesmain.h" -#include "kcookiespolicies.h" -#include "kcookiesmanagement.h" - -KCookiesMain::KCookiesMain(TQWidget *parent) - : TDECModule(parent, "kcmkio") -{ - management = 0; - bool managerOK = true; - - DCOPReply reply = DCOPRef( "kded", "kded" ).call( "loadModule", - TQCString( "kcookiejar" ) ); - - if( !reply.isValid() ) - { - managerOK = false; - kdDebug(7103) << "kcm_kio: KDED could not load KCookiejar!" << endl; - KMessageBox::sorry(0, i18n("Unable to start the cookie handler service.\n" - "You will not be able to manage the cookies that " - "are stored on your computer.")); - } - - TQVBoxLayout *layout = new TQVBoxLayout(this); - tab = new TQTabWidget(this); - layout->addWidget(tab); - - policies = new KCookiesPolicies(this); - tab->addTab(policies, i18n("&Policy")); - connect(policies, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool))); - - if( managerOK ) - { - management = new KCookiesManagement(this); - tab->addTab(management, i18n("&Management")); - connect(management, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool))); - } -} - -KCookiesMain::~KCookiesMain() -{ -} - -void KCookiesMain::load() -{ - policies->load(); - if( management ) - management->load(); -} - -void KCookiesMain::save() -{ - policies->save(); - if ( management ) - management->save(); -} - -void KCookiesMain::defaults() -{ - TDECModule* module = static_cast(tab->currentPage()); - - if ( module == policies ) - policies->defaults(); - else if( management ) - management->defaults(); -} - -TQString KCookiesMain::quickHelp() const -{ - return i18n("

    Cookies

    Cookies contain information that Konqueror" - " (or other TDE applications using the HTTP protocol) stores on your" - " computer, initiated by a remote Internet server. This means that" - " a web server can store information about you and your browsing activities" - " on your machine for later use. You might consider this an invasion of" - " privacy.

    However, cookies are useful in certain situations. For example, they" - " are often used by Internet shops, so you can 'put things into a shopping basket'." - " Some sites require you have a browser that supports cookies.

    " - " Because most people want a compromise between privacy and the benefits cookies offer," - " TDE offers you the ability to customize the way it handles cookies. So you might want" - " to set TDE's default policy to ask you whenever a server wants to set a cookie," - " allowing you to decide. For your favorite shopping web sites that you trust, you might" - " want to set the policy to accept, then you can access the web sites without being prompted" - " every time TDE receives a cookie." ); -} - -#include "kcookiesmain.moc" diff --git a/kcontrol/kio/kcookiesmain.h b/kcontrol/kio/kcookiesmain.h deleted file mode 100644 index 14b202ff4..000000000 --- a/kcontrol/kio/kcookiesmain.h +++ /dev/null @@ -1,37 +0,0 @@ -// kcookiesmain.h - Cookies configuration -// -// First version of cookies configuration by Waldo Bastian -// This dialog box created by David Faure - -#ifndef __KCOOKIESMAIN_H -#define __KCOOKIESMAIN_H - -#include - -class TQTabWidget; -class DCOPClient; -class KCookiesPolicies; -class KCookiesManagement; - -class KCookiesMain : public TDECModule -{ - Q_OBJECT -public: - KCookiesMain(TQWidget *parent = 0L); - ~KCookiesMain(); - - KCookiesPolicies* policyDlg() { return policies; } - - virtual void load(); - virtual void save(); - virtual void defaults(); - virtual TQString quickHelp() const; - -private: - - TQTabWidget* tab; - KCookiesPolicies* policies; - KCookiesManagement* management; -}; - -#endif // __KCOOKIESMAIN_H diff --git a/kcontrol/kio/kcookiesmanagement.cpp b/kcontrol/kio/kcookiesmanagement.cpp deleted file mode 100644 index c5a98fcc2..000000000 --- a/kcontrol/kio/kcookiesmanagement.cpp +++ /dev/null @@ -1,489 +0,0 @@ -/** - * kcookiesmanagement.cpp - Cookies manager - * - * Copyright 2000-2001 Marco Pinelli - * Copyright (c) 2000-2001 Dawit Alemayehu - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "kcookiesmain.h" -#include "kcookiespolicies.h" -#include "kcookiesmanagement.h" -#include "kcookiesmanagementdlg_ui.h" - -#include - -struct CookieProp -{ - TQString host; - TQString name; - TQString value; - TQString domain; - TQString path; - TQString expireDate; - TQString secure; - bool allLoaded; -}; - -CookieListViewItem::CookieListViewItem(TQListView *parent, TQString dom) - :TQListViewItem(parent) -{ - init( 0, dom ); -} - -CookieListViewItem::CookieListViewItem(TQListViewItem *parent, CookieProp *cookie) - :TQListViewItem(parent) -{ - init( cookie ); -} - -CookieListViewItem::~CookieListViewItem() -{ - delete mCookie; -} - -void CookieListViewItem::init( CookieProp* cookie, TQString domain, - bool cookieLoaded ) -{ - mCookie = cookie; - mDomain = domain; - mCookiesLoaded = cookieLoaded; -} - -CookieProp* CookieListViewItem::leaveCookie() -{ - CookieProp *ret = mCookie; - mCookie = 0; - return ret; -} - -TQString CookieListViewItem::text(int f) const -{ - if (mCookie) - return f == 0 ? TQString() : KIDNA::toUnicode(mCookie->host); - else - return f == 0 ? KIDNA::toUnicode(mDomain) : TQString(); -} - -KCookiesManagement::KCookiesManagement(TQWidget *parent) - : TDECModule(parent, "kcmkio") -{ - // Toplevel layout - TQVBoxLayout* mainLayout = new TQVBoxLayout(this, KDialog::marginHint(), - KDialog::spacingHint()); - - dlg = new KCookiesManagementDlgUI (this); - - dlg->tbClearSearchLine->setIconSet(SmallIconSet(TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase")); - dlg->kListViewSearchLine->setListView(dlg->lvCookies); - - mainLayout->addWidget(dlg); - dlg->lvCookies->setSorting(0); - - connect(dlg->lvCookies, TQT_SIGNAL(expanded(TQListViewItem*)), TQT_SLOT(getCookies(TQListViewItem*)) ); - connect(dlg->lvCookies, TQT_SIGNAL(selectionChanged(TQListViewItem*)), TQT_SLOT(showCookieDetails(TQListViewItem*)) ); - - connect(dlg->pbDelete, TQT_SIGNAL(clicked()), TQT_SLOT(deleteCookie())); - connect(dlg->pbDeleteAll, TQT_SIGNAL(clicked()), TQT_SLOT(deleteAllCookies())); - connect(dlg->pbReload, TQT_SIGNAL(clicked()), TQT_SLOT(getDomains())); - connect(dlg->pbPolicy, TQT_SIGNAL(clicked()), TQT_SLOT(doPolicy())); - - connect(dlg->lvCookies, TQT_SIGNAL(doubleClicked (TQListViewItem *)), TQT_SLOT(doPolicy())); - deletedCookies.setAutoDelete(true); - m_bDeleteAll = false; - mainWidget = parent; - - load(); -} - -KCookiesManagement::~KCookiesManagement() -{ -} - -void KCookiesManagement::load() -{ - reset(); - getDomains(); -} - -void KCookiesManagement::save() -{ - // If delete all cookies was requested! - if(m_bDeleteAll) - { - if(!DCOPRef("kded", "kcookiejar").send("deleteAllCookies")) - { - TQString caption = i18n ("DCOP Communication Error"); - TQString message = i18n ("Unable to delete all the cookies as requested."); - KMessageBox::sorry (this, message,caption); - return; - } - m_bDeleteAll = false; // deleted[Cookies|Domains] have been cleared yet - } - - // Certain groups of cookies were deleted... - TQStringList::Iterator dIt = deletedDomains.begin(); - while( dIt != deletedDomains.end() ) - { - TQByteArray call; - TQByteArray reply; - TQCString replyType; - TQDataStream callStream(call, IO_WriteOnly); - callStream << *dIt; - - if( !DCOPRef("kded", "kcookiejar").send("deleteCookiesFromDomain", (*dIt)) ) - { - TQString caption = i18n ("DCOP Communication Error"); - TQString message = i18n ("Unable to delete cookies as requested."); - KMessageBox::sorry (this, message,caption); - return; - } - - dIt = deletedDomains.remove(dIt); - } - - // Individual cookies were deleted... - bool success = true; // Maybe we can go on... - TQDictIterator cookiesDom(deletedCookies); - - while(cookiesDom.current()) - { - CookiePropList *list = cookiesDom.current(); - TQPtrListIterator cookie(*list); - - while(*cookie) - { - if( !DCOPRef("kded", "kcookiejar").send("deleteCookie",(*cookie)->domain, - (*cookie)->host, (*cookie)->path, - (*cookie)->name) ) - { - success = false; - break; - } - - list->removeRef(*cookie); - } - - if(!success) - break; - - deletedCookies.remove(cookiesDom.currentKey()); - } - - emit changed( false ); -} - -void KCookiesManagement::defaults() -{ - reset(); - getDomains(); - emit changed (false); -} - -void KCookiesManagement::reset() -{ - m_bDeleteAll = false; - clearCookieDetails(); - dlg->lvCookies->clear(); - deletedDomains.clear(); - deletedCookies.clear(); - dlg->pbDelete->setEnabled(false); - dlg->pbDeleteAll->setEnabled(false); - dlg->pbPolicy->setEnabled(false); -} - -void KCookiesManagement::clearCookieDetails() -{ - dlg->leName->clear(); - dlg->leValue->clear(); - dlg->leDomain->clear(); - dlg->lePath->clear(); - dlg->leExpires->clear(); - dlg->leSecure->clear(); -} - -TQString KCookiesManagement::quickHelp() const -{ - return i18n("

    Cookies Management Quick Help

    " ); -} - -void KCookiesManagement::getDomains() -{ - DCOPReply reply = DCOPRef("kded", "kcookiejar").call("findDomains"); - - if( !reply.isValid() ) - { - TQString caption = i18n ("Information Lookup Failure"); - TQString message = i18n ("Unable to retrieve information about the " - "cookies stored on your computer."); - KMessageBox::sorry (this, message, caption); - return; - } - - TQStringList domains = reply; - - if ( dlg->lvCookies->childCount() ) - { - reset(); - dlg->lvCookies->setCurrentItem( 0L ); - } - - CookieListViewItem *dom; - for(TQStringList::Iterator dIt = domains.begin(); dIt != domains.end(); dIt++) - { - dom = new CookieListViewItem(dlg->lvCookies, *dIt); - dom->setExpandable(true); - } - - // are ther any cookies? - dlg->pbDeleteAll->setEnabled(dlg->lvCookies->childCount()); -} - -void KCookiesManagement::getCookies(TQListViewItem *cookieDom) -{ - CookieListViewItem* ckd = static_cast(cookieDom); - if ( ckd->cookiesLoaded() ) - return; - - TQValueList fields; - fields << 0 << 1 << 2 << 3; - - DCOPReply reply = DCOPRef ("kded", "kcookiejar").call ("findCookies", - DCOPArg(fields, "TQValueList"), - ckd->domain(), - TQString(), - TQString(), - TQString()); - if(reply.isValid()) - { - TQStringList fieldVal = reply; - TQStringList::Iterator fIt = fieldVal.begin(); - - while(fIt != fieldVal.end()) - { - CookieProp *details = new CookieProp; - details->domain = *fIt++; - details->path = *fIt++; - details->name = *fIt++; - details->host = *fIt++; - details->allLoaded = false; - new CookieListViewItem(cookieDom, details); - } - - static_cast(cookieDom)->setCookiesLoaded(); - } -} - -bool KCookiesManagement::cookieDetails(CookieProp *cookie) -{ - TQValueList fields; - fields << 4 << 5 << 7; - - DCOPReply reply = DCOPRef ("kded", "kcookiejar").call ("findCookies", - DCOPArg(fields, "TQValueList"), - cookie->domain, - cookie->host, - cookie->path, - cookie->name); - if( !reply.isValid() ) - return false; - - TQStringList fieldVal = reply; - - TQStringList::Iterator c = fieldVal.begin(); - cookie->value = *c++; - unsigned tmp = (*c++).toUInt(); - - if( tmp == 0 ) - cookie->expireDate = i18n("End of session"); - else - { - TQDateTime expDate; - expDate.setTime_t(tmp); - cookie->expireDate = TDEGlobal::locale()->formatDateTime(expDate); - } - - tmp = (*c).toUInt(); - cookie->secure = i18n(tmp ? "Yes" : "No"); - cookie->allLoaded = true; - return true; -} - -void KCookiesManagement::showCookieDetails(TQListViewItem* item) -{ - kdDebug () << "::showCookieDetails... " << endl; - CookieProp *cookie = static_cast(item)->cookie(); - if( cookie ) - { - if( cookie->allLoaded || cookieDetails(cookie) ) - { - dlg->leName->validateAndSet(cookie->name,0,0,0); - dlg->leValue->validateAndSet(cookie->value,0,0,0); - dlg->leDomain->validateAndSet(cookie->domain,0,0,0); - dlg->lePath->validateAndSet(cookie->path,0,0,0); - dlg->leExpires->validateAndSet(cookie->expireDate,0,0,0); - dlg->leSecure->validateAndSet(cookie->secure,0,0,0); - } - - dlg->pbPolicy->setEnabled (true); - } - else - { - clearCookieDetails(); - dlg->pbPolicy->setEnabled(false); - } - - dlg->pbDelete->setEnabled(true); -} - -void KCookiesManagement::doPolicy() -{ - // Get current item - CookieListViewItem *item = static_cast( dlg->lvCookies->currentItem() ); - - if( item && item->cookie()) - { - CookieProp *cookie = item->cookie(); - - TQString domain = cookie->domain; - - if( domain.isEmpty() ) - { - CookieListViewItem *parent = static_cast( item->parent() ); - - if ( parent ) - domain = parent->domain (); - } - - KCookiesMain* mainDlg =static_cast( mainWidget ); - // must be present or something is really wrong. - assert (mainDlg); - - KCookiesPolicies* policyDlg = mainDlg->policyDlg(); - // must be present unless someone rewrote the widget in which case - // this needs to be re-written as well. - assert (policyDlg); - policyDlg->addNewPolicy(domain); - } -} - - -void KCookiesManagement::deleteCookie(TQListViewItem* deleteItem) -{ - CookieListViewItem *item = static_cast( deleteItem ); - if( item->cookie() ) - { - CookieListViewItem *parent = static_cast(item->parent()); - CookiePropList *list = deletedCookies.find(parent->domain()); - if(!list) - { - list = new CookiePropList; - list->setAutoDelete(true); - deletedCookies.insert(parent->domain(), list); - } - - list->append(item->leaveCookie()); - delete item; - - if(parent->childCount() == 0) - delete parent; - } - else - { - deletedDomains.append(item->domain()); - delete item; - } -} - -void KCookiesManagement::deleteCookie() -{ - deleteCookie(dlg->lvCookies->currentItem()); - - TQListViewItem* currentItem = dlg->lvCookies->currentItem(); - - if ( currentItem ) - { - dlg->lvCookies->setSelected( currentItem, true ); - showCookieDetails( currentItem ); - } - else - clearCookieDetails(); - - dlg->pbDeleteAll->setEnabled(dlg->lvCookies->childCount()); - - const bool hasSelectedItem = dlg->lvCookies->selectedItem(); - dlg->pbDelete->setEnabled(hasSelectedItem); - dlg->pbPolicy->setEnabled(hasSelectedItem); - - emit changed( true ); -} - -void KCookiesManagement::deleteAllCookies() -{ - if ( dlg->kListViewSearchLine->text().isEmpty()) - { - reset(); - m_bDeleteAll = true; - } - else - { - TQListViewItem* item = dlg->lvCookies->firstChild(); - - while (item) - { - if (item->isVisible()) - { - deleteCookie(item); - item = dlg->lvCookies->currentItem(); - } - else - item = item->nextSibling(); - } - - const int count = dlg->lvCookies->childCount(); - m_bDeleteAll = (count == 0); - dlg->pbDeleteAll->setEnabled(count); - - const bool hasSelectedItem = dlg->lvCookies->selectedItem(); - dlg->pbDelete->setEnabled(hasSelectedItem); - dlg->pbPolicy->setEnabled(hasSelectedItem); - } - - emit changed( true ); -} - -#include "kcookiesmanagement.moc" diff --git a/kcontrol/kio/kcookiesmanagement.h b/kcontrol/kio/kcookiesmanagement.h deleted file mode 100644 index 51e31fbee..000000000 --- a/kcontrol/kio/kcookiesmanagement.h +++ /dev/null @@ -1,101 +0,0 @@ -/** - * kcookiesmanagement.h - Cookies manager - * - * Copyright 2000-2001 Marco Pinelli - * - * Contributors: - * Copyright (c) 2000-2001 Dawit Alemayehu - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef __KCOOKIESMANAGEMENT_H -#define __KCOOKIESMANAGEMENT_H - -#include -#include -#include - -#include - - -class DCOPClient; -class KCookiesManagementDlgUI; - -struct CookieProp; - -class CookieListViewItem : public TQListViewItem -{ -public: - CookieListViewItem(TQListView *parent, TQString dom); - CookieListViewItem(TQListViewItem *parent, CookieProp *cookie); - ~CookieListViewItem(); - - TQString domain() const { return mDomain; } - CookieProp* cookie() const { return mCookie; } - CookieProp* leaveCookie(); - void setCookiesLoaded() { mCookiesLoaded = true; } - bool cookiesLoaded() const { return mCookiesLoaded; } - virtual TQString text(int f) const; - -private: - void init( CookieProp* cookie, - TQString domain = TQString::null, - bool cookieLoaded=false ); - CookieProp *mCookie; - TQString mDomain; - bool mCookiesLoaded; -}; - -class KCookiesManagement : public TDECModule -{ - Q_OBJECT - -public: - KCookiesManagement(TQWidget *parent = 0 ); - ~KCookiesManagement(); - - virtual void load(); - virtual void save(); - virtual void defaults(); - virtual TQString quickHelp() const; - -private slots: - void deleteCookie(); - void deleteAllCookies(); - void getDomains(); - void getCookies(TQListViewItem*); - void showCookieDetails(TQListViewItem*); - void doPolicy(); - -private: - void reset (); - void deleteCookie(TQListViewItem*); - bool cookieDetails(CookieProp *cookie); - void clearCookieDetails(); - bool policyenabled(); - -private: - bool m_bDeleteAll; - - TQWidget* mainWidget; - KCookiesManagementDlgUI* dlg; - - TQStringList deletedDomains; - typedef TQPtrList CookiePropList; - TQDict deletedCookies; -}; - -#endif // __KCOOKIESMANAGEMENT_H diff --git a/kcontrol/kio/kcookiesmanagementdlg_ui.ui b/kcontrol/kio/kcookiesmanagementdlg_ui.ui deleted file mode 100644 index e4fb65121..000000000 --- a/kcontrol/kio/kcookiesmanagementdlg_ui.ui +++ /dev/null @@ -1,323 +0,0 @@ - -KCookiesManagementDlgUI - - - KCookiesManagementDlgUI - - - - 0 - 0 - 294 - 432 - - - - - unnamed - - - 0 - - - - layout6 - - - - unnamed - - - - - Domain [Group] - - - true - - - true - - - - - Host [Set By] - - - true - - - true - - - - lvCookies - - - Single - - - true - - - true - - - true - - - 15 - - - - - layout4 - - - - unnamed - - - - pbDelete - - - D&elete - - - - - pbDeleteAll - - - Delete A&ll - - - - - pbPolicy - - - Change &Policy... - - - - - pbReload - - - &Reload List - - - - - spacer3 - - - Vertical - - - MinimumExpanding - - - - 21 - 62 - - - - - - - - layout3 - - - - unnamed - - - - tbClearSearchLine - - - ... - - - Clear Search - - - - - textLabel1 - - - &Search: - - - kListViewSearchLine - - - - - kListViewSearchLine - - - Search interactively for domains and hosts - - - - - - - - - - - - gbDetails - - - Details - - - - unnamed - - - - leDomain - - - true - - - - - lePath - - - true - - - - - leSecure - - - true - - - - - lbName - - - Name: - - - leName - - - - - lbValue - - - Value: - - - leValue - - - - - lbDomain - - - Domain: - - - leDomain - - - - - lbPath - - - Path: - - - lePath - - - - - lbExpires - - - Expires: - - - leExpires - - - - - lbSecure - - - Secure: - - - leSecure - - - - - leValue - - - true - - - - - leExpires - - - true - - - - - leName - - - true - - - - - - - - - - - tbClearSearchLine - clicked() - kListViewSearchLine - clear() - - - - kdialog.h - - - - - klistviewsearchline.h - - diff --git a/kcontrol/kio/kcookiespolicies.cpp b/kcontrol/kio/kcookiespolicies.cpp deleted file mode 100644 index ad32eef3e..000000000 --- a/kcontrol/kio/kcookiespolicies.cpp +++ /dev/null @@ -1,474 +0,0 @@ -/** - * kcookiespolicies.cpp - Cookies configuration - * - * Original Authors - * Copyright (c) Waldo Bastian - * Copyright (c) 1999 David Faure - * - * Re-written by: - * Copyright (c) 2000- Dawit Alemayehu - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "ksaveioconfig.h" - -#include "kcookiespolicies.h" -#include "kcookiespoliciesdlg_ui.h" - -KCookiesPolicies::KCookiesPolicies(TQWidget *parent) - :TDECModule(parent, "kcmkio") -{ - TQVBoxLayout *mainLayout = new TQVBoxLayout(this, 0, 0); - - dlg = new KCookiesPolicyDlgUI (this); - dlg->lvDomainPolicy->header()->setStretchEnabled(true, 0); - dlg->lvDomainPolicy->setColumnWidthMode(0, KListView::Manual); - dlg->lvDomainPolicy->setColumnWidthMode(1, KListView::Maximum); - dlg->tbClearSearchLine->setIconSet(SmallIconSet(TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase")); - dlg->kListViewSearchLine->setListView(dlg->lvDomainPolicy); - TQValueList columns; - columns.append(0); - dlg->kListViewSearchLine->setSearchColumns(columns); - - mainLayout->addWidget(dlg); - - load(); -} - -KCookiesPolicies::~KCookiesPolicies() -{ -} - -void KCookiesPolicies::configChanged () -{ - //kdDebug() << "KCookiesPolicies::configChanged..." << endl; - emit changed((d_configChanged=true)); -} - -void KCookiesPolicies::cookiesEnabled( bool enable ) -{ - dlg->bgDefault->setEnabled( enable ); - dlg->bgPreferences->setEnabled ( enable ); - dlg->gbDomainSpecific->setEnabled( enable ); - - if (enable) - { - ignoreCookieExpirationDate ( enable ); - autoAcceptSessionCookies ( enable ); - } -} - -void KCookiesPolicies::ignoreCookieExpirationDate ( bool enable ) -{ - bool isAutoAcceptChecked = dlg->cbAutoAcceptSessionCookies->isChecked(); - enable = (enable && isAutoAcceptChecked); - - dlg->bgDefault->setEnabled( !enable ); - dlg->gbDomainSpecific->setEnabled( !enable ); -} - -void KCookiesPolicies::autoAcceptSessionCookies ( bool enable ) -{ - bool isIgnoreExpirationChecked = dlg->cbIgnoreCookieExpirationDate->isChecked(); - enable = (enable && isIgnoreExpirationChecked); - - dlg->bgDefault->setEnabled( !enable ); - dlg->gbDomainSpecific->setEnabled( !enable ); -} - -void KCookiesPolicies::addNewPolicy(const TQString& domain) -{ - PolicyDlg pdlg (i18n("New Cookie Policy"), this); - pdlg.setEnableHostEdit (true, domain); - - if (dlg->rbPolicyAccept->isChecked()) - pdlg.setPolicy(KCookieAdvice::Reject); - else - pdlg.setPolicy(KCookieAdvice::Accept); - - if (pdlg.exec() && !pdlg.domain().isEmpty()) - { - TQString domain = KIDNA::toUnicode(pdlg.domain()); - int advice = pdlg.advice(); - - if ( !handleDuplicate(domain, advice) ) - { - const char* strAdvice = KCookieAdvice::adviceToStr(advice); - TQListViewItem* index = new TQListViewItem (dlg->lvDomainPolicy, - domain, i18n(strAdvice)); - m_pDomainPolicy.insert (index, strAdvice); - configChanged(); - } - } -} - - -void KCookiesPolicies::addPressed() -{ - addNewPolicy (TQString::null); -} - -void KCookiesPolicies::changePressed() -{ - TQListViewItem* index = dlg->lvDomainPolicy->currentItem(); - - if (!index) - return; - - TQString oldDomain = index->text(0); - - PolicyDlg pdlg (i18n("Change Cookie Policy"), this); - pdlg.setPolicy (KCookieAdvice::strToAdvice(m_pDomainPolicy[index])); - pdlg.setEnableHostEdit (true, oldDomain); - - if( pdlg.exec() && !pdlg.domain().isEmpty()) - { - TQString newDomain = KIDNA::toUnicode(pdlg.domain()); - int advice = pdlg.advice(); - if (newDomain == oldDomain || !handleDuplicate(newDomain, advice)) - { - m_pDomainPolicy[index] = KCookieAdvice::adviceToStr(advice); - index->setText(0, newDomain); - index->setText(1, i18n(m_pDomainPolicy[index]) ); - configChanged(); - } - } -} - -bool KCookiesPolicies::handleDuplicate( const TQString& domain, int advice ) -{ - TQListViewItem* item = dlg->lvDomainPolicy->firstChild(); - while ( item != 0 ) - { - if ( item->text(0) == domain ) - { - TQString msg = i18n("A policy already exists for" - "
    %1
    " - "Do you want to replace it?
    ").arg(domain); - int res = KMessageBox::warningContinueCancel(this, msg, - i18n("Duplicate Policy"), - i18n("Replace")); - if ( res == KMessageBox::Continue ) - { - m_pDomainPolicy[item]= KCookieAdvice::adviceToStr(advice); - item->setText(0, domain); - item->setText(1, i18n(m_pDomainPolicy[item])); - configChanged(); - return true; - } - else - return true; // User Cancelled!! - } - item = item->nextSibling(); - } - return false; -} - -void KCookiesPolicies::deletePressed() -{ - TQListViewItem* nextItem = 0L; - TQListViewItem* item = dlg->lvDomainPolicy->firstChild (); - - while (item != 0L) - { - if (dlg->lvDomainPolicy->isSelected (item)) - { - nextItem = item->itemBelow(); - if ( !nextItem ) - nextItem = item->itemAbove(); - - delete item; - item = nextItem; - } - else - { - item = item->itemBelow(); - } - } - - if (nextItem) - dlg->lvDomainPolicy->setSelected (nextItem, true); - - updateButtons(); - configChanged(); -} - -void KCookiesPolicies::deleteAllPressed() -{ - m_pDomainPolicy.clear(); - dlg->lvDomainPolicy->clear(); - updateButtons(); - configChanged(); -} - -void KCookiesPolicies::updateButtons() -{ - bool hasItems = dlg->lvDomainPolicy->childCount() > 0; - - dlg->pbChange->setEnabled ((hasItems && d_itemsSelected == 1)); - dlg->pbDelete->setEnabled ((hasItems && d_itemsSelected > 0)); - dlg->pbDeleteAll->setEnabled ( hasItems ); -} - -void KCookiesPolicies::updateDomainList(const TQStringList &domainConfig) -{ - dlg->lvDomainPolicy->clear(); - - TQStringList::ConstIterator it = domainConfig.begin(); - for (; it != domainConfig.end(); ++it) - { - TQString domain; - KCookieAdvice::Value advice = KCookieAdvice::Dunno; - - splitDomainAdvice(*it, domain, advice); - - if (!domain.isEmpty()) - { - TQListViewItem* index = new TQListViewItem( dlg->lvDomainPolicy, KIDNA::toUnicode(domain), - i18n(KCookieAdvice::adviceToStr(advice)) ); - m_pDomainPolicy[index] = KCookieAdvice::adviceToStr(advice); - } - } -} - -void KCookiesPolicies::selectionChanged () -{ - TQListViewItem* item = dlg->lvDomainPolicy->firstChild (); - - d_itemsSelected = 0; - - while (item != 0L) - { - if (dlg->lvDomainPolicy->isSelected (item)) - d_itemsSelected++; - item = item->nextSibling (); - } - - updateButtons (); -} - -void KCookiesPolicies::load() -{ - d_itemsSelected = 0; - d_configChanged = false; - - TDEConfig cfg ("kcookiejarrc", true); - cfg.setGroup ("Cookie Policy"); - - bool enableCookies = cfg.readBoolEntry("Cookies", true); - dlg->cbEnableCookies->setChecked (enableCookies); - cookiesEnabled( enableCookies ); - - KCookieAdvice::Value advice = KCookieAdvice::strToAdvice (cfg.readEntry( - "CookieGlobalAdvice", "Ask")); - switch (advice) - { - case KCookieAdvice::Accept: - dlg->rbPolicyAccept->setChecked (true); - break; - case KCookieAdvice::Reject: - dlg->rbPolicyReject->setChecked (true); - break; - case KCookieAdvice::Ask: - case KCookieAdvice::Dunno: - default: - dlg->rbPolicyAsk->setChecked (true); - } - - bool enable = cfg.readBoolEntry("RejectCrossDomainCookies", true); - dlg->cbRejectCrossDomainCookies->setChecked (enable); - - bool sessionCookies = cfg.readBoolEntry("AcceptSessionCookies", true); - dlg->cbAutoAcceptSessionCookies->setChecked (sessionCookies); - bool cookieExpiration = cfg.readBoolEntry("IgnoreExpirationDate", false); - dlg->cbIgnoreCookieExpirationDate->setChecked (cookieExpiration); - updateDomainList(cfg.readListEntry("CookieDomainAdvice")); - - if (enableCookies) - { - ignoreCookieExpirationDate( cookieExpiration ); - autoAcceptSessionCookies( sessionCookies ); - updateButtons(); - } - - // Connect the main swicth :) Enable/disable cookie support - connect( dlg->cbEnableCookies, TQT_SIGNAL( toggled(bool) ), - TQT_SLOT( cookiesEnabled(bool) ) ); - connect( dlg->cbEnableCookies, TQT_SIGNAL( toggled(bool) ), - TQT_SLOT( configChanged() ) ); - - // Connect the preference check boxes... - connect ( dlg->cbRejectCrossDomainCookies, TQT_SIGNAL(clicked()), - TQT_SLOT(configChanged())); - connect ( dlg->cbAutoAcceptSessionCookies, TQT_SIGNAL(toggled(bool)), - TQT_SLOT(configChanged())); - connect ( dlg->cbIgnoreCookieExpirationDate, TQT_SIGNAL(toggled(bool)), - TQT_SLOT(configChanged())); - - connect ( dlg->cbAutoAcceptSessionCookies, TQT_SIGNAL(toggled(bool)), - TQT_SLOT(autoAcceptSessionCookies(bool))); - connect ( dlg->cbIgnoreCookieExpirationDate, TQT_SIGNAL(toggled(bool)), - TQT_SLOT(ignoreCookieExpirationDate(bool))); - - // Connect the default cookie policy radio buttons... - connect(dlg->bgDefault, TQT_SIGNAL(clicked(int)), TQT_SLOT(configChanged())); - - // Connect signals from the domain specific policy listview. - connect( dlg->lvDomainPolicy, TQT_SIGNAL(selectionChanged()), - TQT_SLOT(selectionChanged()) ); - connect( dlg->lvDomainPolicy, TQT_SIGNAL(doubleClicked (TQListViewItem *)), - TQT_SLOT(changePressed() ) ); - connect( dlg->lvDomainPolicy, TQT_SIGNAL(returnPressed ( TQListViewItem * )), - TQT_SLOT(changePressed() ) ); - - // Connect the buttons... - connect( dlg->pbNew, TQT_SIGNAL(clicked()), TQT_SLOT( addPressed() ) ); - connect( dlg->pbChange, TQT_SIGNAL( clicked() ), TQT_SLOT( changePressed() ) ); - connect( dlg->pbDelete, TQT_SIGNAL( clicked() ), TQT_SLOT( deletePressed() ) ); - connect( dlg->pbDeleteAll, TQT_SIGNAL( clicked() ), TQT_SLOT( deleteAllPressed() ) ); -} - -void KCookiesPolicies::save() -{ - // If nothing changed, ignore the save request. - if (!d_configChanged) - return; - - TDEConfig cfg ( "kcookiejarrc" ); - cfg.setGroup( "Cookie Policy" ); - - bool state = dlg->cbEnableCookies->isChecked(); - cfg.writeEntry( "Cookies", state ); - state = dlg->cbRejectCrossDomainCookies->isChecked(); - cfg.writeEntry( "RejectCrossDomainCookies", state ); - state = dlg->cbAutoAcceptSessionCookies->isChecked(); - cfg.writeEntry( "AcceptSessionCookies", state ); - state = dlg->cbIgnoreCookieExpirationDate->isChecked(); - cfg.writeEntry( "IgnoreExpirationDate", state ); - - TQString advice; - if (dlg->rbPolicyAccept->isChecked()) - advice = KCookieAdvice::adviceToStr(KCookieAdvice::Accept); - else if (dlg->rbPolicyReject->isChecked()) - advice = KCookieAdvice::adviceToStr(KCookieAdvice::Reject); - else - advice = KCookieAdvice::adviceToStr(KCookieAdvice::Ask); - - cfg.writeEntry("CookieGlobalAdvice", advice); - - TQStringList domainConfig; - TQListViewItem *at = dlg->lvDomainPolicy->firstChild(); - - while( at ) - { - domainConfig.append(TQString::fromLatin1("%1:%2").arg(KIDNA::toAscii(at->text(0))).arg(m_pDomainPolicy[at])); - at = at->nextSibling(); - } - - cfg.writeEntry("CookieDomainAdvice", domainConfig); - cfg.sync(); - - // Update the cookiejar... - if (!dlg->cbEnableCookies->isChecked()) - (void)DCOPRef("kded", "kcookiejar").send("shutdown"); - else - { - if (!DCOPRef("kded", "kcookiejar").send("reloadPolicy")) - KMessageBox::sorry(0, i18n("Unable to communicate with the cookie handler service.\n" - "Any changes you made will not take effect until the service " - "is restarted.")); - } - - // Force running io-slave to reload configurations... - KSaveIOConfig::updateRunningIOSlaves (this); - emit changed( false ); -} - - -void KCookiesPolicies::defaults() -{ - dlg->cbEnableCookies->setChecked( true ); - dlg->rbPolicyAsk->setChecked( true ); - dlg->rbPolicyAccept->setChecked( false ); - dlg->rbPolicyReject->setChecked( false ); - dlg->cbRejectCrossDomainCookies->setChecked( true ); - dlg->cbAutoAcceptSessionCookies->setChecked( true ); - dlg->cbIgnoreCookieExpirationDate->setChecked( false ); - dlg->lvDomainPolicy->clear(); - - cookiesEnabled( dlg->cbEnableCookies->isChecked() ); - updateButtons(); -} - -void KCookiesPolicies::splitDomainAdvice (const TQString& cfg, TQString &domain, - KCookieAdvice::Value &advice) -{ - int sepPos = cfg.findRev(':'); - - // Ignore any policy that does not contain a domain... - if ( sepPos <= 0 ) - return; - - domain = cfg.left(sepPos); - advice = KCookieAdvice::strToAdvice( cfg.mid( sepPos+1 ) ); -} - -TQString KCookiesPolicies::quickHelp() const -{ - return i18n("

    Cookies

    Cookies contain information that Konqueror" - " (or any other TDE application using the HTTP protocol) stores" - " on your computer from a remote Internet server. This means" - " that a web server can store information about you and your" - " browsing activities on your machine for later use. You might" - " consider this an invasion of privacy.

    However, cookies are" - " useful in certain situations. For example, they are often used" - " by Internet shops, so you can 'put things into a shopping" - " basket'. Some sites require you have a browser that supports" - " cookies.

    Because most people want a compromise between privacy" - " and the benefits cookies offer, TDE offers you the ability to" - " customize the way it handles cookies. You might, for example" - " want to set TDE's default policy to ask you whenever a server" - " wants to set a cookie or simply reject or accept everything." - " For example, you might choose to accept all cookies from your" - " favorite shopping web site. For this all you have to do is" - " either browse to that particular site and when you are presented" - " with the cookie dialog box, click on This domain under" - " the 'apply to' tab and choose accept or simply specify the name" - " of the site in the Domain Specific Policy tab and set" - " it to accept. This enables you to receive cookies from trusted" - " web sites without being asked every time TDE receives a cookie." - ); -} - -#include "kcookiespolicies.moc" diff --git a/kcontrol/kio/kcookiespolicies.h b/kcontrol/kio/kcookiespolicies.h deleted file mode 100644 index 50ce7a62b..000000000 --- a/kcontrol/kio/kcookiespolicies.h +++ /dev/null @@ -1,81 +0,0 @@ -/** - * kcookiespolicies.h - Cookies configuration - * - * Original Authors - * Copyright (c) Waldo Bastian - * Copyright (c) 1999 David Faure - * - * Re-written by: - * Copyright (c) 2000- Dawit Alemayehu - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef __KCOOKIESPOLICIES_H -#define __KCOOKIESPOLICIES_H - -#include -#include - -#include "policydlg.h" - -class TQListViewItem; - -class DCOPClient; -class KCookiesPolicyDlgUI; - -class KCookiesPolicies : public TDECModule -{ - Q_OBJECT - -public: - KCookiesPolicies(TQWidget *parent = 0); - ~KCookiesPolicies(); - - virtual void load(); - virtual void save(); - virtual void defaults(); - virtual TQString quickHelp() const; - - void addNewPolicy(const TQString& domain); - -protected slots: - void autoAcceptSessionCookies ( bool ); - void ignoreCookieExpirationDate ( bool ); - void cookiesEnabled( bool ); - void configChanged(); - - void selectionChanged(); - void updateButtons(); - - void deleteAllPressed(); - void deletePressed(); - void changePressed(); - void addPressed(); - -private: - void updateDomainList(const TQStringList& list); - bool handleDuplicate( const TQString& domain, int ); - void splitDomainAdvice (const TQString& configStr, TQString &domain, - KCookieAdvice::Value &advice); - -private: - int d_itemsSelected; - bool d_configChanged; - KCookiesPolicyDlgUI* dlg; - TQMap m_pDomainPolicy; -}; - -#endif // __KCOOKIESPOLICIES_H diff --git a/kcontrol/kio/kcookiespoliciesdlg_ui.ui b/kcontrol/kio/kcookiespoliciesdlg_ui.ui deleted file mode 100644 index 880b41cba..000000000 --- a/kcontrol/kio/kcookiespoliciesdlg_ui.ui +++ /dev/null @@ -1,323 +0,0 @@ - -KCookiesPolicyDlgUI - - - KCookiesPolicyDlgUI - - - - 0 - 0 - 444 - 552 - - - - - unnamed - - - - cbEnableCookies - - - Enable coo&kies - - - <qt> -Enable cookie support. Normally you will want to have cookie support enabled and customize it to suit your privacy needs.<p> -Please note that disabling cookie support might make many web sites unbrowsable. -</qt> - - - - - bgPreferences - - - - - - - unnamed - - - - cbRejectCrossDomainCookies - - - Only acce&pt cookies from originating server - - - <qt> -Reject the so called third-party cookies. These are cookies that originate from a site other than the one you are currently browsing. For example, if you visit <b>www.foobar.com</b> while this option is on, only cookies that originate from www.foobar.com will be processed per your settings. Cookies from any other site will be rejected. This reduces the chances of site operators compiling a profile about your daily browsing habits. -</qt> - - - - - cbAutoAcceptSessionCookies - - - Automaticall&y accept session cookies - - - <qt> -Automatically accept temporary cookies meant to expire at the end of the current session. Such cookies will not be stored in your computer's hard drive or storage device. Instead, they are deleted when you close all applications (e.g. your browser) that use them.<p> -<u>NOTE:</u> Checking this option along with the next one will override your default as well as site specific cookie policies. However, doing so also increases your privacy since all cookies will be removed when the current session ends. -</qt> - - - - - cbIgnoreCookieExpirationDate - - - Treat &all cookies as session cookies - - - <qt> -Treat all cookies as session cookies. Session cookies are small pieces of data that are temporarily stored in your computer's memory until you quit or close all applications (e.g. your browser) that use them. Unlike regular cookies, session cookies are never stored on your hard drive or other storage medium.<p> -<u>NOTE:</u> Checking this option along with the previous one will override your default as well as site specific cookie policies. However, doing so also increases your privacy since all cookies will be removed when the current session ends. -</qt> - - - - - - - bgDefault - - - Default Policy - - - true - - - <qt> -Determines how cookies received from a remote machine will be handled: -<ul> -<li><b>Ask</b> will cause KDE to ask for your confirmation whenever a server wants to set a cookie."</li> -<li><b>Accept</b> will cause cookies to be accepted without prompting you.</li> -<li><b>Reject</b> will cause the cookiejar to refuse all cookies it receives.</li> -</ul><p> -<u>NOTE:</u> Domain specific policies, which can be set below, always take precedence over the default policy. -</qt> - - - - unnamed - - - - rbPolicyAsk - - - Ask &for confirmation - - - - - rbPolicyAccept - - - Accep&t all cookies - - - - - rbPolicyReject - - - Re&ject all cookies - - - - - - - gbDomainSpecific - - - Site Policy - - - <qt> -To add a new policy, simply click on the <b>Add...</b> button and supply the necessary information. To change an existing policy, use the <b>Change...</b> button and choose the new policy from the policy dialog box. Clicking on the <b>Delete</b> button will remove the currently selected policy causing the default policy setting to be used for that domain whereas <b>Delete All</b> will remove all the site specific policies. -</qt> - - - - unnamed - - - - spacer1 - - - Vertical - - - MinimumExpanding - - - - 20 - 16 - - - - - - layout3 - - - - unnamed - - - - pbNew - - - &New... - - - - - pbChange - - - Chan&ge... - - - - - pbDelete - - - D&elete - - - - - pbDeleteAll - - - Delete A&ll - - - - - - - - Domain - - - true - - - true - - - - - Policy - - - true - - - true - - - - lvDomainPolicy - - - Extended - - - true - - - true - - - 0 - - - <qt> -List of sites for which you have set a specific cookie policy. Specific policies override the default policy setting for these sites. -</qt> - - - - - layout2 - - - - unnamed - - - - tbClearSearchLine - - - ... - - - Clear Search - - - - - textLabel1 - - - &Search: - - - kListViewSearchLine - - - - - kListViewSearchLine - - - - - - Search interactively for domains - - - - - - - - - - - - - tbClearSearchLine - clicked() - kListViewSearchLine - clear() - - - - kdialog.h - - - - - klistview.h - klistviewsearchline.h - - diff --git a/kcontrol/kio/kenvvarproxydlg.cpp b/kcontrol/kio/kenvvarproxydlg.cpp deleted file mode 100644 index 22accb4e9..000000000 --- a/kcontrol/kio/kenvvarproxydlg.cpp +++ /dev/null @@ -1,303 +0,0 @@ -/* - kenvvarproxydlg.cpp - Proxy configuration dialog - - Copyright (C) 2001- Dawit Alemayehu - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public - License (GPL) version 2 as published by the Free Software - Foundation. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include - -#include -#include -#include -#include -#include - -#include -#include -#include -#include - -#include "envvarproxy_ui.h" -#include "kenvvarproxydlg.h" - - -#define ENV_FTP_PROXY "FTP_PROXY,ftp_proxy,FTPPROXY,ftpproxy,PROXY,proxy" -#define ENV_HTTP_PROXY "HTTP_PROXY,http_proxy,HTTPPROXY,httpproxy,PROXY,proxy" -#define ENV_HTTPS_PROXY "HTTPS_PROXY,https_proxy,HTTPSPROXY,httpsproxy,PROXY,proxy" -#define NO_PROXY "NO_PROXY,no_proxy" - - -static TQString getProxyEnv(const TQString& var) -{ - return TQString::fromLocal8Bit(::getenv(var.local8Bit().data())); -} - -static bool autoDetectProxySetting(const TQString& type, TQString& proxyEnv) -{ - TQStringList list = TQStringList::split( ',', type); - TQStringList::ConstIterator it = list.begin(); - TQStringList::ConstIterator end = list.end(); - - for(; it != end; ++it) - { - if(!getProxyEnv(*it).isEmpty()) - { - proxyEnv = *it; - return true; - } - } - - return false; -} - -KEnvVarProxyDlg::KEnvVarProxyDlg( TQWidget* parent, const char* name ) - :KProxyDialogBase( parent, name, true, - i18n( "Variable Proxy Configuration" ) ) -{ - mDlg = new EnvVarProxyDlgUI( this ); - setMainWidget( mDlg ); - mDlg->leHttp->setMinimumWidth( mDlg->leHttp->fontMetrics().maxWidth() * 20 ); - init(); -} - -KEnvVarProxyDlg::~KEnvVarProxyDlg () -{ -} - -void KEnvVarProxyDlg::init() -{ - m_bHasValidData = false; - - connect( mDlg->cbShowValue, TQT_SIGNAL( clicked() ), TQT_SLOT( showValuePressed() ) ); - connect( mDlg->pbVerify, TQT_SIGNAL( clicked() ), TQT_SLOT( verifyPressed() ) ); - connect( mDlg->pbDetect, TQT_SIGNAL( clicked() ), TQT_SLOT( autoDetectPressed() ) ); -} - -void KEnvVarProxyDlg::setProxyData( const KProxyData& data ) -{ - // Setup HTTP Proxy... - if (!getProxyEnv(data.proxyList["http"]).isEmpty()) - mEnvVarsMap["http"] = data.proxyList["http"]; - - // Setup HTTPS Proxy... - if (!getProxyEnv(data.proxyList["https"]).isEmpty()) - mEnvVarsMap["https"] = data.proxyList["https"]; - - // Setup FTP Proxy... - if (!getProxyEnv(data.proxyList["ftp"]).isEmpty()) - mEnvVarsMap["ftp"] = data.proxyList["ftp"]; - - // Setup NO Proxy For... - TQString noProxyFor = data.noProxyFor.join(""); - if (!getProxyEnv(noProxyFor).isEmpty()) - mEnvVarsMap["noProxy"] = noProxyFor; - - mDlg->cbShowValue->setChecked( data.showEnvVarValue ); - showValue(); -} - -const KProxyData KEnvVarProxyDlg::data() const -{ - KProxyData data; - - if (m_bHasValidData) - { - data.proxyList["http"] = mEnvVarsMap["http"]; - data.proxyList["https"] = mEnvVarsMap["https"]; - data.proxyList["ftp"] = mEnvVarsMap["ftp"]; - data.noProxyFor = mEnvVarsMap["noProxy"]; - data.type = KProtocolManager::EnvVarProxy; - data.showEnvVarValue = mDlg->cbShowValue->isChecked(); - } - - return data; -} - - -void KEnvVarProxyDlg::verifyPressed() -{ - if ( !validate() ) - { - TQString msg = i18n("You must specify at least one valid proxy " - "environment variable."); - - TQString details = i18n("Make sure you entered the actual environment " - "variable name rather than its value. For " - "example, if the environment variable is
    " - "HTTP_PROXY=http://localhost:3128
    you need " - "to enter HTTP_PROXY here instead of the " - "actual value http://localhost:3128.
    "); - - KMessageBox::detailedSorry( this, msg, details, - i18n("Invalid Proxy Setup") ); - } - else - { - KMessageBox::information( this, i18n("Successfully verified."), - i18n("Proxy Setup") ); - } -} - -void KEnvVarProxyDlg::autoDetectPressed() -{ - bool found = false; - - setHighLight (mDlg->lbHttp, false); - setHighLight (mDlg->lbHttps, false); - setHighLight (mDlg->lbFtp, false); - setHighLight (mDlg->lbNoProxy, false); - - // Detect HTTP proxy settings... - found |= autoDetectProxySetting (TQString::fromLatin1(ENV_HTTP_PROXY), mEnvVarsMap["http"]); - - // Detect HTTPS proxy settings... - found |= autoDetectProxySetting (TQString::fromLatin1(ENV_HTTPS_PROXY), mEnvVarsMap["https"]); - - // Detect FTP proxy settings... - found |= autoDetectProxySetting (TQString::fromLatin1(ENV_FTP_PROXY), mEnvVarsMap["ftp"]); - - // Detect the NO_PROXY settings... - found |= autoDetectProxySetting (TQString::fromLatin1(NO_PROXY), mEnvVarsMap["noProxy"]); - - if ( !found ) - { - TQString msg = i18n("Did not detect any environment variables " - "commonly used to set system wide proxy " - "information."); - - TQString details = i18n("To learn about the variable names the " - "automatic detection process searches for, " - "press OK, click on the quick help button " - "on the window title bar of the " - "previous dialog and then click on the " - "\"Auto Detect\" button."); - - KMessageBox::detailedSorry( this, msg, details, - i18n("Automatic Proxy Variable Detection") ); - return; - } - - showValue(); -} - -void KEnvVarProxyDlg::updateVariables() -{ - TQString text = mDlg->leHttp->text(); - if (mEnvVarsMap["http"] != text) - mEnvVarsMap["http"] = text; - - text = mDlg->leHttps->text(); - if (mEnvVarsMap["https"] != text) - mEnvVarsMap["https"] = text; - - text = mDlg->leFtp->text(); - if (mEnvVarsMap["ftp"] != text) - mEnvVarsMap["ftp"] = text; - - text = mDlg->leNoProxy->text(); - if (mEnvVarsMap["noProxy"] != text) - mEnvVarsMap["noProxy"] = text; -} - -void KEnvVarProxyDlg::showValuePressed() -{ - // Only update the variables whenever - if (mDlg->cbShowValue->isChecked()) - updateVariables(); - - showValue(); -} - -void KEnvVarProxyDlg::showValue() -{ - bool enable = mDlg->cbShowValue->isChecked(); - - mDlg->leHttp->setReadOnly (enable); - mDlg->leHttps->setReadOnly (enable); - mDlg->leFtp->setReadOnly (enable); - mDlg->leNoProxy->setReadOnly (enable); - - if (enable) - { - mDlg->leHttp->setText(getProxyEnv(mEnvVarsMap["http"])); - mDlg->leHttps->setText(getProxyEnv(mEnvVarsMap["https"])); - mDlg->leFtp->setText(getProxyEnv(mEnvVarsMap["ftp"])); - mDlg->leNoProxy->setText(getProxyEnv(mEnvVarsMap["noProxy"])); - } - else - { - mDlg->leHttp->setText(mEnvVarsMap["http"]); - mDlg->leHttps->setText(mEnvVarsMap["https"]); - mDlg->leFtp->setText(mEnvVarsMap["ftp"]); - mDlg->leNoProxy->setText(mEnvVarsMap["noProxy"]); - } -} - -bool KEnvVarProxyDlg::validate(bool erase) -{ - m_bHasValidData = false; - - if(!mDlg->cbShowValue->isChecked()) - updateVariables(); - - bool notFound = getProxyEnv(mEnvVarsMap["http"]).isEmpty(); - m_bHasValidData |= !notFound; - setHighLight (mDlg->lbHttp, notFound); - if(notFound && erase) mEnvVarsMap["http"] = TQString::null; - - notFound = getProxyEnv(mEnvVarsMap["https"]).isEmpty(); - m_bHasValidData |= !notFound; - setHighLight (mDlg->lbHttps, notFound); - if(notFound && erase) mEnvVarsMap["https"] = TQString::null; - - notFound = getProxyEnv(mEnvVarsMap["ftp"]).isEmpty(); - m_bHasValidData |= !notFound; - setHighLight (mDlg->lbFtp, notFound); - if(notFound && erase) mEnvVarsMap["ftp"] = TQString::null; - - notFound = getProxyEnv(mEnvVarsMap["noProxy"]).isEmpty(); - m_bHasValidData |= !notFound; - setHighLight (mDlg->lbNoProxy, notFound); - if(notFound && erase) mEnvVarsMap["noProxy"] = TQString::null; - - return m_bHasValidData; -} - -void KEnvVarProxyDlg::slotOk() -{ - if(!validate(true)) - { - TQString msg = i18n("You must specify at least one valid proxy " - "environment variable."); - - TQString details = i18n("Make sure you entered the actual environment " - "variable name rather than its value. For " - "example, if the environment variable is
    " - "HTTP_PROXY=http://localhost:3128
    you need " - "to enter HTTP_PROXY here instead of the " - "actual value http://localhost:3128.
    "); - - KMessageBox::detailedError( this, msg, details, - i18n("Invalid Proxy Setup") ); - return; - } - - KDialogBase::slotOk (); -} - -#include "kenvvarproxydlg.moc" diff --git a/kcontrol/kio/kenvvarproxydlg.h b/kcontrol/kio/kenvvarproxydlg.h deleted file mode 100644 index 3ddbc989f..000000000 --- a/kcontrol/kio/kenvvarproxydlg.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - kenvvarproxydlg.h - Base dialog box for proxy configuration - - Copyright (C) 2001- Dawit Alemayehu - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public - License (GPL) version 2 as published by the Free Software - Foundation. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ -#ifndef KENVVAR_PROXY_DIALOG_H -#define KENVVAR_PROXY_DIALOG_H - -#include - -#include "kproxydlgbase.h" - -class EnvVarProxyDlgUI; - -class KEnvVarProxyDlg : public KProxyDialogBase -{ - Q_OBJECT - -public: - KEnvVarProxyDlg( TQWidget* parent = 0, const char* name = 0 ); - ~KEnvVarProxyDlg(); - - virtual const KProxyData data() const; - virtual void setProxyData( const KProxyData &data ); - -protected slots: - virtual void slotOk(); - void verifyPressed(); - void showValuePressed(); - void autoDetectPressed(); - -protected: - void init(); - bool validate(bool erase = false); - void showValue(); - void updateVariables(); - -private: - EnvVarProxyDlgUI* mDlg; - TQMap mEnvVarsMap; -}; -#endif diff --git a/kcontrol/kio/kio_ftprc.kcfg b/kcontrol/kio/kio_ftprc.kcfg deleted file mode 100644 index 610b2e68a..000000000 --- a/kcontrol/kio/kio_ftprc.kcfg +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - When FTP connections are passive the client connects to the server, instead of the other way round, so firewalls do not block the connection; old FTP servers may not support Passive FTP though. - false - - - - - While a file is being uploaded its extension is ".part". When fully uploaded it is renamed to its real name. - true - - - - diff --git a/kcontrol/kio/kio_ftprc.kcfgc b/kcontrol/kio/kio_ftprc.kcfgc deleted file mode 100644 index 7b5ca780f..000000000 --- a/kcontrol/kio/kio_ftprc.kcfgc +++ /dev/null @@ -1,5 +0,0 @@ -File=kio_ftprc.kcfg -ClassName=KioFtp -Singleton=true -Mutators=true - diff --git a/kcontrol/kio/kmanualproxydlg.cpp b/kcontrol/kio/kmanualproxydlg.cpp deleted file mode 100644 index dd5dcfd16..000000000 --- a/kcontrol/kio/kmanualproxydlg.cpp +++ /dev/null @@ -1,498 +0,0 @@ -/* - kmanualproxydlg.cpp - Proxy configuration dialog - - Copyright (C) 2001-2004 Dawit Alemayehu - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public - License (GPL) version 2 as published by the Free Software - Foundation. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "manualproxy_ui.h" -#include "kmanualproxydlg.h" - - -KManualProxyDlg::KManualProxyDlg( TQWidget* parent, const char* name ) - :KProxyDialogBase( parent, name, true, - i18n("Manual Proxy Configuration") ) -{ - mDlg = new ManualProxyDlgUI (this); - setMainWidget( mDlg ); - - mDlg->pbCopyDown->setPixmap( BarIcon("down", KIcon::SizeSmall) ); - TQSizePolicy sizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed, - mDlg->pbCopyDown->sizePolicy().hasHeightForWidth() ); - mDlg->pbCopyDown->setSizePolicy( sizePolicy ); - - init(); -} - -void KManualProxyDlg::init() -{ - mDlg->sbHttp->setRange( 0, MAX_PORT_VALUE ); - mDlg->sbHttps->setRange( 0, MAX_PORT_VALUE ); - mDlg->sbFtp->setRange( 0, MAX_PORT_VALUE ); - - connect( mDlg->pbNew, TQT_SIGNAL( clicked() ), TQT_SLOT( newPressed() ) ); - connect( mDlg->pbChange, TQT_SIGNAL( clicked() ), TQT_SLOT( changePressed() ) ); - connect( mDlg->pbDelete, TQT_SIGNAL( clicked() ), TQT_SLOT( deletePressed() ) ); - connect( mDlg->pbDeleteAll, TQT_SIGNAL( clicked() ), TQT_SLOT( deleteAllPressed() ) ); - - connect( mDlg->lbExceptions, TQT_SIGNAL(selectionChanged()), TQT_SLOT(updateButtons()) ); - connect( mDlg->lbExceptions, TQT_SIGNAL(doubleClicked (TQListBoxItem *)), TQT_SLOT(changePressed())); - - connect( mDlg->cbSameProxy, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( sameProxy(bool) ) ); - connect( mDlg->pbCopyDown, TQT_SIGNAL( clicked() ), TQT_SLOT( copyDown() ) ); - - connect( mDlg->leHttp, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(textChanged(const TQString&)) ); - connect( mDlg->sbHttp, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(valueChanged (int)) ); -} - -void KManualProxyDlg::setProxyData( const KProxyData &data ) -{ - KURL url; - - // Set the HTTP proxy... - if (!isValidURL(data.proxyList["http"], &url)) - mDlg->sbHttp->setValue( DEFAULT_PROXY_PORT ); - else - { - int port = url.port(); - if ( port <= 0 ) - port = DEFAULT_PROXY_PORT; - - url.setPort( 0 ); - mDlg->leHttp->setText( url.url() ); - mDlg->sbHttp->setValue( port ); - } - - bool useSameProxy = (!mDlg->leHttp->text().isEmpty () && - data.proxyList["http"] == data.proxyList["https"] && - data.proxyList["http"] == data.proxyList["ftp"]); - - mDlg->cbSameProxy->setChecked ( useSameProxy ); - - if ( useSameProxy ) - { - mDlg->leHttps->setText ( mDlg->leHttp->text() ); - mDlg->leFtp->setText ( mDlg->leHttp->text() ); - mDlg->sbHttps->setValue( mDlg->sbHttp->value() ); - mDlg->sbFtp->setValue( mDlg->sbHttp->value() ); - - sameProxy ( true ); - } - else - { - // Set the HTTPS proxy... - if( !isValidURL( data.proxyList["https"], &url ) ) - mDlg->sbHttps->setValue( DEFAULT_PROXY_PORT ); - else - { - int port = url.port(); - if ( port <= 0 ) - port = DEFAULT_PROXY_PORT; - - url.setPort( 0 ); - mDlg->leHttps->setText( url.url() ); - mDlg->sbHttps->setValue( port ); - } - - // Set the FTP proxy... - if( !isValidURL( data.proxyList["ftp"], &url ) ) - mDlg->sbFtp->setValue( DEFAULT_PROXY_PORT ); - else - { - int port = url.port(); - if ( port <= 0 ) - port = DEFAULT_PROXY_PORT; - - url.setPort( 0 ); - mDlg->leFtp->setText( url.url() ); - mDlg->sbFtp->setValue( port ); - } - } - - TQStringList::ConstIterator it = data.noProxyFor.begin(); - for( ; it != data.noProxyFor.end(); ++it ) - { - // "no_proxy" is a keyword used by the environment variable - // based configuration. We ignore it here as it is not applicable... - if ((*it).lower() != "no_proxy" && !(*it).isEmpty()) - { - // Validate the NOPROXYFOR entries and use only hostnames if the entry is - // a valid or legitimate URL. NOTE: needed to catch manual manipulation - // of the proxy config files... - if( isValidURL( *it ) || ((*it).length() >= 3 && (*it).startsWith(".")) ) - mDlg->lbExceptions->insertItem( *it ); - } - } - - mDlg->cbReverseProxy->setChecked( data.useReverseProxy ); -} - -const KProxyData KManualProxyDlg::data() const -{ - KProxyData data; - - if (!m_bHasValidData) - return data; - - data.proxyList["http"] = urlFromInput( mDlg->leHttp, mDlg->sbHttp ); - - if ( mDlg->cbSameProxy->isChecked () ) - { - data.proxyList["https"] = data.proxyList["http"]; - data.proxyList["ftp"] = data.proxyList["http"]; - } - else - { - data.proxyList["https"] = urlFromInput( mDlg->leHttps, mDlg->sbHttps ); - data.proxyList["ftp"] = urlFromInput( mDlg->leFtp, mDlg->sbFtp ); - } - - if ( mDlg->lbExceptions->count() ) - { - TQListBoxItem* item = mDlg->lbExceptions->firstItem(); - for( ; item != 0L; item = item->next() ) - data.noProxyFor << item->text(); - } - - data.type = KProtocolManager::ManualProxy; - data.useReverseProxy = mDlg->cbReverseProxy->isChecked(); - - return data; -} - -void KManualProxyDlg::sameProxy( bool enable ) -{ - mDlg->leHttps->setEnabled (!enable ); - mDlg->leFtp->setEnabled (!enable ); - mDlg->sbHttps->setEnabled (!enable ); - mDlg->sbFtp->setEnabled (!enable ); - mDlg->pbCopyDown->setEnabled( !enable ); - - if (enable) - { - mOldFtpText = mDlg->leFtp->text(); - mOldHttpsText = mDlg->leHttps->text(); - - mOldFtpPort = mDlg->sbFtp->value(); - mOldHttpsPort = mDlg->sbHttps->value(); - - int port = mDlg->sbHttp->value(); - TQString text = mDlg->leHttp->text(); - - mDlg->leFtp->setText (text); - mDlg->leHttps->setText (text); - - mDlg->sbFtp->setValue (port); - mDlg->sbHttps->setValue (port); - - if (mDlg->lbHttps->font().bold()) - setHighLight( mDlg->lbHttps, false ); - - if (mDlg->lbFtp->font().bold()) - setHighLight( mDlg->lbFtp, false ); - } - else - { - mDlg->leFtp->setText (mOldFtpText); - mDlg->leHttps->setText (mOldHttpsText); - - mDlg->sbFtp->setValue (mOldFtpPort); - mDlg->sbHttps->setValue (mOldHttpsPort); - } -} - -bool KManualProxyDlg::validate() -{ - KURL filteredURL; - unsigned short count = 0; - - if ( isValidURL( mDlg->leHttp->text(), &filteredURL ) ) - { - mDlg->leHttp->setText( filteredURL.url() ); - count++; - } - else - setHighLight( mDlg->lbHttp, true ); - - if ( !mDlg->cbSameProxy->isChecked () ) - { - if ( isValidURL( mDlg->leHttps->text(), &filteredURL ) ) - { - mDlg->leHttps->setText( filteredURL.url() ); - count++; - } - else - setHighLight( mDlg->lbHttps, true ); - - if ( isValidURL( mDlg->leFtp->text(), &filteredURL ) ) - { - mDlg->leFtp->setText( filteredURL.url() ); - count++; - } - else - setHighLight( mDlg->lbFtp, true ); - } - - if ( count == 0 ) - { - showErrorMsg( i18n("Invalid Proxy Setting"), - i18n("One or more of the specified proxy settings are " - "invalid. The incorrect entries are highlighted.") ); - } - - return (count > 0); -} - -void KManualProxyDlg::textChanged(const TQString& text) -{ - if (!mDlg->cbSameProxy->isChecked()) - return; - - mDlg->leFtp->setText( text ); - mDlg->leHttps->setText( text ); -} - -void KManualProxyDlg::valueChanged(int value) -{ - if (!mDlg->cbSameProxy->isChecked()) - return; - - mDlg->sbFtp->setValue (value); - mDlg->sbHttps->setValue (value); - } - -void KManualProxyDlg::copyDown() -{ - int action = -1; - - if ( !mDlg->leHttp->text().isEmpty() ) - action += 4; - else if ( !mDlg->leHttps->text().isEmpty() ) - action += 3; - - switch ( action ) - { - case 3: - mDlg->leHttps->setText( mDlg->leHttp->text() ); - mDlg->sbHttps->setValue( mDlg->sbHttp->value() ); - mDlg->leFtp->setText( mDlg->leHttp->text() ); - mDlg->sbFtp->setValue( mDlg->sbHttp->value() ); - break; - case 2: - mDlg->leFtp->setText( mDlg->leHttps->text() ); - mDlg->sbFtp->setValue( mDlg->sbHttps->value() ); - break; - case 1: - case 0: - default: - break; - } -} - -void KManualProxyDlg::slotOk() -{ - //tqDebug("m_bHasValidData: %s" , m_bHasValidData ? "true" : "false"); - if ( m_bHasValidData || validate() ) - { - KDialogBase::slotOk(); - m_bHasValidData = true; - } -} - -bool KManualProxyDlg::handleDuplicate( const TQString& site ) -{ - TQListBoxItem* item = mDlg->lbExceptions->firstItem(); - while ( item != 0 ) - { - if ( item->text().findRev( site ) != -1 && - item != mDlg->lbExceptions->selectedItem() ) - { - TQString msg = i18n("You entered a duplicate address. " - "Please try again."); - TQString details = i18n("

    %1
    " - "is already in the list.").arg(site); - KMessageBox::detailedError( this, msg, details, i18n("Duplicate Entry") ); - return true; - } - - item = item->next(); - } - return false; -} - -void KManualProxyDlg::newPressed() -{ - TQString result; - if( getException(result, i18n("New Exception")) && !handleDuplicate(result) ) - mDlg->lbExceptions->insertItem( result ); -} - -void KManualProxyDlg::changePressed() -{ - TQString result; - if( getException( result, i18n("Change Exception"), - mDlg->lbExceptions->currentText() ) && - !handleDuplicate( result ) ) - mDlg->lbExceptions->changeItem( result, mDlg->lbExceptions->currentItem() ); -} - -void KManualProxyDlg::deletePressed() -{ - mDlg->lbExceptions->removeItem( mDlg->lbExceptions->currentItem() ); - mDlg->lbExceptions->setSelected( mDlg->lbExceptions->currentItem(), true ); - updateButtons(); -} - -void KManualProxyDlg::deleteAllPressed() -{ - mDlg->lbExceptions->clear(); - updateButtons(); -} - -void KManualProxyDlg::updateButtons() -{ - bool hasItems = mDlg->lbExceptions->count() > 0; - bool itemSelected = (hasItems && mDlg->lbExceptions->selectedItem()!=0); - - mDlg->pbDeleteAll->setEnabled( hasItems ); - mDlg->pbDelete->setEnabled( itemSelected ); - mDlg->pbChange->setEnabled( itemSelected ); -} - -TQString KManualProxyDlg::urlFromInput(const KLineEdit* edit, - const TQSpinBox* spin) const -{ - if (!edit) - return TQString::null; - - KURL u( edit->text() ); - - if (spin) - u.setPort( spin->value() ); - - return u.url(); -} - -bool KManualProxyDlg::isValidURL( const TQString& _url, KURL* result ) const -{ - KURL url (_url); - - TQStringList filters; - filters << "kshorturifilter" << "localdomainurifilter"; - - // If the typed URL is malformed, and the filters cannot filter it - // then it must be an invalid entry. - if( !(url.isValid() || KURIFilter::self()->filterURI(url, filters)) && - !url.hasHost() ) - return false; - - TQString host (url.host()); - - // We only check for a relevant subset of characters that are - // not allowed in component of a URL. - if ( host.contains ('*') || host.contains (' ') || host.contains ('?') ) - return false; - - if ( result ) - *result = url; - - return true; -} - -void KManualProxyDlg::showErrorMsg( const TQString& caption, - const TQString& message ) -{ - TQString cap( caption ); - TQString msg( message ); - - if ( cap.isNull() ) - cap = i18n("Invalid Entry"); - - if ( msg.isNull() ) - msg = i18n("The address you have entered is not valid."); - - TQString details = i18n("Make sure none of the addresses or URLs you " - "specified contain invalid or wildcard characters " - "such as spaces, asterisks (*), or question marks(?).

    " - "Examples of VALID entries:
    " - "http://mycompany.com, 192.168.10.1, " - "mycompany.com, localhost, http://localhost

    " - "Examples of INVALID entries:
    " - "http://my company.com, http:/mycompany,com " - "file:/localhost"); - - KMessageBox::detailedError( this, msg, details, cap ); -} - -bool KManualProxyDlg::getException ( TQString& result, - const TQString& caption, - const TQString& value ) -{ - TQString label; - - // Specify the appropriate message... - if ( mDlg->cbReverseProxy->isChecked() ) - label = i18n("Enter the URL or address that should use the above proxy " - "settings:"); - else - label = i18n("Enter the address or URL that should be excluded from " - "using the above proxy settings:"); - - TQString whatsThis = i18n("Enter a valid address or url.

    " - "NOTE: Wildcard matching such as " - "*.kde.org is not supported. If you want " - "to match any host in the .kde.org domain, " - "e.g. printing.kde.org, then simply enter " - ".kde.org"); - - bool ok; - result = KInputDialog::text( caption, label, value, &ok, 0, 0, 0, - TQString::null, whatsThis ); - - // If the user pressed cancel, do nothing... - if (!ok) - return false; - - // If the typed URL is malformed, and the filters cannot filter it - // then it must be an invalid entry, - if( isValidURL(result) || (result.length() >= 3 && result.startsWith("."))) - return true; - - showErrorMsg(); - return false; -} - -#include "kmanualproxydlg.moc" diff --git a/kcontrol/kio/kmanualproxydlg.h b/kcontrol/kio/kmanualproxydlg.h deleted file mode 100644 index 18cbd6f0a..000000000 --- a/kcontrol/kio/kmanualproxydlg.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - kmanualproxydlg.h - Base dialog box for proxy configuration - - Copyright (C) 2001-2004 Dawit Alemayehu - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public - License (GPL) version 2 as published by the Free Software - Foundation. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#ifndef KMANUAL_PROXY_DIALOG_H -#define KMANUAL_PROXY_DIALOG_H - -#include "kproxydlgbase.h" - -class TQSpinBox; -class KLineEdit; -class ManualProxyDlgUI; - -class KManualProxyDlg : public KProxyDialogBase -{ - Q_OBJECT - -public: - KManualProxyDlg( TQWidget* parent = 0, const char* name = 0 ); - ~KManualProxyDlg() {}; - - virtual void setProxyData( const KProxyData &data ); - virtual const KProxyData data() const; - -protected: - void init(); - bool validate(); - -protected slots: - virtual void slotOk(); - - void copyDown(); - void sameProxy( bool ); - void valueChanged (int value); - void textChanged (const TQString&); - - void newPressed(); - void updateButtons(); - void changePressed(); - void deletePressed(); - void deleteAllPressed(); - -private: - TQString urlFromInput( const KLineEdit* edit, const TQSpinBox* spin ) const; - bool isValidURL( const TQString&, KURL* = 0 ) const; - bool handleDuplicate( const TQString& ); - bool getException ( TQString&, const TQString&, - const TQString& value = TQString::null ); - void showErrorMsg( const TQString& caption = TQString::null, - const TQString& message = TQString::null ); - -private: - ManualProxyDlgUI* mDlg; - - int mOldFtpPort; - int mOldHttpsPort; - TQString mOldFtpText; - TQString mOldHttpsText; -}; -#endif diff --git a/kcontrol/kio/kproxydlg.cpp b/kcontrol/kio/kproxydlg.cpp deleted file mode 100644 index f3cb65bff..000000000 --- a/kcontrol/kio/kproxydlg.cpp +++ /dev/null @@ -1,375 +0,0 @@ -/* - kproxydlg.cpp - Proxy configuration dialog - - Copyright (C) 2001- Dawit Alemayehu - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public - License (GPL) version 2 as published by the Free Software - Foundation. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include - -#include "ksaveioconfig.h" -#include "kenvvarproxydlg.h" -#include "kmanualproxydlg.h" - -#include "socks.h" -#include "kproxydlg.h" -#include "kproxydlg_ui.h" - -KProxyOptions::KProxyOptions (TQWidget* parent ) - :TDECModule (parent, "kcmkio") -{ - TQVBoxLayout *layout = new TQVBoxLayout(this); - - mTab = new TQTabWidget(this); - layout->addWidget(mTab); - - mProxy = new KProxyDialog(mTab); - mSocks = new KSocksConfig(mTab); - - mTab->addTab(mProxy, i18n("&Proxy")); - mTab->addTab(mSocks, i18n("&SOCKS")); - - connect(mProxy, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool))); - connect(mSocks, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool))); - connect(mTab, TQT_SIGNAL(currentChanged(TQWidget *)), TQT_SIGNAL(quickHelpChanged())); -} - -KProxyOptions::~KProxyOptions() -{ -} - -void KProxyOptions::load() -{ - mProxy->load(); - mSocks->load(); -} - -void KProxyOptions::save() -{ - mProxy->save(); - mSocks->save(); -} - -void KProxyOptions::defaults() -{ - mProxy->defaults(); - mSocks->defaults(); -} - -TQString KProxyOptions::quickHelp() const -{ - TQWidget *w = mTab->currentPage(); - - if (w && w->inherits("TDECModule")) - { - TDECModule *m = static_cast(w); - return m->quickHelp(); - } - - return TQString::null; -} - - -KProxyDialog::KProxyDialog( TQWidget* parent) - :TDECModule( parent, "kcmkio" ) -{ - TQVBoxLayout* mainLayout = new TQVBoxLayout( this, KDialog::marginHint(), - KDialog::spacingHint() ); - - mDlg = new KProxyDialogUI( this ); - mainLayout->addWidget( mDlg ); - mainLayout->addStretch(); - - // signals and slots connections - connect( mDlg->rbNoProxy, TQT_SIGNAL( toggled(bool) ), - TQT_SLOT( slotUseProxyChanged() ) ); - - connect( mDlg->rbAutoDiscover, TQT_SIGNAL( toggled(bool) ), - TQT_SLOT( slotChanged() ) ); - connect( mDlg->rbAutoScript, TQT_SIGNAL( toggled(bool) ), - TQT_SLOT( slotChanged() ) ); - - connect( mDlg->rbPrompt, TQT_SIGNAL( toggled(bool) ), - TQT_SLOT( slotChanged() ) ); - connect( mDlg->rbPresetLogin, TQT_SIGNAL( toggled(bool) ), - TQT_SLOT( slotChanged() ) ); - - connect( mDlg->cbPersConn, TQT_SIGNAL( toggled(bool) ), - TQT_SLOT( slotChanged() ) ); - - connect( mDlg->location, TQT_SIGNAL( textChanged(const TQString&) ), - TQT_SLOT( slotChanged() ) ); - - connect( mDlg->pbEnvSetup, TQT_SIGNAL( clicked() ), TQT_SLOT( setupEnvProxy() ) ); - connect( mDlg->pbManSetup, TQT_SIGNAL( clicked() ), TQT_SLOT( setupManProxy() ) ); - - load(); -} - -KProxyDialog::~KProxyDialog() -{ - delete mData; - mData = 0; -} - -void KProxyDialog::load() -{ - mDefaultData = false; - mData = new KProxyData; - - KProtocolManager proto; - bool useProxy = proto.useProxy(); - mData->type = proto.proxyType(); - mData->proxyList["http"] = proto.proxyFor( "http" ); - mData->proxyList["https"] = proto.proxyFor( "https" ); - mData->proxyList["ftp"] = proto.proxyFor( "ftp" ); - mData->proxyList["script"] = proto.proxyConfigScript(); - mData->useReverseProxy = proto.useReverseProxy(); - mData->noProxyFor = TQStringList::split( TQRegExp("[',''\t'' ']"), - proto.noProxyForRaw() ); - - mDlg->gbAuth->setEnabled( useProxy ); - mDlg->gbOptions->setEnabled( useProxy ); - - mDlg->cbPersConn->setChecked( proto.persistentProxyConnection() ); - - if ( !mData->proxyList["script"].isEmpty() ) - mDlg->location->lineEdit()->setText( mData->proxyList["script"] ); - - switch ( mData->type ) - { - case KProtocolManager::WPADProxy: - mDlg->rbAutoDiscover->setChecked( true ); - break; - case KProtocolManager::PACProxy: - mDlg->rbAutoScript->setChecked( true ); - break; - case KProtocolManager::ManualProxy: - mDlg->rbManual->setChecked( true ); - break; - case KProtocolManager::EnvVarProxy: - mDlg->rbEnvVar->setChecked( true ); - break; - case KProtocolManager::NoProxy: - default: - mDlg->rbNoProxy->setChecked( true ); - break; - } - - switch( proto.proxyAuthMode() ) - { - case KProtocolManager::Prompt: - mDlg->rbPrompt->setChecked( true ); - break; - case KProtocolManager::Automatic: - mDlg->rbPresetLogin->setChecked( true ); - default: - break; - } -} - -void KProxyDialog::save() -{ - bool updateProxyScout = false; - - if (mDefaultData) - mData->reset (); - - if ( mDlg->rbNoProxy->isChecked() ) - { - KSaveIOConfig::setProxyType( KProtocolManager::NoProxy ); - } - else - { - if ( mDlg->rbAutoDiscover->isChecked() ) - { - KSaveIOConfig::setProxyType( KProtocolManager::WPADProxy ); - updateProxyScout = true; - } - else if ( mDlg->rbAutoScript->isChecked() ) - { - KURL u( mDlg->location->lineEdit()->text() ); - - if ( !u.isValid() ) - { - showInvalidMessage( i18n("The address of the automatic proxy " - "configuration script is invalid. Please " - "correct this problem before proceeding. " - "Otherwise, your changes you will be " - "ignored.") ); - return; - } - else - { - KSaveIOConfig::setProxyType( KProtocolManager::PACProxy ); - mData->proxyList["script"] = u.url(); - updateProxyScout = true; - } - } - else if ( mDlg->rbManual->isChecked() ) - { - if ( mData->type != KProtocolManager::ManualProxy ) - { - // Let's try a bit harder to determine if the previous - // proxy setting was indeed a manual proxy - KURL u ( mData->proxyList["http"] ); - bool validProxy = (u.isValid() && u.port() != 0); - u= mData->proxyList["https"]; - validProxy |= (u.isValid() && u.port() != 0); - u= mData->proxyList["ftp"]; - validProxy |= (u.isValid() && u.port() != 0); - - if (!validProxy) - { - showInvalidMessage(); - return; - } - - mData->type = KProtocolManager::ManualProxy; - } - - KSaveIOConfig::setProxyType( KProtocolManager::ManualProxy ); - } - else if ( mDlg->rbEnvVar->isChecked() ) - { - if ( mData->type != KProtocolManager::EnvVarProxy ) - { - showInvalidMessage(); - return; - } - - KSaveIOConfig::setProxyType( KProtocolManager::EnvVarProxy ); - } - - if ( mDlg->rbPrompt->isChecked() ) - KSaveIOConfig::setProxyAuthMode( KProtocolManager::Prompt ); - else if ( mDlg->rbPresetLogin->isChecked() ) - KSaveIOConfig::setProxyAuthMode( KProtocolManager::Automatic ); - } - - KSaveIOConfig::setPersistentProxyConnection( mDlg->cbPersConn->isChecked() ); - - // Save the common proxy setting... - KSaveIOConfig::setProxyFor( "ftp", mData->proxyList["ftp"] ); - KSaveIOConfig::setProxyFor( "http", mData->proxyList["http"] ); - KSaveIOConfig::setProxyFor( "https", mData->proxyList["https"] ); - - KSaveIOConfig::setProxyConfigScript( mData->proxyList["script"] ); - KSaveIOConfig::setUseReverseProxy( mData->useReverseProxy ); - KSaveIOConfig::setNoProxyFor( mData->noProxyFor.join(",") ); - - - KSaveIOConfig::updateRunningIOSlaves (this); - if ( updateProxyScout ) - KSaveIOConfig::updateProxyScout( this ); - - emit changed( false ); -} - -void KProxyDialog::defaults() -{ - mDefaultData = true; - mDlg->rbNoProxy->setChecked( true ); - mDlg->location->lineEdit()->clear(); - mDlg->cbPersConn->setChecked( false ); - emit changed( true ); -} - -void KProxyDialog::setupManProxy() -{ - KManualProxyDlg dlgManual( this ); - - dlgManual.setProxyData( *mData ); - - if ( dlgManual.exec() == TQDialog::Accepted ) - { - *mData = dlgManual.data(); - mDlg->rbManual->setChecked(true); - emit changed( true ); - } -} - -void KProxyDialog::setupEnvProxy() -{ - KEnvVarProxyDlg dlgEnv( this ); - - dlgEnv.setProxyData( *mData ); - - if ( dlgEnv.exec() == TQDialog::Accepted ) - { - *mData = dlgEnv.data(); - mDlg->rbEnvVar->setChecked(true); - emit changed( true ); - } -} - -void KProxyDialog::slotChanged() -{ - mDefaultData = false; - emit changed( true ); -} - -void KProxyDialog::slotUseProxyChanged() -{ - mDefaultData = false; - bool useProxy = !(mDlg->rbNoProxy->isChecked()); - mDlg->gbAuth->setEnabled(useProxy); - mDlg->gbOptions->setEnabled(useProxy); - emit changed( true ); -} - -TQString KProxyDialog::quickHelp() const -{ - return i18n( "

    Proxy

    " - "

    A proxy server is an intermediate program that sits between " - "your machine and the Internet and provides services such as " - "web page caching and/or filtering.

    " - "

    Caching proxy servers give you faster access to sites you have " - "already visited by locally storing or caching the content of those " - "pages; filtering proxy servers, on the other hand, provide the " - "ability to block out requests for ads, spam, or anything else you " - "want to block.

    " - "

    Note: Some proxy servers provide both services.

    " ); -} - -void KProxyDialog::showInvalidMessage( const TQString& _msg ) -{ - TQString msg; - - if( !_msg.isEmpty() ) - msg = _msg; - else - msg = i18n( "The proxy settings you specified are invalid." - "

    Please click on the Setup... " - "button and correct the problem before proceeding; " - "otherwise your changes will be ignored." ); - - KMessageBox::error( this, msg, i18n("Invalid Proxy Setup") ); -} - -#include "kproxydlg.moc" diff --git a/kcontrol/kio/kproxydlg.h b/kcontrol/kio/kproxydlg.h deleted file mode 100644 index 30bdb935b..000000000 --- a/kcontrol/kio/kproxydlg.h +++ /dev/null @@ -1,82 +0,0 @@ -/* - kproxydlg.h - Proxy configuration dialog - - Copyright (C) 2001- Dawit Alemayehu - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public - License (GPL) version 2 as published by the Free Software - Foundation. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#ifndef _KPROXYDIALOG_H -#define _KPROXYDIALOG_H - -#include - -#include - -class TQTabWidget; - -class KProxyData; -class KProxyDialogUI; - -class KProxyOptions : public TDECModule -{ - Q_OBJECT - -public: - KProxyOptions( TQWidget* parent = 0 ); - ~KProxyOptions(); - - virtual void load(); - virtual void save(); - virtual void defaults(); - virtual TQString quickHelp() const; - -private: - TDECModule* mProxy; - TDECModule* mSocks; - TQTabWidget* mTab; -}; - -class KProxyDialog : public TDECModule -{ - Q_OBJECT - -public: - KProxyDialog( TQWidget* parent = 0 ); - ~KProxyDialog(); - - virtual void load(); - virtual void save(); - virtual void defaults(); - TQString quickHelp() const; - -private slots: - void slotChanged(); - void slotUseProxyChanged(); - - void setupManProxy(); - void setupEnvProxy(); - -private: - void showInvalidMessage( const TQString& _msg = TQString::null ); - -private: - KProxyDialogUI* mDlg; - KProxyData* mData; - bool mDefaultData; -}; - -#endif diff --git a/kcontrol/kio/kproxydlg_ui.ui b/kcontrol/kio/kproxydlg_ui.ui deleted file mode 100644 index e2edb2d27..000000000 --- a/kcontrol/kio/kproxydlg_ui.ui +++ /dev/null @@ -1,441 +0,0 @@ - -KProxyDialogUI - - - ProxyDlgUI - - - - 0 - 0 - 418 - 420 - - - - <qt> -Setup proxy configuration. -<p> -A proxy server is an intermediate machine that sits between your computer and the Internet and provides services such as web page caching and filtering. Caching proxy servers give you faster access to web sites you have already visited by locally storing or caching those pages; filtering proxy servers usually provide the ability to block out requests for ads, spam, or anything else you want to block. -<p> -If you are uncertain whether or not you need to use a proxy server to connect to the Internet, consult your Internet service provider's setup guide or your system administrator. -</qt> - - - - unnamed - - - 0 - - - - gbConfigure - - - NoFrame - - - 0 - - - - - - true - - - - unnamed - - - 0 - - - - rbNoProxy - - - Connect to the &Internet directly - - - true - - - Connect to the Internet directly. - - - - - rbAutoDiscover - - - true - - - A&utomatically detect proxy configuration - - - <qt> -Automatically detect and configure the proxy settings.<p> -Automatic detection is performed using the <b>Web Proxy Auto-Discovery Protocol (WPAD)</b>.<p> -<b>NOTE:</b> This option might not work properly or not work at all in some UNIX/Linux distributions. If you encounter a problem when using this option, please check the FAQ section at http://konqueror.kde.org. -</qt> - - - - - rbAutoScript - - - true - - - U&se the following proxy configuration URL - - - Use the specified proxy script URL to configure the proxy settings. - - - - - layout5 - - - - unnamed - - - - spacer2 - - - Horizontal - - - Fixed - - - - 16 - 20 - - - - - - location - - - false - - - - 7 - 5 - 0 - 0 - - - - Enter the address for the proxy configuration script. - - - - - - - layout7 - - - - unnamed - - - - rbEnvVar - - - true - - - - 3 - 0 - 0 - 0 - - - - Use preset proxy environment &variables - - - <qt> -Use environment variables to configure the proxy settings.<p> -Environment variables such as <b>HTTP_PROXY</b> and <b>NO_PROXY</b> are usually used in multi-user UNIX installations, where both graphical and non-graphical applications need to share the same proxy configuration information. -</qt> - - - - - pbEnvSetup - - - true - - - Setup... - - - Show the proxy environment variable configuration dialog. - - - - - - - layout6 - - - - unnamed - - - - rbManual - - - true - - - - 3 - 0 - 0 - 0 - - - - &Manually specify the proxy settings - - - Manually enter proxy server configuration information. - - - - - pbManSetup - - - true - - - Setup... - - - Show the manual proxy configuration dialog. - - - - - - - - - gbAuth - - - false - - - Authori&zation - - - - unnamed - - - - rbPrompt - - - Prompt as &needed - - - true - - - Prompt for login information whenever it is required. - - - - - rbPresetLogin - - - false - - - Use the following lo&gin information. - - - Use the information below to login into proxy servers as needed. - - - - - layout5 - - - - unnamed - - - - spacer5 - - - Horizontal - - - Fixed - - - - 16 - 20 - - - - - - lePassword - - - false - - - Password - - - Login password. - - - - - leUsername - - - false - - - Login name. - - - - - lbPassword - - - false - - - Password: - - - Login password. - - - - - lbUsername - - - false - - - Username: - - - Login name. - - - - - - - - - gbOptions - - - false - - - O&ptions - - - - unnamed - - - - cbPersConn - - - Use persistent connections to proxy - - - <qt> -Use persistent proxy connection.<p> -Although a persistent proxy connection is faster, note that it only works correctly with proxies that are fully HTTP 1.1 compliant. Do <b>not</b> use this option in combination with non-HTTP 1.1 compliant proxy servers such as JunkBuster and WWWOfle. -</qt> - - - - - - - - - - - rbPresetLogin - toggled(bool) - leUsername - setEnabled(bool) - - - rbPresetLogin - toggled(bool) - lbUsername - setEnabled(bool) - - - rbPresetLogin - toggled(bool) - lePassword - setEnabled(bool) - - - rbPresetLogin - toggled(bool) - lbPassword - setEnabled(bool) - - - rbAutoScript - toggled(bool) - location - setEnabled(bool) - - - - kdialog.h - - - - - kpushbutton.h - - diff --git a/kcontrol/kio/kproxydlgbase.cpp b/kcontrol/kio/kproxydlgbase.cpp deleted file mode 100644 index e95625713..000000000 --- a/kcontrol/kio/kproxydlgbase.cpp +++ /dev/null @@ -1,74 +0,0 @@ - /* - kproxydlgbase.h - Base dialog box for proxy configuration - - Copyright (C) 2001- Dawit Alemayehu - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public - License (GPL) version 2 as published by the Free Software - Foundation. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "kproxydlgbase.h" - -KProxyData::KProxyData() -{ - init (); -} - -KProxyData::KProxyData(const KProxyData &data) -{ - (*this) = data; -} - -KProxyData& KProxyData::operator=( const KProxyData &data ) -{ - useReverseProxy = data.useReverseProxy; - showEnvVarValue = data.showEnvVarValue; - noProxyFor = data.noProxyFor; - proxyList = data.proxyList; - type = data.type; - - return (*this); -} - -void KProxyData::reset() -{ - init(); -} - -void KProxyData::init() -{ - proxyList.clear(); - noProxyFor.clear(); - useReverseProxy = false; - showEnvVarValue = false; -} - - -KProxyDialogBase::KProxyDialogBase( TQWidget* parent, const char* name, - bool modal, const TQString &caption ) - :KDialogBase( parent, name, modal, caption, Ok|Cancel, Ok, true ) -{ - m_bHasValidData = false; -} - -void KProxyDialogBase::setHighLight (TQWidget* widget, bool highlight) -{ - if (!widget) - return; - - TQFont f = widget->font(); - f.setBold( highlight ); - widget->setFont( f ); -} diff --git a/kcontrol/kio/kproxydlgbase.h b/kcontrol/kio/kproxydlgbase.h deleted file mode 100644 index 06ffa8753..000000000 --- a/kcontrol/kio/kproxydlgbase.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - kproxydlgbase.h - Base dialog box for proxy configuration - - Copyright (C) 2001- Dawit Alemayehu - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public - License (GPL) version 2 as published by the Free Software - Foundation. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#ifndef KPROXY_DIALOG_BASE_H -#define KPROXY_DIALOG_BASE_H - -#include -#include -#include - -#include -#include - -class KProxyData -{ -public: - KProxyData(); - KProxyData( const KProxyData &data ); - - void reset (); - KProxyData& operator=( const KProxyData &data ); - - bool useReverseProxy; - bool showEnvVarValue; - TQStringList noProxyFor; - KProtocolManager::ProxyType type; - TQMap proxyList; - -private: - void init(); -}; - - -class KProxyDialogBase : public KDialogBase -{ -public: - KProxyDialogBase( TQWidget* parent = 0, const char* name = 0, - bool modal = false, const TQString &caption = TQString::null); - - virtual ~KProxyDialogBase() {}; - - virtual const KProxyData data() const=0; - - virtual void setProxyData (const KProxyData&)=0; - -protected: - void setHighLight (TQWidget* widget = 0, bool highlight = false); - bool m_bHasValidData; -}; -#endif diff --git a/kcontrol/kio/ksaveioconfig.cpp b/kcontrol/kio/ksaveioconfig.cpp deleted file mode 100644 index b624cfa69..000000000 --- a/kcontrol/kio/ksaveioconfig.cpp +++ /dev/null @@ -1,260 +0,0 @@ -/* - Copyright (C) 2001 Dawit Alemayehu - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include -#include -#include -#include -#include -#include - -#include "ksaveioconfig.h" - -class KSaveIOConfigPrivate -{ -public: - KSaveIOConfigPrivate (); - ~KSaveIOConfigPrivate (); - - TDEConfig* config; - TDEConfig* http_config; -}; - -static KSaveIOConfigPrivate *ksiocpref = 0; -static KStaticDeleter ksiocp; - -KSaveIOConfigPrivate::KSaveIOConfigPrivate (): config(0), http_config(0) -{ - ksiocp.setObject (ksiocpref, this); -} - -KSaveIOConfigPrivate::~KSaveIOConfigPrivate () -{ - delete config; -} - -KSaveIOConfigPrivate* KSaveIOConfig::d = 0; - -TDEConfig* KSaveIOConfig::config() -{ - if (!d) - d = new KSaveIOConfigPrivate; - - if (!d->config) - d->config = new TDEConfig("tdeioslaverc", false, false); - - return d->config; -} - -TDEConfig* KSaveIOConfig::http_config() -{ - if (!d) - d = new KSaveIOConfigPrivate; - - if (!d->http_config) - d->http_config = new TDEConfig("kio_httprc", false, false); - - return d->http_config; -} - -void KSaveIOConfig::reparseConfiguration () -{ - delete d->config; - d->config = 0; -} - -void KSaveIOConfig::setReadTimeout( int _timeout ) -{ - TDEConfig* cfg = config (); - cfg->setGroup( TQString() ); - cfg->writeEntry("ReadTimeout", QMAX(MIN_TIMEOUT_VALUE,_timeout)); - cfg->sync(); -} - -void KSaveIOConfig::setConnectTimeout( int _timeout ) -{ - TDEConfig* cfg = config (); - cfg->setGroup( TQString() ); - cfg->writeEntry("ConnectTimeout", QMAX(MIN_TIMEOUT_VALUE,_timeout)); - cfg->sync(); -} - -void KSaveIOConfig::setProxyConnectTimeout( int _timeout ) -{ - TDEConfig* cfg = config (); - cfg->setGroup( TQString() ); - cfg->writeEntry("ProxyConnectTimeout", QMAX(MIN_TIMEOUT_VALUE,_timeout)); - cfg->sync(); -} - -void KSaveIOConfig::setResponseTimeout( int _timeout ) -{ - TDEConfig* cfg = config (); - cfg->setGroup( TQString() ); - cfg->writeEntry("ResponseTimeout", QMAX(MIN_TIMEOUT_VALUE,_timeout)); - cfg->sync(); -} - - -void KSaveIOConfig::setMarkPartial( bool _mode ) -{ - TDEConfig* cfg = config (); - cfg->setGroup( TQString() ); - cfg->writeEntry( "MarkPartial", _mode ); - cfg->sync(); -} - -void KSaveIOConfig::setMinimumKeepSize( int _size ) -{ - TDEConfig* cfg = config (); - cfg->setGroup( TQString() ); - cfg->writeEntry( "MinimumKeepSize", _size ); - cfg->sync(); -} - -void KSaveIOConfig::setAutoResume( bool _mode ) -{ - TDEConfig* cfg = config (); - cfg->setGroup( TQString() ); - cfg->writeEntry( "AutoResume", _mode ); - cfg->sync(); -} - -void KSaveIOConfig::setUseCache( bool _mode ) -{ - TDEConfig* cfg = http_config (); - cfg->writeEntry( "UseCache", _mode ); - cfg->sync(); -} - -void KSaveIOConfig::setMaxCacheSize( int cache_size ) -{ - TDEConfig* cfg = http_config (); - cfg->writeEntry( "MaxCacheSize", cache_size ); - cfg->sync(); -} - -void KSaveIOConfig::setCacheControl(TDEIO::CacheControl policy) -{ - TDEConfig* cfg = http_config (); - TQString tmp = TDEIO::getCacheControlString(policy); - cfg->writeEntry("cache", tmp); - cfg->sync(); -} - -void KSaveIOConfig::setMaxCacheAge( int cache_age ) -{ - TDEConfig* cfg = http_config (); - cfg->writeEntry( "MaxCacheAge", cache_age ); - cfg->sync(); -} - -void KSaveIOConfig::setUseReverseProxy( bool mode ) -{ - TDEConfig* cfg = config (); - cfg->setGroup( "Proxy Settings" ); - cfg->writeEntry("ReversedException", mode); - cfg->sync(); -} - -void KSaveIOConfig::setProxyType(KProtocolManager::ProxyType type) -{ - TDEConfig* cfg = config (); - cfg->setGroup( "Proxy Settings" ); - cfg->writeEntry( "ProxyType", static_cast(type) ); - cfg->sync(); -} - -void KSaveIOConfig::setProxyAuthMode(KProtocolManager::ProxyAuthMode mode) -{ - TDEConfig* cfg = config (); - cfg->setGroup( "Proxy Settings" ); - cfg->writeEntry( "AuthMode", static_cast(mode) ); - cfg->sync(); -} - -void KSaveIOConfig::setNoProxyFor( const TQString& _noproxy ) -{ - TDEConfig* cfg = config (); - cfg->setGroup( "Proxy Settings" ); - cfg->writeEntry( "NoProxyFor", _noproxy ); - cfg->sync(); -} - -void KSaveIOConfig::setProxyFor( const TQString& protocol, - const TQString& _proxy ) -{ - TDEConfig* cfg = config (); - cfg->setGroup( "Proxy Settings" ); - cfg->writeEntry( protocol.lower() + "Proxy", _proxy ); - cfg->sync(); -} - -void KSaveIOConfig::setProxyConfigScript( const TQString& _url ) -{ - TDEConfig* cfg = config (); - cfg->setGroup( "Proxy Settings" ); - cfg->writeEntry( "Proxy Config Script", _url ); - cfg->sync(); -} - -void KSaveIOConfig::setPersistentProxyConnection( bool enable ) -{ - TDEConfig* cfg = config (); - cfg->setGroup( TQString() ); - cfg->writeEntry( "PersistentProxyConnection", enable ); - cfg->sync(); -} - -void KSaveIOConfig::setPersistentConnections( bool enable ) -{ - TDEConfig* cfg = config (); - cfg->setGroup( TQString() ); - cfg->writeEntry( "PersistentConnections", enable ); - cfg->sync(); -} - -void KSaveIOConfig::updateRunningIOSlaves (TQWidget *parent) -{ - // Inform all running io-slaves about the changes... - // if we cannot update, ioslaves inform the end user... - if (!DCOPRef("*", "TDEIO::Scheduler").send("reparseSlaveConfiguration", TQString())) - { - TQString caption = i18n("Update Failed"); - TQString message = i18n("You have to restart the running applications " - "for these changes to take effect."); - KMessageBox::information (parent, message, caption); - return; - } -} - -void KSaveIOConfig::updateProxyScout( TQWidget * parent ) -{ - // Inform the proxyscout kded module about changes - // if we cannot update, ioslaves inform the end user... - if (!DCOPRef("kded", "proxyscout").send("reset")) - { - TQString caption = i18n("Update Failed"); - TQString message = i18n("You have to restart TDE " - "for these changes to take effect."); - KMessageBox::information (parent, message, caption); - return; - } -} - diff --git a/kcontrol/kio/ksaveioconfig.h b/kcontrol/kio/ksaveioconfig.h deleted file mode 100644 index f14e98e22..000000000 --- a/kcontrol/kio/ksaveioconfig.h +++ /dev/null @@ -1,96 +0,0 @@ -/* - Copyright (C) 2001 Dawit Alemayehu - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#ifndef KSAVEIO_CONFIG_H_ -#define KSAVEIO_CONFIG_H_ - -#include - -class TQWidget; -class KSaveIOConfigPrivate; - -class KSaveIOConfig -{ -public: - - /* Reload config file (tdeioslaverc) */ - static void reparseConfiguration(); - - - /** Timeout Settings */ - static void setReadTimeout( int ); - - static void setConnectTimeout( int ); - - static void setProxyConnectTimeout( int ); - - static void setResponseTimeout( int ); - - - /** Cache Settings */ - static void setMaxCacheAge( int ); - - static void setUseCache( bool ); - - static void setMaxCacheSize( int ); - - static void setCacheControl( TDEIO::CacheControl ); - - - /** Proxy Settings */ - static void setUseReverseProxy( bool ); - - static void setProxyType( KProtocolManager::ProxyType ); - - static void setProxyAuthMode( KProtocolManager::ProxyAuthMode ); - - static void setProxyConfigScript( const TQString& ); - - static void setProxyFor( const TQString&, const TQString& ); - - static void setNoProxyFor( const TQString& ); - - - /** Miscelaneous Settings */ - static void setMarkPartial( bool ); - - static void setMinimumKeepSize( int ); - - static void setAutoResume( bool ); - - static void setPersistentConnections( bool ); - - static void setPersistentProxyConnection( bool ); - - - /** Update all running io-slaves */ - static void updateRunningIOSlaves (TQWidget * parent = 0L); - - /** Update proxy scout */ - static void updateProxyScout( TQWidget * parent = 0L ); - -protected: - static TDEConfig* config (); - static TDEConfig* http_config (); - KSaveIOConfig (); - -private: - static KSaveIOConfigPrivate* d; -}; -#endif diff --git a/kcontrol/kio/lanbrowser.desktop b/kcontrol/kio/lanbrowser.desktop deleted file mode 100644 index 04e83e402..000000000 --- a/kcontrol/kio/lanbrowser.desktop +++ /dev/null @@ -1,226 +0,0 @@ -[Desktop Entry] -Type=Application -Icon=samba -Exec=tdecmshell lanbrowser - - -X-TDE-Library=kio -X-TDE-FactoryName=lanbrowser - -Name=Local Network Browsing -Name[af]=Plaaslike Netwerk Blaaiïng -Name[ar]=تصفح الشبكة المحلية -Name[az]=Yerli Şəbəkə -Name[be]=Прагляд мясцовай сеткі -Name[bg]=Локална мрежа -Name[bn]=স্থানীয় নেটওয়ার্ক ব্রাউজিং -Name[br]=Furchal ar rouedad lec'hel -Name[bs]=Pregledanje lokalne mreže -Name[ca]=Navegació per la xarxa local -Name[cs]=Prohlížení lokální sítě -Name[csb]=Przezéranié môlowi sécë -Name[cy]=Pori Rhwydwaith Lleol -Name[da]=Lokal netværkssøgning -Name[de]=Netzwerk-Browser -Name[el]=Τοπική περιήγηση δικτύου -Name[eo]=Traserĉado de la loka reto -Name[es]=Navegación por la red local -Name[et]=Kohtvõrgu lehitsemine -Name[eu]=Sare lokaleko arakaketa -Name[fa]=مرور شبکۀ محلی -Name[fi]=Paikallisverkon selaus -Name[fr]=Navigation dans le réseau local -Name[fy]=Lokaal netwurk -Name[ga]=Brabhsáil an Líonra Logánta -Name[gl]=Exploración da Rede Local -Name[he]=עיון ברשת המקומית -Name[hi]=स्थानीय नेटवर्क ब्राउजिंग -Name[hr]=Pregledavanje lokalne mreže -Name[hu]=Hálózatböngészés -Name[is]=Staðarnetsflakk -Name[it]=Navigazione rete locale -Name[ja]=ローカルネットワーク参照 -Name[ka]=ლოკალური ქსელის მიმოხილვა -Name[kk]=Жергілікті желіні шолу -Name[km]=ការ​រុករក​បណ្ដាញ​មូលដ្ឋាន -Name[ko]=로컬 네트워크 탐색 -Name[lo]=ເຄືອຂ່າຍພາຍໃນ -Name[lt]=Vietinio tinklo naršymas -Name[lv]=Lokālā Tīkla pārlūkošana -Name[mk]=Прелистување на локалната мрежа -Name[mn]=Дотоод Сүлжээ-Хөтөч -Name[ms]=Pelayaran Rangkaian Setempat -Name[mt]=Browsing tan-Network Lokali -Name[nb]=Lokalt nettverk -Name[nds]=Lokaal Nettwarkkieker -Name[ne]=स्थानीय सञ्जाल ब्राउजिङ -Name[nl]=Lokaal netwerk -Name[nn]=Lokalt nettverk -Name[nso]=Boinyakisi bja Kgokagano ya Selegae -Name[pa]=ਸਥਾਨਕ ਨੈੱਟਵਰਕ ਝਲਕਾਰਾ -Name[pl]=Przeglądanie sieci lokalnej -Name[pt]=Navegação na Rede Local -Name[pt_BR]=Navegação em Rede Local -Name[ro]=Răsfoire rețea locală -Name[ru]=Обзор локальной сети -Name[rw]=Gucukumbura Urusobemiyoboro rwa Hafi -Name[se]=Báikkálaš fierbmebláđđen -Name[sk]=Prehliadanie lokálnej siete -Name[sl]=Brskanje po krajevnem omrežju -Name[sr]=Прегледање локалне мреже -Name[sr@Latn]=Pregledanje lokalne mreže -Name[sv]=Lokal nätverksbläddring -Name[ta]=உள் வலைதல உலாவுதல் -Name[te]=స్థానిక నెట్వర్క్ బ్రౌజింగ్ -Name[tg]=Обзори шабакаи локалӣ -Name[th]=เรียกดูเครือข่ายท้องถิ่น -Name[tr]=Yerel Ağ Tarama -Name[tt]=Cirle Çeltärne Küzläw -Name[uk]=Перегляд локальної мережі -Name[uz]=Lokal tarmoqni koʻrish -Name[uz@cyrillic]=Локал тармоқни кўриш -Name[ven]=Burausini ya vhukwamani ha hefhano -Name[vi]=Duyệt mạng nội bộ -Name[wa]=Naiviaedje del locåle rantoele -Name[xh]=Ukhangelo Lomsebenzi womnatha Wobulali -Name[zh_CN]=局域网浏览 -Name[zh_TW]=區域網路瀏覽 -Name[zu]=Ukucinga oxhumanweni oluseduze - -Comment=Setup lisa, reslisa and the ioslaves -Comment[af]=Stel lisa, reslisa en die ioslaves op -Comment[az]=Lisa, reslisa və ioslaves-i quraşdır -Comment[be]=Настаўленні lisa, reslisa і ioslaves -Comment[bg]=Настройване на lisa, reslisa и ioslaves -Comment[bn]=lisa, reslisa এবং ioslaves সেট-আপ -Comment[br]=Kefluniadur lisa, reslisa and skalvoù IO -Comment[bs]=Podesite lisa, reslisa i ioslaves -Comment[ca]=Arranja lisa, reslisa i els ioslaves -Comment[cs]=Nastavení Lisa, ResLisa a pomocných zařízení -Comment[csb]=Ùstôw lisa, reslisa ë procedurów wé/wi -Comment[cy]=Gosodiad lisa,reslisa a'r gweision-io -Comment[da]=Opsætning af lisa, reslisa og ioslaverne -Comment[de]=Einrichtung von LISa, resLISa und Ein-/Ausgabemodulen -Comment[el]=Ρύθμιση του lisa, reslisa και των ioslaves -Comment[eo]=Agordo de Lisa, Reslisa kaj la Enel-sklavoj -Comment[es]=Configuración de lisa, reslisa y los ioslaves -Comment[et]=Lisa, reslisa ja KIO moodulite seadistamine -Comment[eu]=Konfiguratu lisa, reslisa eta ioslave-ak -Comment[fa]=برپایی lisa، reslisa و ioslaves -Comment[fi]=Lisan, Reslisan ja KIO-palveluiden asetukset -Comment[fr]=Configuration de LISa, ResLISa et des modules d'entrées-sorties -Comment[fy]=Lisa, reslisa en de ioslaves ynstelle -Comment[ga]=Socraigh lisa, reslisa agus ioslaves -Comment[gl]=Configurar lisa, reslisa e os escravos I/O -Comment[he]=שינוי הגדרות reslisa ,lisa והפרוטוקולים -Comment[hi]=लिसा,रेसलिसा तथा आईओस्लेव्स सेटअप करें -Comment[hr]=Postavke za module lisa, reslisu i ioslaves -Comment[hu]=A Lisa, a ResLisa és a TDE protokollok beállításai -Comment[is]=Stilla lisa, reslisa og I/Ú-þrælana -Comment[it]=Imposta lisa, reslisa e gli ioslave -Comment[ja]=lisa, reslisa, ioslave の設定 -Comment[ka]=lisa, reslisa და ioslaves -ს კონფიგურაცია -Comment[kk]=lisa, reslisa және the ioslaves дегендерді орнату -Comment[km]=ដំឡើង lisa, reslisa និង ioslaves -Comment[ko]=lisa, reslisa, IO 슬레이브 설정 -Comment[lt]=Lisa, reslisa ir ioslaves nustatymas -Comment[lv]=Uzstāda lisa, reslisa un iovergus -Comment[mk]=Поставете ги lisa, reslisa и ioslaves -Comment[mn]=LISa, resLISa ба Оролт/Гаралт-модулын тохируулга -Comment[mt]=Issettja lisa, reslisa u l-ioslaves -Comment[nb]=Oppsett av lisa, reslisa og i/u-slavene -Comment[nds]=Lisa, reslisa un de In-/Utgaavdeensten instellen -Comment[ne]=लिसा, रेसलिसा र इओस्लेभ सेटअप गर्नुहोस् -Comment[nl]=Lisa, reslisa en de ioslaves instellen -Comment[nn]=Oppsett av lisa, reslisa og i/u-slavane -Comment[nso]=Beakanya lisa, reslisa le ioslaves -Comment[pa]=lisa, reslisa ਤੇ ioslaves ਸੈੱਟਅੱਪ -Comment[pl]=Ustawienie lisa, reslisa i procedur we/wy -Comment[pt]=Configurar o lisa, o reslisa e os seus ioslaves -Comment[pt_BR]=Configura lisa, reslisa e os escravos -Comment[ro]=Setează lisa, reslisa și dispozitivele I/O -Comment[ru]=Настройка lisa, reslisa и ioslaves -Comment[rw]=Kugena imiterere ya lisa, reslisa na ioslaves -Comment[se]=Heivet lisa,reslisa ja s/o-šlávaid -Comment[sk]=Nastavenie lisa, reslisa a IO klientov -Comment[sl]=Nastavitve lisa, reslisa in ioslave -Comment[sr]=Подешавање lisa-e, reslisa-e, и ioslave-ова -Comment[sr@Latn]=Podešavanje lisa-e, reslisa-e, i ioslave-ova -Comment[sv]=Ställ in lisa, reslisa och I/O-slavarna -Comment[ta]= லிசா, ரெஸ்லிசா மற்றும் ஐஓஸ்லேவ்ஸ் அமைப்பு -Comment[tg]=Танзимоти lisa, reslisa ва ioslaves -Comment[th]=ตั้งค่า lisa, reslisa และ ioslaves -Comment[tr]=lisa, reslisa ve ioslaves kurulumu -Comment[tt]=lisa, reslisa, ioslaves caylawları -Comment[uk]=Встановлення lisa,reslisa та ioslaves -Comment[uz]=Lisa, reslisa va ioslave xizmatlarni moslash -Comment[uz@cyrillic]=Lisa, reslisa ва ioslave хизматларни мослаш -Comment[ven]=Vhekanyani lisa,reslisa na ioslaves -Comment[vi]=Cài đặt lisa,reslisa và các ioslave -Comment[wa]=Apontiaedje di lisa, reslisa et les ioslaves -Comment[xh]=Cwangcisa i lisa, reslisa ne ioslaves -Comment[zh_CN]=设置 lisa、reslisa 和 ioslaves -Comment[zu]=lungiselela i-lisa, i-reslisa ne-ioslaves - -Keywords=samba,smb,windows,network -Keywords[az]=xml,rpc,daemon,demon,port,qapı,network,şəbəkə,samba,smb,windows -Keywords[be]=Сетка,Навакольнае асяроддзе,samba,smb,windows,network -Keywords[bg]=самба, мрежа, локална, преглед, връзка, samba, smb, windows, network -Keywords[br]=samba,smb,prenester,rouedad -Keywords[bs]=samba,smb,windows,network,mreža -Keywords[ca]=samba,smb,windows,xarxa -Keywords[cs]=samba,smb,windows,síť -Keywords[csb]=samba,smb,windows,séc -Keywords[cy]=samba,smb,windows, rhwydwaith -Keywords[da]=samba,smb,windows,netværk -Keywords[de]=samba,smb,windows,netzwerk -Keywords[el]=samba,smb,windows,δίκτυο -Keywords[eo]=samba,smb,fenestro,windows,reto -Keywords[es]=samba,smb,windows,red -Keywords[et]=samba,smb,windows,võrk -Keywords[eu]=samba,smb,windows,sarea -Keywords[fa]=samba، smb، پنجره‌ها، شبکه -Keywords[fi]=samba,smb,windows,verkko -Keywords[fr]=samba,smb,windows,réseau -Keywords[fy]=samba,smb,windows,netwurk -Keywords[ga]=samba,smb,windows,líonra -Keywords[gl]=samba,smb,windows,rede -Keywords[he]=סמבה,smb,חלונות,רשת, samba,windows,network -Keywords[hi]=साम्बा,एसएमबी,विंडोज़,नेटवर्क -Keywords[hr]=samba,smb,windows,network,mreža -Keywords[hu]=Samba,smb,Windows,hálózat -Keywords[is]=samba,smb,windows,network,net -Keywords[it]=samba,smb,windows,rete -Keywords[ja]=samba,smb,ウィンドウズ,ネットワーク -Keywords[km]=samba,smb,windows,បណ្ដាញ -Keywords[lt]=samba,smb,windows,network,tinklas -Keywords[lv]=samba,smb,windows,tīkls -Keywords[mk]=samba,smb,windows,network,мрежа,заеднички,Виндоус -Keywords[nb]=samba,smb,windows,nettverk -Keywords[nds]=samba,smb,Windows,Nettwark -Keywords[ne]=साम्बा, smb, सञ्झ्याल, सञ्जाल -Keywords[nl]=samba,smb,windows,netwerk -Keywords[nn]=samba,smb,windows,nettverk -Keywords[pa]=samba,smb,windows,network,ਨੈੱਟਵਰਕ,ਸਾਂਬਾ -Keywords[pl]=samba,smb,windows,sieć -Keywords[pt]=samba,smb,windows,rede -Keywords[pt_BR]=samba,smb,windows,rede -Keywords[ro]=samba,smb,windows,rețea -Keywords[rw]=samba,smb,windows,urusobemiyoboro -Keywords[se]=samba,smb,windows,fierpmádat -Keywords[sk]=samba,smb,windows,sieť -Keywords[sl]=samba,smb,windows,network,omrežje -Keywords[sr]=samba,smb,windows,network,мрежа,самба -Keywords[sr@Latn]=samba,smb,windows,network,mreža,samba -Keywords[sv]=samba,smb,windows,nätverk -Keywords[ta]=சாம்ப்,smb,சாளரங்கள்,வலைதளம் -Keywords[th]=samba,smb,วินโดวส์,เครือข่าย -Keywords[tr]=samba,smb,windows,ağ -Keywords[uk]=samba,smb,windows,мережа -Keywords[uz]=samba,smb,windows,tarmoq -Keywords[uz@cyrillic]=samba,smb,windows,тармоқ -Keywords[vi]=samba,smb,cửa sổ,mạng -Keywords[wa]=samba,smb,windows,network,rantoele -Keywords[zh_CN]=samba,smb,windows,network,网络 - -Categories=Qt;TDE;X-TDE-settings-network; diff --git a/kcontrol/kio/main.cpp b/kcontrol/kio/main.cpp deleted file mode 100644 index 5a19288d9..000000000 --- a/kcontrol/kio/main.cpp +++ /dev/null @@ -1,158 +0,0 @@ -// (c) Torben Weis 1998 -// (c) David Faure 1998 -/* - * main.cpp for lisa,reslisa,kio_lan and kio_rlan kcm module - * - * Copyright (C) 2000,2001 Alexander Neundorf - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include -#include -#include -#include - -#include -#include - -#include "kcookiesmain.h" -#include "netpref.h" -#include "smbrodlg.h" -#include "useragentdlg.h" -#include "kproxydlg.h" -#include "cache.h" - -#include "main.h" - -extern "C" -{ - - KDE_EXPORT TDECModule *create_cookie(TQWidget *parent, const char /**name*/) - { - return new KCookiesMain(parent); - } - - KDE_EXPORT TDECModule *create_smb(TQWidget *parent, const char /**name*/) - { - return new SMBRoOptions(parent); - } - - KDE_EXPORT TDECModule *create_useragent(TQWidget *parent, const char /**name*/) - { - return new UserAgentDlg(parent); - } - - KDE_EXPORT TDECModule *create_proxy(TQWidget *parent, const char /**name*/) - { - return new KProxyOptions(parent); - } - - KDE_EXPORT TDECModule *create_cache(TQWidget *parent, const char /**name*/) - { - return new KCacheConfigDialog( parent ); - } - - KDE_EXPORT TDECModule *create_netpref(TQWidget *parent, const char /**name*/) - { - return new KIOPreferences(parent); - } - - KDE_EXPORT TDECModule *create_lanbrowser(TQWidget *parent, const char *) - { - return new LanBrowser(parent); - } - -} - -LanBrowser::LanBrowser(TQWidget *parent) -:TDECModule(parent,"kcmkio") -,layout(this) -,tabs(this) -{ - setQuickHelp( i18n("

    Local Network Browsing

    Here you setup your " - "\"Network Neighborhood\". You " - "can use either the LISa daemon and the lan:/ ioslave, or the " - "ResLISa daemon and the rlan:/ ioslave.

    " - "About the LAN ioslave configuration:
    If you select it, the " - "ioslave, if available, will check whether the host " - "supports this service when you open this host. Please note " - "that paranoid people might consider even this to be an attack.
    " - "Always means that you will always see the links for the " - "services, regardless of whether they are actually offered by the host. " - "Never means that you will never have the links to the services. " - "In both cases you will not contact the host, so nobody will ever regard " - "you as an attacker.

    More information about LISa " - "can be found at " - "the LISa Homepage or contact Alexander Neundorf " - "<neundorf@kde.org>.")); - - layout.addWidget(&tabs); - - smbPage = create_smb(&tabs, 0); - tabs.addTab(smbPage, i18n("&Windows Shares")); - connect(smbPage,TQT_SIGNAL(changed(bool)), TQT_SLOT( changed() )); - - lisaPage = TDECModuleLoader::loadModule("kcmlisa", TDECModuleLoader::None, &tabs); - if (lisaPage) - { - tabs.addTab(lisaPage,i18n("&LISa Daemon")); - connect(lisaPage,TQT_SIGNAL(changed()), TQT_SLOT( changed() )); - } - -// resLisaPage = TDECModuleLoader::loadModule("kcmreslisa", &tabs); -// if (resLisaPage) -// { -// tabs.addTab(resLisaPage,i18n("R&esLISa Daemon")); -// connect(resLisaPage,TQT_SIGNAL(changed()), TQT_SLOT( changed() )); -// } - - kioLanPage = TDECModuleLoader::loadModule("kcmkiolan", TDECModuleLoader::None, &tabs); - if (kioLanPage) - { - tabs.addTab(kioLanPage,i18n("lan:/ Iosla&ve")); - connect(kioLanPage,TQT_SIGNAL(changed()), TQT_SLOT( changed() )); - } - - setButtons(Apply|Help); - load(); -} - -void LanBrowser::load() -{ - smbPage->load(); - if (lisaPage) - lisaPage->load(); -// if (resLisaPage) -// resLisaPage->load(); - if (kioLanPage) - kioLanPage->load(); - emit changed(false); -} - -void LanBrowser::save() -{ - smbPage->save(); -// if (resLisaPage) -// resLisaPage->save(); - if (kioLanPage) - kioLanPage->save(); - if (lisaPage) - lisaPage->save(); - emit changed(false); -} - -#include "main.moc" - diff --git a/kcontrol/kio/main.h b/kcontrol/kio/main.h deleted file mode 100644 index ca2e15da0..000000000 --- a/kcontrol/kio/main.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * main.cpp for lisa,reslisa,kio_lan and kio_rlan kcm module - * - * Copyright (C) 2000 Alexander Neundorf - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef MYMAIN_H -#define MYMAIN_H - -#include -#include - -class TQTabWidget; - -class LanBrowser:public TDECModule -{ - Q_OBJECT - public: - LanBrowser(TQWidget *parent=0); - virtual void load(); - virtual void save(); - - private: - TQVBoxLayout layout; - TQTabWidget tabs; - TDECModule *smbPage; - TDECModule *lisaPage; -// TDECModule *resLisaPage; - TDECModule *kioLanPage; -}; -#endif - diff --git a/kcontrol/kio/manualproxy_ui.ui b/kcontrol/kio/manualproxy_ui.ui deleted file mode 100644 index 43567977e..000000000 --- a/kcontrol/kio/manualproxy_ui.ui +++ /dev/null @@ -1,317 +0,0 @@ - -ManualProxyDlgUI - - - ManualProxyDlgUI - - - - 0 - 0 - 489 - 438 - - - - - unnamed - - - 0 - - - - gbServers - - - Ser&vers - - - - unnamed - - - - lbFtp - - - - 0 - 5 - 0 - 0 - - - - &FTP: - - - leFtp - - - - - lbHttps - - - - 0 - 5 - 0 - 0 - - - - HTTP&S: - - - leHttps - - - - - lbHttp - - - - 0 - 5 - 0 - 0 - - - - H&TTP: - - - leHttp - - - - - leHttp - - - Enter the address of the HTTP proxy server. - - - - - leHttps - - - Enter the address of the HTTPS proxy server. - - - - - leFtp - - - Enter the address of the FTP proxy server. - - - - - sbFtp - - - 65536 - - - Enter the port number of the FTP proxy server. Default 8080. Another common value is 3128. - - - - - sbHttps - - - 65536 - - - Enter the port number of the HTTP proxy server. Default is 8080. Another common value is 3128. - - - - - sbHttp - - - - 32767 - 32767 - - - - 65536 - - - Enter the port number of the HTTP proxy server. Default is 8080. Another common value is 3128. - - - - - spacer1 - - - Horizontal - - - Minimum - - - - 51 - 20 - - - - - - cbSameProxy - - - &Use the same proxy server for all protocols - - - - - pbCopyDown - - - - - - - - - - gbExceptions - - - E&xceptions - - - - unnamed - - - - cbReverseProxy - - - Use proxy only for entries in this list - - - <qt> -Reverse the use of the exception list. Checking this box will result in the proxy servers being used only when the requested URL matches one of the addresses listed here.<p>This feature is useful if all you want or need is to use a proxy server for a few specific sites.<p>If you have more complex requirements you might want to use a configuration script. -</qt> - - - - - layout2 - - - - unnamed - - - - pbDeleteAll - - - false - - - D&elete All - - - Remove all proxy exception addresses from the list. - - - - - pbDelete - - - false - - - De&lete - - - Remove the selected proxy exception address from the list. - - - - - pbNew - - - &New... - - - Add new proxy exception address to the list. - - - - - pbChange - - - false - - - C&hange... - - - Change the selected proxy exception address. - - - - - spacer2 - - - Vertical - - - Expanding - - - - 20 - 114 - - - - - - lbExceptions - - - - - - - - - - leHttp - sbHttp - leHttps - sbHttps - leFtp - sbFtp - cbSameProxy - pbCopyDown - cbReverseProxy - pbNew - pbChange - pbDelete - pbDeleteAll - - - diff --git a/kcontrol/kio/netpref.cpp b/kcontrol/kio/netpref.cpp deleted file mode 100644 index b5879d0bd..000000000 --- a/kcontrol/kio/netpref.cpp +++ /dev/null @@ -1,138 +0,0 @@ -#include -#include -#include -#include - -#include -#include -#include -#include -#include - -#include "ksaveioconfig.h" -#include "netpref.h" - -#define MAX_TIMEOUT_VALUE 3600 - -KIOPreferences::KIOPreferences( TQWidget* parent ) - :TDECModule( parent, "kcmkio" ) -{ - TQVBoxLayout* mainLayout = new TQVBoxLayout( this, 0, - KDialog::spacingHint() ); - gb_Timeout = new TQVGroupBox( i18n("Timeout Values"), this, "gb_Timeout" ); - TQWhatsThis::add( gb_Timeout, i18n("Here you can set timeout values. " - "You might want to tweak them if your " - "connection is very slow. The maximum " - "allowed value is %1 seconds.").arg(MAX_TIMEOUT_VALUE)); - mainLayout->addWidget( gb_Timeout ); - - sb_socketRead = new KIntNumInput( gb_Timeout, "sb_socketRead" ); - sb_socketRead->setSuffix( i18n( " sec" ) ); - sb_socketRead->setLabel( i18n( "Soc&ket read:" ), AlignVCenter); - connect(sb_socketRead, TQT_SIGNAL(valueChanged ( int )), - this, TQT_SLOT(configChanged())); - - sb_proxyConnect = new KIntNumInput( sb_socketRead, 0, gb_Timeout, - 10, "sb_proxyConnect" ); - sb_proxyConnect->setSuffix( i18n( " sec" ) ); - sb_proxyConnect->setLabel( i18n( "Pro&xy connect:" ), AlignVCenter); - connect(sb_proxyConnect, TQT_SIGNAL(valueChanged ( int )), - this, TQT_SLOT(configChanged())); - - sb_serverConnect = new KIntNumInput( sb_proxyConnect, 0, gb_Timeout, - 10, "sb_serverConnect" ); - sb_serverConnect->setSuffix( i18n( " sec" ) ); - sb_serverConnect->setLabel( i18n("Server co&nnect:"), AlignVCenter); - connect(sb_serverConnect, TQT_SIGNAL(valueChanged ( int )), - this, TQT_SLOT(configChanged())); - - sb_serverResponse = new KIntNumInput( sb_serverConnect, 0, gb_Timeout, - 10, "sb_serverResponse" ); - sb_serverResponse->setSuffix( i18n( " sec" ) ); - sb_serverResponse->setLabel( i18n("&Server response:"), AlignVCenter); - connect(sb_serverResponse, TQT_SIGNAL(valueChanged ( int )), - this, TQT_SLOT(configChanged())); - - gb_Ftp = new TQVGroupBox( i18n( "FTP Options" ), this, "gb_Ftp" ); - cb_ftpEnablePasv = new TQCheckBox( i18n( "Enable passive &mode (PASV)" ), gb_Ftp ); - TQWhatsThis::add(cb_ftpEnablePasv, i18n( "Enables FTP's \"passive\" mode. This is required to allow FTP to work from behind firewalls." )); - cb_ftpMarkPartial = new TQCheckBox( i18n( "Mark &partially uploaded files" ), gb_Ftp ); - TQWhatsThis::add(cb_ftpMarkPartial, i18n( "

    Marks partially uploaded FTP files.

    " - "

    When this option is enabled, partially uploaded files " - "will have a \".part\" extension. This extension will be removed " - "once the transfer is complete.

    ")); - - mainLayout->addWidget( gb_Ftp ); - - connect(cb_ftpEnablePasv, TQT_SIGNAL(toggled(bool)), TQT_SLOT(configChanged())); - connect(cb_ftpMarkPartial, TQT_SIGNAL(toggled(bool)), TQT_SLOT(configChanged())); - - mainLayout->addStretch(); - - load(); -} - -KIOPreferences::~KIOPreferences() -{ -} - -void KIOPreferences::load() -{ - KProtocolManager proto; - - sb_socketRead->setRange( MIN_TIMEOUT_VALUE, MAX_TIMEOUT_VALUE ); - sb_serverResponse->setRange( MIN_TIMEOUT_VALUE, MAX_TIMEOUT_VALUE ); - sb_serverConnect->setRange( MIN_TIMEOUT_VALUE, MAX_TIMEOUT_VALUE ); - sb_proxyConnect->setRange( MIN_TIMEOUT_VALUE, MAX_TIMEOUT_VALUE ); - - sb_socketRead->setValue( proto.readTimeout() ); - sb_serverResponse->setValue( proto.responseTimeout() ); - sb_serverConnect->setValue( proto.connectTimeout() ); - sb_proxyConnect->setValue( proto.proxyConnectTimeout() ); - - TDEConfig config( "kio_ftprc", true, false ); - cb_ftpEnablePasv->setChecked( !config.readBoolEntry( "DisablePassiveMode", false ) ); - cb_ftpMarkPartial->setChecked( config.readBoolEntry( "MarkPartial", true ) ); - emit changed( false ); -} - -void KIOPreferences::save() -{ - KSaveIOConfig::setReadTimeout( sb_socketRead->value() ); - KSaveIOConfig::setResponseTimeout( sb_serverResponse->value() ); - KSaveIOConfig::setConnectTimeout( sb_serverConnect->value() ); - KSaveIOConfig::setProxyConnectTimeout( sb_proxyConnect->value() ); - - TDEConfig config( "kio_ftprc", false, false ); - config.writeEntry( "DisablePassiveMode", !cb_ftpEnablePasv->isChecked() ); - config.writeEntry( "MarkPartial", cb_ftpMarkPartial->isChecked() ); - config.sync(); - - KSaveIOConfig::updateRunningIOSlaves (this); - - emit changed( false ); -} - -void KIOPreferences::defaults() -{ - sb_socketRead->setValue( DEFAULT_READ_TIMEOUT ); - sb_serverResponse->setValue( DEFAULT_RESPONSE_TIMEOUT ); - sb_serverConnect->setValue( DEFAULT_CONNECT_TIMEOUT ); - sb_proxyConnect->setValue( DEFAULT_PROXY_CONNECT_TIMEOUT ); - - cb_ftpEnablePasv->setChecked( true ); - cb_ftpMarkPartial->setChecked( true ); - - emit changed(true); -} - -TQString KIOPreferences::quickHelp() const -{ - return i18n("

    Network Preferences

    Here you can define" - " the behavior of TDE programs when using Internet" - " and network connections. If you experience timeouts" - " or use a modem to connect to the Internet, you might" - " want to adjust these settings." ); -} - -#include "netpref.moc" diff --git a/kcontrol/kio/netpref.desktop b/kcontrol/kio/netpref.desktop deleted file mode 100644 index 22f51170b..000000000 --- a/kcontrol/kio/netpref.desktop +++ /dev/null @@ -1,205 +0,0 @@ -[Desktop Entry] -Comment=Configure generic network preferences, like timeout values -Comment[af]=Konfigureer generies netwerk voorkeure, hou van tydverstreke waardes -Comment[ar]=إعداد تفضيلات الشبكة العامة، مثل قيم فترات الإنتظار -Comment[az]=Ümumi şəbəkə qurğuları, məsələn vaxt dolması kimi -Comment[be]=Настаўленні агульных уласцівасцяў сеткі, напр., тэрмінаў чакання -Comment[bg]=Настройване на общите мрежови параметри -Comment[bn]=বিবিধ নেটওয়ার্ক সেটিংস কনফিগারেশন, যথা টাইম-আউট মানসমূহ -Comment[bs]=Podešavanje općih mrežnih postavki kao što su timeout vrijednosti -Comment[ca]=Configuració de les preferències genèriques de la xarxa, com ara els valors per als temps d'expiració -Comment[cs]=Nastavení obecných parametrů sítě, např. časových limitů -Comment[csb]=Kònfigùracëjô sécoëch nastôwów jakno np. limitu czasu -Comment[cy]=Ffurfweddu dewisiadau rhwydwaith generig, fel gwerthoedd goramser -Comment[da]=Indstil generelle netværksvalg såsom timeout-værdier -Comment[de]=Einfache Netzwerkeinstellungen vornehmen wie z. B. Zeitüberschreitungen -Comment[el]=Ρύθμιση γενικών προτιμήσεων δικτύου, όπως τιμές χρονικών ορίων -Comment[eo]=Ĝeneralaj retopcioj, kiel tempolimoj ktp. -Comment[es]=Configuración de las preferencias genéricas de red, como los tiempos de desconexión -Comment[et]=Üldised võrguseadistused -Comment[eu]=Konfiguratu sarerako hobespen orokorrak (denbora-muga balioak, besteak beste) -Comment[fa]=پیکربندی تنظیمات شبکۀ محلی، مانند مقادیر اتمام‌ وقت -Comment[fi]=Muokkaa yleisiä verkkoasetuksia kuten aikakatkaisuarvoja -Comment[fr]=Configuration générique du réseau, comme par exemple les valeurs des délais d'attente -Comment[fy]=ynstelle fan algemiene netwurkfoarkar, sa as tiidslimytwearden -Comment[gl]=Configurar as preferéncias xenéricas de rede, como os valores de agarda -Comment[he]=שינוי הגדרות רשת כלליות כגון ערכי זמנים מוקצבים -Comment[hi]=जेनेरिक नेटवर्क प्राथमिकताएँ, जैसे टाइम-आउट मूल्य- कॉन्फ़िगर करें -Comment[hr]=Konfiguriranje generičkih mrežnih vrijednosti, poput vremena prekoračenja -Comment[hu]=A hálózati paraméterek, például a várakozási idők beállítása -Comment[is]=Tilgreina almennar netstillingar, t.d. hámarkstíma -Comment[it]=Configura le preferenze di rete generiche, come ad esempio i tempi massimi -Comment[ja]=タイムアウト値などの一般的なネットワーク設定 -Comment[ka]=ქსელის ზოგადი პარამეტრები, ისეთი როგორიცაა ტაიმაუტი -Comment[kk]=Күту уақыты секілді желінің негізгі параметрлерін баптау -Comment[km]=កំណត់​រចនាសម្ព័ន្ធ​ចំណង់​ចំណូល​ចិត្ត​បណ្ដាញ​ទូទៅ ដូចជា​តម្លៃ​អស់​ពេល​ជាដើម -Comment[ko]=제한 시간 값 같이 일반 네트워크에서 기본이 되는 값을 설정합니다 -Comment[lo]=ປັບແຕ່ງຄ່າທົ່ວໄປການລະບົບເຄືອຂ່າຍ ເຊັ່ນຄ່າການໃຊ້ເວລາເປັນຕົ້ນ -Comment[lt]=Konfigūruoti bendrus tinklo pasirinkimus, tokius, kaip laiko limitai -Comment[lv]=Konfigurē vispārējus tīkla uzstādījumus, kā noildzes vērtības -Comment[mk]=Конфигурирајте ги општите мрежни параметри, како тајмаут вредности -Comment[mn]=Ерөнхий сүлжээ-Тохируулга тохируулах Ж.нь.Хугацаа хэтрэлтийн хугацаа -Comment[ms]=Konfigur keutamaan rangkaian generik, seperti nilai waktu rehat -Comment[mt]=Hawn tista' tagħżel preferenzi ġeneriċi tan-network, bħal ħinijiet ta' stennija -Comment[nb]=Angi generelle nettverksinnstillinger, f.eks. verdier for tidsavbrudd -Comment[nds]=Standard-Nettwarkinstellen, as t.B. Tietgrenzen -Comment[ne]=समय समाप्ति मान जस्तै जेनेरिक सञ्जाल प्राथमिकता कन्फिगर गर्नुहोस् -Comment[nl]=Instellen van algemene netwerkvoorkeuren, zoals tijdslimietwaarden -Comment[nn]=Oppsett av generelle nettverksinnstillingar, som til dømes tidsgrenser -Comment[nso]=Beakanya dikganyogo tsa kgokagano ya kakaretso, goswana le maboleng a phelelo ya nako -Comment[pa]=ਨੈੱਟਵਰਕ ਪਸੰਦ ਸੰਰਚਨਾ, ਜਿਵੇਂ ਸਮਾਂ-ਸੀਮਾ ਮੁੱਲ -Comment[pl]=Konfiguracja niskopoziomowych ustawień sieciowych np. limitu czasu -Comment[pt]=Configuração das opções gerais da rede, p.ex. tempos-limite -Comment[pt_BR]=Configurar preferências genéricas para rede tais como valores de tempo limite -Comment[ro]=Configurează opțiuni de rețea precum valorile temporizărilor -Comment[ru]=Общие свойства сети, такие как значения времени ожидания -Comment[rw]=Kuboneza ibijyanye n'urusobemiyoboro rusange, nk'uduciro tw'igihecyarenze -Comment[se]=Oppalaš fierbmeoidimat, nugo áigemearit -Comment[sk]=Nastavenie všeobecných parametrov siete, napr. dôb čakania -Comment[sl]=Nastavljanje splošnih nastavitev omrežja kot na primer vrednosti zakasnitev -Comment[sr]=Подешавања генеричких параметара мреже, као што је прекорачење времена... -Comment[sr@Latn]=Podešavanja generičkih parametara mreže, kao što je prekoračenje vremena... -Comment[sv]=Anpassa allmänna nätverksinställningar, som tidsgränser -Comment[ta]=பிறப்பு வலைதள சலுகைகள், நேரமுடிவு மதிப்பு ஆகியவற்றை வடிவமை -Comment[tg]= Хусусиятҳои шабакаи монанди мӯҳлати вақт, дар инҷо танзим кунед -Comment[th]=ปรับแต่งค่าระบบเครือข่ายทั่วไป เช่น ค่าการใช้เวลา เป็นต้น -Comment[tr]=Genel ağ tercihlerini yapılandır, zaman aşımı değerleri gibi -Comment[tt]=Çeltärneñ töp köyläwläre; kötterü arası kebek. -Comment[uk]=Налаштування загальних параметрів мережі, таких як значення тайм-аутів -Comment[uz]=Taymaut qiymatiga oʻxshagan tarmoq parametrlarni moslash -Comment[uz@cyrillic]=Таймаут қийматига ўхшаган тармоқ параметрларни мослаш -Comment[ven]=Khonifigarani thodea dza vhukwamani sa tshifhinga tsho fhelaho -Comment[vi]=Cấu hình mạng nói chung ví dụ như giới hạn thời gian -Comment[wa]=Apontiaedje des preferinces rantoele djenerikes, come les valixhances di timeout -Comment[xh]=Qwalasela iinketho zomsebenzi womnatha ka wonke-wonke, njengamaxabiso ophelelo lwexesha -Comment[zh_CN]=配置通用网络首选项,例如超时值 -Comment[zh_TW]=設定一般網路喜好設定,例如逾時值 -Comment[zu]=Hlanganisela okuncanyelwa uwonkewonke koxhumano olusazekile, njengamanani esikhathi sokuphuma -Exec=tdecmshell netpref -Icon=network -Keywords=timeout,iopref,netpref,network preferences,ftp -Keywords[be]=Тэрмін чакання,Уласцівасці сеткі,timeout,iopref,netpref,network preferences,ftp -Keywords[bg]=просрочка, време, времето, пауза, прекъсване, връзка, timeout, iopref, netpref, network preferences, ftp -Keywords[bs]=timeout,iopref,netpref,network preferences,ftp,mreža -Keywords[ca]=temps d'expiració,iopref,netpref,preferències de la xarxa,ftp -Keywords[cs]=časový limit,iopref,netpref,nastavení sítě,ftp -Keywords[csb]=limit czasu, sécowé nastôwë,séc,nastôw wé/wi,ftp -Keywords[da]=timeout,udløb,ioindst,netindst,netværksindstillinger,ftp -Keywords[de]=Zeitlimit,Netzwerkeinstellungen,Ein-/Ausgabemodul-Einstellungen -Keywords[el]=χρονικό όριο,iopref,netpref,προτιμήσεις δικτύου,ftp -Keywords[eo]=tempolimo,enel-preferaĵoj,reto,retpreferaĵoj,ftp -Keywords[es]=timeout,iopref,netpref,red preferencias,ftp -Keywords[et]=taimaut,aegumine,võrgu seadistused,ftp -Keywords[eu]=denbora-muga,iopref,netpref,sareko hobespenak, ftp -Keywords[fa]=اتمام وقت، iopref، تنظیمات شبکه، قاپ -Keywords[fr]=délai,configuration du réseau,réseau,entrées/sorties,ftp -Keywords[fy]=timeout,iopref,netpref,netwurkfoarkar,tiidslimyt,ftp -Keywords[gl]=timeout,iopref,netpref,preferéncias de rede, ftp -Keywords[he]=זמן מוקצב,iopref,netpref,העדפות רשת, timeout,iopref,netpref,network preferences,ftp -Keywords[hr]=timeout,prekoračenje vremena,iopref,netpref,network preferences,postavke mreže,ftp -Keywords[hu]=várakozási idő,iopref,netpref,hálózati beállítások,ftp -Keywords[is]=hámarkstími,iopref,netpref,netstillingar,ftp -Keywords[it]=tempo massimo,timeout,iopref,netpref,rete,preferenze di rete,ftp -Keywords[ja]=タイムアウト, iopref, netpref, ネットワーク設定, ftp -Keywords[km]=អស់​ពេល,iopref,netpref,ចំណង់ចំណូល​ចិត្ត​បណ្ដាញ,ftp -Keywords[lt]=timeout,iopref,netpref,network preferences,ftp,laiko limitas, tinklo pasirinkimai -Keywords[mk]=timeout,iopref,netpref,network preferences,ftp,тајмаут,мрежни параметри -Keywords[nb]=avbruddsverdi,I/U-innstillinger,nettverk,nettverksinnstillinger,ftp -Keywords[nds]=timeout,iopref,netpref,Nettwarkinstellen,ftp,Tietgrenz,aflopen -Keywords[ne]=समय समाप्त, iopref, netpref, सञ्जाल प्राथमिकता, ftp -Keywords[nl]=timeout,iopref,netpref,netwerkvoorkeuren,tijdslimiet,ftp -Keywords[nn]=tidsgrense,IU-oppsett,nettverksinnstillingar,nettverk,nettverksoppsett,ftp -Keywords[pl]=limit czasu, ustawienia sieciowe,sieć,ustawienia we/wy,ftp -Keywords[pt]=tempo limite,iopref,netpref,configuração da rede,ftp -Keywords[pt_BR]=tempo limite,iopref,netpref,preferências de rede,ftp,configurações de rede -Keywords[ro]=temporizare,iopref,netpref,preferințe de rețea,ftp -Keywords[rw]= Igihecyarenze,iopref,netpref,ibijyana n'urusobemiyoboro,ftp -Keywords[sl]=iztek,zakasnitev,iopref,netpref,nastavitve omrežja,ftp -Keywords[sv]=tidsgräns,io-inställning,nät-inställning,nätverksinställningar,FTP -Keywords[ta]=நேரம் முடிந்தது,iopref,netpref,வலைதளம் சலுகைகள்,ftp -Keywords[th]=หมดเวลา,iopref,netpref,ปรับแต่งระบบเครือข่าย,ftp -Keywords[tr]=zaman aşımı,ağ tercihleri,iopref,netpref,ftp -Keywords[uk]=тайм-аут,iopref,netpref,параметри мережі,ftp -Keywords[uz]=taymaut,iopref,netpref,tarmoq parametrlari,ftp -Keywords[uz@cyrillic]=таймаут,iopref,netpref,тармоқ параметрлари,ftp -Keywords[vi]=giới hạn thời gian,iopref,netpref,tuỳ chọn mạng -Keywords[wa]=timeout,iopref,netpref,preferinces rantoele,ftp -Keywords[zh_CN]=timeout,iopref,netpref,network preferences,超时,网络首选项,ftp -Keywords[zh_TW]=timeout,iopref,netpref,network preferences,ftp,作業逾時,網路喜好設定 -Name=Connection Preferences -Name[af]=Koppeling Voorkeure -Name[ar]=تفضيلات الإتصال -Name[be]=Уласцівасці злучэнняў -Name[bg]=Настройване на връзката -Name[bn]=যোগাযোগ পছন্দসমূহ -Name[br]=Kefluniadur ar gevreadenn -Name[bs]=Postavke konekcije -Name[ca]=Preferències de connexió -Name[cs]=Nastavení připojení -Name[csb]=Kònfigùracëjô sparłãczeniów -Name[da]=Indstillinger af forbindelse -Name[de]=Verbindungseinstellungen -Name[el]=Προτιμήσεις σύνδεσης -Name[eo]=Konektaj Agordoj -Name[es]=Preferencias de conexión -Name[et]=Ühenduse seadistused -Name[eu]=Konexio hobespenak -Name[fa]=تنظیمات اتصال -Name[fi]=Asetukset -Name[fr]=Préférences de connexion -Name[fy]=Ferbiningfoarkar -Name[ga]=Sainroghanna Naisc -Name[gl]=Preferéncias da Conexón -Name[he]=העדפות חיבור -Name[hi]=कनेक्शन वरीयताएँ -Name[hr]=Postavke povezivanja -Name[hu]=Hálózati paraméterek -Name[is]=Stillingar tenginga -Name[it]=Preferenze sulle connessioni -Name[ja]=接続設定 -Name[ka]=კავშირის თვისებები -Name[kk]=Қосылым параметрлері -Name[km]=ចំណង់ចំណូល​ចិត្ត​ការ​តភ្ជាប់ -Name[ko]=연결 설정 -Name[lt]=Prisijungimo pasirinkimai -Name[lv]=Savienojumu parametri -Name[mk]=Параметри на поврзувањето -Name[ms]=Keutamaan Sambungan -Name[nb]=Forbindelsesinnstillinger -Name[nds]=Instellen för de Verbinnen -Name[ne]=जडान प्राथमिकता -Name[nl]=Verbindingsvoorkeuren -Name[nn]=Innstillingar for samband -Name[pa]=ਕੁਨੈਕਸ਼ਨ ਪਸੰਦ -Name[pl]=Konfiguracja połączeń -Name[pt]=Preferências da Ligação -Name[pt_BR]=Configurações de Conexão -Name[ro]=Preferințe conexiune -Name[ru]=Свойства соединения -Name[rw]=Ibijyanye n'Ukwihuza -Name[se]=Oktavuohta oidimat -Name[sk]=Preferencie pripojenia -Name[sl]=Lastnosti povezave -Name[sr]=Подешавања повезивања -Name[sr@Latn]=Podešavanja povezivanja -Name[sv]=Anslutningsinställningar -Name[ta]=இணைப்பு முன்னுரிமைகள் -Name[tg]=Хусусиятҳои алоқа -Name[th]=ค่าที่ชอบสำหรับการเชื่อมต่อ -Name[tr]=Bağlantı Tercihleri -Name[tt]=Totaşu Caylawları -Name[uk]=Параметри з'єднання -Name[uz]=Aloqa parametrlari -Name[uz@cyrillic]=Алоқа параметрлари -Name[vi]=Tuỳ chọn trong Nối mạng -Name[wa]=Preferinces di raloyaedje -Name[zh_CN]=连接首选项 -Name[zh_TW]=連線偏好設定 -Type=Application -DocPath=kcontrol/netpref/index.html -X-TDE-FactoryName=netpref -X-TDE-Library=kio - -X-TDE-ParentApp=kcontrol - -Categories=Qt;TDE;X-TDE-settings-network; diff --git a/kcontrol/kio/netpref.h b/kcontrol/kio/netpref.h deleted file mode 100644 index 30584a598..000000000 --- a/kcontrol/kio/netpref.h +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef KIOPREFERENCES_H -#define KIOPREFERENCES_H - -#include - -class TQLabel; -class TQVGroupBox; -class TQCheckBox; -class TQVBoxLayout; -class TQHBoxLayout; -class TQGridLayout; - -class KIntNumInput; - -class KIOPreferences : public TDECModule -{ - Q_OBJECT - -public: - KIOPreferences( TQWidget* parent = 0); - ~KIOPreferences(); - - void load(); - void save(); - void defaults(); - - TQString quickHelp() const; - -protected slots: - void configChanged() { emit changed(true); } - -private: - TQVGroupBox* gb_Ftp; - TQVGroupBox* gb_Timeout; - TQCheckBox* cb_ftpEnablePasv; - TQCheckBox* cb_ftpMarkPartial; - - KIntNumInput* sb_socketRead; - KIntNumInput* sb_proxyConnect; - KIntNumInput* sb_serverConnect; - KIntNumInput* sb_serverResponse; -}; - -#endif // KIOPREFERENCES_H diff --git a/kcontrol/kio/policydlg.cpp b/kcontrol/kio/policydlg.cpp deleted file mode 100644 index 44862f51e..000000000 --- a/kcontrol/kio/policydlg.cpp +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Copyright (c) 2000- Dawit Alemayehu - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include -#include -#include -#include -#include - -#include -#include -#include - -#include "policydlg.h" -#include "policydlg_ui.h" - - -class DomainLineValidator : public TQValidator -{ -public: - DomainLineValidator(TQObject *parent) - :TQValidator(parent, "domainValidator") - { - } - - State validate(TQString &input, int &) const - { - if (input.isEmpty() || (input == ".")) - return Intermediate; - - int length = input.length(); - - for(int i = 0 ; i < length; i++) - { - if (!input[i].isLetterOrNumber() && input[i] != '.' && input[i] != '-') - return Invalid; - } - - return Acceptable; - } -}; - - -PolicyDlg::PolicyDlg (const TQString& caption, TQWidget *parent, - const char *name) - : KDialogBase(parent, name, true, caption, Ok|Cancel, Ok, true) -{ - m_dlgUI = new PolicyDlgUI (this); - setMainWidget(m_dlgUI); - - m_dlgUI->leDomain->setValidator(new DomainLineValidator(TQT_TQOBJECT(m_dlgUI->leDomain))); - m_dlgUI->cbPolicy->setMinimumWidth( m_dlgUI->cbPolicy->fontMetrics().maxWidth() * 25 ); - - enableButtonOK( false ); - connect(m_dlgUI->leDomain, TQT_SIGNAL(textChanged(const TQString&)), - TQT_SLOT(slotTextChanged(const TQString&))); - - setFixedSize (sizeHint()); - m_dlgUI->leDomain->setFocus (); -} - -void PolicyDlg::setEnableHostEdit( bool state, const TQString& host ) -{ - if ( !host.isEmpty() ) - m_dlgUI->leDomain->setText( host ); - m_dlgUI->leDomain->setEnabled( state ); -} - -void PolicyDlg::setPolicy (int policy) -{ - if ( policy > -1 && policy <= static_cast(m_dlgUI->cbPolicy->count()) ) - m_dlgUI->cbPolicy->setCurrentItem(policy-1); - - if ( !m_dlgUI->leDomain->isEnabled() ) - m_dlgUI->cbPolicy->setFocus(); -} - -int PolicyDlg::advice () const -{ - return m_dlgUI->cbPolicy->currentItem() + 1; -} - -TQString PolicyDlg::domain () const -{ - return m_dlgUI->leDomain->text(); -} - -void PolicyDlg::slotTextChanged( const TQString& text ) -{ - enableButtonOK( text.length() > 1 ); -} -#include "policydlg.moc" diff --git a/kcontrol/kio/policydlg.h b/kcontrol/kio/policydlg.h deleted file mode 100644 index 2bf7a4c99..000000000 --- a/kcontrol/kio/policydlg.h +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Copyright (c) 2000- Dawit Alemayehu - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef _POLICYDLG_H -#define _POLICYDLG_H - -#include - -#include - - -class TQPushButton; -class PolicyDlgUI; - -class KCookieAdvice -{ -public: - enum Value {Dunno=0, Accept, Reject, Ask}; - - static const char * adviceToStr (const int& advice) - { - switch (advice) - { - case KCookieAdvice::Accept: - return I18N_NOOP("Accept"); - case KCookieAdvice::Reject: - return I18N_NOOP("Reject"); - case KCookieAdvice::Ask: - return I18N_NOOP("Ask"); - default: - return I18N_NOOP("Dunno"); - } - } - - static KCookieAdvice::Value strToAdvice (const TQString& advice) - { - if (advice.isEmpty()) - return KCookieAdvice::Dunno; - - if (advice.find (TQString::fromLatin1("accept"), 0, false) == 0) - return KCookieAdvice::Accept; - else if (advice.find (TQString::fromLatin1("reject"), 0, false) == 0) - return KCookieAdvice::Reject; - else if (advice.find (TQString::fromLatin1("ask"), 0, false) == 0) - return KCookieAdvice::Ask; - - return KCookieAdvice::Dunno; - } -}; - -class PolicyDlg : public KDialogBase -{ - Q_OBJECT - -public: - PolicyDlg (const TQString& caption, TQWidget *parent = 0, - const char *name = 0); - ~PolicyDlg (){}; - - int advice() const; - TQString domain() const; - - void setEnableHostEdit( bool, const TQString& host = TQString::null ); - void setPolicy (int policy); - -protected slots: - void slotTextChanged( const TQString& ); - -private: - PolicyDlgUI* m_dlgUI; -}; -#endif diff --git a/kcontrol/kio/policydlg_ui.ui b/kcontrol/kio/policydlg_ui.ui deleted file mode 100644 index 015359829..000000000 --- a/kcontrol/kio/policydlg_ui.ui +++ /dev/null @@ -1,106 +0,0 @@ - -PolicyDlgUI - - - PolicyDlgUI - - - - 0 - 0 - 291 - 120 - - - - - unnamed - - - 0 - - - - lbDomain - - - &Domain name: - - - leDomain - - - <qt> -Enter the host or domain to which this policy applies, e.g. <b>www.kde.org</b> or <b>.kde.org</b>. -</qt> - - - - - leDomain - - - <qt> -Enter the host or domain to which this policy applies, e.g. <b>www.kde.org</b> or <b>.kde.org</b>. -</qt> - - - - - lbPolicy - - - &Policy: - - - cbPolicy - - - <qt> -Select the desired policy: -<ul> -<li><b>Accept</b> - Allows this site to set cookies</li> -<li><b>Reject</b> - Refuse all cookies sent from this site</li> -<li><b>Ask</b> - Prompt when cookies are received from this site</li> -</ul> -</qt> - - - - - - Accept - - - - - Reject - - - - - Ask - - - - cbPolicy - - - <qt> -Select the desired policy: -<ul> -<li><b>Accept</b> - Allows this site to set cookies</li> -<li><b>Reject</b> - Refuse all cookies sent from this site</li> -<li><b>Ask</b> - Prompt when cookies are received from this site</li> -</ul> -</qt> - - - - - - kdialog.h - - - - diff --git a/kcontrol/kio/proxy.desktop b/kcontrol/kio/proxy.desktop deleted file mode 100644 index 81325dd6d..000000000 --- a/kcontrol/kio/proxy.desktop +++ /dev/null @@ -1,209 +0,0 @@ -[Desktop Entry] -Type=Application -DocPath=kcontrol/proxy/index.html -Icon=proxy -Exec=tdecmshell proxy - - -X-TDE-Library=kio -X-TDE-FactoryName=proxy -X-TDE-ParentApp=kcontrol - -Name=Proxy -Name[af]=Volmag -Name[ar]=الوكيل -Name[az]=Vəkil Verici -Name[be]=Проксі -Name[bg]=Прокси сървър -Name[bn]=প্রক্সি -Name[br]=Proksi -Name[ca]=Intermediari -Name[csb]=Pòstrzédnik (Proxy) -Name[cy]=Dirprwy -Name[el]=Διαμεσολαβητής -Name[eo]=Prokuriloj -Name[eu]=Proxya -Name[fa]=پیشکار -Name[fi]=Välityspalvelin -Name[fr]=Serveur mandataire (proxy) -Name[ga]=Seachfhreastalaí -Name[he]=מתווכים -Name[hi]=प्रॉक्सी -Name[is]=Milliþjónn -Name[ja]=プロキシ -Name[ka]=პროქსი -Name[kk]=Прокси -Name[km]=ប្រូកស៊ី -Name[ko]=프록시 -Name[lo]=ພຣັອກຊີ -Name[mk]=Прокси -Name[mn]=Итгэмжилэгч-сервер -Name[ms]=Proksi -Name[nb]=Mellomtjener -Name[ne]=प्रोक्सी -Name[nn]=Mellomtenar -Name[nso]=Moemalegato -Name[pa]=ਪਰਾਕਸੀ -Name[pl]=Pośrednik (Proxy) -Name[ru]=Прокси -Name[rw]=Porogisi -Name[se]=Gaskabálvá -Name[sl]=Posrednik -Name[sr]=Прокси -Name[sr@Latn]=Proksi -Name[sv]=Proxyservrar -Name[ta]=பதிவாணை -Name[te]=ప్రాక్సి -Name[tg]=Прокси -Name[th]=พร็อกซี -Name[tr]=Vekil Sunucu -Name[uk]=Проксі -Name[uz]=Proksi -Name[uz@cyrillic]=Прокси -Name[ven]=Purokusi -Name[xh]=Umntu onegunya lokusebenzela omnye -Name[zh_CN]=代理 -Name[zh_TW]=代理 -Name[zu]=Umlingani -Comment=Configure the proxy servers used -Comment[af]=Konfigureer die volmag bedieners gebruik word -Comment[ar]=إعداد خوادم التوكيل المستعملة -Comment[az]=İşlədilən vəkil verici qurğuları -Comment[be]=Настаўленні сервераў проксі -Comment[bg]=Настройване на прокси сървъра -Comment[bn]=ব্যবহৃত প্রক্সি সার্ভার কনফিগার করুন -Comment[br]=Kefluniañ ar servijeroù proksi implijet -Comment[bs]=Podesite proxy servere -Comment[ca]=Configura els servidors intermediaris emprats -Comment[cs]=Nastavení proxy serverů -Comment[csb]=Kònfigùracëjô pòstrzédniczącëch serwerów (proxy) -Comment[cy]=Ffurfweddu gweinyddion dirprwyol i'w defnyddio -Comment[da]=Indstil de proxyservere der bruges -Comment[de]=Proxy-Server einrichten -Comment[el]=Ρυθμίστε τους διαμεσολαβητές που χρησιμοποιούνται -Comment[eo]=Agordo de prokurilo -Comment[es]=Configuración de los servidores Proxy usados -Comment[et]=Kasutatavate proxy serverite seadistamine -Comment[eu]=Konfiguratu erabilitako proxy zerbitzariak -Comment[fa]=پیکربندی پیشکارهای استفاده‌شده -Comment[fi]=Käytettävät välityspalvelimet -Comment[fr]=Configuration des serveurs mandataires (proxy) utilisés -Comment[fy]=Hjir kinne jo de Proxy-tsjinner ynstelle -Comment[gl]=Configurar os servidores proxy empregados -Comment[he]=שינוי הגדרות השרתים המתווכים שנעשה בהם שימוש -Comment[hi]=उपयोग में प्रॉक्सी सर्वर कॉन्फ़िगर करें -Comment[hr]=Konfiguriranje proxy poslužitelja -Comment[hu]=A proxy kiszolgálók beállításai -Comment[is]=Stilla milliþjóna sem á að nota -Comment[it]=Configura il server proxy da usare -Comment[ja]=プロキシサーバの設定 -Comment[ka]=გამოყენებული პროქსების კონფიგურაცია -Comment[kk]=Қолданатын прокси серверлерді баптау -Comment[km]=កំណត់​រចនាសម្ព័ន្ធ​ម៉ាស៊ីន​បម្រើ​ដែល​បាន​ប្រើ -Comment[ko]=사용할 프록시 서버 설정 -Comment[lo]=ປັບແຕ່ງເຊີບເວີພຣັອກຊີ -Comment[lt]=Konfigūruoti naudojamus proxy serverius -Comment[mk]=Конфигурирајте ги прокси-серверите кои се користат -Comment[mn]=Итгэмжилэгч сервер тохируулах -Comment[ms]=Konfigur pelayan proksi yang digunakan -Comment[mt]=Ikkonfigura servers proxy -Comment[nb]=Oppsett av mellomtjenere -Comment[nds]=De bruukten Proxies instellen -Comment[ne]=प्रयोग गरिएको प्रोक्सी सर्भर कन्फिगर गर्नुहोस् -Comment[nl]=Hier kunt u de Proxy-servers instellen -Comment[nn]=Oppsett av mellomtenarar -Comment[nso]=Beakanya diabi tsa moemalegato tseo di somisitswego -Comment[pa]=ਵਰਤੇ ਜਾਂਦੇ ਪਰਾਕਸੀ ਸਰਵਰਾਂ ਦੀ ਸੰਰਚਨਾ -Comment[pl]=Konfiguracja serwerów pośredniczących (proxy) -Comment[pt]=Configurar os servidores 'proxy' usados -Comment[pt_BR]=Configura os servidores proxy usados -Comment[ro]=Configurează serverele proxy utilizate -Comment[ru]=Настройка серверов прокси -Comment[rw]=Kuboneza amaseriveri porogisi akoreshwa -Comment[se]=Heivet gaskabálváid mat geavahuvvojit -Comment[sk]=Nastavenie proxy serverov -Comment[sl]=Nastavitev uporabe posredniških strežnikov -Comment[sr]=Подешавање коришћених прокси сервера -Comment[sr@Latn]=Podešavanje korišćenih proksi servera -Comment[sv]=Anpassa proxyservrar som används -Comment[ta]=பயன்படுத்தப்பட்ட பதிவாணை சேவகன்களை அமை -Comment[tg]=Танзими коргузорҳои прокси мавриди истифода -Comment[th]=ปรับแต่งเซิร์ฟเวอร์พร็อกซี -Comment[tr]=Vekil sunucularını yapılandırır -Comment[tt]=Proxy serverlären caylaw -Comment[uk]=Налаштування проксі-сервера -Comment[uz]=Proksi serverlarini moslash -Comment[uz@cyrillic]=Прокси серверларини мослаш -Comment[ven]=Dzudzanyani dzisiva dza Proxy dzo shumiswaho -Comment[vi]=Cấu hình máy chủ proxy được sử dụng -Comment[wa]=Apontyî les sierveus proxy d' eployîs -Comment[xh]=Qwalasela indlela abasebenziswa ngayo abancedisi be proxy -Comment[zh_CN]=配置所用的代理服务器 -Comment[zh_TW]=設定使用的代理伺服器 -Comment[zu]=Hlanganisela abalekeleli abangabalingani abasetshenziswayo -Keywords=Proxy,Proxy server,Firewall,Squid,proxy -Keywords[ar]=الوكيل,خادم التوكيل,جدار عزل النار,Squid,الوكيل -Keywords[az]=Proksi,vəkil verici,vəkil,Firewall,firewall,Squid,Proxy,proxy,atəş divarı,atəş -Keywords[be]=Проксі,Сервер проксі,Брандмаўэр,проксі,Proxy,Proxy server,Firewall,Squid,proxy -Keywords[bg]=прокси, сървър, посредник, Proxy, Proxy server, Firewall, Squid, proxy -Keywords[br]=Proksi,Server proksi,Moger-tan,Squid,proksi -Keywords[ca]=Intermediari,Servidor intermediari,Tallafocs,Squid,intermediari -Keywords[csb]=proxy,pòstrzédnik,pòstrzédniczącô serwera,ògniowô scana,Squid -Keywords[cy]=Dirprwy,Gweinydd dirprwyol,Mur gwarchod,Squid,dirprwy -Keywords[da]=Proxy,Proxyserver,Brandmur,Squid,proxy -Keywords[el]=Διαμεσολαβητής,Διαμεσολαβητής,Firewall,Squid,διαμεσολαβητής -Keywords[eo]=Prokurilo,Prokuro-servo,Fajroŝirmilo,Squid -Keywords[es]=Proxy,servidor Proxy,Cortafuegos,Squid,proxy -Keywords[et]=proxy,proxy server,tulemüür,squid -Keywords[eu]=Proxya,Proxy zerbitzaria,Firewalla,Squid,proxya -Keywords[fa]=پیشکار، پیشکاری، دیوارۀ آتش، Squid،پیشکار -Keywords[fi]=Välityspalvelin,Palomuuri,Squid -Keywords[fr]=proxy,serveur mandataire,pare-feu,squid -Keywords[fy]=proxy,proxy tsjinner,brânmourre,squid -Keywords[ga]=Seachfhreastalaí,Balla Dóiteáin,Squid -Keywords[gl]=Proxy,Servidor Proxy,Cortafogos,Squid,proxy -Keywords[he]=מתווך,שרת מתווך,Firewall,Squid, Proxy,Proxy server,Squid,proxy -Keywords[hi]=प्रॉक्सी,प्रॉक्सी सर्वर,फायरवाल,एसक्यू-आईडी,प्रॉक्सी -Keywords[hr]=Proxy,Proxy server,Proxy poslužitelj, Firewall,Squid,proxy,Vatrozid -Keywords[hu]=proxy,proxy kiszolgáló,tűzfal,Squid,proxy -Keywords[is]=Eldveggur,Proxy,Proxy server,Firewall,Squid,proxy -Keywords[it]=proxy,server proxy,firewall,Squid -Keywords[ja]=プロキシ,プロキシサーバ,ファイアウォール,Squid,プロキシ -Keywords[ka]=პროქსი,პროქსი სერვერი,ფაირვოლი,Squid,პროქსი -Keywords[km]=ប្រូកស៊ី,ម៉ាស៊ីន​បម្រើ​ប្រូកស៊ី,ជញ្ជាំង​ភ្លើង,Squid,ប្រូកស៊ី -Keywords[lo]=ພຣັອກຊີ,ເຊີເວີພຣັອກຊີ,ໄຟລ໌ວອລ໌,ສະວິກ,ພຣັອກຊີ -Keywords[lt]=Proxy,Proxy server,Firewall,Squid,proxy, proxy serveris,ugniasienė -Keywords[mk]=Proxy,Proxy server,Firewall,Squid,proxy, Прокси,Прокси сервер,Огнен Ѕид,прокси -Keywords[mn]=Итгэмжилэгч,Итгэмжилэгч сервер,Firewall,Squid,proxy -Keywords[nb]=proxy,mellomtjener,brannmur,squid -Keywords[nds]=Proxy,Proxyserver,Nettdiek,Squid,proxy -Keywords[ne]=प्रोक्सी, प्रोक्सी सर्भर, फायरवाल, स्क्विड, प्रोक्सी -Keywords[nl]=proxy,proxy server,firewall,squid -Keywords[nn]=proxy,mellomtenar,brannmur,squid -Keywords[nso]=Moemalegato,Moabi wa moemalegato,Firewall,Squid,moemalegato -Keywords[pa]=Proxy,Proxy server,Firewall,Squid,ਪਰਾਕਸੀ, ਪਰਾਕਸੀ ਸਰਵਰ -Keywords[pl]=proxy,pośrednik,serwer pośredniczący,zapora ogniowa,Squid -Keywords[pt]=Proxy,Servidor proxy,Firewall,Squid,proxy -Keywords[pt_BR]=Proxy,Servidor Proxy,Firewall,Squid,proxy -Keywords[ro]=proxy,server proxy,firewall,squid,zid de foc -Keywords[rw]=Porogisi, Seriveri porogisi,Urukuta-muriro,Squid,porogisi -Keywords[se]=proxy,gaskabálvá,gaskabálvá,buollinmuvra,squid -Keywords[sl]=posrednik,posredniški strežnik,požarni zid,squid,proxy -Keywords[sr]=Прокси, Прокси сервер, Firewall, Squid, прокси -Keywords[sr@Latn]=Proksi, Proksi server, Firewall, Squid, proksi -Keywords[sv]=Proxy,Proxy-server,Brandvägg,Squid,proxy -Keywords[ta]=பதிவாணை,பதிவாணை சேவகன்,ஃபயர்வால்,ஸ்க்யுட்,ப்ராக்சி -Keywords[th]=พร็อกซี,เซิร์ฟเวอร์พร็อกซี,ไฟร์วอลล์,สควิด,พร็อกซี -Keywords[tr]=Vekil,Vekil sunucu,Güvenlik duvarı,Squid,proxy -Keywords[uk]=проксі,проксі-сервер,фаєрвол,Squid,proxy -Keywords[uz]=Squid,Proksi,Proksi server,Fayervol,proksi -Keywords[uz@cyrillic]=Squid,Прокси,Прокси сервер,Файервол,прокси -Keywords[ven]=Purokusi,Siva ya Purokusi,Luvhondo lwa mulilo,Squid,Purokusi -Keywords[vi]=Proxy,Máy phục vụ proxy,Tường lửa,Squid,proxy -Keywords[wa]=Proxy,Proxy server,Firewall,Squid,proxy,sierveu proxy,meur siconte feu -Keywords[xh]=Umntu onegunya lokudsebenzela omnye, umncedisi womntu onegunya,udonga lomlilo,Squid,umntu onegunya lokusebenzela omnye -Keywords[zh_CN]=Proxy,Proxy server,Firewall,Squid,proxy,代理,代理服务器,防火墙 -Keywords[zh_TW]=Proxy,Proxy server,Firewall,Squid,proxy,代理,代理伺服器,防火牆 -Keywords[zu]=Umlingani,Umlekeleli ongumlingana,Firewall,Squid,umlingani - -Categories=Qt;TDE;X-TDE-settings-network; diff --git a/kcontrol/kio/smb.desktop b/kcontrol/kio/smb.desktop deleted file mode 100644 index 0e9cd2863..000000000 --- a/kcontrol/kio/smb.desktop +++ /dev/null @@ -1,233 +0,0 @@ -[Desktop Entry] -Type=Application -DocPath=kcontrol/smb/index.html -Icon=samba -Exec=tdecmshell smb - - -X-TDE-Library=kio -X-TDE-FactoryName=smb -X-TDE-ParentApp=kcontrol - -Name=Windows Shares -Name[af]=Vensters Gedeelde bronne -Name[ar]=مشاركات Windows -Name[az]=Windows Payları -Name[be]=Агульныя тэчкі Windows -Name[bg]=Споделяне с Windows -Name[bn]=উইণ্ডোস শেয়ারস -Name[br]=Rannadur prenestrer -Name[ca]=Comparticions Windows -Name[cs]=Sdílené disky systému Microsoft Windows -Name[csb]=Zbiérné dostónczi Windows -Name[cy]=Rhaniadau Windows -Name[da]=Windows-shares -Name[de]=Windows-Freigaben -Name[el]=Κοινόχρηστοι πόροι Windows -Name[eo]=Vindozaj retdosierujoj -Name[es]=Comparticiones Windows -Name[et]=Windowsi ressursid -Name[eu]=Windows konpartizioak -Name[fa]=اشتراکهای ویندوزی -Name[fi]=Windows-jaot -Name[fr]=Partages Windows -Name[fy]=Windows-netwurken -Name[gl]=Comparticións con Windows -Name[he]=שיתופי Windows -Name[hi]=विंडोज़ साझेदारी -Name[hr]=Windows dijeljenja -Name[hu]=Samba kliens -Name[id]=Share Windows -Name[is]=SMB netdrif -Name[it]=Condivisioni Windows -Name[ja]=ウィンドウズ共有 -Name[ka]=Windows საზიარო -Name[kk]=Windows ортақ ресурстары -Name[ko]=윈도 공유 -Name[lo]=ການໃຊ້ຊັບພະຍາກອນຮ່ວມກັບວິນໂດສ໌ -Name[lt]=Windows bendro naudojimo diskai -Name[lv]=Windows Šāres -Name[mk]=Windows заеднички -Name[mn]=Windows-Нөөцүүд -Name[ms]=Kongsi Tetingkap -Name[mt]=Shares tal-Windows -Name[nb]=Delte Windows-ressurser -Name[nds]=Windows-Freegaven -Name[ne]=विण्डोज साझेदारी -Name[nl]=Windows-netwerken -Name[nn]=Delte Windows-ressursar -Name[nso]=Dikabagano tsa Window -Name[oc]=Directoris windows -Name[pa]=ਵਿੰਡੋ (windows) ਸਾਂਝ -Name[pl]=Udostępniane zasoby Windows -Name[pt]=Partilhas do Windows -Name[pt_BR]=Compartilhamentos Windows -Name[ro]=Partajări Windows -Name[ru]=Ресурсы Windows -Name[rw]=Imigabane Windows -Name[se]=Juohkojuvvon Windows-resurssat -Name[sk]=Zdieľanie v sieti Windows -Name[sl]=Souporabe iz Windows -Name[sr]=Дељени Windows ресурси -Name[sr@Latn]=Deljeni Windows resursi -Name[sv]=Utdelade Windows-kataloger -Name[ta]=சாளரங்களின் பங்குகள் -Name[tg]=Иштирокоти Windows -Name[th]=ใช้ทรัพยากรร่วมกับวินโดว์ส -Name[tr]=Windows Paylaşımları -Name[tt]=Windows Urtaqları -Name[uk]=Спільні ресурси Windows -Name[ven]=Mukovhekano wa dziwindo -Name[vi]=Chia sẻ với Windows -Name[wa]=Pårtaedjes avou Windows -Name[xh]=Ulwahlulelwano lwe Windows -Name[zh_CN]=Windows 共享资源 -Name[zh_TW]=Windows 資源共享 -Name[zu]=Izabelo zama-Window - -Comment=Use to configure which windows (SMB) filesystems you can browse -Comment[af]=Gebruik na konfigureer wat vensters (Smb) lêerstelsels jy kan blaai -Comment[ar]=إستعمل لإعداد أي من أنظمة الملفات (SMB) تستطيع التصفّح -Comment[az]=Gəzə biləcəyiniz windows (SMB) fayl sistemlərini quraşdırmaqda işlədilir -Comment[be]=Настаўленні файлавых сістэмаў SMB -Comment[bg]=Настройване споделянето на файлове с Windows -Comment[bn]=কোন কোন উইণ্ডোস (সাম্বা) শেয়ার ব্রাউজ করতে পারবেন তা নির্বাচন করতে ব্যবহার করুন -Comment[br]=Implijit evit kefluniañ pe reizhiad restroù windows (SMB) a c'hellit furchal -Comment[bs]=Koristite ovu opciju za podešavanje Windows (SMB) datotečnih sistema koje želite pregledavati -Comment[ca]=S'usa per a configurar en quins sistemes de fitxers windows (SMB) es podrà navegar -Comment[cs]=Použijte k nastavení systémů Windows (SMB), které chcete procházet -Comment[csb]=Kònfigùracëjô przistãpnëch systemòwëch lopków z Windowsa (SMB) -Comment[cy]=Defnyddio i ffurfweddu pa cysodau ffeil Windows (SMB) a fedrwch eu pori -Comment[da]=Bruges til at indstille hvilke Windows-filsystemer (SMB) du kan se -Comment[de]=Hier stellen Sie ein, welche (SMB-)Dateisysteme Sie durchsuchen können -Comment[el]=Ρυθμίστε ποια συστήματα αρχείων windows (SMB) μπορείτε να επισκεφθείτε -Comment[eo]=Retdosierujoj alireblaj per SMB -Comment[es]=Úselo para configurar qué sistemas de archivos de Windows (SMB) puede examinar -Comment[et]=Windowsi (SMB) jagatud resursside lehitsemise seadistused -Comment[eu]=Erabil ezazu zein windows fitxategi sistema (SMB) araka dezakezunkonfiguratzeko -Comment[fa]=استفاده جهت پیکربندی سیستم پرونده‌های ویندوزی(SMB) که می‌توانید مرور کنید. -Comment[fi]=Käytä asettaaksesi windowsin (SMB) tiedostojärjestelmiä, joita voit selata -Comment[fr]=Configuration des systèmes de fichiers Windows (SMB) -Comment[fy]=Hjir kinne jo fêstelle mei wat fan Windows-triemsystemen (SMB) jo fia it netwurk blêdzje wolle. -Comment[gl]=Use-o para configurar os sistemas de ficheiros windows (SMB) que pode navegar -Comment[he]=שינוי ההגדרות בנוגע למערכות הקבצים של SMB) Windows) בהן ניתן לעיין -Comment[hi]=कॉन्फ़िगर करने के लिए इस्तेमाल करें कि कौन सा विंडोज़ फ़ाइलसिस्टम (SMB) आप ब्राउज कर सकते हैं. -Comment[hr]=Konfiguriranje Windows (SMB) datotečnih sustava koje smijete pregledavati -Comment[hu]=Az SMB fájlrendszerek böngészésének beállításai -Comment[id]=Digunakan untuk konfigurasi sistem file windows (SMB) yang digunakan -Comment[is]=Stilla hvaða SMB netdiska (e. windows sameignir) þú getur skoðað -Comment[it]=Configura quali filesystem windows (SMB) si possono sfogliare -Comment[ja]=windows(SMB)ファイルシステムをブラウズするための設定 -Comment[ka]=გამოიყენება windows (SMB) ფაილური სისტემების ჩვენების მისათითებლად -Comment[kk]=Windows-компьютерлердің қай файл жүйелері (SMB) қатынауға ашық екенін баптау -Comment[km]=ប្រើ​ដើម្បី​កំណត់​រចនាសម្ព័ន្ធ ថា​តើ​ប្រព័ន្ធ​ឯកសារ Windows (SMB) ណា​មួយ​ដែល​អ្នក​អាច​រុករក -Comment[ko]=윈도 (SMB) 파일 시스템 탐색 설정 -Comment[lo]=ໃຊ້ສຳລັບການປັບແຕ່ງການເອີ້ນລະບົບ ແຟ້ມຂອງວິນໂດສ໌ (SMB) -Comment[lt]=Naudokite tai norėdami nustatyti kurias Windows (SMB) bylų sistemas Jūs galėsite naršyti -Comment[lv]=Lietojiet, lai norādītu kuras windows (SMB) failu sistēmas Jūs varētu pārlūkot -Comment[mk]=Користете го за да конфигурирате кои windows (SMB) датотечни системи можете да ги прелистувате -Comment[mn]=Энд та ямар виндовс (SMB-)Файлын систем нэгжиж чадахаа тохируулж болно -Comment[ms]=Guna untuk konfigur sistem fail tetingkap (SMB) mana yang anda boleh layar -Comment[mt]=Uża dan biex tagħżel liema filesystems tal-Windows (SMB) tista' tibbrowsja -Comment[nb]=Her kan du stille inn hvilke Windows-filsystemer (SMB) du kan lese -Comment[nds]=Instellen, welke Windows- (SMB-) Dateisystemen Du bruken kannst -Comment[ne]=तपाईँले ब्राउज गर्न सक्ने विण्डोजको (SMB) फाइल प्रणालीहरूमा कन्फिगर गर्न प्रयोग गर्नुहोस् -Comment[nl]=Hier kunt u bepalen op welke Windows-bestandssytemen (SMB) u via het netwerk wilt kunnen bladeren. -Comment[nn]=Her kan du setja opp kva for Windows-filsystem (SMB) du kan lesa -Comment[nso]=E hlwela e beakanya gore ke di-system dife tsa faele ya window (SMB) tseo oka inyakisago tsona -Comment[oc]=S'usa per configurar quins sistemes de fiquièrs windows (SMB) podetz fullejar -Comment[pa]=ਸੰਰਚਨਾ ਵਰਤੋਂ, ਜੋ ਕਿ ਵਿੰਡੋ (SMB) ਫਾਇਲ ਸਿਸਟਮ ਦੀ ਝਲਕ ਵੇਖਾ ਸਕਦਾ ਹੈ -Comment[pl]=Konfiguracja dostępnych systemów plików z Windows (SMB) -Comment[pt]=Configuração das partilhas de Windows (SMB) a que você pode aceder -Comment[pt_BR]=Use para configurar em quais sistemas de arquivos SMB (Rede Windows) você pode navegar -Comment[ro]=Configurează partajările Windows (SMB) pe care le puteți răsfoi -Comment[ru]=Настройка просмотра доступных разделяемых ресурсов Windows-машин -Comment[rw]=Gukoresha mu kuboneza sisitemudosiye ya Windows (SMB) ushobora gucukumbura -Comment[se]=Dás sáhtát heivehit guđe Windows-fiilavuogádaid (SMB) oaččut lohkat -Comment[sk]=Konfigurácia súborového systému Windows (SMB), ktorý môžete prehliadať -Comment[sl]=Uporabite za nastavitev datotečnih sistemov Windows (SMB), po katerih lahko brskate -Comment[sr]=Користите да би подесили које Windows (SMB) системе фајлове ћете моћи да прегледате -Comment[sr@Latn]=Koristite da bi podesili koje Windows (SMB) sisteme fajlove ćete moći da pregledate -Comment[sv]=Använd detta för att ställa in vilka Windows-filsystem (SMB) som du kan komma åt -Comment[ta]=நீங்கள் உலாவக்கூடிய சாளர கோப்பு அமைப்புகளை (SMB) வடிவமைக்கவும் -Comment[tg]= Барои танзим кардани системаи windows, ки (SMB)-ро мехоҳед мурур кунед, қобили истифода аст -Comment[th]=ใช้ปรับแต่งการเรียกดูระบบแฟ้มของวินโดว์ส (SMB) -Comment[tr]=Gözatabileceğiniz windows (SMB) dosya sistemlerini yapılandırmakta kullanılır -Comment[tt]=Windows çeltärendä büleneşkän belem qaraw tärtibeneñ caylawları -Comment[uk]=Налаштування файлових систем Windows (SMB), для навігації -Comment[ven]=I shuma u khonifigara uri ndi mashumele a (SMB) faela a windo ane ninga buronza -Comment[vi]=Dùng để cấu hình hệ thống tập tin Windows (SMB) nào mà bạn có thể duyệt -Comment[wa]=Eployî po-z apontyî ké sistinme di fitchî Windows (SMB) vos ploz foyter -Comment[xh]=Sebenzisa ukuqwalasela eyiphi (SMB) indlela yousebenza okwaziyo ukukhangela iincwadi -Comment[zh_CN]=配置您可以浏览的 Windows (SMB) 文件系统 -Comment[zh_TW]=設定您可以瀏覽的 Windows (SMB) 檔案系統 -Comment[zu]=Sebenzisa ukuhlanganisela ukuthi imaphi amasistimu amafayela ama-window (SMB) ongacinga kuwo - -Keywords=SMB,SAMBA,SMB client,Windows network,LAN,Network,neighborhood,Server,Broadcast,WINS,Share,Login,Passwords -Keywords[ar]=SMB,SAMBA,زبون SMB,شبكة Windows,شبكة المنطقة المحلية,الشبكة,الجوار,الخادم,البث,WINS,المشاركة,تسجيل الدخول,كلمات المرور -Keywords[az]=SMB,SAMBA,SMB alıcı,Windows şəbəkəsi,LAN,Şəbəkə,qonşular,Giriş,Parol,Paylaşım,WINS,yayın -Keywords[be]=Кліент SMB,Сетка Windows,Навакольнае асяроддзе,Сетка,асяроддзе,Сервер,Публікацыя,Агульныя файлы,Уваход,Пароль,Паролі,Уліковы запіс,Сесія,SMB,SAMBA,SMB client,Windows network,LAN,Network,neighborhood,Server,Broadcast,WINS,Share,Login,Passwords -Keywords[bg]=самба, споделяне, файлове, принтери, печат, пароли, SMB, SAMBA, SMB client, Windows network, LAN, Network, neighborhood, Server, Broadcast, WINS, Share, Login, Passwords -Keywords[ca]=SMB,SAMBA,Client SMB,Xarxa Windows,LAN,Xarxa,veïnat,servidor,Broadcast,WINS,Compartició,Accés,Contrasenyes -Keywords[cs]=SMB,Samba,SMB klient,Síť Microsoft Windows,LAN,Síť,Okolní počítače,Server,Broadcast,WINS,Share,Login,Hesla -Keywords[csb]=SMB,SAMBA,klient SMB,séc Windows,LAN,môlowô séc,sécowé òkrãże,serwera,rozgłôszanié,WINS,dostónk,logòwanié,parole -Keywords[cy]=SMB,SAMBA,dibynnydd SMB,Rhwydwaith Windows,LAN,Rhwydwaith,cymdogaeth,Gweinydd,Darllediad,WINS,Rhanniad,Mewngofnodi,Cyfrineiriau -Keywords[da]=SMB,Samba,SMB-klient,Windows-netværk,Lan,Netværk,arbejdsgruppe,server,Udsend,WINS,Del,Login,kodeord -Keywords[de]=SMB,Samba,SMB-Client,Windows-Netzwerk,LAN,Netzwerk,Netzumgebung,Umgebung,Server,Broadcast,WINS,Freigabe,Anmeldung,Passwörter -Keywords[el]=SMB,SAMBA,Πελάτης SMB,Δίκτυο Windows,LAN,Δίκτυο,γειτονιά,Εξυπηρετητής,Εκπομπή,WINDS,Κοινόχρηστος πόρος,Σύνδεση,Κωδικοί πρόσβασης -Keywords[en_GB]=SMB,SAMBA,SMB client,Windows network,LAN,Network,neighbourhood,Server,Broadcast,WINS,Share,Login,Passwords -Keywords[eo]=SMB,Sambo,kliento,Vindozo,reto,LAN,najbaraĵo,servilo,dissendo,WINS,retdosierujo,saluto,pasvorto -Keywords[es]=SMB,SAMBA,Cliente SMB,Red Windows,LAN,Red,entorno,Servidor,Broadcast,WINS,Compartición,Entrada,Acceso,Contraseñas -Keywords[et]=SMB,samba,SMB klient,Windowsi võrk,LAN,võrk,naabrus,server,broadcast,üldlevi,WINS,jagatud ressurss,kasutajanimi,paroolid -Keywords[eu]=SMB,SAMBA,SMB bezeroa,Windows sarea,LAN,Sarea,ingurunea,Zerbitzaria,Broadcast,WINS,Konpartizioa,Saio hasiera,Pasahitza -Keywords[fa]=SMB، SAMBA، کارخواه SMB، شبکۀ ویندوزی، شبکۀ داخلی، شبکه، مجاورت، کارساز، پخش، WINS، مشترک، ورود، اسم‌ رمزها -Keywords[fi]=SMB,SAMBA,SMB-asiakas,Windows verkko,LAN,Verkko,Naapuruus,Palvelin,Jakelu,WINS,Jako,Kirjautuminen,Salasanat -Keywords[fr]=smb,samba,client smb,réseau Windows,lan,réseau local,réseau,voisinage,serveur,broadcast,diffusion,wins,partage,connexion,mot de passe,windows,login -Keywords[fy]=SMB,SAMBA,SMB-client,Windows-netwurk,LAN,netwurk,omwrâld,neighborhood,server,broadcast,WINS,share,Oanmelde,login,wachtwurden,netwurk -Keywords[gl]=SMB,SAMBA,cliente SMB,rede Windows,LAN,Rede,veciñanza,Servidor,Broadcast,WINS,Compartición,Login,Inicio,Contrasinais -Keywords[he]=שיתוף,כניסה למערכת,ססמאות,WINS,רשת מקומית,רשת,שכנים,שרת,שידור,רשת Windows,תוכנית SMB,SAMBA,SMB, SMB client,Windows network,LAN,Network,neighborhood,Server,Broadcast,WINS,Share,Login,Passwords -Keywords[hi]=एसएमबी,साम्बा,एसएमबी क्लाएंट,विंडोज़ नेटवर्क,लैन,नेटवर्क,नेबरहुड,सर्वर,ब्राडकास्ट,विन्स,साझेदारी,लॉगइन,पासवर्ड -Keywords[hr]=SMB,SAMBA,SMB client,Windows network,LAN,Network,neighborhood,Server,Broadcast,WINS,Share,Login,Passwords,SMB klijent,Windows mreža,Mreža,susjedstvo,Poslužitelj,Opća objava,Dijeljenje,Prijava,Lozinke -Keywords[hu]=SMB,Samba,SMB-kliens,Windows-hálózat,LAN,hálózat,környezet,kiszolgáló,broadcast,WINS,megosztás,bejelentkezés,jelszavak -Keywords[id]=SMB,SAMBA,klien SMB,Windows network,LAN,Network,neighborhood,Server,Broadcast,WINS,Share,Login,Passwords -Keywords[is]=Windows net,SMB netdrif,netdrif,net,SMB biðill,Net,nágrenni,þjónn,deild,lykilorð,innskráning -Keywords[it]=SMB,SAMBA,Client SMB,Rete Windows,LAN,Rete,Risorse di rete,Accesso,WINS,Login,Share,Condivisioni,Password,Broadcast,vicini,server,risorse di rete -Keywords[ja]=SMB,SAMBA,SMBクライアント,Windowsネットワーク,LAN,ネットワーク,neighborhood,サーバ,ブロードキャスト,WINS,共有,ログイン,パスワード -Keywords[km]=SMB,SAMBA,ម៉ាស៊ីន​ភ្ញៀវ SMB,បណ្ដាញ Windows,LAN,បណ្ដាញ,កុំព្យូទ័រ​ជិត​ខាង,ម៉ាស៊ីន​បម្រើ,ផ្សាយ,WINS,រួម,ចូល,ពាក្យ​សម្ងាត់ -Keywords[lo]=SMB,SAMBA,ໄຄລເອນ SMB,ລະບົບເຄືອຂ່າຍຂອງວິນໂດສ໌,ແລນ, ລະບົບເຄືອຂ່າຍ,ລະແວກດງວກັນ,ເຊີເວີ,ບອດຄາສ, WINS,ຊັບພະຍາກອນໃຊ້ຮ່ວມກັນ,ລັອກອິນ,ລະຫັດຜ່ານ -Keywords[lt]=SMB,SAMBA,SMB client,SMB klientas,Windows network,Windows tinklas,LAN,vietinis tinklas,Network,tinklas,neighborhood,kaiminystė,Server,serveris,Broadcast,transliacija,WINS,Share,bendro naudojimo,bendro naudojimo diskas,Login,Passwords -Keywords[lv]=SMB,SAMBA,SMB klients,Windows tīkls,LAN,Tīkls,kaimiņš,Serveris,Pārraide,WINS,Šāre,Pieteikšanās,Paroles -Keywords[mk]=SMB,SAMBA,SMB client,Windows network,LAN,Network,neighborhood,Server,Broadcast,WINS,Share,Login,Passwords,клиент,Windows мрежа,Мрежа, соседство,Сервер,Емитување,WINS,Заеднички,Најава,Лозинки -Keywords[mn]=SMB,Samba,SMB-Client,Виндовс-Сүлжээ,LAN,Сүлжээ, Сүлжээний орчин,Орчин,сервер,Цацалт,WINS,Share,Login,Нууц үгс -Keywords[nb]=SMB,SAMBA,SMB-klient,Windows-nettverk,LAN,Nettverk,nabolag,tjener,kringkasting,WINS,deling,innlogging,passord,ressurs -Keywords[nds]=SMB,SAMBA,SMB-Client,Windowsnettwark,LAN,Nettwark,Naverschap,Server,Broadcast,Rundroop,WINS,deelt Ressource,anmellen,Passwöör -Keywords[ne]=SMB, SAMBA, SMB क्लाइन्ट,सञ्झ्याल सञ्जाल, LAN, सञ्जाल, छिमेकी, सर्भर, प्रसारण, WINS, बाडँफाट, लगइन, पासवर्ड -Keywords[nl]=SMB,SAMBA,SMB-client,Windows-netwerk,LAN,netwerk,omgeving,neighborhood,server,broadcast,WINS,share,inloggen,login,aanmelden,wachtwoorden,netwerk -Keywords[nn]=SMB,SAMBA,SMB-klient,Windows-nettverk,LAN,nettverk,nabolag,grannelag,tenar,kringkasting,WINS,deling,innlogging,passord,ressurs -Keywords[nso]=SMB,SAMBA,Moreki wa SMB,Kgokagano ya di-Window,LAN,Kgokagano,boagisane,Moabi,Kgaso,WINS,Kabagano,Tseno,Mantsuphetiso -Keywords[pa]=SMB,SAMBA,SMB ਕਲਾਂਇਟ,Windows network,LAN,ਨੈਟਵਰਕ,ਗੁਆਂਢੀ, ਸਰਵਰ,Broadcast,WINS,ਸਾਂਝ, ਲਾਗਿੰਨ, ਗੁਪਤ-ਕੋਡ -Keywords[pl]=SMB,SAMBA,klient SMB,sieć Windows,LAN,sieć lokalna,otoczenie sieciowe,serwer,rozgłoszenie,WINS,zasób,logowanie,hasła -Keywords[pt]=SMB,SAMBA,cliente SMB,rede Windows,Windows,LAN,rede,vizinhança de rede,servidor,difusão,WINS,partilha,login,senhas -Keywords[pt_BR]=SMB,SAMBA,cliente SMB,rede Windows,LAN,rede,vizinhança,ambiente de rede,servidor,difusão,WINS,Volume,compartilhamento,login,senhas -Keywords[ro]=SMB,SAMBA,client SMB,Windows,LAN,rețea,vecinătate,server,difuziune,WINS,partajare,logare,parole -Keywords[rw]=SMB,SAMBA,Umukiriya SMB, Urusobemiyoboro Windows,LAN,Urusobemiyoboro,Seriveri,Isakazamakuru,WINS,Isangira,Ifashayinjira,Amagambobanga -Keywords[se]=SMB,SAMBA,SMB-klienta,Windows-fierpmádat,LAN,fierpmádat,WINS,sisačáliheapmi,beassansánit -Keywords[sk]=SMB,SAMBA,SMB klient,sieť Windows,LAN,Sieť,WINS,broadcast,server,login,prihlásenie,heslá,share -Keywords[sl]=SMB,SAMBA,odjemnik SMB,omrežje Windows,LAN,omrežje,omrežna soseščina,oddajanje,WINS,prijava,gesla -Keywords[sr]=SMB,SAMBA,SMB client,Windows network,LAN,Network,neighborhood,Сервер,Broadcast,WINS,Share,Login,Passwords,Мрежа,комшилук,дељење,пријава,лозинке -Keywords[sr@Latn]=SMB,SAMBA,SMB client,Windows network,LAN,Network,neighborhood,Server,Broadcast,WINS,Share,Login,Passwords,Mreža,komšiluk,deljenje,prijava,lozinke -Keywords[sv]=SMB,SAMBA,SMB-klient,Windowsnätverk,LAN,Nätverk,omgivning,Server,Broadcast,WINS,Utdelning,Lösenord,Inloggning -Keywords[ta]=SMB,SAMBA,SMB உறுப்பினர்,சாளரங்கள் வலைதளம்,LAN,வலைதளம்,பல வலைதளங்கள்,சேவகன்,ஒலிப்பரப்புதல்,WINS,பங்கு,உள்நுழை,கடவுச்சொற்கள் -Keywords[th]=SMB,SAMBA,ไคลเอนต์ SMB,ระบบเครือข่ายของวินโดว์ส,แลน,ระบบเครือข่าย,ที่ใกล้เคียง,เซิร์ฟเวอร์,ถ่ายทอด,WINS,ทรัพยากรใช้ร่วมกัน,ล็อกอิน,รหัสผ่าน -Keywords[tr]=SMB,SAMBA,SMB istemci,Windows ağı,LAN,Ağ,komşular,Giriş,Parola,Paylaşım,WINS,yayın -Keywords[uk]=клієнт SMB,мережа Windows,ЛОМ,LAN,мережа,оточення,SMB,SAMBA,сервер,мережа Windows,ЛОМ,LAN,мережа,оточення,SMB,SAMBA,сервер,трансляція,WINS,спільний ресурс,реєстрація,паролі -Keywords[uz]=SMB,SAMBA,SMB klienti,Windows tarmogʻi,LAN,Tarmoq,tarmoq muhiti,Server,Broadcast,WINS,Share,Foydalanuvchi,Maxfiy soʻzlar -Keywords[uz@cyrillic]=SMB,SAMBA,SMB клиенти,Windows тармоғи,LAN,Тармоқ,тармоқ муҳити,Сервер,Broadcast,WINS,Share,Фойдаланувчи,Махфий сўзлар -Keywords[ven]=SMB,SAMBA,vhashumisani na SMB,Vhukwamani ha Dziwindo,LAN,Vhukwamani,vhadzulatsini,Siva,Hasha,WINS,U kovhekana,U loga,Dziphasiwede -Keywords[vi]=SMB,SAMBA,SMB khách,Mạng Windows,LAN,Mạng,hàng xóm,Máy chủ,Broadcast,WINS,Chia xẻ,Đăng nhập,Mật khẩu -Keywords[wa]=SMB,SAMBA,cliyint SMB,rantoele Windows,LAN,Rantoele,vijhnaedje,Sierveu,Broadcast,WINS,pårtaedje,pårtaedjî,Login,Passwords,sicrets,mots di passe -Keywords[xh]=SMB,SAMBA,umxhasi we SMB,umsebenzi womnatha we Window,LAN, Umsebenzi womnatha,ubumelwane,Umncedisi,Usasazo,WINS,Yahlula,Igama elithile, Amagama agqithisiweyo -Keywords[zh_CN]=SMB,SAMBA,SMB client,Windows network,LAN,Network,neighborhood,Server,Broadcast,WINS,Share,Login,Passwords,局域网,网络,邻居,服务器,广播,共享,登录,密码 -Keywords[zh_TW]=SMB,SAMBA,SMB client,Windows network,LAN,Network,neighborhood,Server,Broadcast,WINS,Share,Login,Passwords,客戶端程式,Windows 網路,區域網路,網路,網路芳鄰,伺服器,廣播,共享,登入,密碼 -Keywords[zu]=SMB,SAMBA,umxhasi we-SMB,uxhumano olusakazekile lwama-window,LAN,Uxhumano olusakazekile,isizinda,Umlekeleli,Sakaza,WINS, ukwabelana,Ukungena ngaphakathi,Amagama-okudlula - diff --git a/kcontrol/kio/smbrodlg.cpp b/kcontrol/kio/smbrodlg.cpp deleted file mode 100644 index 9962555e7..000000000 --- a/kcontrol/kio/smbrodlg.cpp +++ /dev/null @@ -1,191 +0,0 @@ -/* This file is part of the KDE project - - Copyright (C) 2000 Alexander Neundorf - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -#include "smbrodlg.h" -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - - -SMBRoOptions::SMBRoOptions(TQWidget *parent) - : TDECModule(parent, "kcmkio") -{ - TQGridLayout *layout = new TQGridLayout(this,2,-1,KDialog::marginHint(), - KDialog::spacingHint()); - TQLabel *label=new TQLabel(i18n("This is the configuration for the samba client only, not the server."),this); - layout->addMultiCellWidget(label,0,0,0,1); - - m_userLe=new TQLineEdit(this); - label=new TQLabel(m_userLe,i18n("Default user name:"),this); - layout->addWidget(label,1,0); - layout->addWidget(m_userLe,1,1); - - m_passwordLe=new TQLineEdit(this); - m_passwordLe->setEchoMode(TQLineEdit::Password); - label=new TQLabel(m_passwordLe,i18n("Default password:"),this); - layout->addWidget(label,2,0); - layout->addWidget(m_passwordLe,2,1); - -/* m_workgroupLe=new TQLineEdit(this); - label=new TQLabel(m_workgroupLe,i18n("Workgroup:"),this); - layout->addWidget(label,3,0); - layout->addWidget(m_workgroupLe,3,1); - - m_showHiddenShares=new TQCheckBox(i18n("Show hidden shares"),this); - layout->addMultiCellWidget(m_showHiddenShares,4,4,0,1); - - m_encodingList = new KComboBox( false, this ); - TQStringList _strList = TDEGlobal::charsets()->availableEncodingNames(); - m_encodingList->insertStringList( _strList ); - - label = new TQLabel( m_encodingList, i18n( "MS Windows encoding:" ), this ); - layout->addWidget( label, 3, 0 ); - layout->addWidget( m_encodingList, 3, 1 ); - */ - - layout->addWidget(new TQWidget(this),4,0); - -// connect(m_showHiddenShares, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(changed())); - connect(m_userLe, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(changed())); - connect(m_passwordLe, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(changed())); -// connect(m_workgroupLe, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(changed())); -// connect( m_encodingList, TQT_SIGNAL( activated( const TQString & ) ), this , TQT_SLOT( changed() ) ); - - layout->setRowStretch(4, 1); - - // finaly read the options - load(); -} - -SMBRoOptions::~SMBRoOptions() -{ -} - -void SMBRoOptions::load() -{ - TDEConfig *cfg = new TDEConfig("tdeioslaverc"); - - TQString tmp; - cfg->setGroup( "Browser Settings/SMBro" ); - m_userLe->setText(cfg->readEntry("User")); -// m_workgroupLe->setText(cfg->readEntry("Workgroup")); -// m_showHiddenShares->setChecked(cfg->readBoolEntry("ShowHiddenShares",false)); - -// TQStringList _strList = TDEGlobal::charsets()->availableEncodingNames(); -// TQString m_encoding = TQTextCodec::codecForLocale()->name(); -// m_encodingList->setCurrentItem( _strList.findIndex( cfg->readEntry( "Encoding", m_encoding.lower() ) ) ); - - // unscramble - TQString scrambled = cfg->readEntry( "Password" ); - TQString password = ""; - for (uint i=0; isetText(password); - - delete cfg; -} - -void SMBRoOptions::save() -{ - TDEConfig *cfg = new TDEConfig("tdeioslaverc"); - - cfg->setGroup( "Browser Settings/SMBro" ); - cfg->writeEntry( "User", m_userLe->text()); -// cfg->writeEntry( "Workgroup", m_workgroupLe->text()); -// cfg->writeEntry( "ShowHiddenShares", m_showHiddenShares->isChecked()); -// cfg->writeEntry( "Encoding", m_encodingList->currentText() ); - - //taken from Nicola Brodu's smb ioslave - //it's not really secure, but at - //least better than storing the plain password - TQString password(m_passwordLe->text()); - TQString scrambled; - for (uint i=0; i> 10; - unsigned int a2 = (num & 0x3E0) >> 5; - unsigned int a3 = (num & 0x1F); - scrambled += (char)(a1+'0'); - scrambled += (char)(a2+'A'); - scrambled += (char)(a3+'0'); - } - cfg->writeEntry( "Password", scrambled); - - delete cfg; -} - -void SMBRoOptions::defaults() -{ - m_userLe->setText(""); - m_passwordLe->setText(""); -// m_workgroupLe->setText(""); -// m_showHiddenShares->setChecked(false); -} - -void SMBRoOptions::changed() -{ - emit TDECModule::changed(true); -} - -TQString SMBRoOptions::quickHelp() const -{ - return i18n("

    Windows Shares

    Konqueror is able to access shared " - "windows filesystems if properly configured. If there is a " - "specific computer from which you want to browse, fill in " - "the Browse server field. This is mandatory if you " - "do not run Samba locally. The Broadcast address " - "and WINS address fields will also be available, if you " - "use the native code, or the location of the 'smb.conf' file " - "from which the options are read, when using Samba. In any case, the " - "broadcast address (interfaces in smb.conf) must be set up if it " - "is guessed incorrectly or you have multiple cards. A WINS server " - "usually improves performance, and reduces the network load a lot.

    " - "The bindings are used to assign a default user for a given server, " - "possibly with the corresponding password, or for accessing specific " - "shares. If you choose to, new bindings will be created for logins and " - "shares accessed during browsing. You can edit all of them from here. " - "Passwords will be stored locally, and scrambled so as to render them " - "unreadable to the human eye. For security reasons, you may not want to " - "do that, as entries with passwords are clearly indicated as such.

    "); -} - -#include "smbrodlg.moc" diff --git a/kcontrol/kio/smbrodlg.h b/kcontrol/kio/smbrodlg.h deleted file mode 100644 index 1c9d0347d..000000000 --- a/kcontrol/kio/smbrodlg.h +++ /dev/null @@ -1,55 +0,0 @@ -/* This file is part of the KDE project - - Copyright (C) 2000, 2005 Alexander Neundorf - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#ifndef __SMBRODLG_H -#define __SMBRODLG_H - -#include -#include -#include - -#include - -class KComboBox; - -class SMBRoOptions : public TDECModule -{ - Q_OBJECT - public: - SMBRoOptions(TQWidget *parent = 0); - ~SMBRoOptions(); - - virtual void load(); - virtual void save(); - virtual void defaults(); - TQString quickHelp() const; - - private slots: - void changed(); - - private: - TQLineEdit *m_userLe; - TQLineEdit *m_passwordLe; -// TQLineEdit *m_workgroupLe; //currently unused, Alex -// TQCheckBox *m_showHiddenShares; //currently unused, Alex -// KComboBox *m_encodingList; //currently unused -}; - -#endif diff --git a/kcontrol/kio/socks.cpp b/kcontrol/kio/socks.cpp deleted file mode 100644 index 50c5f8003..000000000 --- a/kcontrol/kio/socks.cpp +++ /dev/null @@ -1,279 +0,0 @@ -/** - * socks.cpp - * - * Copyright (c) 2001 George Staikos - * Copyright (c) 2001 Daniel Molkentin (designer port) - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - - -#include -#include -#include -#include - -#include -#include -#include -#include -#include - -#include "socks.h" -#include - -KSocksConfig::KSocksConfig(TQWidget *parent) - : TDECModule(parent, "kcmkio") -{ - - TDEAboutData *about = - new TDEAboutData(I18N_NOOP("kcmsocks"), I18N_NOOP("TDE SOCKS Control Module"), - 0, 0, TDEAboutData::License_GPL, - I18N_NOOP("(c) 2001 George Staikos")); - - about->addAuthor("George Staikos", 0, "staikos@kde.org"); - - setAboutData( about ); - - - TQVBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint()); - base = new SocksBase(this); - layout->add(base); - - connect(base->_c_enableSocks, TQT_SIGNAL(clicked()), this, TQT_SLOT(enableChanged())); - connect(base->bg, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(methodChanged(int))); - - // The custom library - connect(base->_c_customPath, TQT_SIGNAL(openFileDialog(KURLRequester *)), this, TQT_SLOT(chooseCustomLib(KURLRequester *))); - connect(base->_c_customPath, TQT_SIGNAL(textChanged(const TQString&)), - this, TQT_SLOT(customPathChanged(const TQString&))); - - // Additional libpaths - connect(base->_c_newPath, TQT_SIGNAL(openFileDialog(KURLRequester *)), this, TQT_SLOT(chooseCustomLib(KURLRequester *))); - connect(base->_c_newPath, TQT_SIGNAL(returnPressed(const TQString&)), - this, TQT_SLOT(addThisLibrary(const TQString&))); - connect(base->_c_newPath, TQT_SIGNAL(textChanged(const TQString&)), - this, TQT_SLOT(libTextChanged(const TQString&))); - connect(base->_c_add, TQT_SIGNAL(clicked()), this, TQT_SLOT(addLibrary())); - connect(base->_c_remove, TQT_SIGNAL(clicked()), this, TQT_SLOT(removeLibrary())); - connect(base->_c_libs, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(libSelection())); - - // The "Test" button - connect(base->_c_test, TQT_SIGNAL(clicked()), this, TQT_SLOT(testClicked())); - - // The config backend - load(); -} - -KSocksConfig::~KSocksConfig() -{ -} - -void KSocksConfig::configChanged() -{ - emit changed(true); -} - -void KSocksConfig::enableChanged() -{ - KMessageBox::information(NULL, - i18n("These changes will only apply to newly " - "started applications."), - i18n("SOCKS Support"), - "SOCKSdontshowagain"); - emit changed(true); -} - - -void KSocksConfig::methodChanged(int id) -{ - if (id == 4) { - base->_c_customLabel->setEnabled(true); - base->_c_customPath->setEnabled(true); - } else { - base->_c_customLabel->setEnabled(false); - base->_c_customPath->setEnabled(false); - } - emit changed(true); -} - - -void KSocksConfig::customPathChanged(const TQString&) -{ - emit changed(true); -} - - -void KSocksConfig::testClicked() -{ - save(); // we have to save before we can test! Perhaps - // it would be best to warn, though. - - if (KSocks::self()->hasSocks()) { - KMessageBox::information(NULL, - i18n("Success: SOCKS was found and initialized."), - i18n("SOCKS Support")); - // Eventually we could actually attempt to connect to a site here. - } else { - KMessageBox::information(NULL, - i18n("SOCKS could not be loaded."), - i18n("SOCKS Support")); - } - - KSocks::self()->die(); - -} - - -void KSocksConfig::chooseCustomLib(KURLRequester * url) -{ - url->setMode( KFile::Directory ); -/* TQString newFile = KFileDialog::getOpenFileName(); - if (newFile.length() > 0) { - base->_c_customPath->setURL(newFile); - emit changed(true); - }*/ -} - - - -void KSocksConfig::libTextChanged(const TQString& lib) -{ - if (lib.length() > 0) - base-> _c_add->setEnabled(true); - else base->_c_add->setEnabled(false); -} - - -void KSocksConfig::addThisLibrary(const TQString& lib) -{ - if (lib.length() > 0) { - new TQListViewItem(base->_c_libs, lib); - base->_c_newPath->clear(); - base->_c_add->setEnabled(false); - base->_c_newPath->setFocus(); - emit changed(true); - } -} - - -void KSocksConfig::addLibrary() -{ - addThisLibrary(base->_c_newPath->url()); -} - - -void KSocksConfig::removeLibrary() -{ - TQListViewItem *thisitem = base->_c_libs->selectedItem(); - base->_c_libs->takeItem(thisitem); - delete thisitem; - base->_c_libs->clearSelection(); - base->_c_remove->setEnabled(false); - emit changed(true); -} - - -void KSocksConfig::libSelection() -{ - base->_c_remove->setEnabled(true); -} - - -void KSocksConfig::load() -{ - TDEConfigGroup config(kapp->config(), "Socks"); - base->_c_enableSocks->setChecked(config.readBoolEntry("SOCKS_enable", false)); - int id = config.readNumEntry("SOCKS_method", 1); - base->bg->setButton(id); - if (id == 4) { - base->_c_customLabel->setEnabled(true); - base->_c_customPath->setEnabled(true); - } else { - base->_c_customLabel->setEnabled(false); - base->_c_customPath->setEnabled(false); - } - base->_c_customPath->setURL(config.readPathEntry("SOCKS_lib")); - - TQListViewItem *thisitem; - while ((thisitem = base->_c_libs->firstChild())) { - base->_c_libs->takeItem(thisitem); - delete thisitem; - } - - TQStringList libs = config.readPathListEntry("SOCKS_lib_path"); - for(TQStringList::Iterator it = libs.begin(); - it != libs.end(); - ++it ) { - new TQListViewItem(base->_c_libs, *it); - } - base->_c_libs->clearSelection(); - base->_c_remove->setEnabled(false); - base->_c_add->setEnabled(false); - base->_c_newPath->clear(); - emit changed(false); -} - -void KSocksConfig::save() -{ - TDEConfigGroup config(kapp->config(), "Socks"); - config.writeEntry("SOCKS_enable",base-> _c_enableSocks->isChecked(), true, true); - config.writeEntry("SOCKS_method", base->bg->id(base->bg->selected()), true, true); - config.writePathEntry("SOCKS_lib", base->_c_customPath->url(), true, true); - TQListViewItem *thisitem = base->_c_libs->firstChild(); - - TQStringList libs; - while (thisitem) { - libs << thisitem->text(0); - thisitem = thisitem->itemBelow(); - } - config.writePathEntry("SOCKS_lib_path", libs, ',', true, true); - - kapp->config()->sync(); - - emit changed(false); -} - -void KSocksConfig::defaults() -{ - - base->_c_enableSocks->setChecked(false); - base->bg->setButton(1); - base->_c_customLabel->setEnabled(false); - base->_c_customPath->setEnabled(false); - base->_c_customPath->setURL(""); - TQListViewItem *thisitem; - while ((thisitem = base->_c_libs->firstChild())) { - base->_c_libs->takeItem(thisitem); - delete thisitem; - } - base->_c_newPath->clear(); - base->_c_add->setEnabled(false); - base->_c_remove->setEnabled(false); - emit changed(true); -} - -TQString KSocksConfig::quickHelp() const -{ - return i18n("

    SOCKS

    This module allows you to configure TDE support" - " for a SOCKS server or proxy.

    SOCKS is a protocol to traverse firewalls" - " as described in RFC 1928." - "

    If you have no idea what this is and if your system administrator does not" - " tell you to use it, leave it disabled.

    "); -} - - -#include "socks.moc" - diff --git a/kcontrol/kio/socks.h b/kcontrol/kio/socks.h deleted file mode 100644 index f5c5cb2a4..000000000 --- a/kcontrol/kio/socks.h +++ /dev/null @@ -1,73 +0,0 @@ -/** - * socks.h - * - * Copyright (c) 2001 George Staikos - * Copyright (c) 2001 Daniel Molkentin (designer port) - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef _SOCKS_H -#define _SOCKS_H - -#ifdef HAVE_CONFIG_H -#include -#endif - -#include - -#include "socksbase.h" - - -class TQVButtonGroup; - -class KSocksConfig : public TDECModule -{ - Q_OBJECT -public: - KSocksConfig(TQWidget *parent); - virtual ~KSocksConfig(); - - SocksBase *base; - - void load(); - void save(); - void defaults(); - - int buttons(); - TQString quickHelp() const; - -public slots: - void configChanged(); - -private slots: - void enableChanged(); - void methodChanged(int id); - void testClicked(); - void chooseCustomLib(KURLRequester *url); - void customPathChanged(const TQString&); - void addLibrary(); - void libTextChanged(const TQString& lib); - void addThisLibrary(const TQString& lib); - void removeLibrary(); - void libSelection(); - -private: - - bool _socksEnabled; - int _useWhat; -}; - -#endif diff --git a/kcontrol/kio/socks.upd b/kcontrol/kio/socks.upd deleted file mode 100644 index 3b8bfd7f9..000000000 --- a/kcontrol/kio/socks.upd +++ /dev/null @@ -1,8 +0,0 @@ -# Hello world -Id=trinity.0/r1 -File=ksocksrc,kdeglobals -Group=,Socks -Key=Custom Lib,SOCKS_lib -Key=Enable SOCKS,SOCKS_enable -Key=Lib Path,SOCKS_lib_path -Key=SOCKS Method,SOCKS_method diff --git a/kcontrol/kio/socksbase.ui b/kcontrol/kio/socksbase.ui deleted file mode 100644 index bfda8e776..000000000 --- a/kcontrol/kio/socksbase.ui +++ /dev/null @@ -1,335 +0,0 @@ - -SocksBase - - - SocksBase - - - - 0 - 0 - 455 - 402 - - - - SOCKS - - - - - - - - unnamed - - - 0 - - - - _c_enableSocks - - - &Enable SOCKS support - - - Check this to enable SOCKS4 and SOCKS5 support in TDE applications and I/O subsystems. - - - - - bg - - - false - - - SOCKS Implementation - - - - unnamed - - - - _c_detect - - - A&uto detect - - - 1 - - - If you select Autodetect, then KDE will automatically search for an implementation of SOCKS on your computer. - - - - - _c_NEC - - - &NEC SOCKS - - - 2 - - - This will force KDE to use NEC SOCKS if it can be found. - - - - - _c_custom - - - Use &custom library - - - 4 - - - Select custom if you wish to use an unlisted SOCKS library. Please note that this may not always work as it depends on the API of the library which you specify (below). - - - - - Layout6 - - - - unnamed - - - - _c_customLabel - - - - 4 - 1 - 0 - 0 - - - - &Path: - - - 20 - - - _c_customPath - - - - - _c_customPath - - - - 0 - 20 - - - - Enter the path to an unsupported SOCKS library. - - - - - - - _c_Dante - - - &Dante - - - 3 - - - This will force KDE to use Dante if it can be found. - - - - - - - _c_addPaths - - - false - - - - 1 - 1 - 0 - 0 - - - - Additional Library Search Paths - - - Here you can specify additional directories to search for the SOCKS libraries. /usr/lib, /usr/local/lib, /usr/local/socks5/lib and /opt/socks5/lib are already searched by default. - - - - unnamed - - - - - Path - - - true - - - true - - - - _c_libs - - - - 7 - 7 - 0 - 0 - - - - This is the list of additional paths that will be searched. - - - - - _c_newPath - - - - 0 - 25 - - - - - - Layout1 - - - - unnamed - - - - Spacer1 - - - Horizontal - - - MinimumExpanding - - - - 20 - 20 - - - - - - _c_add - - - &Add - - - - - _c_remove - - - &Remove - - - - - - - - - Layout2 - - - - unnamed - - - - Spacer2 - - - Horizontal - - - Expanding - - - - 20 - 0 - - - - - - _c_test - - - false - - - &Test - - - Click here to test SOCKS support. - - - - - - - - - _c_enableSocks - toggled(bool) - bg - setEnabled(bool) - - - _c_enableSocks - toggled(bool) - _c_addPaths - setEnabled(bool) - - - _c_enableSocks - toggled(bool) - _c_test - setEnabled(bool) - - - - kurlrequester.h - kdialog.h - - - - diff --git a/kcontrol/kio/tdeioslave.kcfg b/kcontrol/kio/tdeioslave.kcfg deleted file mode 100644 index 4dcce7191..000000000 --- a/kcontrol/kio/tdeioslave.kcfg +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - false - - - 10 - 2 - 3600 - - - 20 - 2 - 3600 - - - 15 - 2 - 3600 - - - 600 - 2 - 3600 - - - - - - - - - - - - - - - diff --git a/kcontrol/kio/tdeioslave.kcfgc b/kcontrol/kio/tdeioslave.kcfgc deleted file mode 100644 index 7b5ca780f..000000000 --- a/kcontrol/kio/tdeioslave.kcfgc +++ /dev/null @@ -1,5 +0,0 @@ -File=kio_ftprc.kcfg -ClassName=KioFtp -Singleton=true -Mutators=true - diff --git a/kcontrol/kio/uagentproviderdlg.cpp b/kcontrol/kio/uagentproviderdlg.cpp deleted file mode 100644 index 9e945948d..000000000 --- a/kcontrol/kio/uagentproviderdlg.cpp +++ /dev/null @@ -1,149 +0,0 @@ -/** - * Copyright (c) 2001 Dawit Alemayehu - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include - -#include "fakeuaprovider.h" -#include "uagentproviderdlg.h" -#include "uagentproviderdlg_ui.h" - -UALineEdit::UALineEdit( TQWidget *parent, const char *name ) - :KLineEdit( parent, name ) -{ - // For now do not accept any drops since they might contain - // characters we do not accept. - // TODO: Re-implement ::dropEvent to allow acceptable formats... - setAcceptDrops( false ); -} - -void UALineEdit::keyPressEvent( TQKeyEvent* e ) -{ - int key = e->key(); - TQString keycode = e->text(); - if ( (key >= Qt::Key_Escape && key <= Qt::Key_Help) || key == Qt::Key_Period || - (cursorPosition() > 0 && key == Qt::Key_Minus) || - (!keycode.isEmpty() && keycode.unicode()->isLetterOrNumber()) ) - { - KLineEdit::keyPressEvent(e); - return; - } - e->accept(); -} - -UAProviderDlg::UAProviderDlg( const TQString& caption, TQWidget *parent, - FakeUASProvider* provider, const char *name ) - :KDialog(parent, name, true), m_provider(provider) -{ - setCaption ( caption ); - - TQVBoxLayout* mainLayout = new TQVBoxLayout(this, 0, 0); - - dlg = new UAProviderDlgUI (this); - mainLayout->addWidget(dlg); - //dlg->leIdentity->setEnableSqueezedText( true ); - - if (!m_provider) - { - setEnabled( false ); - return; - } - - init(); -} - -UAProviderDlg::~UAProviderDlg() -{ -} - -void UAProviderDlg::init() -{ - connect( dlg->pbOk, TQT_SIGNAL(clicked()), TQT_SLOT(accept()) ); - connect( dlg->pbCancel, TQT_SIGNAL(clicked()), TQT_SLOT(reject()) ); - - connect( dlg->leSite, TQT_SIGNAL(textChanged(const TQString&)), - TQT_SLOT(slotTextChanged( const TQString&)) ); - - connect( dlg->cbAlias, TQT_SIGNAL(activated(const TQString&)), - TQT_SLOT(slotActivated(const TQString&)) ); - - dlg->cbAlias->clear(); - dlg->cbAlias->insertStringList( m_provider->userAgentAliasList() ); - dlg->cbAlias->insertItem( "", 0 ); - dlg->cbAlias->listBox()->sort(); - - dlg->leSite->setFocus(); -} - -void UAProviderDlg::slotActivated( const TQString& text ) -{ - if ( text.isEmpty() ) - dlg->leIdentity->setText( "" ); - else - dlg->leIdentity->setText( m_provider->agentStr(text) ); - - dlg->pbOk->setEnabled( (!dlg->leSite->text().isEmpty() && !text.isEmpty()) ); -} - -void UAProviderDlg::slotTextChanged( const TQString& text ) -{ - dlg->pbOk->setEnabled( (!text.isEmpty() && !dlg->cbAlias->currentText().isEmpty()) ); -} - -void UAProviderDlg::setSiteName( const TQString& text ) -{ - dlg->leSite->setText( text ); -} - -void UAProviderDlg::setIdentity( const TQString& text ) -{ - int id = dlg->cbAlias->listBox()->index( dlg->cbAlias->listBox()->findItem(text) ); - dlg->cbAlias->setCurrentItem( id ); - slotActivated( dlg->cbAlias->currentText() ); - if ( !dlg->leSite->isEnabled() ) - dlg->cbAlias->setFocus(); -} - -TQString UAProviderDlg::siteName() -{ - TQString site_name=dlg->leSite->text().lower(); - site_name = site_name.remove( "https://" ); - site_name = site_name.remove( "http://" ); - return site_name; -} - -TQString UAProviderDlg::identity() -{ - return dlg->cbAlias->currentText(); -} - -TQString UAProviderDlg::alias() -{ - return dlg->leIdentity->text(); -} - -#include "uagentproviderdlg.moc" diff --git a/kcontrol/kio/uagentproviderdlg.h b/kcontrol/kio/uagentproviderdlg.h deleted file mode 100644 index 3e60edb54..000000000 --- a/kcontrol/kio/uagentproviderdlg.h +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Copyright (c) 2001 Dawit Alemayehu - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef __UAPROVIDERDLG_H___ -#define __UAPROVIDERDLG_H___ - - -#include -#include - - -class FakeUASProvider; -class UAProviderDlgUI; - -class UALineEdit : public KLineEdit -{ - Q_OBJECT - -public: - UALineEdit( TQWidget *parent, const char *name=0 ); - -protected: - virtual void keyPressEvent( TQKeyEvent * ); -}; - -class UAProviderDlg : public KDialog -{ - Q_OBJECT - -public: - UAProviderDlg( const TQString& caption, TQWidget *parent = 0, - FakeUASProvider* provider = 0, const char *name = 0 ); - ~UAProviderDlg(); - - void setSiteName( const TQString& ); - void setIdentity( const TQString& ); - - TQString siteName(); - TQString identity(); - TQString alias(); - -protected slots: - void slotActivated( const TQString& ); - void slotTextChanged( const TQString& ); - -protected: - void init(); - -private: - FakeUASProvider* m_provider; - UAProviderDlgUI* dlg; -}; -#endif diff --git a/kcontrol/kio/uagentproviderdlg_ui.ui b/kcontrol/kio/uagentproviderdlg_ui.ui deleted file mode 100644 index 2082e3db4..000000000 --- a/kcontrol/kio/uagentproviderdlg_ui.ui +++ /dev/null @@ -1,207 +0,0 @@ - -UAProviderDlgUI - - - UAProviderDlgUI - - - - 0 - 0 - 298 - 240 - - - - - 1 - 5 - 0 - 0 - - - - - unnamed - - - - lbSite - - - &When browsing the following site: - - - leSite - - - <qt> -Enter the site or domain name where a fake browser identification should be used.<p> -<u>NOTE:</u> Wildcard syntax such as \"*,?\" is NOT allowed: instead, use the top level address of a site to make generic matches; for example, if you want all KDE sites to receive a fake browser identification, you would enter <code>.kde.org</code> - the fake identity would then be sent to any KDE site that ends with <code>.kde.org</code>. -</qt> - - - - - leSite - - - <qt> -Enter the site or domain name where a fake browser identification should be used.<p> -<u>NOTE:</u> Wildcard syntax such as \"*,?\" is NOT allowed: instead, use the top level address of a site to make generic matches; for example, if you want all KDE sites to receive a fake browser identification, you would enter <code>.kde.org</code> - the fake identity would then be sent to any KDE site that ends with <code>.kde.org</code>. -</qt> - - - - - lbAlias - - - &Use the following identification: - - - leIdentity - - - <qt> -Select the browser identification to use whenever contacting the site you specified above. -</qt> - - - - - cbAlias - - - <qt> -Select the browser identification to use whenever contacting the site you specified above. -</qt> - - - - - lbIdentity - - - Real identification: - - - leIdentity - - - <qt> -The actual browser identification text that will be sent to the remote machine. -</qt> - - - - - leIdentity - - - true - - - <qt> -The actual browser identification text that will be sent to the remote machine. -</qt> - - - - - spacer3 - - - Vertical - - - MinimumExpanding - - - - 21 - 16 - - - - - - layout3 - - - - unnamed - - - - spacer2 - - - Horizontal - - - MinimumExpanding - - - - 29 - 20 - - - - - - pbOk - - - false - - - &OK - - - - - pbCancel - - - &Cancel - - - - - - - line1 - - - - 3 - 0 - 0 - 0 - - - - HLine - - - Sunken - - - Horizontal - - - - - - kdialog.h - - - - - klineedit.h - kcombobox.h - klineedit.h - - diff --git a/kcontrol/kio/uasprovider.desktop b/kcontrol/kio/uasprovider.desktop deleted file mode 100644 index f6f6feb24..000000000 --- a/kcontrol/kio/uasprovider.desktop +++ /dev/null @@ -1,98 +0,0 @@ -[Desktop Entry] -Type=ServiceType -X-TDE-ServiceType=UserAgentStrings -Comment=UserAgent Strings -Comment[af]=Gebruiker agent Stringe -Comment[ar]=سلاسل UserAgent -Comment[az]=İstifadəçi Vasitəsi Kəliməsi -Comment[be]=Радкі ідэнтыфікацыі вандроўніка UserAgent -Comment[bg]=Идентификация на браузъра -Comment[bs]=UserAgent stringovi -Comment[ca]=Regles de l'agent d'usuari -Comment[cs]=Řetězce uživatelského agenta -Comment[csb]=Miona "Programë Brëkòwnika" -Comment[cy]=Llinynnau Asiant y Defnyddiwr -Comment[da]=Brugeragent-strenge -Comment[de]=Browserkennungen -Comment[el]=Συμβολοσειρές πράκτορα χρήστη -Comment[eo]=Uzantoagento-frazoj -Comment[es]=Cadenas del Agente de Usuario -Comment[et]=Veebilehitseja identifikaatorid -Comment[eu]=Erabiltzaile agentearen kateak -Comment[fa]=رشته‌های عامل‌ کاربر -Comment[fi]=Käyttäjäagenttimerkkijonot -Comment[fr]=Chaînes d'identité du navigateur -Comment[fy]=regels foar brûkersagint -Comment[ga]=Teaghráin UserAgent -Comment[gl]=Cadeas do Axente de Usuario -Comment[he]=מחרוזות זיהוי דפדפן -Comment[hi]=यूज़रएजेंट स्ट्रिंग्स -Comment[hr]=Identifikacijske (UA - UserAgent) poruke -Comment[hu]=Böngészőazonosítók -Comment[is]=UserAgent strengir -Comment[it]=Stringhe User Agent -Comment[ja]=UserAgent 文字列 -Comment[ka]=Строки UserAgent -Comment[kk]=UserAgent жолдары -Comment[km]=ខ្សែ​អក្សរ​ភ្នាក់ងារ​អ្នក​ប្រើ -Comment[ko]=UserAgent 문자열 -Comment[lo]=ຂໍ້ຄວາມສະແດງຕົວເຄື່ອງມືຂອງຜູ້ໃຊ້ -Comment[lt]=Vartojo agento eilutės -Comment[lv]=LietotājaAģenta Rinda -Comment[mk]=UserAgent низи -Comment[mn]=UserAgent-Таних тэмдэг -Comment[ms]=Rentetan Ejen Pengguna -Comment[mt]=Test tal-UserAgent -Comment[nb]=Brukeragentstrenger -Comment[nds]=Nettkieker-Kennen instellen -Comment[ne]=प्रयोगकर्ता एजेन्ट स्ट्रिङ -Comment[nl]=regels voor Gebruikersagent -Comment[nn]=Brukaragentstrengar -Comment[nso]=Methalofoko ya Mothusi wa Modirisi -Comment[pa]=ਉਪਭੋਗੀ-ਏਜੰਟ ਸਤਰਾਂ -Comment[pl]=Nazwy "Programu Użytkownika" -Comment[pt]=Mensagens do agente do utilizador -Comment[pt_BR]=Strings de Agente de Usuários -Comment[ro]=Texte "User Agent" -Comment[ru]=Строки UserAgent -Comment[rw]=Amakurikiranyanyuguti UmukoziUkoresha -Comment[se]=Geavaheaddjeageanta-dovdamearkkat -Comment[sk]=Reťazce WWW agenta -Comment[sl]=Nizi uporabniškega agenta -Comment[sr]=UserAgent низови -Comment[sr@Latn]=UserAgent nizovi -Comment[sv]=Användaragentsträngar -Comment[ta]=பயன்படுத்துபவர் தொடர்ச்சிகள் -Comment[tg]=Сатри оҷонсии корбар -Comment[th]=ข้อความแสดงตัวเครื่องมือของผู้ใช้ -Comment[tr]=UserAgent Dizileri -Comment[tt]=UserAgent Sätirläre -Comment[uk]=Рядки агента користувача -Comment[ven]=Mutevhe wa vhashumisi -Comment[vi]=Chuỗi UserAgent -Comment[wa]=Tchinnes d' idintité do betchteu -Comment[xh]=Iqela lamagama UserAgent -Comment[zh_CN]=用户代理设置 -Comment[zh_TW]=使用者代理字串設定 -Comment[zu]=Iqoqo lamagama lommeli womsebenzisi - -[PropertyDef::X-TDE-UA-TAG] -Type=TQString - -[PropertyDef::X-TDE-UA-FULL] -Type=TQString - -[PropertyDef::X-TDE-UA-NAME] -Type=TQString - -[PropertyDef::X-TDE-UA-VERSION] -Type=TQString - -[PropertyDef::X-TDE-UA-SYSNAME] -Type=TQString - -[PropertyDef::X-TDE-UA-SYSRELEASE] -Type=TQString - -[PropertyDef::X-TDE-UA-DYNAMIC-ENTRY] -Type=bool diff --git a/kcontrol/kio/uasproviders/CMakeLists.txt b/kcontrol/kio/uasproviders/CMakeLists.txt deleted file mode 100644 index 95f1823c8..000000000 --- a/kcontrol/kio/uasproviders/CMakeLists.txt +++ /dev/null @@ -1,18 +0,0 @@ -################################################# -# -# (C) 2010-2011 Serghei Amelian -# serghei (DOT) amelian (AT) gmail.com -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -install( FILES - ie401onwinnt4.desktop ie45onwinnt5.desktop ie501onwinnt5.desktop - ie50onppc.desktop ie55onwin98.desktop ie55onwinnt5.desktop - ie60onwinnt51.desktop ie60oncurrent.desktop - lynxoncurrent.desktop w3moncurrent.desktop - ns71oncurrent.desktop ns71onwinnt51.desktop - DESTINATION ${SERVICES_INSTALL_DIR}/useragentstrings ) diff --git a/kcontrol/kio/uasproviders/Makefile.am b/kcontrol/kio/uasproviders/Makefile.am deleted file mode 100644 index 868ccbd16..000000000 --- a/kcontrol/kio/uasproviders/Makefile.am +++ /dev/null @@ -1,9 +0,0 @@ -services_DATA = ie401onwinnt4.desktop ie45onwinnt5.desktop ie501onwinnt5.desktop \ - ie50onppc.desktop \ - ie55onwin98.desktop ie55onwinnt5.desktop ie60onwinnt51.desktop \ - ie60oncurrent.desktop \ - lynxoncurrent.desktop w3moncurrent.desktop \ - ns71oncurrent.desktop ns71onwinnt51.desktop - -servicesdir = $(kde_servicesdir)/useragentstrings - diff --git a/kcontrol/kio/uasproviders/ie401onwinnt4.desktop b/kcontrol/kio/uasproviders/ie401onwinnt4.desktop deleted file mode 100644 index 1aacae9a3..000000000 --- a/kcontrol/kio/uasproviders/ie401onwinnt4.desktop +++ /dev/null @@ -1,98 +0,0 @@ -[Desktop Entry] -Name=UADescription (IE 4.01 on Win 2000) -Name[af]=UA-beskrywing (IE 4.01 op Win 2000) -Name[ar]=وصف وكيل-مستخدم (IE 4.01 على Win 2000) -Name[as]=UADescription (IE 4.01 on Win 2000) -Name[be]=UADescription (IE 4.01 на Win 2000) -Name[be@latin]=UADescription (IE 4.01 na „Windows 2000”) -Name[bg]=UADescription (IE 4.01 на Win 2000) -Name[bn]=UADescription (IE 4.01 on Win 2000) -Name[bn_IN]=UADescription (Win 2000-র মধ্যে IE 4.01) -Name[br]=UADescription (IE 4.01 war Win 2000) -Name[ca]=Descripció AU (IE 4.01 en Windows 2000) -Name[ca@valencia]=Descripció AU (IE 4.01 en Windows 2000) -Name[cs]=Popis agenta (IE 4.01 na Win 2000) -Name[csb]=Òpisënk programë brëkòwnika (IE 4.01 na Win 2000) -Name[cy]=UADisgrifiad (IE 4.01 ar Win 2000) -Name[da]=Brugeragentbeskrivelse (IE 4.01 på Win 2000) -Name[de]=Browserkennung (IE 4.01 auf Windows 2000) -Name[el]=Περιγραφή UA (IE 4.01 σε Win 2000) -Name[en_GB]=UADescription (IE 4.01 on Win 2000) -Name[eo]=UA-Priskribo (IE 4.01 sur Vindozo 2000) -Name[es]=Descripción de AU (IE 4.01 en Windows 2000) -Name[et]=UADescription (IE 4.01 Win2000 platvormil) -Name[eu]=UA azalpena (IE 4.01 Win 2000-n) -Name[fa]=UADescription (IE 4.01 در Win 2000) -Name[fi]=Käyttäjäagenttikuvaus (IE 4.01 Win 2000:lla) -Name[fr]=UADescription (IE 4.01 sous Windows 2000) -Name[fy]=GA-omskriuwing (IE 4.01 op Win 2000) -Name[ga]=UADescription (IE 4.01 ar Win 2000) -Name[gl]=UADescription (IE 4.01 en Win 2000) -Name[gu]=UADescription (આઇ.ઇ. ૪.૦૧ વિન્ડોઝ ૨૦૦૦ પર) -Name[he]=UADescription (IE 4.01 on Win 2000) -Name[hi]=यूए-डिस्क्रिप्शन (आईई 4.01 विन 2000 पर) -Name[hne]=यूए-डिस्क्रिप्सन (आईई 4.01 विन 2000 मं) -Name[hr]=UADescription (IE 4.01 na Win 2000) -Name[hsb]=UADescription (IE 4.01 na Win 2000) -Name[hu]=Böngészőtípus (IE 4.01, Win 2000) -Name[ia]=UADescription (IE 4.01 super Win 2000) -Name[id]=UADescription (IE 4.01 di Win 2000) -Name[is]=UADescription (IE 4.01 á Win 2000) -Name[it]=Descrizione UA (IE 4.01 su Windows 2000) -Name[ja]=UADescription (IE 4.01 on Win 2000) -Name[ka]=UADescription (IE 4.01 Win 2000-ში) -Name[kk]=UADescription (IE 4.01 / Win 2000) -Name[km]=UADescription (IE 4.01 នៅ​លើ​វីនដូ ២០០០) -Name[kn]=UAವಿವರಣೆ (ವಿನ್ಡೋಸ್ ೨೦೦೦ ದ ಮೇಲಿನ ಐಇ ೪.೦೧) -Name[ko]=UADescription (윈도 2000의 IE 4.01) -Name[ku]=Pênasa UA (IE 4.01 ji bo Win 2000) -Name[lt]=Vartotojo agentas (IE 4.01 ir Win 2000) -Name[lv]=UA Apraksts (IE 4.01 uz Win 2000) -Name[mai]=यूए-डिस्क्रिप्शन (आईई 4.01 विन 2000 पर) -Name[mk]=UADescription (IE 4.01 на Win 2000) -Name[ml]=യുഎവിവരണം (വിന്‍ 2000 ലെ ഐഇ 4.01) -Name[mr]=UAडिस्क्रिप्शन (IE 4.01 विन 2000 पर) -Name[ms]=UADescription (IE 4.01 on Win 2000) -Name[nb]=Brukeragent (IE 4.01 på Win 2000) -Name[nds]=UA-Beschrieven (IE 4.01 op Win 2000) -Name[ne]=UA वर्णन (Win 2000 मा IE 4.01) -Name[nl]=GA-beschrijving (IE 4.01 op Win 2000) -Name[nn]=Brukaragent (IE 4.01 på Windows 2000) -Name[or]=UA ବର୍ଣ୍ଣନା (Win 2000 ଉପରେ IE 4.01) -Name[pa]=UADescription (Win ੨੦੦੦ ਉੱਤੇ IE 4.01) -Name[pl]=Opis przeglądarki użytkownika (IE 4.01 na Win 2000) -Name[pt]=UADescription (IE 4.01 no Win 2000) -Name[pt_BR]=UADescription (IE 4.01 no Windows 2000) -Name[ro]=Descriere AU (IE 4.01 pentru Win 2000) -Name[ru]=UADescription (IE 4.01 на Windows 2000) -Name[se]=UA-čilgehus (IE 4.01 ja Win 2000) -Name[si]=UADescription (Win 2000 මත IE 4.01 ) -Name[sk]=Popis agenta (IE 4.01 na Win 2000) -Name[sl]=UAOpis (IE 4.01 na Windows 2000) -Name[sr]=УА‑опис (ИЕ 4.01 на Виндоузу 2000) -Name[sr@ijekavian]=УА‑опис (ИЕ 4.01 на Виндоузу 2000) -Name[sr@ijekavianlatin]=UA-opis (IE 4.01 na Windowsu 2000) -Name[sr@latin]=UA-opis (IE 4.01 na Windowsu 2000) -Name[sv]=AA-beskrivning (IE 4.01 på Win 2000) -Name[ta]=UADescription (IE 4.01 on Win 2000) -Name[te]=UADescription (IE 4.01 on Win 2000) -Name[tg]=UADescription (IE 4.01 дар Win 2000) -Name[th]=UADescription (IE 4.01 บน Win 2000) -Name[tr]=Kullanıcı Uygulaması Tanımı (Win 2000 üzerinde IE 4.01) -Name[uk]=UADescription (IE 4.01 на Win 2000) -Name[uz]=UADescription (Win 2000 bilan IE 4.01) -Name[uz@cyrillic]=UADescription (Win 2000 билан IE 4.01) -Name[vi]=Mô tả UA (IE 4.01 trên Win 2000) -Name[wa]=Idintifiaedje do betchteu (MSIE 4.01 so Windows 2000) -Name[xh]=UADescription (IE 4.01 kwi Win 2000) -Name[x-test]=xxUADescription (IE 4.01 on Win 2000)xx -Name[zh_CN]=客户端描述(运行于 Win 2000 的 IE 4.01) -Name[zh_TW]=使用者代理描述 (IE 4.01 on Win 2000) -Type=Service -X-TDE-ServiceTypes=UserAgentStrings -X-TDE-UA-TAG=IE -X-TDE-UA-FULL=Mozilla/4.0 (compatible; MSIE 4.01; Windows NT 5.0) -X-TDE-UA-NAME=Internet Explorer -X-TDE-UA-VERSION=4.01 -X-TDE-UA-SYSNAME=Windows -X-TDE-UA-SYSRELEASE=2000 diff --git a/kcontrol/kio/uasproviders/ie45onwinnt5.desktop b/kcontrol/kio/uasproviders/ie45onwinnt5.desktop deleted file mode 100644 index 94fa23150..000000000 --- a/kcontrol/kio/uasproviders/ie45onwinnt5.desktop +++ /dev/null @@ -1,80 +0,0 @@ -[Desktop Entry] -Name=UADescription (IE 4.5 on Win 2000) -Name[af]=UA-beskrywing (Ie 4.5 op Win 2000) -Name[az]=UADescription (IE 5.5 on Win 2000) -Name[be]=UADescription (IE 4.5 на Win 2000) -Name[br]=UADescription (IE 4.5 war Win 2000) -Name[ca]=Descripció de AU (IE 4.5 en Windows 2000) -Name[cs]=Popis agenta (IE 4.5 na Win 2000) -Name[csb]=Òpis programë brëkòwnika (IE 4.5 na Win 2000) -Name[cy]=UADisgrifiad(IE 4.5 ar Win 2000) -Name[da]=Brugeragentbeskrivelse (IE 4.5 på Win 2000) -Name[de]=Browserkennung (IE 4.5 auf Windows 2000) -Name[el]=Περιγραφή UA (IE 5.5 σε Win 2000) -Name[eo]=UA-Priskribo (IE 4.5 sub Vindozo 2000) -Name[es]=Descripción de AU (IE 4.5 en Windows 2000) -Name[et]=UADescription (IE 4.5 Win2000 platvormil) -Name[eu]=UA azalpena (IE 4.5 Win 2000-n) -Name[fa]=UADescription (IE 4.5 در Win 2000) -Name[fi]=Käyttäjäagenttikuvaus (IE 4.5 Win 2000:lla) -Name[fr]=Identité du navigateur (IE 4.5 sous Windows 2000) -Name[fy]=GA-omskriuwing (IE 4.5 op Win 2000) -Name[ga]=UADescription (IE 4.5 ar Win 2000) -Name[gl]=UADescription (IE 4.5 en Win 2000) -Name[he]=UADescription (Win 2000ב־ IE 4.5) -Name[hi]=यूएडी-डिस्क्रिप्शन (IE 4.5 विन 2000 पर) -Name[hr]=UADescription (IE 4.5 na Win 2000) -Name[hu]=Böngészőtípus (IE 4.5, Win 2000) -Name[id]=UADescription (IE 4.5 di Win 2000) -Name[is]=UAD strengur (IE 4.5 on Win 2000) -Name[it]=DescrizioneUA (IE 4.5 su Win 2000) -Name[ka]=UADescription (IE 4.5 Win 2000-ში) -Name[kk]=UADescription (IE 4.5 / Win 2000) -Name[km]=UADescription (IE 4.5 នៅ​លើ Win 2000) -Name[ko]=UADescription (윈도 2000의 IE 5.5) -Name[lt]=Naudotojo agento aprašymas (IE 4.5 ir Win 2000) -Name[lv]=UAApraksts (IE 5.5 uz Win 2000) -Name[mk]=UADescription (IE 4.5 на Win 2000) -Name[mn]=UserAgent-Тодорхойлолт (IE 5.5 on Win 2000) -Name[mt]=UADescription (IE 4.5 fuq Win 2000) -Name[nb]=Brukeragent (IE 4.5 på Win 2000) -Name[nds]=UA-Beschrieven (IE 4.5 op Win 2000) -Name[ne]=UA वर्णन (Win 2000 मा IE 4.5) -Name[nl]=GA-beschrijving (IE 4.5 op Win 2000) -Name[nn]=Brukaragent (IE 4.5 på Win 2000) -Name[nso]=UAThlaloso (IE 4.5 go Win 2000) -Name[pa]=UADescription (ਵਿੰਡੋ ੨੦੦੦ 'ਤੇ IE 4.5) -Name[pl]=Opis przeglądarki użytkownika (IE 4.5 na Win 2000) -Name[pt]=UADescription (IE 4.5 no Win 2000) -Name[pt_BR]=Descrição (IE 4.5 no Win 2000) -Name[ro]=Descriere UA (IE 4.5 pentru Win 2000) -Name[ru]=UADescription (IE 4.5 на Win 2000) -Name[rw]=UADescription (IE 4.5 kuri Win 2000) -Name[se]=UA-čilgehus (IE 4.5 ja Win 2000) -Name[sk]=Popis agenta (IE 4.5 na Win 2000) -Name[sl]=UAOpis (IE 4.5 v Windows 2000) -Name[sr]=UADescription (IE 4.5 на Win 2000) -Name[sr@Latn]=UADescription (IE 4.5 na Win 2000) -Name[sv]=AA-beskrivning (IE 4.5 på Win 2000) -Name[ta]=UAவிவரம் (IE 4.5 on Win 2000) -Name[tg]=ТавзеҳиUA (IE 4.5 ба Win 2000) -Name[th]=UADescription (IE 4.5 บน Win 2000) -Name[tr]=UA Tanımı (Win 2000 üzerinde IE 4.5) -Name[tt]=UADescription (IE 4.5, Win 2000 astında) -Name[uk]=UADescription (IE 4.5 на Win 2000) -Name[uz]=UADescription (Win 2000 bilan IE 4.5) -Name[uz@cyrillic]=UADescription (Win 2000 билан IE 4.5) -Name[ven]=Thalutshedzo ya UA (IE 4.5 on Win 2000) -Name[vi]=Mô tả UA (IE 5.5 trên Win 2000) -Name[wa]=Discrijhaedje di l' idintité do betchteu (IE 4.5 so Win 2000)Name= -Name[xh]=UADescription (IE 4.5 kwi Win 2000) -Name[zh_CN]=用户代理描述 (运行于 Win 2000 的 IE 4.5) -Name[zh_TW]=使用者代理描述 (IE 4.5 on Win 2000) -Type=Service -ServiceTypes=UserAgentStrings -X-TDE-UA-TAG=IE -X-TDE-UA-FULL=Mozilla/4.0 (compatible; MSIE 4.5; Windows NT 5.0) -X-TDE-UA-NAME=Internet Explorer -X-TDE-UA-VERSION=4.5 -X-TDE-UA-SYSNAME=Windows -X-TDE-UA-SYSRELEASE=2000 diff --git a/kcontrol/kio/uasproviders/ie501onwinnt5.desktop b/kcontrol/kio/uasproviders/ie501onwinnt5.desktop deleted file mode 100644 index a32a4a606..000000000 --- a/kcontrol/kio/uasproviders/ie501onwinnt5.desktop +++ /dev/null @@ -1,79 +0,0 @@ -[Desktop Entry] -Name=UADescription (IE 5.01 on Win 2000) -Name[af]=Ua-beskrywing (Ie 5.01 op Win 2000) -Name[be]=UADescription (IE 5.01 на Win 2000) -Name[br]=UADescription (IE 5.01 war Win 2000) -Name[ca]=Descripció de AU (IE 5.01 en Windows 2000) -Name[cs]=Popis agenta (IE 5.01 na Win 2000) -Name[csb]=Òpis programë brëkòwnika (IE 5.01 na Win 2000) -Name[cy]=UADisgrifiad (IE 5.01 ar Win 2000) -Name[da]=Brugeragentbeskrivelse (IE 5.01 på Win 2000) -Name[de]=Browserkennung (IE 5.01 auf Windows 2000) -Name[el]=Περιγραφή UA (IE 5.01 σε Win 2000) -Name[eo]=UA-Priskribo (IE 5.01 sub Vindozo 2000) -Name[es]=Descripción de AU (IE 5.01 en Windows 2000) -Name[et]=UADescription (IE 5.01 Win2000 platvormil) -Name[eu]=UA azalpena (IE 5.01 Win 2000-n) -Name[fa]=UADescription (IE 5.01 در Win 2000) -Name[fi]=Käyttäjäagenttikuvaus (IE 5.01 Win 2000:lla) -Name[fr]=Identité du navigateur (IE 5.01 sous Windows 2000) -Name[fy]=GA-omskriuwing (IE 5.01 op Win 2000) -Name[ga]=UADescription (IE 5.01 ar Win 2000) -Name[gl]=UADescription (IE 5.01 en Win 2000) -Name[he]=UADescription (Win 2000ב־ IE 5.01) -Name[hi]=यूएडी-डिस्क्रिप्शन (IE 5.01 विन 2000 पर) -Name[hr]=UADescription (IE 5.01 na Win 2000) -Name[hu]=Böngészőtípus (IE 5.01, Win 2000) -Name[id]=UADescription (IE 5.01 di Win 2000) -Name[is]=UAD strengur (IE 5.01 on Win 2000) -Name[it]=DescrizioneUA (IE 5.01 su Win 2000) -Name[ka]=UADescription (IE 5.01 Win 2000-ში) -Name[kk]=UADescription (IE 5.01 / Win 2000) -Name[km]=UADescription (IE 5.01 នៅ​លើ Win 2000) -Name[ko]=UADescription (윈도 2000의 IE 4.01) -Name[lt]=Naudotojo agento aprašymas (IE 5.01 ir Win 2000) -Name[lv]=UAApraksts (IE 5.01 uz Win 2000) -Name[mk]=UADescription (IE 5.01 на Win 2000) -Name[mn]=UserAgent-Тодорхойлолт (IE 5.01 on Win 2000) -Name[mt]=UADescription (IE 5.01 fuq Win 2000) -Name[nb]=Brukeragent (IE 5.01 på Win 2000) -Name[nds]=UA-Beschrieven (IE 5.01 op Win 2000) -Name[ne]=UA वर्णन (Win 2000 मा IE 5.01) -Name[nl]=GA-beschrijving (IE 5.01 op Win 2000) -Name[nn]=Brukaragent (IE 5.01 på Win 2000) -Name[nso]=UAThlaloso (IE 5.01 go Win 2000) -Name[pa]=UADescription (ਵਿੰਡੋ ੨੦੦੦ 'ਤੇ IE 5.01) -Name[pl]=Opis przeglądarki użytkownika (IE 5.01 na Win 2000) -Name[pt]=UADescription (IE 5.01 no Win 2000) -Name[pt_BR]=Descrição (IE 5.01 no Win 2000) -Name[ro]=Descriere UA (IE 5.01 pentru Win 2000) -Name[ru]=UADescription (IE 5.01 на Win 2000) -Name[rw]=UADescription (IE 5.01 kuri Win 2000) -Name[se]=UA-čilgehus (IE 5.01 ja Win 2000) -Name[sk]=Popis agenta (IE 5.01 na Win 2000) -Name[sl]=UAOpis (IE 5.01 na Windows 2000) -Name[sr]=UADescription (IE 5.01 на Win 2000) -Name[sr@Latn]=UADescription (IE 5.01 na Win 2000) -Name[sv]=AA-beskrivning (IE 5.01 på Win 2000) -Name[ta]=UAவிவரம் (IE 5.01 on Win 2000) -Name[tg]=ТавзеҳиUA (IE 5.01 ба Win 2000) -Name[th]=UADescription (IE 5.01 บน Win 2000) -Name[tr]=UA Tanımı (Win 2000 üzerinde IE 5.01) -Name[tt]=UADescription (IE 5.01, Win 2000 astında) -Name[uk]=UADescription (IE 5.01 на Win 2000) -Name[uz]=UADescription (Win 2000 bilan IE 5.01) -Name[uz@cyrillic]=UADescription (Win 2000 билан IE 5.01) -Name[ven]=Thalutshedzo (IE 5.01 on Win 2000) -Name[vi]=Mô tả UA (IE 5.01 trên Win 2000) -Name[wa]=Discrijhaedje di l' idintité do betchteu (IE 5.01 so Win 2000) -Name[xh]=UADescription (IE 5.01 kwi Win 2000) -Name[zh_CN]=用户代理描述 (运行于 Win 2000 的 IE 5.01) -Name[zh_TW]=使用者代理描述 (IE 5.01 on Win 2000) -Type=Service -ServiceTypes=UserAgentStrings -X-TDE-UA-TAG=IE -X-TDE-UA-FULL=Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) -X-TDE-UA-NAME=Internet Explorer -X-TDE-UA-VERSION=5.01 -X-TDE-UA-SYSNAME=Windows -X-TDE-UA-SYSRELEASE=2000 diff --git a/kcontrol/kio/uasproviders/ie50onppc.desktop b/kcontrol/kio/uasproviders/ie50onppc.desktop deleted file mode 100644 index 2f14da7b1..000000000 --- a/kcontrol/kio/uasproviders/ie50onppc.desktop +++ /dev/null @@ -1,98 +0,0 @@ -[Desktop Entry] -Name=UADescription (IE 5.0 on Mac PPC) -Name[af]=UA-beskrywing (Ie 5.0 op Mac Ppc) -Name[ar]=وصف وكيل-مستخدم (IE 5.0 على Mac PPC) -Name[as]=UADescription (IE 5.0 on Mac PPC) -Name[be]=UADescription (IE 5.0 на Mac PPC) -Name[be@latin]=UADescription (IE 5.0 na „Mac” dla PPC) -Name[bg]=UADescription (IE 5.0 на Mac PPC) -Name[bn]=UADescription (IE 5.0 on Mac PPC) -Name[bn_IN]=UADescription (Mac PPC-র মধ্যে IE 5.0) -Name[br]=UADescription (IE 5.0 war Mac PPC) -Name[ca]=Descripció AU (IE 5.0 en Mac PPC) -Name[ca@valencia]=Descripció AU (IE 5.0 en Mac PPC) -Name[cs]=Popis agenta (IE 5.0 na Mac PPC) -Name[csb]=Òpisënk programë brëkòwnika (IE 5.0 na Mac PPC) -Name[cy]=UADisgrifiad (IE 5.0 ar Mac PPC) -Name[da]=Brugeragentbeskrivelse (IE 5.0 på Mac PPC) -Name[de]=Browserkennung (IE 5.0 auf Mac PPC) -Name[el]=Περιγραφή UA (IE 5.0 σε Mac PPC) -Name[en_GB]=UADescription (IE 5.0 on Mac PPC) -Name[eo]=UA-Priskribo (IE 5.0 sub Mac-PPC) -Name[es]=Descripción de AU (IE 5.0 en Mac PPC) -Name[et]=UADescription (IE 5.0 MacPPC platvormil) -Name[eu]=UA azalpena (IE 5.0 Mac PPC-n) -Name[fa]=UADescription (IE 5.0 در Mac PPC) -Name[fi]=Käyttäjäagenttikuvaus (IE 5.0 Mac PPC:llä) -Name[fr]=UADescription (IE 5.0 sous Mac PPC) -Name[fy]=GA-omskriuwing (IE 5.0 op Mac PPC) -Name[ga]=UADescription (IE 5.0 ar Mac PPC) -Name[gl]=UADescription (IE 5.0 en Mac PPC) -Name[gu]=UADescription (આઇ.ઇ. ૫.૦ મેક પીપીસી પર) -Name[he]=UADescription (IE 5.0 on Mac PPC) -Name[hi]=यूए-डिस्क्रिप्शन (आईई 5.0 मैक पीपीसी पर) -Name[hne]=यूए-डिस्क्रिप्सन (आईई 5.0 मैक पीपीसी मं) -Name[hr]=UADescription (IE 5.0 na Mac PPC) -Name[hsb]=UADescription (IE 5.0 na Mac PPC) -Name[hu]=Böngészőtípus (IE 5.0, Mac PPC) -Name[ia]=UADescription (IE 5.0 super Mac PPC) -Name[id]=UADescription (IE 5.0 di Mac PPC) -Name[is]=UADescription (IE 5.0 á Mac PPC) -Name[it]=Descrizione UA (IE 5.0 su Mac PPC) -Name[ja]=UADescription (IE 5.0 on Mac PPC) -Name[ka]=UADescription (IE 5.0 Mac PPC-ში) -Name[kk]=UADescription (IE 5.0 / Mac PPC) -Name[km]=UADescription (IE 5.0 នៅ​លើ Mac PPC) -Name[kn]=UAವಿವರಣೆ (ಮಾಕ್ ಪಿಪಿಸಿ ಮೇಲಿನ ಐಇ ೫.೦) -Name[ko]=UADescription (Mac PPC의 IE 5.0) -Name[ku]=Pênasa UA (IE 5.0 ji bo Mac PPC) -Name[lt]=Vartotojo agentas (IE 5.0 ir Mac PPC) -Name[lv]=UA Apraksts (IE 5.0 uz Mac PPC) -Name[mai]=यूए-डिस्क्रिप्शन (आईई 5.0 मैक पीपीसी पर) -Name[mk]=UADescription (IE 5.0 на Mac PPC) -Name[ml]=യുഎവിവരണം (പിപിസി മാകിലെ ഐഇ 5.0) -Name[mr]=UAडिस्क्रिप्शन (IE 5.0 मैक पीपीसी पर) -Name[ms]=UADescription (IE 5.0 on Mac PPC) -Name[nb]=Brukeragent (IE 5.0 på Mac PPC) -Name[nds]=UA-Beschrieven (IE 5.0 op Mac PPC) -Name[ne]=UA वर्णन (Mac PPC मा IE 5.0) -Name[nl]=GA-beschrijving (IE 5.0 op Mac PPC) -Name[nn]=Brukaragent (IE 5.0 på Mac PPC) -Name[or]=UA ବର୍ଣ୍ଣନା (Mac PPC ଉପରେ IE 5.0) -Name[pa]=UADescription (ਮੈਕ PPC ਉੱਤੇ IE 5.0) -Name[pl]=Opis przeglądarki użytkownika (IE 5.0 na Mac PPC) -Name[pt]=UADescription (IE 5.0 no Mac PPC) -Name[pt_BR]=UADescription (IE 5.0 no Mac PPC) -Name[ro]=Descriere AU (IE 5.0 pentru Mac PPC) -Name[ru]=UADescription (IE 5.0 на Mac PPC) -Name[se]=UA-čilgehus (IE 5.0 ja Mac PPC) -Name[si]=UADescription (Mac PPC මත IE 5.0) -Name[sk]=Popis agenta (IE 5.0 na Mac PPC) -Name[sl]=UAOpis (IE 5.0 na Mac PPC) -Name[sr]=УА‑опис (ИЕ 5.0 на ППЦ мекинтошу) -Name[sr@ijekavian]=УА‑опис (ИЕ 5.0 на ППЦ мекинтошу) -Name[sr@ijekavianlatin]=UA-opis (IE 5.0 na PPC Macintoshu) -Name[sr@latin]=UA-opis (IE 5.0 na PPC Macintoshu) -Name[sv]=AA-beskrivning (IE 5.0 på Mac PPC) -Name[ta]=UADescription (IE 5.0 on Mac PPC) -Name[te]=UADescription (IE 5.0 on Mac PPC) -Name[tg]=UADescription (IE 5.0 дар Mac PPC) -Name[th]=UADescription (IE 5.0 บน Mac PPC) -Name[tr]=Kullanıcı Uygulaması Tanımı (Mac PPC üzerinde IE 5.0) -Name[uk]=UADescription (IE 5.0 на Mac PPC) -Name[uz]=UADescription (Mac PPC bilan IE 5.0) -Name[uz@cyrillic]=UADescription (Mac PPC билан IE 5.0) -Name[vi]=Mô tả UA (IE 5.0 trên Mac PPC) -Name[wa]=Idintifiaedje do betchteu (MSIE 5.0 so MacOS PPC) -Name[xh]=UADescription (IE 5.0 kwi Mac PPC) -Name[x-test]=xxUADescription (IE 5.0 on Mac PPC)xx -Name[zh_CN]=客户端描述(运行于 Mac PPC 的 IE 5.0) -Name[zh_TW]=使用者代理描述 (IE 5.0 on Mac PPC) -Type=Service -X-TDE-ServiceTypes=UserAgentStrings -X-TDE-UA-TAG=IE -X-TDE-UA-FULL=Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC) -X-TDE-UA-NAME=Internet Explorer -X-TDE-UA-VERSION=5.0 -X-TDE-UA-SYSNAME=Mac -X-TDE-UA-SYSRELEASE=PPC diff --git a/kcontrol/kio/uasproviders/ie55onwin98.desktop b/kcontrol/kio/uasproviders/ie55onwin98.desktop deleted file mode 100644 index f5c7046f0..000000000 --- a/kcontrol/kio/uasproviders/ie55onwin98.desktop +++ /dev/null @@ -1,79 +0,0 @@ -[Desktop Entry] -Name=UADescription (IE 5.5 on Win 98) -Name[af]=UA-beskrywing (Ie 5.5 op Win 98) -Name[be]=UADescription (IE 5.5 на Win 98) -Name[br]=UADescription (IE 5.5 war Win 98) -Name[ca]=Descripció de AU (IE 5.5 en Windows 98) -Name[cs]=Popis agenta (IE 5.5 na Win 98) -Name[csb]=Òpis programë brëkòwnika (IE 5.5 na Win 98) -Name[cy]=UADisgrifiad (IE 5.5 ar Win 98) -Name[da]=Brugeragentbeskrivelse (IE 5.5 på Win 98) -Name[de]=Browserkennung (IE 5.5 unter Windows 98) -Name[el]=Περιγραφή UA (IE 5.5 σε Win 98) -Name[eo]=UA-Priskribo (IE 5.5 sub Vindozo 98) -Name[es]=Descripción de AU (IE 5.5 en Windows 98) -Name[et]=UADescription (IE 5.5 Win98 platvormil) -Name[eu]=UA azalpena (IE 5.5 Win 98-an) -Name[fa]=UADescription (IE 5.5 در Win 98) -Name[fi]=Käyttäjäagenttikuvaus (IE 5.5 Win 98:lla) -Name[fr]=Identité du navigateur (IE 5.5 sous Windows 98) -Name[fy]=GA-omskriuwing (IE 5.5 op Win 98) -Name[ga]=UADescription (IE 5.5 ar Win 98) -Name[gl]=UADescription (IE 5.5 en Win 98) -Name[he]=UADescription (Win 98ב־ IE 5.5) -Name[hi]=यूएडी-डिस्क्रिप्शन (IE 5.5 विन 98 पर) -Name[hr]=UADescription (IE 5.5 na Win 98) -Name[hu]=Böngészőtípus (IE 5.5, Win 98) -Name[id]=UADescription (IE 5.5 di Win 98) -Name[is]=UAD strengur (IE 5.5 on Win 98) -Name[it]=DescrizioneUA (IE 5.5 su Win 98) -Name[ka]=UADescription (IE 5.5 Win 98-ში) -Name[kk]=UADescription (IE 5.5 / Win 98) -Name[km]=UADescription (IE 5.5 នៅ​លើ Win 98) -Name[ko]=UADescription (윈도 2000의 IE 5.5) -Name[lt]=Naudotojo agento aprašymas (IE 5.5 ir Win 98) -Name[lv]=UAApraksts (IE 5.5 uz Win 98) -Name[mk]=UADescription (IE 5.5 на Win 98) -Name[mn]=UserAgent-Тодорхойлолт (IE 5.5 on Win 98) -Name[mt]=UADescription (IE 5.5 fuq Win 98) -Name[nb]=Brukeragent (IE 5.5 på Win 98) -Name[nds]=UA-Beschrieven (IE 5.5 op Win 98) -Name[ne]=UA वर्णन (Win 98 मा IE 5.5) -Name[nl]=GA-beschrijving (IE 5.5 op Win 98) -Name[nn]=Brukaragent (IE 5.5 på Win 98) -Name[nso]=UAThlaloso (IE 5.5 go Win 98) -Name[pa]=UADescription (ਵਿੰਡੋ ੯੮ 'ਤੇ IE 5.5) -Name[pl]=Opis przeglądarki użytkownika (IE 5.5 na Win 98) -Name[pt]=UADescription (IE 5.5 no Win 95) -Name[pt_BR]=Descrição (IE 5.5 no Win 98) -Name[ro]=Descriere UA (IE 5.5 pentru Win 98) -Name[ru]=UADescription (IE 5.5 на Win 98) -Name[rw]=UADescription (IE 5.5 kuri Win 98) -Name[se]=UA-čilgehus (IE 5.5 ja Win 98) -Name[sk]=Popis agenta (IE 5.5 na Win 98) -Name[sl]=UAOpis (IE 5.5 na Windows 98) -Name[sr]=UADescription (IE 5.5 на Win 98) -Name[sr@Latn]=UADescription (IE 5.5 na Win 98) -Name[sv]=AA-beskrivning (IE 5.5 på Win 98) -Name[ta]=UAவிவரம் (IE 5.5 on Win 98) -Name[tg]=ТавзеҳиUA (IE 5.5 ба Win 98) -Name[th]=UADescription (IE 5.5 บน Win 98) -Name[tr]=UA Tanımı (Win 98 üzerinde IE 5.5) -Name[tt]=UADescription (IE 5.5, Win 98 astında) -Name[uk]=UADescription (IE 5.5 на Win 98) -Name[uz]=UADescription (Win 98 bilan IE 5.5) -Name[uz@cyrillic]=UADescription (Win 98 билан IE 5.5) -Name[ven]=Thalutshedzo ya UA (IE 5.5 on Win 98) -Name[vi]=Mô tả UA (IE 5.5 trên Win 98) -Name[wa]=Discrijhaedje di l' idintité do betchteu (IE 5.5 so Win 98) -Name[xh]=UADescription UA (IE 5.5 kwi Win 98) -Name[zh_CN]=用户代理描述 (运行于 Win 98 的 IE 5.5) -Name[zh_TW]=使用者代理描述 (IE 5.5 on Win 98) -Type=Service -ServiceTypes=UserAgentStrings -X-TDE-UA-TAG=IE -X-TDE-UA-FULL=Mozilla/4.0 (compatible; MSIE 5.5; Windows 98) -X-TDE-UA-NAME=Internet Explorer -X-TDE-UA-VERSION=5.5 -X-TDE-UA-SYSNAME=Windows -X-TDE-UA-SYSRELEASE=98 diff --git a/kcontrol/kio/uasproviders/ie55onwinnt5.desktop b/kcontrol/kio/uasproviders/ie55onwinnt5.desktop deleted file mode 100644 index 89740ed21..000000000 --- a/kcontrol/kio/uasproviders/ie55onwinnt5.desktop +++ /dev/null @@ -1,98 +0,0 @@ -[Desktop Entry] -Name=UADescription (IE 5.5 on Win 2000) -Name[af]=UA-beskrywing (Ie 5.5 op Win 2000) -Name[ar]=وصف وكيل-مستخدم (IE 5.5 على Win 2000) -Name[as]=UADescription (IE 5.5 on Win 2000) -Name[be]=UADescription (IE 5.5 на Win 2000) -Name[be@latin]=UADescription (IE 5.5 na „Windows 2000”) -Name[bg]=UADescription (IE 5.5 на Win 2000) -Name[bn]=UADescription (IE 5.5 on Win 2000) -Name[bn_IN]=UADescription (Win 2000-র মধ্যে IE 5.5) -Name[br]=UADescription (IE 5.5 war Win 2000) -Name[ca]=Descripció AU (IE 5.5 en Windows 2000) -Name[ca@valencia]=Descripció AU (IE 5.5 en Windows 2000) -Name[cs]=Popis agenta (IE 5.5 na Win 2000) -Name[csb]=Òpisënk programë brëkòwnika (IE 5.5 na Win 2000) -Name[cy]=UADisgrifiad (IE 5.5 ar Win 2000) -Name[da]=Brugeragentbeskrivelse (IE 5.5 på Win 2000) -Name[de]=Browserkennung (IE 5.5 unter Windows 2000) -Name[el]=Περιγραφή UA (IE 5.5 σε Win 2000) -Name[en_GB]=UADescription (IE 5.5 on Win 2000) -Name[eo]=UA-Priskribo (IE 5.5 sub Vindozo 2000) -Name[es]=Descripción de AU (IE 5.5 en Windows 2000) -Name[et]=UADescription (IE 5.5 Win2000 platvormil) -Name[eu]=UA azalpena (IE 5.5 Win 2000-n) -Name[fa]=UADescription (IE 5.5 در Win 2000) -Name[fi]=Käyttäjäagenttikuvaus (IE 5.5 Win 2000:lla) -Name[fr]=UADescription (IE 5.5 sous Windows 2000) -Name[fy]=GA-omskriuwing (IE 5.5 op Win 2000) -Name[ga]=UADescription (IE 5.5 ar Win 2000) -Name[gl]=UADescription (IE 5.5 en Win 2000) -Name[gu]=UADescription (આઇ.ઇ. ૫.૫ વિન્ડોઝ ૨૦૦૦ પર) -Name[he]=UADescription (IE 5.5 on Win 2000) -Name[hi]=यूए-डिस्क्रिप्शन (आईई 5.5 विन 2000 पर) -Name[hne]=यूए-डिस्क्रिप्सन (आईई 5.5 विन 2000 मं) -Name[hr]=UADescription (IE 5.5 na Win 2000) -Name[hsb]=UADescription (IE 5.5 na Win 2000) -Name[hu]=Böngészőtípus (IE 5.5, Win 2000) -Name[ia]=UADescription (IE 5.5 super Win 2000) -Name[id]=UADescription (IE 5.5 di Win 2000) -Name[is]=UADescription (IE 5.5 á Win 2000) -Name[it]=Descrizione UA (IE 5.5 su Windows 2000) -Name[ja]=UADescription (IE 5.5 on Win 2000) -Name[ka]=UADescription (IE 5.5 Win 2000-ში) -Name[kk]=UADescription (IE 5.5 / Win 2000) -Name[km]=UADescription (IE 5.5 នៅ​លើ​វីនដូ ២០០០) -Name[kn]=UAವಿವರಣೆ (ವಿನ್ಡೋಸ್ ೨೦೦೦ ದ ಮೇಲಿನ ಐಇ ೫.೫) -Name[ko]=UADescription (윈도 2000의 IE 5.5) -Name[ku]=Pênasa UA (IE 5.5 ji bo Win 2000) -Name[lt]=Vartotojo agentas (IE 5.5 ir Win 2000) -Name[lv]=UA Apraksts (IE 5.5 uz Win 2000) -Name[mai]=यूए-डिस्क्रिप्शन (आईई 5.5 विन 2000 पर) -Name[mk]=UADescription (IE 5.5 на Win 2000) -Name[ml]=യുഎവിവരണം (വിന്‍ 2000 ലെ ഐഇ 5.5) -Name[mr]=UAडिस्क्रिप्शन (IE 5.5 विन 2000 पर) -Name[ms]=UADescription (IE 5.5 on Win 2000) -Name[nb]=Brukeragent (IE 5.5 på Win 2000) -Name[nds]=UA-Beschrieven (IE 5.5 op Win 2000) -Name[ne]=UA वर्णन (Win 2000मा IE 5.5) -Name[nl]=GA-beschrijving (IE 5.5 op Win 2000) -Name[nn]=Brukaragent (IE 5.5 på Windows 2000) -Name[or]=UA ବର୍ଣ୍ଣନା (Win 2000 ଉପରେ IE 5.5) -Name[pa]=UADescription (Win ੨੦੦੦ ਉੱਤੇ IE 5.5) -Name[pl]=Opis przeglądarki użytkownika (IE 5.5 na Win 2000) -Name[pt]=UADescription (IE 5.5 no Win 2000) -Name[pt_BR]=UADescription (IE 5.5 no Windows 2000) -Name[ro]=Descriere AU (IE 5.5 pentru Win 2000) -Name[ru]=UADescription (IE 5.5 на Windows 2000) -Name[se]=UA-čilgehus (IE 5.5 ja Win 2000) -Name[si]=UADescription (Win 2000 මත IE 5.0) -Name[sk]=Popis agenta (IE 5.5 na Win 2000) -Name[sl]=UAOpis (IE 5.5 na Windows 2000) -Name[sr]=УА‑опис (ИЕ 5.5 на Виндоузу 2000) -Name[sr@ijekavian]=УА‑опис (ИЕ 5.5 на Виндоузу 2000) -Name[sr@ijekavianlatin]=UA-opis (IE 5.5 na Windowsu 2000) -Name[sr@latin]=UA-opis (IE 5.5 na Windowsu 2000) -Name[sv]=AA-beskrivning (IE 5.5 på Win 2000) -Name[ta]=UADescription (IE 5.5 on Win 2000) -Name[te]=UADescription (IE 5.5 on Win 2000) -Name[tg]=UADescription (IE 5.5 дар Win 2000) -Name[th]=UADescription (IE 5.5 บน Win 2000) -Name[tr]=Kullanıcı Uygulaması Tanımı (Win 2000 üzerinde IE 5.5) -Name[uk]=UADescription (IE 5.5 на Win 2000) -Name[uz]=UADescription (Win 2000 bilan IE 5.5) -Name[uz@cyrillic]=UADescription (Win 2000 билан IE 5.5) -Name[vi]=Mô tả UA (IE 5.5 trên Win 2000) -Name[wa]=Idintifiaedje do betchteu (MSIE 5.5 so Windows 2000) -Name[xh]=UADescription (IE 5.5 kwi Win 2000) -Name[x-test]=xxUADescription (IE 5.5 on Win 2000)xx -Name[zh_CN]=客户端描述(运行于 Win 2000 的 IE 5.5) -Name[zh_TW]=使用者代理描述 (IE 5.5 on Win 2000) -Type=Service -X-TDE-ServiceTypes=UserAgentStrings -X-TDE-UA-TAG=IE -X-TDE-UA-FULL=Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0) -X-TDE-UA-NAME=Internet Explorer -X-TDE-UA-VERSION=5.5 -X-TDE-UA-SYSNAME=Windows -X-TDE-UA-SYSRELEASE=2000 diff --git a/kcontrol/kio/uasproviders/ie60oncurrent.desktop b/kcontrol/kio/uasproviders/ie60oncurrent.desktop deleted file mode 100644 index 09abff044..000000000 --- a/kcontrol/kio/uasproviders/ie60oncurrent.desktop +++ /dev/null @@ -1,93 +0,0 @@ -[Desktop Entry] -Name=UADescription (IE 6.0 on current) -Name[af]=UA-beskrywing (IE 6.0 op huidige bedryfstelsel) -Name[ar]=وصف وكيل-مستخدم (IE 6.0 على الحالي) -Name[as]=UADescription (IE 6.0 on current) -Name[be]=UADescription (IE 6.0 на гэтай сістэме) -Name[be@latin]=UADescription (IE 6.0 na hetaj systemie) -Name[bg]=UADescription (IE 6.0 на текущата система) -Name[bn]=UADescription (IE 6.0 on current) -Name[bn_IN]=UADescription (সাম্প্রতিক সংস্করণের মধ্যে IE 6.0) -Name[ca]=Descripció AU (IE 6.0 a l'actual) -Name[ca@valencia]=Descripció AU (IE 6.0 a l'actual) -Name[cs]=Popis agenta (IE 6.0 na aktuálním) -Name[csb]=Òpisënk programë brëkòwnika (IE 6.0) -Name[da]=Brugeragentbeskrivelse (IE 6.0 på nuværende) -Name[de]=Browserkennung (IE 6.0 auf aktuellem Betriebssystem) -Name[el]=Περιγραφή UA (IE 6.01 στο τρέχον σύστημα) -Name[en_GB]=UADescription (IE 6.0 on current) -Name[eo]=UA-Priskribo (IE 6.0 sub nuna) -Name[es]=UADescription (IE 6.0 en actual) -Name[et]=UADescription (Selles masinas töötav IE 6.0) -Name[eu]=UA azalpena (IE 6.0 unekoan) -Name[fa]=UADescription (IE 6.0 در حال حاضر) -Name[fi]=Käyttäjäagenttikuvaus (IE 6.0 on current) -Name[fr]=UADescription (IE 6.0 sous le système actuel) -Name[fy]=GA-omskriuwing (IE 6.0 op aktive) -Name[ga]=UADescription (IE 6.0 ar an gcóras reatha) -Name[gl]=UADescription (IE 6.0 no actual) -Name[gu]=UADescription (આઇ.ઇ. ૬.૦ હાલ પર) -Name[he]=UADescription (IE 6.0 on current) -Name[hi]=यूए-डिस्क्रिप्शन (आईई 6.0 हालिया पर) -Name[hne]=यूए-डिस्क्रिप्सन (आईई 6.0 वाले मं) -Name[hr]=UADescription (IE 6.0 na trenutnom) -Name[hsb]=UADescription (IE 6.0 abo pozdźišo) -Name[hu]=Böngészőtípus (IE 6.0) -Name[ia]=UADescription (IE 6.0 super le currente) -Name[id]=UADescription (IE 6.0 di saat ini) -Name[is]=UADescription (IE 6.0 á núverandi) -Name[it]=Descrizione UA (IE 6.0 sul sistema attuale) -Name[ja]=UADescription (IE 6.0 on current) -Name[ka]=UADescription (IE 6.0 მიმდინარე სისტემაში) -Name[kk]=UADescription (IE 6.0 осы орында) -Name[km]=UADescription (IE 6.0 បច្ចុប្បន្ន) -Name[kn]=UAವಿವರಣೆ (ಪ್ರಸ್ತುತದ ಮೇಲಿನ ಐಇ ೬.೦) -Name[ko]=UADescription (현재 플랫폼의 IE 6.0) -Name[ku]=Pênasa UA (IE 6.0 derbasdar e) -Name[lt]=Vartotojo agentas (IE 6.0 šioje sistemoje) -Name[lv]=UA Apraksts (IE 6.0 uz pašreizējā) -Name[mai]=यूए-डिस्क्रिप्शन (आईई 6.0 अखनका पर) -Name[mk]=UADescription (IE 6.0 на тековно) -Name[ml]=യുഎവിവരണം (ഇപ്പോഴത്തേതില്‍ ഐഇ 6.0) -Name[mr]=UAडिस्क्रिप्शन (IE 6.0 वर्तमान वर) -Name[nb]=Brukeragent (IE 6.0 herifra) -Name[nds]=UA-Beschrieven (IE 6.0 op dit Systeem) -Name[ne]=UA वर्णन (हाल IE 6.0 मा) -Name[nl]=GA-beschrijving (IE 6.0 op huidige) -Name[nn]=Brukaragent (IE 6.0 herifrå) -Name[or]=UA ବର୍ଣ୍ଣନା (ପ୍ରଚଳିତ IE 6.0) -Name[pa]=UADescription (ਮੌਜੂਦਾ ਉੱਤੇ IE 6.0) -Name[pl]=Opis przeglądarki użytkownika (IE 6.0 na bieżącym systemie) -Name[pt]=UADescription (IE 6.0 no sistema actual) -Name[pt_BR]=UADescription (IE 6.0 no sistema atual) -Name[ro]=Descriere AU (IE 6.0 pe sistemul curent) -Name[ru]=UADescription (IE 6.0 на текущей системе) -Name[se]=UA-čilgehus (IE 6.0 dán mašiinnas) -Name[si]=UADescription (වත්මන මත IE 6.0) -Name[sk]=Popis agenta (IE 6.0 na aktuálnom) -Name[sl]=UAOpis (IE 6.0 na trenutnem) -Name[sr]=УА‑опис (ИЕ 6.0 на текућем) -Name[sr@ijekavian]=УА‑опис (ИЕ 6.0 на текућем) -Name[sr@ijekavianlatin]=UA-opis (IE 6.0 na tekućem) -Name[sr@latin]=UA-opis (IE 6.0 na tekućem) -Name[sv]=AA-beskrivning (IE 6.0 på aktuell) -Name[ta]=UADescription (IE 6.0 on current) -Name[te]=UADescription (IE 6.0 on current) -Name[tg]=UADescription (IE 6.0 on current) -Name[th]=UADescription (IE 6.0 บนระบบปัจจุบัน) -Name[tr]=Kullanıcı Uygulaması Tanımı (geçerli işletim sistemi üzerinde IE 6.0) -Name[uk]=UADescription (IE 6.0 на поточній) -Name[uz]=UADescription (joriy bilan IE 6.0) -Name[uz@cyrillic]=UADescription (жорий билан IE 6.0) -Name[vi]=Mô tả UA (IE 6.0 trên hệ thống hiện thời) -Name[wa]=Idintifiaedje do betchteu (MSIE 6.0 so Windows 2000) -Name[x-test]=xxUADescription (IE 6.0 on current)xx -Name[zh_CN]=客户端描述(运行于本机的 IE 6.0) -Name[zh_TW]=使用者代理描述 (IE 6.0 on current) -Type=Service -X-TDE-ServiceTypes=UserAgentStrings -X-TDE-UA-TAG=IE -X-TDE-UA-FULL=Mozilla/4.0 (compatible; MSIE 6.0; appPlatform; appSysName appMachineType) Konqueror/3.4 (KHTML, like Gecko) -X-TDE-UA-NAME=Internet Explorer -X-TDE-UA-VERSION=6.0 -X-TDE-UA-DYNAMIC-ENTRY=1 diff --git a/kcontrol/kio/uasproviders/ie60onwinnt51.desktop b/kcontrol/kio/uasproviders/ie60onwinnt51.desktop deleted file mode 100644 index 133643167..000000000 --- a/kcontrol/kio/uasproviders/ie60onwinnt51.desktop +++ /dev/null @@ -1,98 +0,0 @@ -[Desktop Entry] -Name=UADescription (IE 6.0 on Win XP) -Name[af]=UA-beskrywing (IE 6.0 op Win XP) -Name[ar]=وصف وكيل-مستخدم (IE 6.0 على Win XP) -Name[as]=UADescription (IE 6.0 on Win XP) -Name[be]=UADescription (IE 6.0 на Win XP) -Name[be@latin]=UADescription (IE 6.0 na „Windows XP”) -Name[bg]=UADescription (IE 6.0 на Win XP) -Name[bn]=UADescription (IE 6.0 on Win XP) -Name[bn_IN]=UADescription (Win XP-র মধ্যে IE 6.0) -Name[br]=UADescription (IE 6.0 war Win XP) -Name[ca]=Descripció AU (IE 6.0 en Win XP) -Name[ca@valencia]=Descripció AU (IE 6.0 en Win XP) -Name[cs]=Popis agenta (IE 6.0 na Win XP) -Name[csb]=Òpisënk programë brëkòwnika (IE 6.0 na Win XP) -Name[cy]=UADisgrifiad (IE 6.0 ar Win XP) -Name[da]=Brugeragentbeskrivelse (IE 6.0 på Win XP) -Name[de]=Browserkennung (IE 6.0 unter Windows XP) -Name[el]=Περιγραφή UA (IE 6.0 σε Win XP) -Name[en_GB]=UADescription (IE 6.0 on Win XP) -Name[eo]=UA-Priskribo (IE 6.0 sub Vindozo XP) -Name[es]=Descripción de AU (IE 6.0 en Win XP) -Name[et]=UADescription (IE 6.0 Win XP platvormil) -Name[eu]=UA azalpena (IE 6.0 Win XP-n) -Name[fa]=UADescription (IE 6.0 در Win XP) -Name[fi]=Käyttäjäagenttikuvaus (IE 6.0 Win XP:llä) -Name[fr]=UADescription (IE 6.0 sous Windows XP) -Name[fy]=GA-omskriuwing (IE 6.0 op Win XP) -Name[ga]=UADescription (IE 6.0 ar Win XP) -Name[gl]=UADescription (IE 6.0 en Win XP) -Name[gu]=UADescription (આઇ.ઇ. ૬.૦ વિન્ડોઝ XP પર) -Name[he]=UADescription (IE 6.0 on Win XP) -Name[hi]=यूए-डिस्क्रिप्शन (आईई 6.0 विन एक्सपी पर) -Name[hne]=यूए-डिस्क्रिप्सन (आईई 6.0 विन एक्सपी मं) -Name[hr]=UADescription (IE 5.0 na Win 95) -Name[hsb]=UADescription (IE 6.0 na Win XP) -Name[hu]=Böngészőtípus (IE 6.0, Win XP) -Name[ia]=UADescription (IE 6.0 super Win XP) -Name[id]=UADescription (IE 6.0 di Win XP) -Name[is]=UADescription (IE 6.0 á Win XP) -Name[it]=Descrizione UA (IE 6.0 su Windows XP) -Name[ja]=UADescription (IE 6.0 on Win XP) -Name[ka]=UADescription (IE 5.0 Win 95-ში) -Name[kk]=UADescription (IE 6.0 / Win XP) -Name[km]=UADescription (IE 6.0 នៅ​លើ​វីនដូ XP) -Name[kn]=UAವಿವರಣೆ (ವಿನ್ಡೋಸ್ ಕ್ಸಪಿ ಮೇಲಿನ ಐಇ ೬.೦) -Name[ko]=UADescription (윈도 XP의 IE 6.0) -Name[ku]=pênasa UA (IE 6.0 ji bo Win XP) -Name[lt]=Vartotojo agentas (IE 6.0 ir Win XP) -Name[lv]=UA Apraksts (IE 6.0 uz Win XP) -Name[mai]=यूए-डिस्क्रिप्शन (आईई 6.0 विन एक्सपी पर) -Name[mk]=UADescription (IE 6.0 на Win XP) -Name[ml]=യുഎവിവരണം (വിന്‍ എക്സ്പിയിലെ ഐഇ 6.0) -Name[mr]=UAडिस्क्रिप्शन (IE 6.0 Win XP वर) -Name[ms]=UADescription (IE 6.0 on Win XP) -Name[nb]=Brukeragent (IE 6.0 på Win XP) -Name[nds]=UA-Beschrieven (IE 6.0 op Win XP) -Name[ne]=UA वर्णन (Win XP मा IE 6.0) -Name[nl]=GA-beschrijving (IE 6.0 op Win XP) -Name[nn]=Brukaragent (IE 6.0 på Windows XP) -Name[or]=UA ବର୍ଣ୍ଣନା (Win XP ଉପରେ IE 6.0) -Name[pa]=UADescription (ਵਿੰਡੋ XP ਉੱਤੇ IE 6.0) -Name[pl]=Opis przeglądarki użytkownika (IE 6.0 na Win XP) -Name[pt]=UADescription (IE 6.0 no Win XP) -Name[pt_BR]=UADescription (IE 6.0 no Windows XP) -Name[ro]=Descriere AU (IE 6.0 pentru Win XP) -Name[ru]=UADescription (IE 5.0 на Windows 95) -Name[se]=UA-čilgehus (IE 6.0 ja Win XP) -Name[si]=UADescription (Win XP මත IE 6.0) -Name[sk]=Popis agenta (IE 6.0 na Win XP) -Name[sl]=UAOpis (IE 6.0 na Windows XP) -Name[sr]=УА‑опис (ИЕ 6.0 на Виндоузу ИксП) -Name[sr@ijekavian]=УА‑опис (ИЕ 6.0 на Виндоузу ИксП) -Name[sr@ijekavianlatin]=UA-opis (IE 6.0 na Windowsu XP) -Name[sr@latin]=UA-opis (IE 6.0 na Windowsu XP) -Name[sv]=AA-beskrivning (IE 6.0 på Win XP) -Name[ta]=UADescription (IE 6.0 on Win XP) -Name[te]=UADescription (IE 6.0 on Win XP) -Name[tg]=UADescription (IE 6.0 дар Win XP) -Name[th]=UADescription (IE 6.0 บน Win XP) -Name[tr]=Kullanıcı Uygulaması Tanımı (Win XP üzerinde IE 6.0) -Name[uk]=UADescription (IE 6.0 у Win XP) -Name[uz]=UADescription (Win XP bilan IE 6.0) -Name[uz@cyrillic]=UADescription (Win XP билан IE 6.0) -Name[vi]=Mô tả UA (IE 6.0 trên Win XP) -Name[wa]=Idintifiaedje do betchteu (MSIE 6.0 so Windows XP) -Name[xh]=UADescription (IE 6.0 kwi Win XP) -Name[x-test]=xxUADescription (IE 6.0 on Win XP)xx -Name[zh_CN]=客户端描述(运行于 Win XP 的 IE 6.0) -Name[zh_TW]=使用者代理描述 (IE 6.0 on Win XP) -Type=Service -X-TDE-ServiceTypes=UserAgentStrings -X-TDE-UA-TAG=IE -X-TDE-UA-FULL=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) -X-TDE-UA-NAME=Internet Explorer -X-TDE-UA-VERSION=6.0 -X-TDE-UA-SYSNAME=Windows -X-TDE-UA-SYSRELEASE=XP diff --git a/kcontrol/kio/uasproviders/lynxoncurrent.desktop b/kcontrol/kio/uasproviders/lynxoncurrent.desktop deleted file mode 100644 index 78d6855fe..000000000 --- a/kcontrol/kio/uasproviders/lynxoncurrent.desktop +++ /dev/null @@ -1,95 +0,0 @@ -[Desktop Entry] -Name=UADescription (Lynx 2.8.3) -Name[af]=UA-beskrywing (Lynx 2.8.3) -Name[ar]=وصف وكيل-مستخدم (Lynx 2.8.3) -Name[as]=UADescription (Lynx 2.8.3) -Name[be]=UADescription (Lynx 2.8.3) -Name[be@latin]=UADescription (Lynx 2.8.3) -Name[bg]=UADescription (Lynx 2.8.3) -Name[bn]=UADescription (Lynx 2.8.3) -Name[bn_IN]=UADescription (Lynx 2.8.3) -Name[br]=UADescription (Lynx 2.8.3) -Name[ca]=Descripció AU (Lynx 2.8.3) -Name[ca@valencia]=Descripció AU (Lynx 2.8.3) -Name[cs]=Popis agenta (Lynx 2.8.3) -Name[csb]=Òpisënk programë brëkòwnika (Lynx 2.8.3) -Name[cy]=UADisgrifiad (Lynx 2.8.3) -Name[da]=Brugeragentbeskrivelse (Lynx 2.8.3) -Name[de]=Browserkennung (Lynx 2.8.3) -Name[el]=Περιγραφή UA (Lynx 2.8.3) -Name[en_GB]=UADescription (Lynx 2.8.3) -Name[eo]=UA-Priskribo (Lynx 2.8.3) -Name[es]=Descripción de AU (Lynx 2.8.3) -Name[et]=UADescription (Lynx 2.8.3) -Name[eu]=UA azalpena (Lynx 2.8.3) -Name[fi]=Käyttäjäagenttikuvaus (Lynx 2.8.3) -Name[fr]=UADescription (Lynx 2.8.3) -Name[fy]=GA-omskriuwing (Lynx 2.8.3) -Name[ga]=UADescription (Lynx 2.8.3) -Name[gl]=UADescription (Lynx 2.8.3) -Name[gu]=UADescription (લાયન્ક્સ ૨.૮.૩) -Name[he]=UADescription (Lynx 2.8.3) -Name[hi]=यूए-डिस्क्रिप्शन (लायनक्स 2.8.3) -Name[hne]=यूए-डिस्क्रिप्सन (लायनक्स 2.8.3) -Name[hr]=UADescription (Lynx 2.8.3) -Name[hsb]=UADescription (Lynx 2.8.3) -Name[hu]=Böngészőtípus (Lynx 2.8.3) -Name[ia]=UADescription (Lynx 2.8.3) -Name[id]=UADescription (Lynx 2.8.3) -Name[is]=UADescription (Lynx 2.8.3) -Name[it]=Descrizione UA (Lynx 2.8.3) -Name[ja]=UADescription (Lynx 2.8.3) -Name[ka]=UADescription (Lynx 2.8.3) -Name[kk]=UADescription (Lynx 2.8.3) -Name[km]=UADescription (Lynx 2.8.3) -Name[kn]=UAವಿವರಣೆ (ಲಿಂಕ್ಸ್ ೨.೮.೩) -Name[ko]=UADescription (Lynx 2.8.3) -Name[ku]=Pênasa UA (Lynx 2.8.3) -Name[lt]=Vartotojo agentas (Lynx 2.8.3) -Name[lv]=UA Apraksts (Lynx 2.8.3) -Name[mai]=यूए-डिस्क्रिप्शन (लिन्क्स 2.8.3) -Name[mk]=UADescription (Lynx 2.8.3) -Name[ml]=യുഎവിവരണം (ലിന്‍ക്സ് 2.8.3) -Name[mr]=UAडिस्क्रिप्शन (लिंक्स् 2.8.3) -Name[ms]=UADescription (Lynx 2.8.3) -Name[nb]=Brukeragent (Lynx 2.8.3) -Name[nds]=UA-Beschrieven (Lynx 2.8.3) -Name[ne]=UA वर्णन (Lynx 2.8.3) -Name[nl]=GA-beschrijving (Lynx 2.8.3) -Name[nn]=Brukaragent (Lynx 2.8.3) -Name[or]=UA ବର୍ଣ୍ଣନା (Lynx 2.8.3) -Name[pa]=UADescription(ਲੇਨਕਸ 2.8.3) -Name[pl]=Opis przeglądarki użytkownika (Lynx 2.8.3) -Name[pt]=UADescription (Lynx 2.8.3) -Name[pt_BR]=UADescription (Lynx 2.8.3) -Name[ro]=Descriere AU (Lynx 2.8.3) -Name[ru]=UADescription (Lynx 2.8.3) -Name[se]=UA-čilgehus (Lynx 2.8.3) -Name[si]=UADescription (Lynx 2.8.3) -Name[sk]=Popis agenta (Lynx 2.8.3) -Name[sl]=UAOpis (Lynx 2.8.3) -Name[sr]=УА‑опис (Линкс 2.8.3) -Name[sr@ijekavian]=УА‑опис (Линкс 2.8.3) -Name[sr@ijekavianlatin]=UA-opis (Lynx 2.8.3) -Name[sr@latin]=UA-opis (Lynx 2.8.3) -Name[sv]=AA-beskrivning (Lynx 2.8.3) -Name[ta]=UADescription (Lynx 2.8.3) -Name[te]=UADescription (Lynx 2.8.3) -Name[tg]=UADescription (Lynx 2.8.3) -Name[th]=UADescription (Lynx 2.8.3) -Name[tr]=Kullanıcı Uygulaması Tanımı (Lynx 2.8.3) -Name[uk]=UADescription (Lynx 2.8.3) -Name[uz]=UADescription (Lynx 2.8.3) -Name[uz@cyrillic]=UADescription (Lynx 2.8.3) -Name[vi]=Mô tả UA (Lynx 2.8.3) -Name[wa]=Idintifiaedje do betchteu (Lynx 2.8.3) -Name[xh]=UADescription (Lynx 2.8.3) -Name[x-test]=xxUADescription (Lynx 2.8.3)xx -Name[zh_CN]=客户端描述(Lynx 2.8.3) -Name[zh_TW]=使用者代理描述 (Lynx 2.8.3) -Type=Service -X-TDE-ServiceTypes=UserAgentStrings -X-TDE-UA-TAG=MISC -X-TDE-UA-FULL=Lynx/2.8.3dev.6 libwww-FM/2.14 -X-TDE-UA-NAME=Lynx -X-TDE-UA-VERSION=2.8.3dev.6 diff --git a/kcontrol/kio/uasproviders/ns71oncurrent.desktop b/kcontrol/kio/uasproviders/ns71oncurrent.desktop deleted file mode 100644 index 6246257d9..000000000 --- a/kcontrol/kio/uasproviders/ns71oncurrent.desktop +++ /dev/null @@ -1,93 +0,0 @@ -[Desktop Entry] -Name=UADescription (Netscape 7.1 on current) -Name[af]=UA-beskrywing (Netscape 7.1 op huidige bedryfstelsel) -Name[ar]=وصف وكيل-مستخدم (Netscape 7.1 على الحالي) -Name[as]=UADescription (Netscape 7.1 on current) -Name[be]=UADescription (NN 7.1 на гэтай сістэме) -Name[be@latin]=UADescription (Netscape 7.1 na hetaj systemie) -Name[bg]=UADescription (Netscape 7.1 на текущата система) -Name[bn]=UADescription (Netscape 7.1 on current) -Name[bn_IN]=UADescription (সাম্প্রতিক সংস্করণের মধ্যে Netscape 7.1 -Name[ca]=Descripció AU (Netscape 7.1 a l'actual) -Name[ca@valencia]=Descripció AU (Netscape 7.1 a l'actual) -Name[cs]=Popis agenta (Netscape 7.1 na aktuálním) -Name[csb]=Òpisënk programë brëkòwnika (Netscape 7.1) -Name[da]=Brugeragentbeskrivelse (Netscape 7.1 på nuværende) -Name[de]=Browserkennung (Netscape 7.1 auf aktuellem Betriebssystem) -Name[el]=Περιγραφή UA (Netscape 7.1 στο τρέχον σύστημα) -Name[en_GB]=UADescription (Netscape 7.1 on current) -Name[eo]=UA-Priskribo (Netskapo 7.1 sub nuna) -Name[es]=UADescription (Netscape 7.1 en actual) -Name[et]=UADescription (Selles masinas töötav Netscape 7.1) -Name[eu]=UA azalpena (Netscape 7.1 unekoan) -Name[fa]=UADescription (Netscape 7.1 در حال حاضر) -Name[fi]=Käyttäjäagenttikuvaus (Netscape 7.1 nykyisellä) -Name[fr]=UADescription (Netscape 7.1 sous le système actuel) -Name[fy]=GA-omskriuwing (Netscape 7.1 op aktive) -Name[ga]=UADescription (Netscape 7.1 ar an gcóras reatha) -Name[gl]=UADescription (Netscape 7.1 no actual) -Name[gu]=UADescription (નેટસ્કેપ ૭.૧ હાલ પર) -Name[he]=UADescription (Netscape 7.1 on current) -Name[hi]=यूए-डिस्क्रिप्शन (मौजूदा में नेटस्केप 7.1) -Name[hne]=यूए-डिस्क्रिप्सन (अभी वाले मं नेटस्केप 7.1) -Name[hr]=UADescription (Netscape 7.1 na trenutnom) -Name[hsb]=UADescription (Netscape 7.1 abo pozdźišo) -Name[hu]=Böngészőtípus (Netscape 7.1) -Name[ia]=UADescription (Netscape 7.1 super le currente) -Name[id]=UADescription (Netscape 7.1 di saat ini) -Name[is]=UADescription (Netscape 7.1 á núverandi) -Name[it]=Descrizione UA (Netscape 7.1 sul sistema attuale) -Name[ja]=UADescription (Netscape 7.1 on current) -Name[ka]=UADescription (Netscape 7.1 მიმდინარე სისტემაში) -Name[kk]=UADescription (Netscape 7.1 осында)0 -Name[km]=UADescription (Netscape 7.1 បច្ចុប្បន្ន) -Name[kn]=UAವಿವರಣೆ (ಪ್ರಸ್ತುತದ ಮೇಲಿನ ಎನ್ಎನ್ ೭.೧) -Name[ko]=UADescription (현재 플랫폼의 넷스케이프 7.1) -Name[ku]=Pênasa UA (Netscape 7.1 derbasdar e) -Name[lt]=Vartotojo agentas (Netscape 7.1 šioje sistemoje) -Name[lv]=UA Apraksts (NN 7.1 uz pašreizējā) -Name[mai]=यूए-डिस्क्रिप्शन (मोजुदा मे नेटस्केप 7.1) -Name[mk]=UADescription (Netscape 7.1 на тековно) -Name[ml]=യുഎവിവരണം (ഇപ്പോഴത്തേതില്‍ നെറ്റ്സ്കേപ് 7.1) -Name[mr]=UAडिस्क्रिप्शन (वर्तमानातील नेटस्केप 7.1) -Name[nb]=Brukeragent (Netscape 7.1 herifra) -Name[nds]=UA-Beschrieven (Netscape 7.1 op dit Systeem) -Name[ne]=UA वर्णन (हाल नेटस्केप ७.१) -Name[nl]=GA-beschrijving (Netscape 7.1 op current) -Name[nn]=Brukaragent (Netscape 7.1 herifrå) -Name[or]=UA ବର୍ଣ୍ଣନା (ପ୍ରଚଳିତ ଉପରେ Netscape 7.1) -Name[pa]=UADescription (ਮੌਜੂਦਾ ਉੱਤੇ Netscape 7.1) -Name[pl]=Opis przeglądarki użytkownika (Netscape 7.1 na bieżącym systemie) -Name[pt]=UADescription (Netscape 7.1 no sistema actual) -Name[pt_BR]=UADescription (Netscape 7.1 no sistema atual) -Name[ro]=Descriere AU (Netscape 7.1 pe sistemul curent) -Name[ru]=UADescription (Netscape 7.1 на текущей системе) -Name[se]=UA-čilgehus (Netscape 7.1 dán mašiinnas) -Name[si]=UADescription (වත්මන මත Netscape 7.1) -Name[sk]=Popis agenta (Netscape 7.1 na aktuálnom) -Name[sl]=UAOpis (Netscape 7.1 na trenutnem) -Name[sr]=УА‑опис (Нетскејп 7.1 на текућем) -Name[sr@ijekavian]=УА‑опис (Нетскејп 7.1 на текућем) -Name[sr@ijekavianlatin]=UA-opis (Netscape 7.1 na tekućem) -Name[sr@latin]=UA-opis (Netscape 7.1 na tekućem) -Name[sv]=AA-beskrivning (Netscape 7.1 på aktuell) -Name[ta]=UAவிவரம் (நடப்பில் 3.01 நெட்ஸ்கேப்) -Name[te]=UADescription (Netscape 7.1 on current) -Name[tg]=UADescription (Netscape 7.1 on current) -Name[th]=UADescription (เน็ตสเคป 7.1 บนระบบปัจจุบัน) -Name[tr]=Kullanıcı Uygulaması Tanımı (Netscape 7.1) -Name[uk]=UADescription (Netscape 7.1 на поточній) -Name[uz]=UADescription (joriy bilan Netscape 7.1) -Name[uz@cyrillic]=UADescription (жорий билан Netscape 7.1) -Name[vi]=Mô tả UA (Netscape 7.1 trên hệ thống hiện thời) -Name[wa]=Idintifiaedje do betchteu (Netscape 7.1 sol sistinme do moumint) -Name[x-test]=xxUADescription (Netscape 7.1 on current)xx -Name[zh_CN]=客户端描述(运行于本机的 Netscape 7.1) -Name[zh_TW]=使用者代理描述 (Netscape 7.1 on current) -Type=Service -X-TDE-ServiceTypes=UserAgentStrings -X-TDE-UA-TAG=NN -X-TDE-UA-FULL=Mozilla/5.0 (appPlatform; U; appSysName appMachineType; en-CA; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) -X-TDE-UA-NAME=Netscape -X-TDE-UA-VERSION=7.1 -X-TDE-UA-DYNAMIC-ENTRY=1 diff --git a/kcontrol/kio/uasproviders/ns71onwinnt51.desktop b/kcontrol/kio/uasproviders/ns71onwinnt51.desktop deleted file mode 100644 index 7486f17a2..000000000 --- a/kcontrol/kio/uasproviders/ns71onwinnt51.desktop +++ /dev/null @@ -1,95 +0,0 @@ -[Desktop Entry] -Name=UADescription (Netscape 7.1 on XP) -Name[af]=UA-beskrywing (Netscape 7.1 op XP) -Name[ar]=وصف وكيل-مستخدم (Netscape 7.1 على XP) -Name[as]=UADescription (Netscape 7.1 on XP) -Name[be]=UADescription (Netscape 7.1 на XP) -Name[be@latin]=UADescription (Netscape 7.1 na „Windows XP”) -Name[bg]=UADescription (Netscape 7.1 на XP) -Name[bn]=UADescription (Netscape 7.1 on XP) -Name[bn_IN]=UADescription (XP-র মধ্যে Netscape 7.1) -Name[br]=UADescription (Netscape 7.1 war XP) -Name[ca]=Descripció AU (Netscape 7.1 a XP) -Name[ca@valencia]=Descripció AU (Netscape 7.1 a XP) -Name[cs]=Popis agenta (Netscape 7.1 na XP) -Name[csb]=Òpisënk programë brëkòwnika (Netscape 7.1 na Windows XP) -Name[da]=Brugeragentbeskrivelse (Netscape 7.1 på XP) -Name[de]=Browserkennung (Netscape 7.1 unter Windows XP) -Name[el]=Περιγραφή UA (Netscape 7.1 σε Win XP) -Name[en_GB]=UADescription (Netscape 7.1 on XP) -Name[eo]=UA-Priskribo (Netskapo 7.1 sub Vindozo XP) -Name[es]=UADescription (Netscape 7.1 en XP) -Name[et]=UADescription (Netscape 7.1 Win XP platvormil) -Name[eu]=UA azalpena (Netscape 7.1 XPn) -Name[fa]=UADescription (Netscape 7.1 در XP) -Name[fi]=Käyttäjäagenttikuvaus (Netscape 7.1 Win XP:llä) -Name[fr]=UADescription (Netscape 7.1 sous Windows XP) -Name[fy]=GA-omskriuwing (Netscape 7.1 op XP) -Name[ga]=UADescription (Netscape 7.1 ar XP) -Name[gl]=UADescription (Netscape 7.1 en Win XP) -Name[gu]=UADescription (નેટસ્કેપ ૭.૧ XP પર) -Name[he]=UADescription (Netscape 7.1 on XP) -Name[hi]=यूए-डिस्क्रिप्शन (एक्सपी में नेटस्केप 7.1) -Name[hne]=यूए-डिस्क्रिप्सन (एक्सपी मं नेटस्केप 7.1) -Name[hr]=UADescription (Netscape 7.1 na XP) -Name[hsb]=UADescription (Netscape 7.1 na XP) -Name[hu]=Böngészőtípus (Netscape 7.1 Windows XP) -Name[ia]=UADescription (Netscape 7.1 super XP) -Name[id]=UADescription (Netscape 7.1 di XP) -Name[is]=UADescription (Netscape 7.1 á XP) -Name[it]=Descrizione UA (Netscape 7.1 su Windows XP) -Name[ja]=UADescription (Netscape 7.1 on XP) -Name[ka]=UADescription (Netscape 7.1 XP-ში) -Name[kk]=UADescription (Netscape 7.1 / XP) -Name[km]=UADescription (Netscape 7.1 នៅ​លើ XP) -Name[kn]=UAವಿವರಣೆ (ಕ್ಸಪಿ ಮೇಲಿನ ಎನ್ಎನ್ ೩.೦೧) -Name[ko]=UADescription (윈도 XP의 넷스케이프 7.1) -Name[ku]=Pênasa UA (Netscape 7.1 ji bo XP) -Name[lt]=Vartotojo agentas (Netscape 7.1 ir Windows XP) -Name[lv]=UA Apraksts (Netscape 7.1 uz XP) -Name[mai]=यूए-डिस्क्रिप्शन (एक्सपी मे नेटस्केप 7.1) -Name[mk]=UADescription (Netscape 7.1 на XP) -Name[ml]=യുഎവിവരണം (എക്സ്പിയിലെ നെറ്റ്സ്കേപ് 7.1) -Name[mr]=UAडिस्क्रिप्शन (XP वरील नेटस्केप 7.1) -Name[nb]=Brukeragent (Netscape 7.1 på XP) -Name[nds]=UA-Beschrieven (Netscape 7.1 op XP) -Name[ne]=UA वर्णन (XP मा नेटस्केप ७.१) -Name[nl]=GA-beschrijving (Netscape 7.1 op XP) -Name[nn]=Brukaragent (Netscape 7.1 på Windows XP) -Name[or]=UA ବର୍ଣ୍ଣନା (XP Netscape 7.1) -Name[pa]=UADescription (XP ਉੱਤੇ Netscape 7.1) -Name[pl]=Opis przeglądarki użytkownika (Netscape 7.1 na Windows XP) -Name[pt]=UADescription (Netscape 7.1 no XP) -Name[pt_BR]=UADescription (Netscape 7.1 no XP) -Name[ro]=Descriere AU (Netscape 7.1 pentru Win XP) -Name[ru]=UADescription (Netscape 7.1 на Windows XP) -Name[se]=UA-čilgehus (Netscape 7.1 on XP) -Name[si]=UADescription (XP මත Netscape 7.1) -Name[sk]=Popis agenta (Netscape 7.1 na XP) -Name[sl]=UAOpis (Netscape 7.1 na Windows XP) -Name[sr]=УА‑опис (Нетскејп 7.1 на ИксП‑у) -Name[sr@ijekavian]=УА‑опис (Нетскејп 7.1 на ИксП‑у) -Name[sr@ijekavianlatin]=UA-opis (Netscape 7.1 na XP‑u) -Name[sr@latin]=UA-opis (Netscape 7.1 na XP‑u) -Name[sv]=AA-beskrivning (Netscape 7.1 på XP) -Name[ta]=UAவிவரம் ( XPல் நெட்ஸ்கேப் 7.1 ) -Name[te]=UADescription (Netscape 7.1 on XP) -Name[tg]=UADescription (Netscape 7.1 дар XP) -Name[th]=UADescription (เน็ตสเคป 7.1 บน XP) -Name[tr]=Kullanıcı Uygulaması Tanımı (XP üzerinde Netscape 7.1) -Name[uk]=UADescription (Netscape 7.1 на XP) -Name[uz]=UADescription (Windows XP bilan Netscape 7.1) -Name[uz@cyrillic]=UADescription (Windows XP билан Netscape 7.1) -Name[vi]=Mô tả UA (Netscape 7.1 trên Win XP) -Name[wa]=Idintifiaedje do betchteu (Netscape 7.1 so Windows XP) -Name[x-test]=xxUADescription (Netscape 7.1 on XP)xx -Name[zh_CN]=客户端描述(运行于 Win XP 的 Netscape 7.1) -Name[zh_TW]=使用者代理描述 (Netscape 7.1 on XP) -Type=Service -X-TDE-ServiceTypes=UserAgentStrings -X-TDE-UA-TAG=NN -X-TDE-UA-FULL=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-CA; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) -X-TDE-UA-NAME=Netscape -X-TDE-UA-VERSION=7.1 -X-TDE-UA-SYSNAME=Windows -X-TDE-UA-SYSRELEASE=XP diff --git a/kcontrol/kio/uasproviders/op75oncurrent.desktop b/kcontrol/kio/uasproviders/op75oncurrent.desktop deleted file mode 100644 index 64c0c234b..000000000 --- a/kcontrol/kio/uasproviders/op75oncurrent.desktop +++ /dev/null @@ -1,69 +0,0 @@ -[Desktop Entry] -Name=UADescription (Opera 7.55 on current) -Name[af]=UA-beskrywing (Opera 7.55 op huidige bedryfstelsel) -Name[be]=UADescription (Opera 7.55 на гэтай сістэме) -Name[bs]=UADescription (Opera 7.55 na trenutnom) -Name[ca]=Descripció UA (Opera 7.55 a l'actual) -Name[cs]=Popis agenta (Opera 7.55 na aktuálním) -Name[csb]=Òpis programë brëkòwnika (Opera 7.55) -Name[da]=UADescription (Opera 7.55 på denne) -Name[de]=Browserkennung (Opera 7.55 unter aktuellem Betriebssystem) -Name[el]=Περιγραφή UA (Opera 7.55 στο τρέχον σύστημα) -Name[eo]=UA-Priskribo (Opera 7.55 sub nuna) -Name[es]=UADescription (Opera 7.55 en actual) -Name[et]=UADescription (Selles masinas töötav Opera 7.55) -Name[eu]=UA azalpena (Opera 7.55 unekoan) -Name[fa]=UADescription (Opera 7.55 در حال حاضر) -Name[fi]=Käyttäjäagenttikuvaus (Opera 7.55 nykyisellä) -Name[fr]=Identité du navigateur (Opera 7.55 sous le système actuel) -Name[fy]=GA-omskriuwing (Opera 7.55 op aktive) -Name[ga]=UADescription (Opera 7.55 ar an gcóras reatha) -Name[gl]=UADescription (Opera 7.55 no actual) -Name[hr]=UADescription (Opera 7.55 na trenutnom) -Name[hu]=Böngészőtípus (Opera 7.55) -Name[id]=UADescription (Opera 7.55) -Name[is]=UAD strengur (Opera 7.55 á núverandi) -Name[it]=DescrizioneUA (Opera 7.55 su sistema attuale) -Name[ka]=UADescription (Opera 7.55 მიმდინარე სისტემაში) -Name[kk]=UADescription (Opera 7.55 осы орында) -Name[km]=UADescription (Opera 7.55 បច្ចុប្បន្ន) -Name[ko]=UADescription (현재 플랫폼의 Opera 8.5) -Name[lt]=Naudotojo agento aprašymas (Opera 7.55 ir esama) -Name[lv]=UAApraksts (Opera 7.55 uz tekošā) -Name[mk]=UADescription (Opera 7.55 на тековно) -Name[nb]=Brukeragent (Opera 7.55 herifra) -Name[nds]=UA-Beschrieven (Opera 7.55 op dit Systeem) -Name[ne]=UA वर्णन (हाल Opera 7.55) -Name[nl]=GA-beschrijving (Opera 7.55 op huidige) -Name[nn]=Brukaragent (Opera 7.55 herifrå) -Name[pa]=UADescription (ਮੌਜੂਦਾ 'ਤੇ ਓਪੇਰਾ 7.55) -Name[pl]=Opis przeglądarki użytkownika (Opera 7.55 na bieżącym systemie) -Name[pt]=UADescription (Opera 7.55 no sistema actual) -Name[pt_BR]=Descrição (Opera 7.55 no sistema atual) -Name[ro]=Descriere UA (Opera 7.55 pentru sistemul de operare curent) -Name[ru]=UADescription (Opera 7.55 на текущей системе) -Name[rw]=UADescription (Opera 7.55 ku igezweho) -Name[se]=UA-čilgehus (Opera 7.55 dán mašiinnas) -Name[sl]=UAOpis (Opera 7.55 na trenutnem) -Name[sr]=UADescription (Opera 7.55 на тренутном) -Name[sr@Latn]=UADescription (Opera 7.55 na trenutnom) -Name[sv]=AA-beskrivning (Opera 7.55 på aktuell) -Name[ta]=UAவிவரம் (நடப்பில் 7.55 ஓபெரா) -Name[tg]=UADescription (Системаи ҷорӣ Opera 7.55) -Name[th]=UADescription (โอเปร่า 7.55 บนระบบปัจจุบัน) -Name[tr]=UA Tanımı (bulunulanda Opera 7.55) -Name[tt]=UADescription (Opera 7.55, şul uq astında) -Name[uk]=UADescription (Opera 7.55 на поточній) -Name[uz]=UADescription (joriy bilan Opera 7.55) -Name[uz@cyrillic]=UADescription (жорий билан Opera 7.55) -Name[vi]=Mô tả UA (đang dùng Opera 7.55) -Name[wa]=Discrijhaedje di l' idintité do betchteu (Opera 7.55 sol ci do moumint) -Name[zh_CN]=用户代理描述 (运行于本机的 Opera 7.55) -Name[zh_TW]=使用者代理描述 (Opera 7.55 on current) -Type=Service -ServiceTypes=UserAgentStrings -X-TDE-UA-TAG=OPR -X-TDE-UA-FULL=Opera/7.55 (appPlatform; appSysName appMachineType; U) [appLanguage] -X-TDE-UA-NAME=Opera -X-TDE-UA-VERSION=7.55 -X-TDE-UA-DYNAMIC-ENTRY=1 diff --git a/kcontrol/kio/uasproviders/w3moncurrent.desktop b/kcontrol/kio/uasproviders/w3moncurrent.desktop deleted file mode 100644 index 1e71a50f8..000000000 --- a/kcontrol/kio/uasproviders/w3moncurrent.desktop +++ /dev/null @@ -1,95 +0,0 @@ -[Desktop Entry] -Name=UADescription (w3m 0.1.9) -Name[af]=UA-beskrywing (w3m 0.1.9) -Name[ar]=وصف وكيل-مستخدم (w3m 0.1.9) -Name[as]=UADescription (w3m 0.1.9) -Name[be]=UADescription (w3m 0.1.9) -Name[be@latin]=UADescription (w3m 0.1.9) -Name[bg]=UADescription (w3m 0.1.9) -Name[bn]=UADescription (w3m 0.1.9) -Name[bn_IN]=UADescription (w3m 0.1.9) -Name[br]=UADescription (w3m 0.1.9) -Name[ca]=Descripció AU (w3m 0.1.9) -Name[ca@valencia]=Descripció AU (w3m 0.1.9) -Name[cs]=Popis agenta (w3m 0.1.9) -Name[csb]=Òpisënk programë brëkòwnika (w3m 0.1.9) -Name[cy]=UADisgrifiad (w3m 0.1.9) -Name[da]=Brugeragentbeskrivelse (w3m 0.1.9) -Name[de]=Browserkennung (w3m 0.1.9) -Name[el]=Περιγραφή UA (w3m 0.1.9) -Name[en_GB]=UADescription (w3m 0.1.9) -Name[eo]=UA-Priskribo (w3m 0.1.9) -Name[es]=Descripción de AU (w3m 0.1.9) -Name[et]=UADescription (w3m 0.1.9) -Name[eu]=UA azalpena (w3m 0.1.9) -Name[fi]=Käyttäjäagenttikuvaus (w3m 0.1.9) -Name[fr]=UADescription (w3m 0.1.9) -Name[fy]=GA-omskriuwing (w3m 0.1.9) -Name[ga]=UADescription (w3m 0.1.9) -Name[gl]=UADescription (w3m 0.1.9) -Name[gu]=UADescription (w3m ૦.૧.૯) -Name[he]=UADescription (w3m 0.1.9) -Name[hi]=यूए-डिस्क्रिप्शन (डब्ल्यू3एम 0.1.9) -Name[hne]=यूएडी-डिस्क्रिप्सन (डब्ल्यू3एम 0.1.9) -Name[hr]=UADescription (w3m 0.1.9) -Name[hsb]=UADescription (w3m 0.1.9) -Name[hu]=Böngészőtípus (w3m 0.1.9) -Name[ia]=UADescription (w3m 0.1.9) -Name[id]=UADescription (w3m 0.1.9) -Name[is]=UADescription (w3m 0.1.9) -Name[it]=Descrizione UA (w3m 0.1.9) -Name[ja]=UADescription (w3m 0.1.9) -Name[ka]=UADescription (w3m 0.1.9) -Name[kk]=UADescription (w3m 0.1.9) -Name[km]=UADescription (w3m 0.1.9) -Name[kn]=UAವಿವರಣೆ (w3m ೦.೧.೯) -Name[ko]=UADescription (w3m 0.1.9) -Name[ku]=Pênasa UA (w3m 0.19) -Name[lt]=Vartotojo agentas (w3m 0.1.9) -Name[lv]=UA Apraksts (w3m 0.1.9) -Name[mai]=यूएडी-डिस्क्रिप्शन (डब्ल्यू3एम 0.1.9) -Name[mk]=UADescription (w3m 0.1.9) -Name[ml]=യുഎവിവരണം (ഡബ്ലിയു3എം 0.1.9) -Name[mr]=UAडिस्क्रिप्शन (w3m 0.1.9) -Name[ms]=UADescription (w3m 0.1.9) -Name[nb]=Brukeragent (w3m 0.1.9) -Name[nds]=UA-Beschrieven (w3m 0.1.9) -Name[ne]=UA वर्णन (w3m 0.1.9) -Name[nl]=GA-beschrijving (w3m 0.1.9) -Name[nn]=Brukaragent (w3m 0.1.9) -Name[or]=UA ବର୍ଣ୍ଣନା (w3m 0.1.9) -Name[pa]=UADescription (w3m 0.1.9) -Name[pl]=Opis przeglądarki użytkownika (w3m 0.1.9) -Name[pt]=UADescription (w3m 0.1.9) -Name[pt_BR]=UADescription (w3m 0.1.9) -Name[ro]=Descriere AU (w3m 0.1.9) -Name[ru]=UADescription (w3m 0.1.9) -Name[se]=UA-čilgehus (w3m 0.1.9) -Name[si]=UADescription (w3m 0.1.9) -Name[sk]=Popis agenta (w3m 0.1.9) -Name[sl]=UAOpis (w3m 0.1.9) -Name[sr]=УА‑опис (в3м 0.1.9) -Name[sr@ijekavian]=УА‑опис (в3м 0.1.9) -Name[sr@ijekavianlatin]=UA-opis (w3m 0.1.9) -Name[sr@latin]=UA-opis (w3m 0.1.9) -Name[sv]=AA-beskrivning (w3m 0.1.9) -Name[ta]=UAவிவரம் (w3m 0.1.9) -Name[te]=UADescription (w3m 0.1.9) -Name[tg]=UADescription (w3m 0.1.9) -Name[th]=UADescription (w3m 0.1.9) -Name[tr]=Kullanıcı Uygulaması Tanımı (w3m 0.1.9) -Name[uk]=UADescription (w3m 0.1.9) -Name[uz]=UADescription (w3m 0.1.9) -Name[uz@cyrillic]=UADescription (w3m 0.1.9) -Name[vi]=Mô tả UA (w3m 0.1.9) -Name[wa]=Idintifiaedje do betchteu (w3m 0.1.9) -Name[xh]=UADescription (w3m 0.1.9) -Name[x-test]=xxUADescription (w3m 0.1.9)xx -Name[zh_CN]=客户端描述(w3m 0.1.9) -Name[zh_TW]=使用者代理描述 (w3m 0.1.9) -Type=Service -X-TDE-ServiceTypes=UserAgentStrings -X-TDE-UA-TAG=MISC -X-TDE-UA-FULL=w3m/0.1.9 -X-TDE-UA-NAME=w3m -X-TDE-UA-VERSION=0.1.9 diff --git a/kcontrol/kio/uasproviders/wgetoncurrent.desktop b/kcontrol/kio/uasproviders/wgetoncurrent.desktop deleted file mode 100644 index 17e07ba55..000000000 --- a/kcontrol/kio/uasproviders/wgetoncurrent.desktop +++ /dev/null @@ -1,74 +0,0 @@ -[Desktop Entry] -Name=UADescription (Wget 1.11.4) -Name[ar]=وصف وكيل-مستخدم (Wget 1.11.4) -Name[bg]=UADescription (Wget 1.11.4) -Name[bn]=UADescription (Wget 1.11.4) -Name[ca]=Descripció AU (Wget 1.11.4) -Name[ca@valencia]=Descripció AU (Wget 1.11.4) -Name[cs]=Popis agenta (Wget 1.11.4) -Name[csb]=Òpisënk programë brëkòwnika (Wget 1.11.4) -Name[da]=Brugeragentbeskrivelse (Wget 1.11.4) -Name[de]=Programmkennung (Wget 1.11.4) -Name[el]=Περιγραφή UA (Wget 1.11.4) -Name[en_GB]=UADescription (Wget 1.11.4) -Name[eo]=UA-Priskribo (Wget 1.11.4) -Name[es]=UADescription (Wget 1.11.4) -Name[et]=UADescription (Wget 1.11.4) -Name[eu]=UADescription (Wget 1.11.4) -Name[fi]=Käyttäjäagenttikuvaus (Wget 1.11.4) -Name[fr]=UADescription (Wget 1.11.4) -Name[fy]=UA-beskriuwing (Wget 1.11.4) -Name[ga]=UADescription (Wget 1.11.4) -Name[gl]=UADescription (Wget 1.11.4) -Name[gu]=UADescription (Wget ૧.૧૧.૪) -Name[he]=UADescription (Wget 1.11.4) -Name[hi]=यूए-डिस्क्रिप्शन (डब्ल्यूगेट 1.11.4) -Name[hr]=UADescription (Wget 1.11.4) -Name[hu]=Böngészőtípus (Wget 1.11.4) -Name[ia]=UADescritpion (Wget 1.11.4) -Name[id]=UADescription (Wget 1.11.4) -Name[is]=UADescription (Wget 1.11.4) -Name[it]=Descrizione UA (Wget 1.11.4) -Name[ja]=UADescription (Wget 1.11.4) -Name[kk]=UADescription (Wget 1.11.4) -Name[km]=UADescription (Wget 1.11.4) -Name[kn]=UADescription (Wget 1.11.4) -Name[ko]=UADescription (Wget 1.11.4) -Name[lt]=UADescription (Wget 1.11.4) -Name[lv]=UA Apraksts (Wget 1.11.4) -Name[mai]=यूएडी-डिस्क्रिप्शन (डब्ल्यूगेट 1.11.4) -Name[mk]=UADescription (Wget 1.11.4) -Name[ml]=യുഎവിവരണം (ഡബ്ലിയുഗെറ്റ് 1.11.4) -Name[nb]=Brukeragent (Wget 1.11.4) -Name[nds]=UA-Beschrieven (Wget 1.11.4) -Name[nl]=GA-beschrijving (Wget 1.11.4) -Name[nn]=Brukaragent (Wget 1.11.4) -Name[pa]=UADescription (Wget 1.11.4) -Name[pl]=Opis przeglądarki użytkownika (Wget 1.11.4) -Name[pt]=UADescription (Wget 1.11.4) -Name[pt_BR]=UADescription (Wget 1.11.4) -Name[ro]=Descriere AU (Wget 1.11.4) -Name[ru]=UADescription (Wget 1.11.4) -Name[se]=UA-čilgehus (Wget 1.11.4) -Name[si]=UADescription (Wget 1.11.4) -Name[sk]=Popis agenta (Wget 1.11.4) -Name[sl]=UAOpis (Wget 1.11.4) -Name[sr]=УА‑опис (Вгет 1.11.4) -Name[sr@ijekavian]=УА‑опис (Вгет 1.11.4) -Name[sr@ijekavianlatin]=UA-opis (wget 1.11.4) -Name[sr@latin]=UA-opis (wget 1.11.4) -Name[sv]=AA-beskrivning (Wget 1.11.4) -Name[tg]=UADescription (Wget 1.11.4) -Name[th]=UADescription (Wget 1.11.4) -Name[tr]=Kullanıcı Uygulaması Tanımı (Wget 1.11.4) -Name[uk]=UADescription (Wget 1.11.4) -Name[wa]=Idintifiaedje do betchteu (Wget 1.11.4) -Name[x-test]=xxUADescription (Wget 1.11.4)xx -Name[zh_CN]=客户端描述(Wget 1.11.4) -Name[zh_TW]=使用者代理描述 (Wget 1.11.4) -Type=Service -X-TDE-ServiceTypes=UserAgentStrings -X-TDE-UA-TAG=MISC -X-TDE-UA-FULL=Wget/1.11.4 -X-TDE-UA-NAME=Wget -X-TDE-UA-VERSION=1.11.4 diff --git a/kcontrol/kio/uninstall.desktop b/kcontrol/kio/uninstall.desktop deleted file mode 100644 index e1e3e1732..000000000 --- a/kcontrol/kio/uninstall.desktop +++ /dev/null @@ -1,2 +0,0 @@ -[Desktop Entry] -Hidden=true diff --git a/kcontrol/kio/useragent.desktop b/kcontrol/kio/useragent.desktop deleted file mode 100644 index 200f7b883..000000000 --- a/kcontrol/kio/useragent.desktop +++ /dev/null @@ -1,232 +0,0 @@ -[Desktop Entry] -Type=Application -Icon=agent -Exec=tdecmshell useragent -DocPath=kcontrol/useragent/index.html - - -X-TDE-Library=kio -X-TDE-FactoryName=useragent -X-TDE-ParentApp=kcontrol - -Name=Browser Identification -Name[af]=Stelsel identifisering -Name[ar]=تعريف المتصفح -Name[az]=Səyyah Tanıdılması -Name[be]=Ідэнтыфікацыя вандроўніка -Name[bg]=Идентификация -Name[bn]=ব্রাউজার সনাক্তকরণ -Name[br]=Anvelezh ar furcher -Name[bs]=Identifikacija browsera -Name[ca]=Identificació del navegador -Name[cs]=Identifikace prohlížeče -Name[csb]=Identifikacëjô przezérnika -Name[cy]=Enw'r Porwr -Name[da]=Browser-identifikation -Name[de]=Browserkennung -Name[el]=Ταυτοποίηση περιηγητή -Name[eo]=TTT-legila identeco -Name[es]=Identificación del navegador -Name[et]=Veebilehitseja identifikaator -Name[eu]=Arakatzailearen identifikazioa -Name[fa]=شناسایی مرورگر -Name[fi]=Selaimen tunnistus -Name[fr]=Identification du navigateur -Name[fy]=Blêder identifikaasje -Name[ga]=Aitheantas Brabhsálaithe -Name[gl]=Identificación do Navegador -Name[he]=זיהוי דפדפן -Name[hi]= ब्राउज़र पहचान -Name[hr]=Identifikacija preglednika -Name[hu]=Böngészőazonosító -Name[is]=Auðkenni vafra -Name[it]=Identificazione browser -Name[ja]=ブラウザ識別情報 -Name[ka]=ბრაუზერის ინდენტიფიკაცია -Name[kk]=Браузердің өз туралы хабарлауы -Name[km]=ការ​កំណត់​អត្តសញ្ញាណ​កម្មវិធី​រុករក -Name[ko]=브라우저 증명 -Name[lo]=ການແຈ້ງເຕືອນ -Name[lt]=Naršyklės identifikacija -Name[lv]=Pārlūka identifikācija -Name[mk]=Идентификација -Name[mn]=Хөтөч-Тодотгол -Name[ms]=Pengenalpastian Pelayar -Name[mt]=Identifikazzjoni tal-browser -Name[nb]=Nettleseridentifisering -Name[nds]=Nettkieker-Identiteet -Name[ne]=ब्राउजर पहिचान -Name[nl]=Browseridentificatie -Name[nn]=Nettlesaridentifikasjon -Name[nso]=Boitsibiso bja Seinyakisi -Name[pa]=ਝਲਕਾਰਾ ਪਛਾਣ -Name[pl]=Identyfikacja przeglądarki -Name[pt]=Identificação do Navegador -Name[pt_BR]=Identificação do Navegador -Name[ro]=Identificare navigator web -Name[ru]=Идентификация браузера -Name[rw]=Ikiranga Mucukumbuzi -Name[se]=Fierpmádatloganidentifikašuvdna -Name[sk]=Identifikácie prehliadača -Name[sl]=Identifikacija brskalnika -Name[sr]=Идентификација прегледача -Name[sr@Latn]=Identifikacija pregledača -Name[sv]=Webbläsaridentifikation -Name[ta]=உலாவி அடையாளம் -Name[tg]=Шиносоии тафсир -Name[th]=การแสดงตัวของบราวเซอร์ -Name[tr]=Web tarayıcı kimliği -Name[tt]=Browser Tanışması -Name[uk]=Ідентифікація навігатора -Name[ven]=U talusa ha burausu -Name[vi]=Nhận diện trình duyệt -Name[wa]=Inditifiaedje do betchteu -Name[xh]=Uchazo Lomkhangeli zincwadi -Name[zh_CN]=浏览器识别 -Name[zh_TW]=瀏覽器識別 -Name[zu]=Umazisi Womcingi - -Comment=Configure the way Konqueror reports itself -Comment[af]=Stel die manier waarop Konqueror homself raporteer op -Comment[ar]=إعداد طريقة التعريف لــ Konqueror عن نفسه -Comment[az]=Konqeror-un özünü tanıtmasını quraşdır -Comment[be]=Настаўленні спосабу прадстаўлення Konqueror у Сеціве -Comment[bg]=Настройване идентификацията на браузъра -Comment[bn]=কনকরার নিজেকে কিভাবে উপস্থাপন করবে তা কনফিগার করুন -Comment[bs]=Podesite kako se Konqueror identificira serveru -Comment[ca]=Configura com desitgeu que s'identifiqui el Konqueror -Comment[cs]=Zde můžete jak se bude Konqueror hlásit webovým serverům -Comment[csb]=Kònfigùracëjô ôrtu przedstôwianiô sã Konquerora -Comment[cy]=Ffurfweddu'r ffordd y mae Konqueror yn adrodd ei hun -Comment[da]=Indstil den måde Konquerors rapporterer sigselv -Comment[de]=Kennungen für Konqueror als Webbrowser festlegen -Comment[el]=Ρυθμίστε τον τρόπο με τον οποίο αναφέρεται το Konqueror -Comment[eo]=Agordo de Konkeranto-"user agent" -Comment[es]=Configuración del modo de autoidentificación de Konqueror -Comment[et]=Viisi, kuidas Konqueror endast teada annab, seadistamine -Comment[eu]=Konfiguratu nola azaltzen duen Konquerorrek bere burua -Comment[fa]=پیکربندی روشی که Konqueror گزارش خود را می‌دهد. -Comment[fi]=Vaihda Konquerorin esittäytymistapaa -Comment[fr]=Configuration de la manière dont Konqueror se signale -Comment[fy]=Hjir kinne jo fêststelle hoe Konqueror har by webtsjinners identifisearret -Comment[gl]=Configurar o xeito en que Konqueror informa sobre si mesmo -Comment[he]=שינוי הדרך שבה Konqueror מזדהה -Comment[hi]=कॉन्करर अपने आप को जिस रूप में रिपोर्ट करे वैसा कॉन्फ़िगर करें -Comment[hr]=Konfiguriranje načina na koji se Konqueror prijavljuje -Comment[hu]=A Konqueror webböngésző kliensazonosítójának beállítása -Comment[is]=Stilla hvernig Konqueror kynnir sig -Comment[it]=Configura il modo in cui Konqueror si identifica presso i server -Comment[ja]=Konqueror のブラウザ識別情報を設定 -Comment[ka]=Konqueror-ის იდენტიფიკაციის კონფიგურირება -Comment[kk]=Konqueror өз туралы хабарлауын баптау -Comment[km]=កំណត់​រចនាសម្ព័ន្ធ​របៀប​ដែល Konqueror រាយការណ៍​ខ្លួន​វា -Comment[ko]=Konqueror가 자신을 보고하는 방법 설정 -Comment[lo]=ທ່ານສາມາດປັບແຕ່ງລັກສະນະແລະຄວາມຮູ້ສຶກໃນການໃຊ້ງານ Konqueror ໄດ້ທີ່ນີ້ -Comment[lt]=Čia galite nustatyti, kaip Konqueror save identifikuoja -Comment[lv]=Norādiet kā Iekarotājs identificēs sevi -Comment[mk]=Конфигурирајте го начинот на кој Konqueror се пријавува себе си -Comment[mn]=Конкюрорыг вэб-Хөтөчөөр авах эсэхийг тогтоох -Comment[ms]=Konfigur cara Konqueror melaporkan dirinya -Comment[mt]=Ikkonfigura kif jirrapporta ruħu Konqueror -Comment[nb]=Tilpass Konquerors egenrapportering -Comment[nds]=Instellen, wat Konqueror seggt, woneem he is -Comment[ne]=कन्क्वेररले प्रतिवेदन गर्ने तरिकामा कन्फिगर गर्नुहोस् -Comment[nl]=Hier kunt u bepalen hoe Konqueror zich bij webservers identificeert -Comment[nn]=Vel korleis Konqueror skal presentera seg sjølv -Comment[nso]=Beakanya ka mokgwa wo Konqueror e ipegago ka gona -Comment[pa]=ਕੋਨਕਿਉਰੋਰ ਦੇ ਖੁਦ ਨੂੰ ਜਾਣਕਾਰੀ ਦੇਣ ਦੇ ਢੰਗ ਦੀ ਸੰਰਚਨਾ -Comment[pl]=Konfiguracja sposobu przedstawiania się Konquerora -Comment[pt]=Configuração da forma como o Konqueror se apresenta -Comment[pt_BR]=Configura o modo como o Konqueror se mostra externamente -Comment[ro]=Configurează modul în care Konqueror se identifică la serverele de web -Comment[ru]=Настройка идентификации Konqueror -Comment[rw]=Kuboneza inzira Konqueror yitangaza -Comment[se]=Vállje mo Konqueror galgá iežas ovdanbuktit -Comment[sk]=Nastavenie identifikácie Konquerora -Comment[sl]=Nastavitev načina predstavljanja Konquerorja -Comment[sr]=Подешавање како Konqueror представља себе -Comment[sr@Latn]=Podešavanje kako Konqueror predstavlja sebe -Comment[sv]=Anpassa hur Konqueror identifierar sig -Comment[ta]=கான்கொரர் அறிக்கைகளை வழிகளை வடிவமை -Comment[tg]=Танзими идентификатсияи Konqueror -Comment[th]=ปรับแต่งการแสดงตัวของคอนเควอร์เรอร์ -Comment[tr]=Konqueror'ın raporlama sistemini yapılandır -Comment[tt]=Konqueror üz-üzen beldergän ısulın saylaw -Comment[uk]=Тут можна налаштувати ідентифікацію Konqueror -Comment[ven]=Dzudzanyani ndila ine Kongueror yadi vhiga ngayo -Comment[vi]=Cấu hình cách Konqueror tự báo cáo -Comment[wa]=Aponteye li manire ki Konqueror si prezinte -Comment[xh]=Qwalasela indlela i Konqueror ezichaza ngayo -Comment[zh_CN]=配置 Konqueror 的报告自己的方式 -Comment[zh_TW]=設定 Konqueror 回報自身狀況的方式 -Comment[zu]=Hlanganisela indlela i-Konqueror ezibika ngayo - -Keywords=User Agent,Browser,Internet,WWW,Network,agent,bindings,server,login -Keywords[af]=Gebruiker Agent,Browser,Internet,WWW,Network,agent,bindings,server,login -Keywords[ar]=عميل المستخدم,المتصفح,الشبكة العالمية,الشبكة,عميل,bindings,User Agent,Browser,Internet,WWW,Network,agent,bindings, server,login,خادم,دخول -Keywords[az]=İstifadəçi Vasitəsi,Səyyah,İnternet,WWW,Şəbəkə,giriş,verici,vasitə -Keywords[be]=Кліент,Вандроўнік,Сетка,Агент,сервер,уваход,сесія,User Agent,Browser,Internet,WWW,Network,agent,bindings,server,login -Keywords[bg]=идентификация, клиент, потребителски, браузър, Интернет, агент, сайт, представяне, User Agent, Browser, Internet, WWW, Network, agent, bindings, server, login -Keywords[ca]=Agent d'usuari,Fullejador,Internet,WWW,Xarxa,agent,lligams,servidor,accés -Keywords[cs]=Uživatelský agent,Prohlížeč,Internet,WWW,Síť,Agent,Vazby,Server,Login,Přihlášení -Keywords[csb]=User Agent,programa brëkòwnika,przezérnik,Internet,WWW,séc,agent,sparłączenia,serwera,login -Keywords[cy]=Asiant y Defnyddiwr,Porwr,Rhyngrwyd,WWW,Rhwydwaith,asiant,rhwymiadau,gweinydd,mewngofnodi -Keywords[da]=Brugeragent,Internet,WWW,Netværk,agent,bindinger,server,login -Keywords[de]=Browserkennung,Internetprogramm,Browser,Internet,WWW,Netzwerk,Server,Zuordnungen,Anmeldung -Keywords[el]=Πράκτορας χρήστη,Περιηγητής,Διαδίκτυο,WWW,Δίκτυο,πράκτορας,bindings,εξυπηρετητής,σύνδεση -Keywords[eo]=uzanto,agento,TTT,Interreto,WWW,reto,asocioj,servilo,saluto -Keywords[es]=Agente de Usuario,Navegador,Internet,WWW,Red,agente,asociaciones,servidor,entrada,acceso -Keywords[et]=kasutajaagent,identifikaator,veebilehitseja,Internet,WWW,võrk,agent,seosed,server,sisselogimine -Keywords[eu]=Erabiltzaile agentea,Arakatzailea,Internet,WWW,sarea,agentea, elkarketak,zerbitzaria,saio-hasiera -Keywords[fa]=عامل کاربر، مرورگر، اینترنت، WWW، شبکه، عامل، مقیدسازیها، کارساز، ورود -Keywords[fi]=Käyttäjäagentti,Selain,Internet,WWW,Verkko,agentti,sidokset,palvelin,kirjautuminen -Keywords[fr]=identité du navigateur,navigateur,WWW,réseau,associations,serveur,connexion,login,internet -Keywords[fy]=user agent,browser,internet,www,netwurk,brûkersagint,agint,biningen,tsjinner,oanmelding -Keywords[ga]=UserAgent,gníomhaire úsáideora,Brabhsálaí,Idirlíon,WWW,Líonra,Gréasán,gníomhaire,ceangail,freastalaí,logáil isteach -Keywords[gl]=Axente de Usuario,User Agent,Navegador,Internet,WWW,Rede,axente,atallos,servidor,login -Keywords[he]=רשת,זיהוי,קישורים,שרת,כניסה למערכת,דפדפן,זיהוי דפדפן,WWW,אינטרנט, User Agent,Browser,Internet,WWW,Network,agent,bindings,server,login -Keywords[hi]=उपयोक्ता एजेंट, ब्राउज़र,इंटरनेट,डब्ल्यूडब्ल्यूडब्ल्यू,नेटवर्क,एजेंट,बाइंडिंग्स,सर्वर,लॉगइन -Keywords[hr]=User Agent,Browser,Internet,WWW,Network,agent,bindings,server,login,Korisnički agent,Preglednik,Mreža,povezivanja,poslužitelj,prijava -Keywords[hu]=böngészőtípus,böngésző,internet,WWW,hálózat,azonosító,hozzárendelések,kiszolgáló,bejelentkezés -Keywords[id]=Agen User,Browser,Internet,WWW,Jaringan,agent,bindings,server,login -Keywords[is]=Vafraauðkenning,Auðkennig,Auðkenning Vafra,Vafri,Net,Netið,bindingar,þjónn,innstimplun,innskráning -Keywords[it]=User agent,Navigazione,Browser,Internet,WWW,Rete,agent,collegamenti,server,login,accesso -Keywords[ja]=ユーザエージェント,ブラウザ,インターネット, WWW,ネットワーク,エージェント,バインディング,サーバ,ログイン -Keywords[km]=ភ្នាក់ងារ​អ្នក​ប្រើ,កម្មវិធី​រុករក,អ៊ិនធឺណិត,វើលវ៉ាយវិប,បណ្ដាញ,ភ្នាក់ងារ,ការ​ចង,ម៉ាស៊ីន​បម្រើ,ចូល -Keywords[lt]=Naudotojo agentas,User-Agent,Naršyklė,Internet,WWW,Tinklas,agentas,sietis,serveris, registracija -Keywords[lv]=Lietotāja Aģents,Pārlūks,Internets,WWW,Tīkls,aģents,sasaistes,serveris,pieteikšanās -Keywords[mk]=User Agent,Browser,Internet,WWW,Network,agent,bindings,server,login,Кориснички агент,Прелистувач,Интернет,Мрежа,агент,поврзувања,сервер,најава -Keywords[mn]=User Agent,Интернэт програм,Хөтөч,Интернэт,WWW,Сүлжээ,сервер,Холбоос,Нэвтрэлт -Keywords[nb]=brukaragent,nettleser,internett,WWW,verdensveven,nettverk,agent,tjener,innlogging -Keywords[nds]=User Agent,Browser,Internet,WWW,Nettwark,agent,bindings,Server,Nettkieker,anmellen -Keywords[ne]=प्रयोगकर्ता एजेन्ट, ब्राउजर, इन्टरनेट, WWW, सञ्जाल, एजेन्ट, बाइन्डिङहरू, सर्भर, लगइन -Keywords[nl]=user agent,browser,internet,www,netwerk,gebruikersagent,agent,bindingen,server,login -Keywords[nn]=brukaragent,nettlesar,internett,WWW,verdsveven,nettverk,agent,tenar,innlogging -Keywords[nso]=Mothusi wa Modirisi,Seinyakisi,Internet,WWW,Kgokagano,mothusi, ditlemo,moabi,tseno -Keywords[pa]=WWW,Network,agent,bindings,ਏਜੰਟ,ਸਰਵਰ,ਲਾਗਿੰਨ,ਇੰਟਰਨੈਟ,ਝਲਕਾਰਾ,ਉਪਭੋਗੀ ਏਜੰਟ,ਨੈਟਵਰਕ -Keywords[pl]=User Agent,program użytkownika,przeglądarka,Internet,WWW,sieć,agent,powiązania,serwer,login -Keywords[pt]=agente do utilizador,navegador,internet,WWW,rede -Keywords[pt_BR]=Agente de usuário,navegador,Internet,WWW,Rede,agente,ligações,servidor,login -Keywords[ro]=agent utilizator,User Agent,navigator,browser,Internet,WWW,rețea,agent,asocieri,server,logare -Keywords[rw]=Umukozi Ukoresha,Mucukumbuzi,Interineti,WWW,Urusoberemiyoboro,umukozi, Ibyafataranyijwe,seriveri,ifashayinjira -Keywords[se]=geavaheaddjiageanta,fierpmádatlogan,fierpmádat,WWW,interneahtta,fierbmi, ageanta,bálvá,sisačáliheapmi -Keywords[sk]=User Agent,Prehliadač,Internet,WWW,Sieť,agent,server,login,prihlásenie -Keywords[sl]=uporabniški agent,brskalnik,internet,WWW,splet,omrežje,strežnik,prijava -Keywords[sr]=User Агент,Browser,Интернет,WWW,Network,агент,bindings,сервер,login, Мрежа,прегледач,агент,кориснички агент -Keywords[sr@Latn]=User Agent,Browser,Internet,WWW,Network,agent,bindings,server,login, Mreža,pregledač,agent,korisnički agent -Keywords[sv]=Användaragent,Webbläsare,Internet,WWW,Nätverk,agent,bindningar, server,inloggning -Keywords[ta]=பயன்படுத்துபவர் முகவர்,உலாவி,வலைபின்னல்,WWW,வலைதளம்,முகவர்,bindings,சேவகன்,உள்நுழை -Keywords[th]=เครื่องมือของผู้ใช้,บราวเซอร์,อินเทอร์เน็ต,WWW,เครือข่าย,เครื่องมือ,การจับคู่,เซิร์ฟเวอร์,ล็อกอิน -Keywords[tr]=Kullanıcı Aracısı,Tarayıcı,İnternet,WWW,Ağ,giriş,sunucu,aracı -Keywords[uk]=агент навігатора,навігатор,Інтернет,WWW,мережа,агент,прив'язки,сервер,реєстрація -Keywords[uz]=User Agent,WWW,agent,bindings,Brauzer,Internet,Tarmoq,server -Keywords[uz@cyrillic]=User Agent,WWW,agent,bindings,Браузер,Интернет,Тармоқ,сервер -Keywords[ven]=Mushumisi,Buronza.Inithanete,WWW,Vhgukwamani,Mushumeli,dzithanganyo,Siva,U loga -Keywords[vi]=Trình khách,Trình duyệt,Internet,WWW,Mạng,khách,tổ hợp,máy chủ,đăng nhập -Keywords[wa]=User Agent,idintité do betchteu,betchteu,Internet,daedntoele,WWW,rantoele,idintité,agent,sierveu,login,elodjaedje -Keywords[xh]=Ummeli womsebenzisi,Umkhangeli zincwadi,Internet,WWW,Umsebenzi womnatha,ummeli,izibophelelo,umncedisi,igama elithile -Keywords[zh_CN]=User Agent,Browser,Internet,WWW,Network,agent,bindings,server,login,用户代理,Agent,Browser,Internet,WWW,Network,agent,bindings,server,login,用户代理,浏览,网络,代理,关联,服务器,登录 -Keywords[zh_TW]=User Agent,Browser,Internet,WWW,Network,agent,bindings,server,login,使用者代理程式,瀏覽器,網際網路,網路,代理程式,伺服器,登入 -Keywords[zu]=Ummeli Womsebenzisi,Umcingi,Internet,WWW,Uxhumano olusakazekile, ummeli,izibongo,umlekeleli,ngena ngaphakathi - -Categories=Qt;TDE;X-TDE-settings-webbrowsing; diff --git a/kcontrol/kio/useragentdlg.cpp b/kcontrol/kio/useragentdlg.cpp deleted file mode 100644 index 991200dd0..000000000 --- a/kcontrol/kio/useragentdlg.cpp +++ /dev/null @@ -1,403 +0,0 @@ -/* - Original Authors: - Copyright (c) Kalle Dalheimer 1997 - Copyright (c) David Faure 1998 - Copyright (c) Dirk Mueller 2000 - - Completely re-written by: - Copyright (C) 2000- Dawit Alemayehu - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License (GPL) - version 2 as published by the Free Software Foundation. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -#include "ksaveioconfig.h" -#include "fakeuaprovider.h" -#include "uagentproviderdlg.h" - -#include "useragentdlg.h" -#include "useragentdlg_ui.h" - -UserAgentDlg::UserAgentDlg( TQWidget * parent ) - :TDECModule( parent, "kcmkio" ) -{ - TQVBoxLayout *mainLayout = new TQVBoxLayout(this, 0, KDialog::spacingHint()); - - dlg = new UserAgentDlgUI (this); - mainLayout->addWidget(dlg); - - dlg->lvDomainPolicyList->setSorting(0); - - connect( dlg->cbSendUAString, TQT_SIGNAL(clicked()), TQT_SLOT(configChanged()) ); - - connect( dlg->gbDefaultId, TQT_SIGNAL(clicked(int)), - TQT_SLOT(changeDefaultUAModifiers(int))); - - connect( dlg->lvDomainPolicyList, TQT_SIGNAL(selectionChanged()), - TQT_SLOT(selectionChanged()) ); - connect( dlg->lvDomainPolicyList, TQT_SIGNAL(doubleClicked (TQListViewItem *)), - TQT_SLOT(changePressed()) ); - connect( dlg->lvDomainPolicyList, TQT_SIGNAL( returnPressed ( TQListViewItem * ) ), - TQT_SLOT( changePressed() )); - - connect( dlg->pbNew, TQT_SIGNAL(clicked()), TQT_SLOT( addPressed() ) ); - connect( dlg->pbChange, TQT_SIGNAL( clicked() ), TQT_SLOT( changePressed() ) ); - connect( dlg->pbDelete, TQT_SIGNAL( clicked() ), TQT_SLOT( deletePressed() ) ); - connect( dlg->pbDeleteAll, TQT_SIGNAL( clicked() ), TQT_SLOT( deleteAllPressed() ) ); - - load(); -} - -UserAgentDlg::~UserAgentDlg() -{ - delete m_provider; - delete m_config; -} - -void UserAgentDlg::load() -{ - d_itemsSelected = 0; - dlg->lvDomainPolicyList->clear(); - - m_config = new TDEConfig("kio_httprc", false, false); - m_provider = new FakeUASProvider(); - - TQStringList list = m_config->groupList(); - for ( TQStringList::Iterator it = list.begin(); it != list.end(); ++it ) - { - if ( (*it) == "") - continue; - TQString domain = *it; - m_config->setGroup(*it); - TQString agentStr = m_config->readEntry("UserAgent"); - if (!agentStr.isEmpty()) - { - TQString realName = m_provider->aliasStr(agentStr); - (void) new TQListViewItem( dlg->lvDomainPolicyList, domain.lower(), realName, agentStr ); - } - } - - // Update buttons and checkboxes... - m_config->setGroup(TQString::null); - bool b = m_config->readBoolEntry("SendUserAgent", true); - dlg->cbSendUAString->setChecked( b ); - m_ua_keys = m_config->readEntry("UserAgentKeys", DEFAULT_USER_AGENT_KEYS).lower(); - dlg->leDefaultId->setSqueezedText( KProtocolManager::defaultUserAgent( m_ua_keys ) ); - dlg->cbOS->setChecked( m_ua_keys.contains('o') ); - dlg->cbOSVersion->setChecked( m_ua_keys.contains('v') ); - dlg->cbOSVersion->setEnabled( m_ua_keys.contains('o') ); - dlg->cbPlatform->setChecked( m_ua_keys.contains('p') ); - dlg->cbProcessorType->setChecked( m_ua_keys.contains('m') ); - dlg->cbLanguage->setChecked( m_ua_keys.contains('l') ); - updateButtons(); - emit changed( false ); -} - -void UserAgentDlg::updateButtons() -{ - bool hasItems = dlg->lvDomainPolicyList->childCount() > 0; - - dlg->pbChange->setEnabled ((hasItems && d_itemsSelected == 1)); - dlg->pbDelete->setEnabled ((hasItems && d_itemsSelected > 0)); - dlg->pbDeleteAll->setEnabled ( hasItems ); -} - -void UserAgentDlg::defaults() -{ - dlg->lvDomainPolicyList->clear(); - m_ua_keys = DEFAULT_USER_AGENT_KEYS; - dlg->leDefaultId->setSqueezedText( KProtocolManager::defaultUserAgent(m_ua_keys) ); - dlg->cbOS->setChecked( m_ua_keys.contains('o') ); - dlg->cbOSVersion->setChecked( m_ua_keys.contains('v') ); - dlg->cbOSVersion->setEnabled( m_ua_keys.contains('o') ); - dlg->cbPlatform->setChecked( m_ua_keys.contains('p') ); - dlg->cbProcessorType->setChecked( m_ua_keys.contains('m') ); - dlg->cbLanguage->setChecked( m_ua_keys.contains('l') ); - dlg->cbSendUAString->setChecked( true ); - updateButtons(); - configChanged(); -} - -void UserAgentDlg::save() -{ - TQStringList deleteList; - - // This is tricky because we have to take care to delete entries - // as well. - TQStringList list = m_config->groupList(); - for ( TQStringList::Iterator it = list.begin(); it != list.end(); ++it ) - { - if ( (*it) == "") - continue; - TQString domain = *it; - m_config->setGroup(*it); - if (m_config->hasKey("UserAgent")) - deleteList.append(*it); - } - - TQListViewItem* it = dlg->lvDomainPolicyList->firstChild(); - while(it) - { - TQString domain = it->text(0); - if (domain[0] == '.') - domain = domain.mid(1); - TQString userAgent = it->text(2); - m_config->setGroup(domain); - m_config->writeEntry("UserAgent", userAgent); - deleteList.remove(domain); - - it = it->nextSibling(); - } - - m_config->setGroup(TQString::null); - m_config->writeEntry("SendUserAgent", dlg->cbSendUAString->isChecked()); - m_config->writeEntry("UserAgentKeys", m_ua_keys ); - m_config->sync(); - - // Delete all entries from deleteList. - if (!deleteList.isEmpty()) - { - // Remove entries from local file. - KSimpleConfig cfg("kio_httprc"); - for ( TQStringList::Iterator it = deleteList.begin(); - it != deleteList.end(); ++it ) - { - cfg.setGroup(*it); - cfg.deleteEntry("UserAgent", false); - cfg.deleteGroup(*it, false); // Delete if empty. - } - cfg.sync(); - - m_config->reparseConfiguration(); - // Check everything is gone, reset to blank otherwise. - for ( TQStringList::Iterator it = deleteList.begin(); - it != deleteList.end(); ++it ) - { - m_config->setGroup(*it); - if (m_config->hasKey("UserAgent")) - m_config->writeEntry("UserAgent", TQString::null); - } - m_config->sync(); - } - - KSaveIOConfig::updateRunningIOSlaves (this); - - emit changed( false ); -} - -bool UserAgentDlg::handleDuplicate( const TQString& site, - const TQString& identity, - const TQString& alias ) -{ - TQListViewItem* item = dlg->lvDomainPolicyList->firstChild(); - while ( item != 0 ) - { - if ( item->text(0) == site ) - { - TQString msg = i18n("
    Found an existing identification for" - "
    %1
    " - "Do you want to replace it?
    " - "
    ").arg(site); - int res = KMessageBox::warningContinueCancel(this, msg, - i18n("Duplicate Identification"), - i18n("Replace")); - if ( res == KMessageBox::Continue ) - { - item->setText(0, site); - item->setText(1, identity); - item->setText(2, alias); - configChanged(); - } - return true; - } - item = item->nextSibling(); - } - return false; -} - -void UserAgentDlg::addPressed() -{ - UAProviderDlg pdlg ( i18n("Add Identification"), this, m_provider ); - - if ( pdlg.exec() == TQDialog::Accepted ) - { - if ( !handleDuplicate( pdlg.siteName(), pdlg.identity(), pdlg.alias() ) ) - { - TQListViewItem* index = new TQListViewItem( dlg->lvDomainPolicyList, - pdlg.siteName(), - pdlg.identity(), - pdlg.alias() ); - dlg->lvDomainPolicyList->sort(); - dlg->lvDomainPolicyList->setCurrentItem( index ); - configChanged(); - } - } -} - -void UserAgentDlg::changePressed() -{ - UAProviderDlg pdlg ( i18n("Modify Identification"), this, m_provider ); - - TQListViewItem *index = dlg->lvDomainPolicyList->currentItem(); - - if(!index) - return; - - TQString old_site = index->text(0); - pdlg.setSiteName( old_site ); - pdlg.setIdentity( index->text(1) ); - - if ( pdlg.exec() == TQDialog::Accepted ) - { - TQString new_site = pdlg.siteName(); - if ( new_site == old_site || - !handleDuplicate( new_site, pdlg.identity(), pdlg.alias() ) ) - { - index->setText( 0, new_site ); - index->setText( 1, pdlg.identity() ); - index->setText( 2, pdlg.alias() ); - configChanged(); - } - } -} - -void UserAgentDlg::deletePressed() -{ - TQListViewItem* item; - TQListViewItem* nextItem = 0; - - item = dlg->lvDomainPolicyList->firstChild (); - - while (item != 0L) - { - if (dlg->lvDomainPolicyList->isSelected (item)) - { - nextItem = item->itemBelow(); - if ( !nextItem ) - nextItem = item->itemAbove(); - - delete item; - item = nextItem; - } - else - { - item = item->itemBelow(); - } - } - - if (nextItem) - dlg->lvDomainPolicyList->setSelected (nextItem, true); - - updateButtons(); - configChanged(); -} - -void UserAgentDlg::deleteAllPressed() -{ - dlg->lvDomainPolicyList->clear(); - updateButtons(); - configChanged(); -} - -void UserAgentDlg::configChanged() -{ - emit changed ( true ); -} - -void UserAgentDlg::changeDefaultUAModifiers( int ) -{ - m_ua_keys = ":"; // Make sure it's not empty - - if ( dlg->cbOS->isChecked() ) - m_ua_keys += 'o'; - - if ( dlg->cbOSVersion->isChecked() ) - m_ua_keys += 'v'; - - if ( dlg->cbPlatform->isChecked() ) - m_ua_keys += 'p'; - - if ( dlg->cbProcessorType->isChecked() ) - m_ua_keys += 'm'; - - if ( dlg->cbLanguage->isChecked() ) - m_ua_keys += 'l'; - - dlg->cbOSVersion->setEnabled(m_ua_keys.contains('o')); - - TQString modVal = KProtocolManager::defaultUserAgent( m_ua_keys ); - if ( dlg->leDefaultId->text() != modVal ) - { - dlg->leDefaultId->setSqueezedText(modVal); - configChanged(); - } -} - -void UserAgentDlg::selectionChanged () -{ - TQListViewItem* item; - - d_itemsSelected = 0; - item = dlg->lvDomainPolicyList->firstChild (); - - while (item != 0L) - { - if (dlg->lvDomainPolicyList->isSelected (item)) - d_itemsSelected++; - item = item->nextSibling (); - } - - updateButtons (); -} - -TQString UserAgentDlg::quickHelp() const -{ - return i18n( "

    Browser Identification

    " - "The browser-identification module allows you to have full " - "control over how Konqueror will identify itself to web " - "sites you browse." - "

    This ability to fake identification is necessary because " - "some web sites do not display properly when they detect that " - "they are not talking to current versions of either Netscape " - "Navigator or Internet Explorer, even if the browser actually " - "supports all the necessary features to render those pages " - "properly. " - "For such sites, you can use this feature to try to browse " - "them. Please understand that this might not always work, since " - "such sites might be using non-standard web protocols and or " - "specifications." - "

    NOTE: To obtain specific help on a particular section " - "of the dialog box, simply click on the quick help button on " - "the window title bar, then click on the section " - "for which you are seeking help." ); -} - -#include "useragentdlg.moc" diff --git a/kcontrol/kio/useragentdlg.h b/kcontrol/kio/useragentdlg.h deleted file mode 100644 index 746a8524a..000000000 --- a/kcontrol/kio/useragentdlg.h +++ /dev/null @@ -1,83 +0,0 @@ -/* - Original Authors: - Copyright (c) Kalle Dalheimer 1997 - Copyright (c) David Faure 1998 - Copyright (c) Dirk Mueller 2000 - - Completely re-written by: - Copyright (C) 2000- Dawit Alemayehu - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License (GPL) - version 2 as published by the Free Software Foundation. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#ifndef _USERAGENTDLG_H -#define _USERAGENTDLG_H - -#include - -class TDEConfig; -class FakeUASProvider; -class UserAgentDlgUI; - -class UserAgentDlg : public TDECModule -{ - Q_OBJECT - -public: - UserAgentDlg ( TQWidget * parent = 0) ; - ~UserAgentDlg(); - - virtual void load(); - virtual void save(); - virtual void defaults(); - TQString quickHelp() const; - -private slots: - void updateButtons(); - void selectionChanged(); - - void addPressed(); - void changePressed(); - void deletePressed(); - void deleteAllPressed(); - - void configChanged(); - void changeDefaultUAModifiers( int ); - -private: - bool handleDuplicate( const TQString&, const TQString&, const TQString& ); - - enum { - SHOW_OS = 0, - SHOW_OS_VERSION, - SHOW_PLATFORM, - SHOW_MACHINE, - SHOW_LANGUAGE - }; - - // Useragent modifiers... - TQString m_ua_keys; - - // Fake user-agent modifiers... - FakeUASProvider* m_provider; - - // - int d_itemsSelected; - - TDEConfig *m_config; - UserAgentDlgUI* dlg; -}; - -#endif diff --git a/kcontrol/kio/useragentdlg_ui.ui b/kcontrol/kio/useragentdlg_ui.ui deleted file mode 100644 index 1e5d55c4e..000000000 --- a/kcontrol/kio/useragentdlg_ui.ui +++ /dev/null @@ -1,355 +0,0 @@ - -UserAgentDlgUI - - - UserAgentDlgUI - - - - 0 - 0 - 395 - 470 - - - - <qt> -Here you can modify the default browser-identification text or set a site <code>(eg. www.kde.org)</code> or a domain <code>(eg. kde.org)</code> specific identification text.<p> -To add a new site specific identification text, click the <code>New</code> button and supply the necessary information. To change an existing site specific entry, click on the <code>Change</code> button. The <code>Delete</code> button will remove the selected site specific identification text, causing the setting to be used for that site or domain. -</qt> - - - - unnamed - - - 0 - - - - cbSendUAString - - - &Send identification - - - true - - - <qt> -Send the browser identification to web sites.<p> -<u>NOTE:</u> Many sites rely on this information to display pages properly, hence, it is highly recommended that you do not totally disable this feature but rather customize it.<p> -By default, only minimal identification information is sent to remote sites. The identification text that will be sent is shown below. -</qt> - - - - - gbDefaultId - - - true - - - Default Identification - - - The browser identification text sent to the sites you visit. Use the provided options to customize it. - - - - unnamed - - - 11 - - - - leDefaultId - - - - 1 - - - - Box - - - Raised - - - 0 - - - true - - - The browser identification text sent to the sites you visit. You can customize it using the options provided below. - - - - - cbOS - - - Add operating s&ystem name - - - Includes your operating system's name in the browser identification text. - - - - - layout2 - - - - unnamed - - - - spacer2 - - - Horizontal - - - Fixed - - - - 16 - 20 - - - - - - cbOSVersion - - - false - - - Add operating system &version - - - Includes your operating system's version number in the browser identification text. - - - - - - - cbPlatform - - - Add &platform name - - - Includes your platform type in the browser identification text - - - - - cbProcessorType - - - Add &machine (processor) type - - - Includes your machine's CPU type in the browser identification text. - - - - - cbLanguage - - - Add lang&uage information - - - Includes your language settings in the browser identification text. - - - - - - - gbDomainPolicy - - - true - - - Site Specific Identification - - - - unnamed - - - 11 - - - - - Site Name - - - true - - - true - - - - - Identification - - - true - - - true - - - - - User Agent - - - true - - - true - - - - lvDomainPolicyList - - - Extended - - - true - - - true - - - AllColumns - - - 0 - - - List of sites for which the specified identification text will be used instead of the default one. - - - - - layout1 - - - - unnamed - - - - pbNew - - - &New... - - - Add new identification text for a site. - - - - - pbChange - - - Chan&ge... - - - Change the selected identifier text. - - - - - pbDelete - - - D&elete - - - Delete the selected identifier text. - - - - - pbDeleteAll - - - Delete A&ll - - - Delete all identifiers. - - - - - spacer1 - - - Vertical - - - Expanding - - - - 21 - 16 - - - - - - - - - - - - cbOS - toggled(bool) - cbOSVersion - setEnabled(bool) - - - cbSendUAString - toggled(bool) - gbDefaultId - setEnabled(bool) - - - cbSendUAString - toggled(bool) - gbDomainPolicy - setEnabled(bool) - - - - kdialog.h - - - - - klineedit.h - klistview.h - - diff --git a/kcontrol/tdeio/CMakeLists.txt b/kcontrol/tdeio/CMakeLists.txt new file mode 100644 index 000000000..08e0c9098 --- /dev/null +++ b/kcontrol/tdeio/CMakeLists.txt @@ -0,0 +1,55 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( uasproviders ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + +##### other data ################################ + +install( FILES + cookies.desktop useragent.desktop cache.desktop + lanbrowser.desktop netpref.desktop proxy.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} ) + +install( FILES uninstall.desktop + RENAME smb.desktop + DESTINATION ${APPS_INSTALL_DIR}/Settings/WebBrowsing ) + +install( FILES socks.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR} ) +install( FILES uasprovider.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} ) +install( FILES smb.desktop DESTINATION ${APPS_INSTALL_DIR}/.hidden ) + + +##### kcm_tdeio (module) ########################## + +tde_add_kpart( kcm_tdeio AUTOMOC + SOURCES + policydlg.cpp kcookiesmain.cpp kcookiespolicies.cpp + main.cpp smbrodlg.cpp useragentdlg.cpp kproxydlgbase.cpp + kmanualproxydlg.cpp kenvvarproxydlg.cpp kproxydlg.cpp + kcookiesmanagement.cpp fakeuaprovider.cpp uagentproviderdlg.cpp + netpref.cpp cache.cpp ksaveioconfig.cpp socks.cpp socksbase.ui + kproxydlg_ui.ui kcookiesmanagementdlg_ui.ui kcookiespoliciesdlg_ui.ui + policydlg_ui.ui useragentdlg_ui.ui uagentproviderdlg_ui.ui + manualproxy_ui.ui envvarproxy_ui.ui cache_ui.ui + LINK tdeio-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kcontrol/tdeio/Makefile.am b/kcontrol/tdeio/Makefile.am new file mode 100644 index 000000000..8252bc487 --- /dev/null +++ b/kcontrol/tdeio/Makefile.am @@ -0,0 +1,39 @@ +SUBDIRS = uasproviders + +AM_CPPFLAGS = $(all_includes) +AM_LDFLAGS = $(all_libraries) + +METASOURCES = AUTO + +kde_module_LTLIBRARIES = kcm_tdeio.la + +kcm_tdeio_la_SOURCES = policydlg.cpp kcookiesmain.cpp kcookiespolicies.cpp \ + main.cpp smbrodlg.cpp useragentdlg.cpp kproxydlgbase.cpp \ + kmanualproxydlg.cpp kenvvarproxydlg.cpp kproxydlg.cpp \ + kcookiesmanagement.cpp fakeuaprovider.cpp uagentproviderdlg.cpp \ + netpref.cpp cache.cpp ksaveioconfig.cpp socks.cpp socksbase.ui \ + kproxydlg_ui.ui kcookiesmanagementdlg_ui.ui kcookiespoliciesdlg_ui.ui \ + policydlg_ui.ui useragentdlg_ui.ui uagentproviderdlg_ui.ui \ + manualproxy_ui.ui envvarproxy_ui.ui cache_ui.ui + +kcm_tdeio_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) +kcm_tdeio_la_LIBADD = $(LIB_KIO) $(LIB_KUTILS) + +messages: rc.cpp + $(XGETTEXT) *.cpp -o $(podir)/kcmtdeio.pot + +update_DATA = socks.upd +updatedir = $(kde_datadir)/tdeconf_update + +servicetypes_DATA = uasprovider.desktop +servicetypesdir = $(kde_servicetypesdir) + +xdg_apps_DATA = cookies.desktop useragent.desktop cache.desktop \ + lanbrowser.desktop netpref.desktop proxy.desktop + +smb_DATA = smb.desktop +smbdir = $(kde_appsdir)/.hidden + +install-data-local: uninstall.desktop + $(mkinstalldirs) $(DESTDIR)$(kde_appsdir)/Settings/WebBrowsing + $(INSTALL_DATA) $(srcdir)/uninstall.desktop $(DESTDIR)$(kde_appsdir)/Settings/WebBrowsing/smb.desktop diff --git a/kcontrol/tdeio/UA-DESKTOP-FILE-HOWTO b/kcontrol/tdeio/UA-DESKTOP-FILE-HOWTO new file mode 100644 index 000000000..a592d4b57 --- /dev/null +++ b/kcontrol/tdeio/UA-DESKTOP-FILE-HOWTO @@ -0,0 +1,135 @@ +Mini HOWTO create a "User-Agent" description file for KDE +========================================================= + +This mini HOWTO describes the procedure for creating a new user-agent +description file to extend the ones that come pre-packaged with KDE. +The purpose of a user agent description file is to fake or spoof sites +that refuse to render pages with the default KDE user-agent identification. + +In order to create new user-agent description files, simply follow the +normal desktop file specifications set by the "DESKTOP ENTRY STANDARD" +augmented with the following requirements: + +REQUIREMENTS: +============= +The following properties as defined by the DESKTOP ENTRY STANDARD +must be set as shown below: + +Name=UADescription (XXXX) +Type=Service +ServiceTypes=UserAgentStrings + +Though the (XXXX) value shown above can be any text, it is a good idea +to make it a short identification of the browser being emulated. However, +there is NO requirement on what the text should be. It can even be left +out. It is only meant to give people a quick idea which browser is being +emulated by your desktop file. + +NEW PROPERTIES: +=============== +X-TDE-UA-TAG +FIELD: REQUIRED +TYPE: QString +TRANSLATE: NO +DESCRIPTION: +An abbreviation of the actual browser-brand and is used +to group the entries whenever necessary. Currently there are 5 +approximations: IE, NN, MOZ, OP, MISC. These represent Internet +Explorer, Netscape Navigator, Mozilla, Opera and Miscellaneous +respectively. NOTE: you can enter any value here as it is just +a place holder that would be automatically replaced with the +actual user-agent name (X-TDE-UA-NAME). + +X-TDE-UA-FULL +FIELD: REQUIRED +TYPE: QString +TRANSLATE: NO +DESCRIPTION: +The full user-agent description that will be sent to the remote +site. It can contain the following keywords that would be replaced +with the appropriate value as defined by "uname": + +appSysName the name of the operating system (ex: Linux). +appPlatform the name of the platform. Currently hardcoded to "X11". +appLanguage the language values as set in the control panel (ex: en, en-US). +appSysRelease the version of the operating system (ex: 2.2.18). +appKDERelease the current release number as set by KDE (ex: 2.1.9 >=20010310). +appMachineType the processor or machine type (ex: i686). + +NOTE: if you use any of these values and want them to be replaced +automatically, make sure you include the X-TDE-UA-DYNAMIC-ENTRY field +and set its value to 1 (for true). + +X-TDE-UA-NAME +FIELD: REQUIRED +TYPE: QString +TRANSLATE: YES +DESCRIPTION: +The actual name of the browser or user-agent. + +X-TDE-UA-VERSION +FIELD: REQUIRED +TYPE: QString +TRANSLATE: YES +DESCRIPTION: +The actual version of the browser or user-agent. + +X-TDE-UA-SYSNAME +FIELD: OPTIONAL +TYPE: QString +TRANSLATE: YES +DESCRIPTION: +The system name (for example Linux) where the browser +identification was obtained from. + +X-TDE-UA-SYSRELEASE +FIELD: OPTIONAL +TYPE: QString +TRANSLATE: YES +DESCRIPTION: +The system version (for example 2.4.1) where the browser +identification was obtained from. + +X-TDE-UA-DYNAMIC-ENTRY +FIELD: OPTIONAL +TYPE: BOOLEAN (0/1) +TRANSLATE: NO +DESCRIPTION: +A boolean that indicates whether the keywords described under +X-TDE-UA-FULL should be translated. Make sure this field is +there with its value set to "1" if you want the keywords to +be replaced appropriately. + + +EXAMPLES: +========= +[Desktop Entry] +Name=UADescription (IE 5.5 on Win 98) +Type=Service +ServiceTypes=UserAgentStrings +X-TDE-UA-TAG=IE +X-TDE-UA-FULL=Mozilla/4.0 (compatible; MSIE 5.5; Windows 98) +X-TDE-UA-NAME=Internet Explorer +X-TDE-UA-VERSION=5.5 +X-TDE-UA-SYSNAME=Windows +X-TDE-UA-SYSRELEASE=98 + +[Desktop Entry] +Name=UADescription (NN 4.76 on current) +Type=Service +ServiceTypes=UserAgentStrings +X-TDE-UA-TAG=NN +X-TDE-UA-FULL=Mozilla/4.76 (appPlatform; U; appSysName appSysRelease appMachineType) +X-TDE-UA-NAME=Netscape Navigator +X-TDE-UA-VERSION=4.76 +X-TDE-UA-DYNAMIC-ENTRY=1 + +The first entry is a description file for Internet Explorer running on +a Windows 98 machine while the second one is an example of a description +file for Netscape browser using the "keyword" based approach to describe +the fields that should be replaced dynamically based on the current system +settings. Note that all "keyword" based desktop files should always set +X-TDE-UA-DYNAMIC-ENTRY to 1. + +Enjoy, +Dawit A. diff --git a/kcontrol/tdeio/cache.cpp b/kcontrol/tdeio/cache.cpp new file mode 100644 index 000000000..990770a2a --- /dev/null +++ b/kcontrol/tdeio/cache.cpp @@ -0,0 +1,127 @@ +/* + cache.cpp - Proxy configuration dialog + + Copyright (C) 2001,02,03 Dawit Alemayehu + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License (GPL) version 2 as published by the Free Software + Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#include "ksaveioconfig.h" +#include + +#include "cache.h" +#include "cache_ui.h" + +KCacheConfigDialog::KCacheConfigDialog( TQWidget* parent ) + :TDECModule( parent, "kcmtdeio" ) +{ + TQVBoxLayout* mainLayout = new TQVBoxLayout(this, 0, 0); + m_dlg = new CacheDlgUI(this); + mainLayout->addWidget(m_dlg); + mainLayout->addStretch(); + + load(); +} + +void KCacheConfigDialog::load() +{ + m_dlg->cbUseCache->setChecked(KProtocolManager::useCache()); + m_dlg->sbMaxCacheSize->setValue( KProtocolManager::maxCacheSize() ); + + TDEIO::CacheControl cc = KProtocolManager::cacheControl(); + + if (cc==TDEIO::CC_Verify) + m_dlg->rbVerifyCache->setChecked( true ); + else if (cc==TDEIO::CC_Refresh) + m_dlg->rbVerifyCache->setChecked( true ); + else if (cc==TDEIO::CC_CacheOnly) + m_dlg->rbOfflineMode->setChecked( true ); + else if (cc==TDEIO::CC_Cache) + m_dlg->rbCacheIfPossible->setChecked( true ); + + // Config changed notifications... + connect ( m_dlg->cbUseCache, TQT_SIGNAL(toggled(bool)), TQT_SLOT(configChanged()) ); + connect ( m_dlg->bgCachePolicy, TQT_SIGNAL(clicked (int)), TQT_SLOT(configChanged()) ); + connect ( m_dlg->sbMaxCacheSize, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(configChanged()) ); + connect ( m_dlg->pbClearCache, TQT_SIGNAL(clicked()), TQT_SLOT(slotClearCache()) ); + emit changed( false ); +} + +void KCacheConfigDialog::save() +{ + KSaveIOConfig::setUseCache( m_dlg->cbUseCache->isChecked() ); + KSaveIOConfig::setMaxCacheSize( m_dlg->sbMaxCacheSize->value() ); + + if ( !m_dlg->cbUseCache->isChecked() ) + KSaveIOConfig::setCacheControl(TDEIO::CC_Refresh); + else if ( m_dlg->rbVerifyCache->isChecked() ) + KSaveIOConfig::setCacheControl(TDEIO::CC_Refresh); + else if ( m_dlg->rbOfflineMode->isChecked() ) + KSaveIOConfig::setCacheControl(TDEIO::CC_CacheOnly); + else if ( m_dlg->rbCacheIfPossible->isChecked() ) + KSaveIOConfig::setCacheControl(TDEIO::CC_Cache); + + // Update running io-slaves... + KSaveIOConfig::updateRunningIOSlaves (this); + + emit changed( false ); +} + +void KCacheConfigDialog::defaults() +{ + m_dlg->cbUseCache->setChecked( true ); + m_dlg->rbVerifyCache->setChecked( true ); + m_dlg->sbMaxCacheSize->setValue( DEFAULT_MAX_CACHE_SIZE ); +} + +TQString KCacheConfigDialog::quickHelp() const +{ + return i18n( "

    Cache

    This module lets you configure your cache settings.

    " + "

    The cache is an internal memory in Konqueror where recently " + "read web pages are stored. If you want to retrieve a web " + "page again that you have recently read, it will not be " + "downloaded from the Internet, but rather retrieved from the " + "cache, which is a lot faster.

    " ); +} + +void KCacheConfigDialog::configChanged() +{ + emit changed( true ); +} + +void KCacheConfigDialog::slotClearCache() +{ + TDEProcess process; + process << "tdeio_http_cache_cleaner" << "--clear-all"; + process.start(TDEProcess::DontCare); + // Cleaning up might take a while. Better detach. + process.detach(); +} + +#include "cache.moc" diff --git a/kcontrol/tdeio/cache.desktop b/kcontrol/tdeio/cache.desktop new file mode 100644 index 000000000..7820fc38f --- /dev/null +++ b/kcontrol/tdeio/cache.desktop @@ -0,0 +1,220 @@ +[Desktop Entry] +Type=Application +DocPath=kcontrol/cache/index.html +Icon=cache +Exec=tdecmshell cache + + +X-TDE-Library=tdeio +X-TDE-FactoryName=cache +X-TDE-ParentApp=kcontrol + +Name=Cache +Name[af]=Kas +Name[ar]=الخابية +Name[az]=Ön Yaddaş +Name[be]=Кэш +Name[bg]=Временна памет +Name[bn]=ক্যাশে (Cache) +Name[br]=Krubuilh +Name[ca]=Cau +Name[de]=Zwischenspeicher +Name[el]=Λανθάνουσα μνήμη +Name[eo]=Tenejo +Name[es]=Caché +Name[et]=Puhver +Name[eu]=Katxea +Name[fa]=نهانگاه +Name[fi]=Välimuisti +Name[fy]=Lyts ûnthâld +Name[ga]=Taisce +Name[gl]=Caché +Name[he]=מטמון +Name[hi]=कैश +Name[hr]=Pohrana +Name[hu]=Gyorstár +Name[is]=Skyndiminni +Name[ja]=キャッシュ +Name[ka]=ქეში +Name[kk]=Бүркеме +Name[km]=ឃ្លាំង​សម្ងាត់ +Name[ko]=캐시 +Name[lo]=ແຄຊ +Name[lt]=Krepšys +Name[lv]=Kešatmiņa +Name[mk]=Кеш +Name[mn]=Завсрын хадгалагч +Name[nb]=Mellomlager +Name[nds]=Twischenspieker +Name[ne]=क्यास +Name[nn]=Mellomlager +Name[nso]=Polokelo +Name[pa]=ਕੈਂਚੇ +Name[pl]=Bufor +Name[ru]=Кэш +Name[rw]=Ubwihisho +Name[se]=Gaskarájus +Name[sk]=Vyrovnávacia pamäť +Name[sl]=Prepomnilnik +Name[sr]=Кеш +Name[sr@Latn]=Keš +Name[ta]=தற்காலிக +Name[te]=కెష్ +Name[tg]=Кэш +Name[th]=แคช +Name[tr]=Önbellek +Name[tt]=Alxäter +Name[uk]=Кеш +Name[uz]=Kesh +Name[uz@cyrillic]=Кэш +Name[vi]=Bộ đệm +Name[wa]=Muchete +Name[xh]=Indawo yokugcina efihlakeleyo +Name[zh_CN]=缓存 +Name[zh_TW]=快取 +Comment=Configure web cache settings +Comment[af]=Konfigureer web kas instellings +Comment[ar]=إعداد الخابية للشبكة +Comment[az]=Veb ün yaddaş qurğuları +Comment[be]=Настаўленні сеціўнага кэша +Comment[bg]=Настройване на временната памет +Comment[bn]=ওয়েব ক্যাশে সেটিংস কনফিগার করুন +Comment[br]=Kefluniañ krubuilh ar gwiad +Comment[bs]=Podesite postavke web cache-a +Comment[ca]=Configura les opcions per al cau web +Comment[cs]=Nastavení cache pro webové stránky +Comment[csb]=Kònfigùracëjô nastôwù cache +Comment[cy]=Ffurfweddu gosodiadau'r storfa w? +Comment[da]=Indstil cache-opsætning +Comment[de]=Einstellungen zum Zwischenspeicher vornehmen +Comment[el]=Ρυθμίστε τη λανθάνουσα μνήμη ιστοσελίδων +Comment[eo]=Agordo de tenejo +Comment[es]=Preferencias del caché de web +Comment[et]=Veebi vahemälu seadistamine +Comment[eu]=Konfiguratu web katxearen ezarpenak +Comment[fa]=پیکربندی تنظیمات نهانگاه وب +Comment[fi]=WWW-välimuistin asetuksia +Comment[fr]=Configuration des réglages du cache web +Comment[fy]=Hjir kinne jo it lyts ûnthâld fan it web ynstelle +Comment[gl]=Configurar as opcións da caché web +Comment[he]=שינוי הגדרות המטמון +Comment[hi]=वेब कैश विन्यास कॉन्फ़िगर करें +Comment[hr]=Konfiguriranje postavki web-pohrane +Comment[hu]=A webböngészési gyorstár beállításai +Comment[is]=Stilla skyndiminni fyrir vefflakk +Comment[it]=Configura le impostazioni della cache del web +Comment[ja]=ウェブキャッシュの設定 +Comment[ka]=ვებ კეშის პარამეტრების კონფიგურაცია +Comment[kk]=Веб бүркеме параметрлерін баптау +Comment[km]=កំណត់​រចនាសម្ព័ន្ធ​ការ​កំណត់​ឃ្លាំង​សម្ងាត់​បណ្ដាញ +Comment[ko]=웹 캐시 설정 +Comment[lo]=ປັບແຕ່ງການຕັ້ງຄ່າລະບົບແຄຊທີ່ນີ້ +Comment[lt]=Konfigūruokite žiniatinklio krepšio nustatymus +Comment[lv]=Šeit jūs varat konfigurēt tīmekļa kešatmiņas uzstādījumus +Comment[mk]=Конфигурирајте ги поставувањата за веб-кешот +Comment[mn]=Завсрын хадгалагч тохируулах +Comment[ms]=Konfigur seting cache web +Comment[mt]=Ikkonfigura l-cache tal-web +Comment[nb]=Tilpass vev-mellomlageret +Comment[nds]=Den Nett-Twischenspieker instellen +Comment[ne]=वेब क्यास सेटिङ कन्फिगर गर्नुहोस् +Comment[nl]=Hier kunt u de webcache instellen +Comment[nn]=Oppsett av vevmellomlager +Comment[nso]=Beakanya dipeakanyo tsa polokelo ya web +Comment[pa]=ਵੈੱਬ ਕੈਂਚੇ ਸੈਟਿੰਗ ਸੰਰਚਨਾ +Comment[pl]=Konfiguracja ustawień bufora (cache'a) +Comment[pt]=Configuração das opções da 'cache' da Web +Comment[pt_BR]=Configura as preferências de cache +Comment[ro]=Configurează setările cache-ului web +Comment[ru]=Настройка кэша +Comment[rw]=Kuboneza amagenamiterere y'ubwihisho bw'urubuga +Comment[se]=Heivet fierpmádatgaskarádjusa +Comment[sk]=Nastavenie vyrovnávacej pamäte pre WWW +Comment[sl]=Nastavitve spletnega predpomnilnika +Comment[sr]=Подешавање поставки веб кеша +Comment[sr@Latn]=Podešavanje postavki veb keša +Comment[sv]=Anpassa webbcacheinställningar +Comment[ta]=வலை தற்காலிக அமைப்புகளை வடிவமை +Comment[tg]=Танзимоти қароргоҳи пинҳонии интернет +Comment[th]=ปรับแต่งการตั้งค่าระบบแคช +Comment[tr]=Web önbellek ayarlarını buradan yapabilirsiniz +Comment[tt]=Alxäter caylawı +Comment[uk]=Налаштування установок кешу Тенет +Comment[uz]=Veb-kesh moslamalarini moslash +Comment[uz@cyrillic]=Веб-кэш мосламаларини мослаш +Comment[ven]=Dzudzanyani mavhekanyele a cache a webu +Comment[vi]=Cấu hình các thiết lập bộ đệm cho duyệt mạng +Comment[wa]=Fijhoz l' apontiaedje del muchete des pådjes waibe chal +Comment[xh]=Qwalasela izicwangciso ze web yendawo yokugcina efihlakeleyo +Comment[zh_CN]=配置网页缓存设置 +Comment[zh_TW]=設定網頁快取設定 +Comment[zu]=Hlanganisela izilungiselelo ze-cache ye-web +Keywords=Cache,History,Browsing History,Ports,Size +Keywords[ar]=الخابية,الخط الزمني,خط زمن التصفح,المنافذ,القياس الحجم,الذاكرة المخبئية,التأريخ,تأريخ المتصفح,المنافذ,الحجم +Keywords[az]=Kaşe,Keçmiş,Səyahət Keçmişi,Qapılar,Böyüklük +Keywords[be]=Кэш,Гісторыя,Гісторыя вандровак,Вандраванне,Парты,Памер,Cache,History,Browsing History,Ports,Size +Keywords[bg]=кеш, памет, временни, копия, страница, Cache, History, Browsing History, Ports, Size +Keywords[br]=Krubuilh,istor,furchal an istor,porzhioù,ment +Keywords[ca]=Cau,Historial,Historial de navegació,Ports,Mida +Keywords[cs]=Cache,Historie,Porty,Velikost +Keywords[csb]=cache,historëjô,historëjô przezéraniô,pòrtë,miara +Keywords[cy]=Storfa,Hanes,Hanes Pori,Pyrth,Maint +Keywords[da]=Cache,Historik,Netsøgningshistorik,Porte,Størrelse +Keywords[de]=Cache,Verlauf,History,Ports,Zwischenspeicher, Größe +Keywords[el]=Λανθάνουσα μνήμη,Ιστορικό,Ιστορικό περιήγησης,Θύρες,Μέγεθος +Keywords[eo]=Tenejo,Historio,TTT-umado,Pordoj,Grandeco +Keywords[es]=Caché,Historia,Historia de navegación,Puertos,Tamaño +Keywords[et]=cache,puhver,lehitsemise puhver,pordid,suurus +Keywords[eu]=Katxea,Historia,Arakaketa historia,Atakak,Neurria +Keywords[fa]=نهانگاه، تاریخچه، تاریخچۀ مرور، درگاهها، اندازه +Keywords[fi]=Välimuisti,Historia,Selailuhistoria,Portit,Koko +Keywords[fr]=Cache,historique,navigation de l'historique,ports,taille +Keywords[fy]=cache,lyts ûnthâld,history,Histoarje,grutte,Ynternet +Keywords[ga]=Taisce,Stair,Stair Brabhsála,Poirt,Méid +Keywords[gl]=Caché,Historial,Historial de Navegación,Portos,Tamaño +Keywords[he]=מטמון,היסטוריה,היסטוריית גלישה,יציאות,גודל,Cache,History,Browsing History,Ports,Size +Keywords[hi]=कैश,इतिहास,ब्राउज़िंग इतिहास,पोर्ट,आकार +Keywords[hr]=Cache,Pohrana,History,Povijest,Browsing History,Ports,Portovi,Size,Veličina,Povijest pretraživanja +Keywords[hu]=gyorstár,napló,böngészési napló,portok,méret +Keywords[is]=Skyndiminni,Saga,Vafrasaga,Gáttir,Stærð +Keywords[it]=cache,cronologia,navigazione,cronologia di navigazione,porte,dimensione +Keywords[ja]=キャッシュ,履歴,ブラウズの履歴,ポート,サイズ +Keywords[ka]=ქეში,ისტორია,მიმოხილვის ისტორია,პორტები,ზომა +Keywords[km]=ឃ្លាំង​សម្ងាត់,ប្រវត្តិ,ប្រវត្តិ​ការ​រុករក,ច្រក,ទំហំ +Keywords[lo]=ແຄຊ,ປະຫວັດການໃຊ້,ປະຫວັດການທ່ອງເວບประวัต,ພັອດ,ຂະຫນາດ +Keywords[lt]=Cache,History,Browsing History,Ports,Size, kešas,krepšys,žurnalas,istorija,naršymo žurnalas,naršymo istorija,portai,dydis +Keywords[mk]=Cache,History,Browsing History,Ports,Size,Кеш,Историја,Прелистување на историјата,Портови,Големина +Keywords[mn]=Cache,Түүх,History,Порт,Завсрын хадгалагч,Хэмжээ +Keywords[nb]=Mellomlager,Historie,Lesehistorie,Porter,Størrelse +Keywords[nds]=Twischenspieker,Vörgeschicht,Browsing History,Porten,Grött +Keywords[ne]=क्यास, इतिहास, ब्राउज इतिहास, पोर्ट, साइज +Keywords[nl]=cache,historie,geschiedenis,grootte,internet +Keywords[nn]=cache,mellomlager,historie,nettlesarhistorie,portar,storleik +Keywords[nso]=Polokelo,Histori,Hostori ya Boinyakisi,Maboemo,Bogolo +Keywords[pa]=ਅਕਾਰ,ਅਤੀਤ,ਝਲਕਾਰਾ,ਕੈਂਚੇ,ਪੋਰਟ +Keywords[pl]=cache,bufor,historia,historia przeglądania,porty,rozmiar +Keywords[pt]=Cache,Histórico,Histórico de Navegação,Portos,Tamanho +Keywords[pt_BR]=Cache,Histórico,Histórico de Navegação,Portas,Tamanho +Keywords[ro]=cache,istoric,navigare în istoric,porturi,mărime +Keywords[rw]=Ubwihisho,Amateka,Amateka yo Gucukumbura,Imiyoboro,Ingano +Keywords[se]=gaskarájus,historihkka,fierpmádatloganhistorihkka,verráhat,sturrodat +Keywords[sk]=Cache,Keš,vyrovnávacia pamäť,prehliadanie,história,porty,veľkosť +Keywords[sl]=predpomnilnik,zgodovina,zgodovina brskanja,vrata,velikost +Keywords[sr]=Кеш, Историјат, Прегледање историјата, Портови, Величина +Keywords[sr@Latn]=Keš, Istorijat, Pregledanje istorijata, Portovi, Veličina +Keywords[sv]=Cache,Historik,Webbläsningshistorik,Portar,Storlek +Keywords[ta]=தற்காலிக,வரலாறு,உலாவுதலின் வரலாறு,முனையங்கள்,அளவு +Keywords[th]=แคช,ประวัติการใช้,ประวัติการท่องเว็บ,พอร์ต,ขนาด +Keywords[tr]=Arabellek,Tarihçe,Gözatma Tarihçesi,Portlar +Keywords[uk]=кеш,історія, історія навігації,порти,розмір +Keywords[uz]=Kesh,Veb-sahifalar tarihi,Tarix,Portlar +Keywords[uz@cyrillic]=Кэш,Веб-саҳифалар тариҳи,Тарих,Портлар +Keywords[ven]=Cache,Divhazwakale,Divahzwakale ya Burausini,Ports,Saizi +Keywords[vi]=Đệm,Lịch sử,Lịch sử duyệt,Cổng,Cỡ +Keywords[wa]=Muchete,Istwere,Istwere do foytaedje,Pôrts,Grandeu +Keywords[xh]=Indawo yokugcina, Imbali, imbali Yokhangelo zincwadi, Amazibuko, Ubungakanani +Keywords[zh_CN]=Cache,History,Browsing History,Ports,Size,缓存,历史 +Keywords[zh_TW]=Cache,History,Browsing History,Ports,Size,快取 +Keywords[zu]=Cache,Umlando,Umlando wokucinga,Izikhumulo,Usayizi + +Categories=Qt;TDE;X-TDE-settings-webbrowsing; diff --git a/kcontrol/tdeio/cache.h b/kcontrol/tdeio/cache.h new file mode 100644 index 000000000..03a4d0581 --- /dev/null +++ b/kcontrol/tdeio/cache.h @@ -0,0 +1,50 @@ +/* + cache.h - Proxy configuration dialog + + Copyright (C) 2001,02,03 Dawit Alemayehu + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License (GPL) version 2 as published by the Free Software + Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef CACHE_H +#define CACHE_H + +#include + +class CacheDlgUI; + +class KCacheConfigDialog : public TDECModule +{ + Q_OBJECT + +public: + KCacheConfigDialog( TQWidget* parent = 0 ); + ~KCacheConfigDialog() {}; + + virtual void load(); + virtual void save(); + virtual void defaults(); + TQString quickHelp() const; + +protected slots: + void configChanged(); + void slotClearCache(); + +private: + CacheDlgUI* m_dlg; +}; + +#endif // CACHE_H diff --git a/kcontrol/tdeio/cache_ui.ui b/kcontrol/tdeio/cache_ui.ui new file mode 100644 index 000000000..ce9aed797 --- /dev/null +++ b/kcontrol/tdeio/cache_ui.ui @@ -0,0 +1,187 @@ + +CacheDlgUI + + + CacheDlgUI + + + + 0 + 0 + 424 + 172 + + + + + unnamed + + + 1 + + + + spacer1 + + + Horizontal + + + Fixed + + + + 16 + 21 + + + + + + lbMaxCacheSize + + + false + + + Disk cache &size: + + + sbMaxCacheSize + + + + + sbMaxCacheSize + + + false + + + 1 + + + 999999 + + + KB + + + + + pbClearCache + + + false + + + C&lear Cache + + + + + spacer2 + + + Horizontal + + + MinimumExpanding + + + + 0 + 21 + + + + + + cbUseCache + + + &Use cache + + + Check this box if you want the web pages you visit to be stored on your hard disk for quicker access. The stored pages will only be updated as needed instead of on every visit to that site. This is especially useful if you have a slow connection to the Internet. + + + + + bgCachePolicy + + + false + + + Policy + + + + unnamed + + + + rbVerifyCache + + + &Keep cache in sync + + + Verify whether the cached web page is valid before attempting to fetch the web page again. + + + + + rbCacheIfPossible + + + Use cache whenever &possible + + + Always use documents from the cache when available. You can still use the reload button to synchronize the cache with the remote host. + + + + + rbOfflineMode + + + O&ffline browsing mode + + + Do not fetch web pages that are not already stored in the cache. Offline mode prevents you from viewing pages that you have not previously visited. + + + + + + + + + cbUseCache + toggled(bool) + bgCachePolicy + setEnabled(bool) + + + cbUseCache + toggled(bool) + lbMaxCacheSize + setEnabled(bool) + + + cbUseCache + toggled(bool) + sbMaxCacheSize + setEnabled(bool) + + + cbUseCache + toggled(bool) + pbClearCache + setEnabled(bool) + + + + diff --git a/kcontrol/tdeio/cookies.desktop b/kcontrol/tdeio/cookies.desktop new file mode 100644 index 000000000..8428daf5a --- /dev/null +++ b/kcontrol/tdeio/cookies.desktop @@ -0,0 +1,215 @@ +[Desktop Entry] +Type=Application +DocPath=kcontrol/cookies/index.html +Icon=cookie +Exec=tdecmshell cookies + + +X-TDE-Library=tdeio +X-TDE-FactoryName=cookie +X-TDE-ParentApp=kcontrol + +Name=Cookies +Name[af]=Koekies +Name[ar]=الكعكات +Name[az]=Kökələr (Cookies) +Name[bg]=Бисквитки +Name[bn]=কুকি +Name[br]=Toupinoù +Name[bs]=Kolačići +Name[ca]=Galetes +Name[csb]=Kùszczi +Name[cy]=Cwcis +Name[da]=Cookier +Name[eo]=Kuketoj +Name[et]=Küpsised +Name[eu]=Cookie-ak +Name[fa]=کوکیها +Name[fi]=Evästeet +Name[fy]=Koekjes +Name[ga]=Fianáin +Name[he]=עוגיות +Name[hi]=कुकीज़ +Name[hr]=Kolačići +Name[hu]=Cookie-k +Name[is]=Smákökur +Name[it]=Cookie +Name[ja]=クッキー +Name[ka]=ქუქები +Name[km]=ខូគី +Name[ko]=쿠키 +Name[lo]=ຄຸກກີ້ +Name[lt]=Slapukai +Name[lv]=Cepumi +Name[mk]=Колачиња +Name[nb]=Informasjonskapsler +Name[nds]=Kookjes +Name[ne]=कुकी +Name[nn]=Informasjonskapslar +Name[nso]=Di-Cookie +Name[pa]=ਕੂਕੀਜ਼ +Name[pl]=Ciasteczka +Name[ro]=Cookie-uri +Name[rw]=Inyandikonyakwirema +Name[se]=Diehtočoahkku +Name[sl]=Piškotki +Name[sr]=Колачићи +Name[sr@Latn]=Kolačići +Name[sv]=Kakor +Name[ta]=தற்காலிக நினைவுகள் +Name[te]=కుకిస్ +Name[th]=คุกกี้ +Name[tr]=Çerezler +Name[tt]=Cookie +Name[uk]=Куки +Name[uz]=Kukilar +Name[uz@cyrillic]=Кукилар +Name[wa]=Coukes + +Comment=Configure the way cookies work +Comment[af]=Konfigureer die weg koekies werk +Comment[ar]=إعداد أسلوب العمل للكعكات +Comment[az]=Kökələrin işləmə yollarını quraşdır +Comment[be]=Наставіць cookies +Comment[bg]=Настройване на бисквитките +Comment[bn]=কুকি কনফিগার করুন +Comment[br]=Kefluniañ peseurt mod e labour an toupinoù +Comment[bs]=Podesite način rada cookie-ja +Comment[ca]=Configura com treballaran les galetes +Comment[cs]=Nastavení chování cookies +Comment[csb]=Kònfigùracëjô dzéjaniô kùszków (cookies) +Comment[cy]=Ffurfweddu'r ffordd y mae cwcis yn gweithio +Comment[da]=Indstil den måde cookier virker +Comment[de]=Einstellungen zu Cookies vornehmen +Comment[el]=Ρυθμίστε τον τρόπο με τον οποίο δουλεύουν τα cookies +Comment[eo]=Agordo de kuketoj +Comment[es]=Configuración del funcionamiento de las cookies +Comment[et]=Küpsiste käitumise seadistamine +Comment[eu]=Konfiguratu cookien portaera +Comment[fa]=پیکربندی روش کار کردن کوکیها +Comment[fi]=Evästeiden toiminta +Comment[fr]=Configuration de la manière dont les cookies fonctionnent +Comment[fy]=Hjir kinne jo de wurkwize fan koekjes ynstelle +Comment[gl]=Configurar o funcionamento das cookies +Comment[he]=שינוי הגדרות פעולת העוגיות +Comment[hi]=कुकीज़ के कार्य करने के ढंग कॉन्फ़िगर करें +Comment[hr]=Konfiguriranje funkcioniranja kolačića +Comment[hu]=A cookie-k beállításai +Comment[is]=Stilla hvernig tekið er við smákökum +Comment[it]=Configurazione del funzionamento dei cookie +Comment[ja]=クッキーの扱いを設定 +Comment[kk]=Cookies жұмысын баптау +Comment[km]=កំណត់​រចនាសម្ព័ន្ធ​របៀប​ដែល​ខូគី​ដំណើរការ +Comment[ko]=쿠키 작동 방법을 설정합니다 +Comment[lo]=ປັບແຕ່ງການຕັ້ງຄ່າລະບົບແຄຊທີ່ນີ້ +Comment[lt]=Čia galite keisti slapukų veikimą +Comment[lv]=Šeit jūs varat konfigurēt cepumus +Comment[mk]=Конфигурирајте го начинот на кој работат колачињата +Comment[mn]=Cookies ажлыг тохируулах +Comment[ms]=Konfigur cara cookies berfungsi +Comment[mt]=Ikkonfigura kif jaħdmu l-"cookies" +Comment[nb]=Oppsett av informasjonskapsler +Comment[nds]=Instellen, woans de Kookjes funkscheneert +Comment[ne]=कुकीको कार्य तरिका कन्फिगर गर्नुहोस् +Comment[nl]=Hier kunt u het cookiesbeleid instellen +Comment[nn]=Oppsett av informasjonskapslar +Comment[nso]=Beakanya kamokgwa wo di-cookies di berekago kagona +Comment[pa]=ਕੂਕੀਜ਼ ਕੰਮ ਦੇ ਢੰਗ ਦੀ ਸੰਰਚਨਾ +Comment[pl]=Konfiguracja działania ciasteczek (cookies) +Comment[pt]=Configuração da forma como os 'cookies' funcionam +Comment[pt_BR]=Configura a maneira como os cookies funcionarão +Comment[ro]=Configurează modul în care acționează cookie-urile +Comment[ru]=Настройка cookies +Comment[rw]=Kuboneza uburyo inyandikonyakwirema zikora +Comment[se]=Diehtočoahkkoheivehusat +Comment[sk]=Nastavenie podpory cookies +Comment[sl]=Nastavitve delovanja piškotkov +Comment[sr]=Подешавање начина на који раде колачићи +Comment[sr@Latn]=Podešavanje načina na koji rade kolačići +Comment[sv]=Anpassa hur kakor fungerar +Comment[ta]=தற்காலிக நினைவகங்கள் வேலையை வடிவமை +Comment[tg]=Мизроб кардани cookies +Comment[th]=ปรับแต่งวิธีการทำงานของคุกกี้ +Comment[tr]=Çerezlerin çalışmasını yapılandırır +Comment[tt]=Cookies caylawı +Comment[uk]=Налаштування механізму кук +Comment[uz]=Kukilar ishlashini moslash +Comment[uz@cyrillic]=Кукилар ишлашини мослаш +Comment[ven]=Dzudzanyani ndila ine cookies dza shuma ngayo +Comment[vi]=Cấu hình cách cookies hoạt động +Comment[wa]=Apontyî l' dujhance des coukes +Comment[xh]=Qwalasela indlela ezisebenza ngayo i cookies +Comment[zh_CN]=配置 cookies 相关设置 +Comment[zh_TW]=設定 cookies 運作方式 +Comment[zu]=Hlanganisela indlela i-cookies esebenza ngayo + +Keywords=Cookies,Browsing,Internet,WWW,Network,Policy,Domains +Keywords[ar]=الكعكات,التصفح,الإنترنت,الشبكة العالمية,الشبكة,السياسة,أسماء النطاقات +Keywords[az]=Kökələr,Darama,İnternet,WWW,Şəbəkə,Sahə +Keywords[be]="Печыва",Вандроўка,Вандраванне,Інтэрнэт,Сетка,Правілы,Домены,Cookies,Browsing,Internet,WWW,Network,Policy,Domains +Keywords[bg]=бисквитка, бисквитки, Интернет, сърфиране, сесия, сигурност, Cookies, Browsing, Internet, WWW, Network, Policy, Domains +Keywords[ca]=Galetes,fullejar,Internet,WWW,Xarxa,Política,Dominis +Keywords[cs]=Cookie,Prohlížení,Internet,WWW,Síť,Domény +Keywords[csb]=kùszczi,przezéranié,Internet,WWW,séc,reglë,domenë +Keywords[cy]=Cwcis,Pori,Rhyngrwyd,WWW,Rhwydwaith,Polisi,Parthau +Keywords[da]=Cookier,Netsøgning,Internet,www,Netværk,Politik,Domæner +Keywords[de]=Cookies,Durchsuchen,Browsen,Surfen,Internet,WWW,Netzwerk,Regelungen,Domains +Keywords[el]=Cookies,Περιήγηση,Διαδίκτυο,WWW,Δίκτυο,Πολιτική,Τομείς +Keywords[eo]=kuketoj,TTT,Interreto,WWW,reto,konduto,retregionoj +Keywords[es]=Cookies,Navegación,Internet,WWW,Red,Política,Dominios +Keywords[et]=küpsised,lehitsemine,Internet,WWW,võrk,reeglid,domeenid +Keywords[eu]=Cookie-ak,Arakaketa,Internet,WWW,Sarea,Arautegia,Domeinuak +Keywords[fa]=کوکیها، مرور، اینترنت، WWW، شبکه، سیاست، دامنه‌ها +Keywords[fi]=Evästeet,Selailu,Internet,WWW,Verkko,Politiikka,Verkkoalueet +Keywords[fr]=Cookies,navigation,internet,WWW,Web,réseau,règle,politique,domaine +Keywords[fy]=Koekjes,blêdzjen,ynternet,www,netwurk,wurkwize,domeinen +Keywords[ga]=Fianán,Brabhsáil,Idirlíon,WWW,Líonra,Polasaí,Fearainn +Keywords[gl]=Cookies,Navegación,Internet,WWW,Rede,Política,Dominios +Keywords[he]=עוגיות,גלישה,אינטרנט,WWW,רשת,מדיניות,תחומים, Cookies,Browsing,Internet,Network,Policy,Domains +Keywords[hi]=कुकीज़,ब्राउजिंग,इंटरनेट,डब्ल्यूडब्ल्यूडब्ल्यू,नेटवर्क,पालिसी,डोमेन्स +Keywords[hr]=Cookies,Browsing,Internet,WWW,Network,Policy,Domains,Kolačići,Domene,Mreža,Pravila,Pregledavanje,Pretraživanje +Keywords[hu]=cookie-k,böngészés,internet,WWW,hálózat,házirend,tartományok +Keywords[id]=Cookies,Browsing,Internet,WWW,Jaringan,Policy,Domains +Keywords[is]=Smákökur,Flakk,Flakkari,Vafr,Vafri,Vefurinn,Netið,lén +Keywords[it]=cookie,navigazione,Internet,WWW,rete,politica,domini +Keywords[ja]=クッキー,ブラウス,インターネット,WWW,ネットワーク,ポリシー,ドメイン +Keywords[ka]=ქუქები,მიმოხილვა,ინტერნეტი,WWW,ქსელი,პოლისი,დომენები +Keywords[km]=ខូគី,រុករក,អ៊ិនធឺណិត,វើលវ៉ាយវិប,បណ្ដាញ,ភាព​ឯកជន,ដែន +Keywords[lo]=ຄຸກກີ້,ການຮງກເບິ່ງເວບເພດ,ອິນເຕີເນັດ,WWW,ລະບົບເຄືອຂ່າຍ, ຂໍ້ກຳນົດ,ໂດເມນ +Keywords[lt]=Slapukai,Naršymas,Internetas,WWW,Tinklas,Taisyklės,Sritys +Keywords[lv]=Cepumi,Pārlūkošana,Internets,WWW,Tīkls,Politika,Domēni +Keywords[mk]=Cookies,Browsing,Internet,WWW,Network,Policy,Domains,Колачиња,Прелистување,Интернет,Мрежа,Политика,Домени +Keywords[mn]=Cookies,Нэгжих,Browsing,Тэнэх,Интернэт,WWW,Сүлжээ,Дүрмүүд,Домайн +Keywords[nb]=cookies,informasjonskapsler,surfing,internett,WWW,verdensveven,nettverk,praksis,domene +Keywords[nds]=Kookjes,Nettkieken,Internet,WWW,Nettwark,Regel,Domänen +Keywords[ne]=कुकी,ब्राउजिङ, इन्टरनेट, WWW, सञ्जाल, नीति, डोमेन +Keywords[nl]=cookies,browsing,internet,www,netwerk,beleid,domeinen +Keywords[nn]=cookies,informasjonskapslar,surfing,internett,WWW,verdsveven,nettverk,praksis,domene +Keywords[nso]=Di-Cookies,Boinyakisi,Internet,WWW,Kgokagano,Molao,Ditikologo +Keywords[pa]=Cookies,Browsing,Internet,WWW,Network,ਨੀਤੀ, ਡੋਮੇਨ,ਇੰਟਰਨੈਟ +Keywords[pl]=ciasteczka,przeglądanie,Internet,WWW,sieć,zasady,domeny +Keywords[pt]=cookies,navegação,internet,WWW,rede,política,domínios +Keywords[pt_BR]=Cookies,Navegação,Internet,WWW,Rede,Política,Domínios +Keywords[ro]=cookies,navigare,Internet,WWW,rețea,politici,domenii +Keywords[rw]=Inyandikonyakwirema,Gucukumbura,Interineti,WWW,Urusobemiyoboro,Politiki,Indangarubuga +Keywords[se]=diehtočoahkku,bláđđen,fierpmádat,WWW,fierbmi,geavat,domeana +Keywords[sk]=Cookies,Prehliadanie, Internet, WWW, Sieť,Politika,Domény +Keywords[sl]=piškotki,brskanje,internet,splet,WWW,omrežje,politika,domene +Keywords[sr]=Cookies,Browsing,Интернет,WWW,Network,Policy,Domains,колачићи,Прегледање,мрежа,полиса,домени +Keywords[sr@Latn]=Cookies,Browsing,Internet,WWW,Network,Policy,Domains,kolačići,Pregledanje,mreža,polisa,domeni +Keywords[sv]=Kakor,Surfning,Internet,WWW,Nätverk,Policy,Domäner +Keywords[ta]=தற்காலிக நினைவகம்,உலாவுதல்,இணையம்t,WWW,வலைப்பின்னல்,கொள்கை,வலைதளங்கள் +Keywords[th]=คุกกี้,การเรียกดูเว็บเพจ,อินเทอร์เน็ต,WWW,ระบบเครือข่าย,ข้อกำหนด,โดเมน +Keywords[tr]=Çerezler,Tarama,İnternet,WWW,Ağ,Alan +Keywords[uk]=куки,навігація,Internet,Інтернет,WWW,мережа,правила,домени,Тенета +Keywords[uz]=Kukilar,Internet,WWW,Tarmoq,Qoida,Domenlar +Keywords[uz@cyrillic]=Кукилар,Интернет,WWW,Тармоқ,Қоида,Доменлар +Keywords[ven]=Cookies,Burousini.Inithenete,WWW +EnvVarProxyDlgUI + + + EnvVarProxyDlgUI + + + + 0 + 0 + 438 + 133 + + + + + unnamed + + + 0 + + + + leFtp + + + <qt> +Enter the name of the environment variable, e.g. <b>FTP_PROXY</b>, used to store the address of the FTP proxy server.<p> +Alternatively, you can click on the <b>"Auto Detect"</b> button to attempt an automatic discovery of this variable. +</qt> + + + + + leHttp + + + <qt> +Enter the name of the environment variable, e.g. <b>HTTP_PROXY</b>, used to store the address of the HTTP proxy server.<p> +Alternatively, you can click on the <b>"Auto Detect"</b> button to attempt automatic discovery of this variable. +</qt> + + + + + lbFtp + + + &FTP: + + + leFtp + + + <qt> +Enter the name of the environment variable, e.g. <b>FTP_PROXY</b>, used to store the address of the FTP proxy server.<p> +Alternatively, you can click on the <b>"Auto Detect"</b> button to attempt an automatic discovery of this variable. +</qt> + + + + + lbHttps + + + HTTP&S: + + + leHttps + + + <qt> +Enter the name of the environment variable, e.g. <b>HTTPS_PROXY</b>, used to store the address of the HTTPS proxy server.<p> +Alternatively, you can click on the <b>"Auto Detect"</b> button to attempt an automatic discovery of this variable. +</qt> + + + + + cbShowValue + + + Show the &value of the environment variables + + + + + pbVerify + + + &Verify + + + <qt>Verify whether or not the environment variable names you supplied are valid. If an environment variable is not found, the associated labels will be <b>highlighted</b> to indicate that they are invalid.</qt> + + + + + pbDetect + + + Auto &Detect + + + <qt>Attempt automatic discovery of the environment variables used for setting system wide proxy information.<p> This feature works by searching for commonly used variable names such as HTTP_PROXY, FTP_PROXY and NO_PROXY.</qt> + + + + + lbHttp + + + H&TTP: + + + leHttp + + + <qt> +Enter the name of the environment variable, e.g. <b>HTTP_PROXY</b>, used to store the address of the HTTP proxy server.<p> +Alternatively, you can click on the <b>"Auto Detect"</b> button to attempt automatic discovery of this variable. +</qt> + + + + + leHttps + + + <qt> +Enter the name of the environment variable, e.g. <b>HTTPS_PROXY</b>, used to store the address of the HTTPS proxy server.<p> +Alternatively, you can click on the <b>"Auto Detect"</b> button to attempt an automatic discovery of this variable. +</qt> + + + + + leNoProxy + + + <qt> +Enter the environment variable, e.g. <b>NO_PROXY</b>, used to store the addresses of sites for which the proxy server should not be used.<p> +Alternatively, you can click on the <b>"Auto Detect"</b> button to attempt an automatic discovery of this variable. +</qt> + + + + + lbNoProxy + + + NO &PROXY: + + + leNoProxy + + + <qt> +Enter the environment variable, e.g. <b>NO_PROXY</b>, used to store the addresses of sites for which the proxy server should not be used.<p> +Alternatively, you can click on the <b>"Auto Detect"</b> button to attempt an automatic discovery of this variable. +</qt> + + + + + + leHttp + leHttps + leFtp + leNoProxy + pbVerify + pbDetect + + + diff --git a/kcontrol/tdeio/fakeuaprovider.cpp b/kcontrol/tdeio/fakeuaprovider.cpp new file mode 100644 index 000000000..e00c63862 --- /dev/null +++ b/kcontrol/tdeio/fakeuaprovider.cpp @@ -0,0 +1,176 @@ +/* + * Copyright (c) 2001 Dawit Alemayehu + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#include +#include + + +#include +#include +#include + +#include "fakeuaprovider.h" + +#define UA_PTOS(x) (*it)->property(x).toString() +#define QFL(x) TQString::fromLatin1(x) + +FakeUASProvider::FakeUASProvider() +{ + m_bIsDirty = true; +} + +FakeUASProvider::StatusCode FakeUASProvider::createNewUAProvider( const TQString& uaStr ) +{ + TQStringList split; + int pos = (uaStr).find("::"); + + if ( pos == -1 ) + { + pos = (uaStr).find(':'); + if ( pos != -1 ) + { + split.append(uaStr.left(pos)); + split.append(uaStr.mid(pos+1)); + } + } + else + { + split = TQStringList::split("::", uaStr); + } + + if ( m_lstIdentity.contains(split[1]) ) + return DUPLICATE_ENTRY; + else + { + int count = split.count(); + m_lstIdentity.append( split[1] ); + if ( count > 2 ) + m_lstAlias.append(split[2]); + else + m_lstAlias.append( split[1]); + } + + return SUCCEEDED; +} + +void FakeUASProvider::loadFromDesktopFiles() +{ + m_providers.clear(); + m_providers = KTrader::self()->query("UserAgentStrings"); +} + +void FakeUASProvider::parseDescription() +{ + TQString tmp; + + KTrader::OfferList::ConstIterator it = m_providers.begin(); + KTrader::OfferList::ConstIterator lastItem = m_providers.end(); + + for ( ; it != lastItem; ++it ) + { + tmp = UA_PTOS("X-TDE-UA-FULL"); + + if ( (*it)->property("X-TDE-UA-DYNAMIC-ENTRY").toBool() ) + { + struct utsname utsn; + uname( &utsn ); + + tmp.replace( QFL("appSysName"), TQString(utsn.sysname) ); + tmp.replace( QFL("appSysRelease"), TQString(utsn.release) ); + tmp.replace( QFL("appMachineType"), TQString(utsn.machine) ); + + TQStringList languageList = TDEGlobal::locale()->languageList(); + if ( languageList.count() ) + { + TQStringList::Iterator it = languageList.find( TQString::fromLatin1("C") ); + if( it != languageList.end() ) + { + if( languageList.contains( TQString::fromLatin1("en") ) > 0 ) + languageList.remove( it ); + else + (*it) = TQString::fromLatin1("en"); + } + } + + tmp.replace( QFL("appLanguage"), TQString("%1").arg(languageList.join(", ")) ); + tmp.replace( QFL("appPlatform"), QFL("X11") ); + } + + // Ignore dups... + if ( m_lstIdentity.contains(tmp) ) + continue; + + m_lstIdentity << tmp; + + tmp = TQString("%1 %2").arg(UA_PTOS("X-TDE-UA-SYSNAME")).arg(UA_PTOS("X-TDE-UA-SYSRELEASE")); + if ( tmp.stripWhiteSpace().isEmpty() ) + tmp = TQString("%1 %2").arg(UA_PTOS("X-TDE-UA-" + "NAME")).arg(UA_PTOS("X-TDE-UA-VERSION")); + else + tmp = TQString("%1 %2 on %3").arg(UA_PTOS("X-TDE-UA-" + "NAME")).arg(UA_PTOS("X-TDE-UA-VERSION")).arg(tmp); + + m_lstAlias << tmp; + } + + m_bIsDirty = false; +} + +TQString FakeUASProvider::aliasStr( const TQString& name ) +{ + int id = userAgentStringList().findIndex(name); + if ( id == -1 ) + return TQString::null; + else + return m_lstAlias[id]; +} + +TQString FakeUASProvider::agentStr( const TQString& name ) +{ + int id = userAgentAliasList().findIndex(name); + if ( id == -1 ) + return TQString::null; + else + return m_lstIdentity[id]; +} + + +TQStringList FakeUASProvider::userAgentStringList() +{ + if ( m_bIsDirty ) + { + loadFromDesktopFiles(); + if ( !m_providers.count() ) + return TQStringList(); + parseDescription(); + } + return m_lstIdentity; +} + +TQStringList FakeUASProvider::userAgentAliasList () +{ + if ( m_bIsDirty ) + { + loadFromDesktopFiles(); + if ( !m_providers.count() ) + return TQStringList(); + parseDescription(); + } + return m_lstAlias; +} + diff --git a/kcontrol/tdeio/fakeuaprovider.h b/kcontrol/tdeio/fakeuaprovider.h new file mode 100644 index 000000000..8aedb639d --- /dev/null +++ b/kcontrol/tdeio/fakeuaprovider.h @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2001 Dawit Alemayehu + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#ifndef __FAKE_UAS_PROVIDER_H___ +#define __FAKE_UAS_PROVIDER_H___ + +#include + +class TQString; +class TQStringList; + +class FakeUASProvider +{ +public: + enum StatusCode { + SUCCEEDED=0, + ALREADY_EXISTS, + DUPLICATE_ENTRY + }; + + FakeUASProvider(); + ~FakeUASProvider(){}; + + StatusCode createNewUAProvider( const TQString& ); + TQString aliasStr( const TQString& ); + TQString agentStr( const TQString& ); + TQStringList userAgentStringList(); + TQStringList userAgentAliasList(); + bool isListDirty() const { return m_bIsDirty; } + void setListDirty( bool dirty ) { m_bIsDirty = dirty; } + +protected: + void loadFromDesktopFiles(); + void parseDescription(); + +private: + KTrader::OfferList m_providers; + TQStringList m_lstIdentity; + TQStringList m_lstAlias; + bool m_bIsDirty; +}; +#endif diff --git a/kcontrol/tdeio/kcookiesmain.cpp b/kcontrol/tdeio/kcookiesmain.cpp new file mode 100644 index 000000000..a904beb08 --- /dev/null +++ b/kcontrol/tdeio/kcookiesmain.cpp @@ -0,0 +1,99 @@ +// kcookiesmain.cpp - Cookies configuration +// +// First version of cookies configuration by Waldo Bastian +// This dialog box created by David Faure + +#include +#include + +#include +#include +#include +#include +#include + +#include "kcookiesmain.h" +#include "kcookiespolicies.h" +#include "kcookiesmanagement.h" + +KCookiesMain::KCookiesMain(TQWidget *parent) + : TDECModule(parent, "kcmtdeio") +{ + management = 0; + bool managerOK = true; + + DCOPReply reply = DCOPRef( "kded", "kded" ).call( "loadModule", + TQCString( "kcookiejar" ) ); + + if( !reply.isValid() ) + { + managerOK = false; + kdDebug(7103) << "kcm_tdeio: KDED could not load KCookiejar!" << endl; + KMessageBox::sorry(0, i18n("Unable to start the cookie handler service.\n" + "You will not be able to manage the cookies that " + "are stored on your computer.")); + } + + TQVBoxLayout *layout = new TQVBoxLayout(this); + tab = new TQTabWidget(this); + layout->addWidget(tab); + + policies = new KCookiesPolicies(this); + tab->addTab(policies, i18n("&Policy")); + connect(policies, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool))); + + if( managerOK ) + { + management = new KCookiesManagement(this); + tab->addTab(management, i18n("&Management")); + connect(management, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool))); + } +} + +KCookiesMain::~KCookiesMain() +{ +} + +void KCookiesMain::load() +{ + policies->load(); + if( management ) + management->load(); +} + +void KCookiesMain::save() +{ + policies->save(); + if ( management ) + management->save(); +} + +void KCookiesMain::defaults() +{ + TDECModule* module = static_cast(tab->currentPage()); + + if ( module == policies ) + policies->defaults(); + else if( management ) + management->defaults(); +} + +TQString KCookiesMain::quickHelp() const +{ + return i18n("

    Cookies

    Cookies contain information that Konqueror" + " (or other TDE applications using the HTTP protocol) stores on your" + " computer, initiated by a remote Internet server. This means that" + " a web server can store information about you and your browsing activities" + " on your machine for later use. You might consider this an invasion of" + " privacy.

    However, cookies are useful in certain situations. For example, they" + " are often used by Internet shops, so you can 'put things into a shopping basket'." + " Some sites require you have a browser that supports cookies.

    " + " Because most people want a compromise between privacy and the benefits cookies offer," + " TDE offers you the ability to customize the way it handles cookies. So you might want" + " to set TDE's default policy to ask you whenever a server wants to set a cookie," + " allowing you to decide. For your favorite shopping web sites that you trust, you might" + " want to set the policy to accept, then you can access the web sites without being prompted" + " every time TDE receives a cookie." ); +} + +#include "kcookiesmain.moc" diff --git a/kcontrol/tdeio/kcookiesmain.h b/kcontrol/tdeio/kcookiesmain.h new file mode 100644 index 000000000..14b202ff4 --- /dev/null +++ b/kcontrol/tdeio/kcookiesmain.h @@ -0,0 +1,37 @@ +// kcookiesmain.h - Cookies configuration +// +// First version of cookies configuration by Waldo Bastian +// This dialog box created by David Faure + +#ifndef __KCOOKIESMAIN_H +#define __KCOOKIESMAIN_H + +#include + +class TQTabWidget; +class DCOPClient; +class KCookiesPolicies; +class KCookiesManagement; + +class KCookiesMain : public TDECModule +{ + Q_OBJECT +public: + KCookiesMain(TQWidget *parent = 0L); + ~KCookiesMain(); + + KCookiesPolicies* policyDlg() { return policies; } + + virtual void load(); + virtual void save(); + virtual void defaults(); + virtual TQString quickHelp() const; + +private: + + TQTabWidget* tab; + KCookiesPolicies* policies; + KCookiesManagement* management; +}; + +#endif // __KCOOKIESMAIN_H diff --git a/kcontrol/tdeio/kcookiesmanagement.cpp b/kcontrol/tdeio/kcookiesmanagement.cpp new file mode 100644 index 000000000..172b0f5e0 --- /dev/null +++ b/kcontrol/tdeio/kcookiesmanagement.cpp @@ -0,0 +1,489 @@ +/** + * kcookiesmanagement.cpp - Cookies manager + * + * Copyright 2000-2001 Marco Pinelli + * Copyright (c) 2000-2001 Dawit Alemayehu + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "kcookiesmain.h" +#include "kcookiespolicies.h" +#include "kcookiesmanagement.h" +#include "kcookiesmanagementdlg_ui.h" + +#include + +struct CookieProp +{ + TQString host; + TQString name; + TQString value; + TQString domain; + TQString path; + TQString expireDate; + TQString secure; + bool allLoaded; +}; + +CookieListViewItem::CookieListViewItem(TQListView *parent, TQString dom) + :TQListViewItem(parent) +{ + init( 0, dom ); +} + +CookieListViewItem::CookieListViewItem(TQListViewItem *parent, CookieProp *cookie) + :TQListViewItem(parent) +{ + init( cookie ); +} + +CookieListViewItem::~CookieListViewItem() +{ + delete mCookie; +} + +void CookieListViewItem::init( CookieProp* cookie, TQString domain, + bool cookieLoaded ) +{ + mCookie = cookie; + mDomain = domain; + mCookiesLoaded = cookieLoaded; +} + +CookieProp* CookieListViewItem::leaveCookie() +{ + CookieProp *ret = mCookie; + mCookie = 0; + return ret; +} + +TQString CookieListViewItem::text(int f) const +{ + if (mCookie) + return f == 0 ? TQString() : KIDNA::toUnicode(mCookie->host); + else + return f == 0 ? KIDNA::toUnicode(mDomain) : TQString(); +} + +KCookiesManagement::KCookiesManagement(TQWidget *parent) + : TDECModule(parent, "kcmtdeio") +{ + // Toplevel layout + TQVBoxLayout* mainLayout = new TQVBoxLayout(this, KDialog::marginHint(), + KDialog::spacingHint()); + + dlg = new KCookiesManagementDlgUI (this); + + dlg->tbClearSearchLine->setIconSet(SmallIconSet(TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase")); + dlg->kListViewSearchLine->setListView(dlg->lvCookies); + + mainLayout->addWidget(dlg); + dlg->lvCookies->setSorting(0); + + connect(dlg->lvCookies, TQT_SIGNAL(expanded(TQListViewItem*)), TQT_SLOT(getCookies(TQListViewItem*)) ); + connect(dlg->lvCookies, TQT_SIGNAL(selectionChanged(TQListViewItem*)), TQT_SLOT(showCookieDetails(TQListViewItem*)) ); + + connect(dlg->pbDelete, TQT_SIGNAL(clicked()), TQT_SLOT(deleteCookie())); + connect(dlg->pbDeleteAll, TQT_SIGNAL(clicked()), TQT_SLOT(deleteAllCookies())); + connect(dlg->pbReload, TQT_SIGNAL(clicked()), TQT_SLOT(getDomains())); + connect(dlg->pbPolicy, TQT_SIGNAL(clicked()), TQT_SLOT(doPolicy())); + + connect(dlg->lvCookies, TQT_SIGNAL(doubleClicked (TQListViewItem *)), TQT_SLOT(doPolicy())); + deletedCookies.setAutoDelete(true); + m_bDeleteAll = false; + mainWidget = parent; + + load(); +} + +KCookiesManagement::~KCookiesManagement() +{ +} + +void KCookiesManagement::load() +{ + reset(); + getDomains(); +} + +void KCookiesManagement::save() +{ + // If delete all cookies was requested! + if(m_bDeleteAll) + { + if(!DCOPRef("kded", "kcookiejar").send("deleteAllCookies")) + { + TQString caption = i18n ("DCOP Communication Error"); + TQString message = i18n ("Unable to delete all the cookies as requested."); + KMessageBox::sorry (this, message,caption); + return; + } + m_bDeleteAll = false; // deleted[Cookies|Domains] have been cleared yet + } + + // Certain groups of cookies were deleted... + TQStringList::Iterator dIt = deletedDomains.begin(); + while( dIt != deletedDomains.end() ) + { + TQByteArray call; + TQByteArray reply; + TQCString replyType; + TQDataStream callStream(call, IO_WriteOnly); + callStream << *dIt; + + if( !DCOPRef("kded", "kcookiejar").send("deleteCookiesFromDomain", (*dIt)) ) + { + TQString caption = i18n ("DCOP Communication Error"); + TQString message = i18n ("Unable to delete cookies as requested."); + KMessageBox::sorry (this, message,caption); + return; + } + + dIt = deletedDomains.remove(dIt); + } + + // Individual cookies were deleted... + bool success = true; // Maybe we can go on... + TQDictIterator cookiesDom(deletedCookies); + + while(cookiesDom.current()) + { + CookiePropList *list = cookiesDom.current(); + TQPtrListIterator cookie(*list); + + while(*cookie) + { + if( !DCOPRef("kded", "kcookiejar").send("deleteCookie",(*cookie)->domain, + (*cookie)->host, (*cookie)->path, + (*cookie)->name) ) + { + success = false; + break; + } + + list->removeRef(*cookie); + } + + if(!success) + break; + + deletedCookies.remove(cookiesDom.currentKey()); + } + + emit changed( false ); +} + +void KCookiesManagement::defaults() +{ + reset(); + getDomains(); + emit changed (false); +} + +void KCookiesManagement::reset() +{ + m_bDeleteAll = false; + clearCookieDetails(); + dlg->lvCookies->clear(); + deletedDomains.clear(); + deletedCookies.clear(); + dlg->pbDelete->setEnabled(false); + dlg->pbDeleteAll->setEnabled(false); + dlg->pbPolicy->setEnabled(false); +} + +void KCookiesManagement::clearCookieDetails() +{ + dlg->leName->clear(); + dlg->leValue->clear(); + dlg->leDomain->clear(); + dlg->lePath->clear(); + dlg->leExpires->clear(); + dlg->leSecure->clear(); +} + +TQString KCookiesManagement::quickHelp() const +{ + return i18n("

    Cookies Management Quick Help

    " ); +} + +void KCookiesManagement::getDomains() +{ + DCOPReply reply = DCOPRef("kded", "kcookiejar").call("findDomains"); + + if( !reply.isValid() ) + { + TQString caption = i18n ("Information Lookup Failure"); + TQString message = i18n ("Unable to retrieve information about the " + "cookies stored on your computer."); + KMessageBox::sorry (this, message, caption); + return; + } + + TQStringList domains = reply; + + if ( dlg->lvCookies->childCount() ) + { + reset(); + dlg->lvCookies->setCurrentItem( 0L ); + } + + CookieListViewItem *dom; + for(TQStringList::Iterator dIt = domains.begin(); dIt != domains.end(); dIt++) + { + dom = new CookieListViewItem(dlg->lvCookies, *dIt); + dom->setExpandable(true); + } + + // are ther any cookies? + dlg->pbDeleteAll->setEnabled(dlg->lvCookies->childCount()); +} + +void KCookiesManagement::getCookies(TQListViewItem *cookieDom) +{ + CookieListViewItem* ckd = static_cast(cookieDom); + if ( ckd->cookiesLoaded() ) + return; + + TQValueList fields; + fields << 0 << 1 << 2 << 3; + + DCOPReply reply = DCOPRef ("kded", "kcookiejar").call ("findCookies", + DCOPArg(fields, "TQValueList"), + ckd->domain(), + TQString(), + TQString(), + TQString()); + if(reply.isValid()) + { + TQStringList fieldVal = reply; + TQStringList::Iterator fIt = fieldVal.begin(); + + while(fIt != fieldVal.end()) + { + CookieProp *details = new CookieProp; + details->domain = *fIt++; + details->path = *fIt++; + details->name = *fIt++; + details->host = *fIt++; + details->allLoaded = false; + new CookieListViewItem(cookieDom, details); + } + + static_cast(cookieDom)->setCookiesLoaded(); + } +} + +bool KCookiesManagement::cookieDetails(CookieProp *cookie) +{ + TQValueList fields; + fields << 4 << 5 << 7; + + DCOPReply reply = DCOPRef ("kded", "kcookiejar").call ("findCookies", + DCOPArg(fields, "TQValueList"), + cookie->domain, + cookie->host, + cookie->path, + cookie->name); + if( !reply.isValid() ) + return false; + + TQStringList fieldVal = reply; + + TQStringList::Iterator c = fieldVal.begin(); + cookie->value = *c++; + unsigned tmp = (*c++).toUInt(); + + if( tmp == 0 ) + cookie->expireDate = i18n("End of session"); + else + { + TQDateTime expDate; + expDate.setTime_t(tmp); + cookie->expireDate = TDEGlobal::locale()->formatDateTime(expDate); + } + + tmp = (*c).toUInt(); + cookie->secure = i18n(tmp ? "Yes" : "No"); + cookie->allLoaded = true; + return true; +} + +void KCookiesManagement::showCookieDetails(TQListViewItem* item) +{ + kdDebug () << "::showCookieDetails... " << endl; + CookieProp *cookie = static_cast(item)->cookie(); + if( cookie ) + { + if( cookie->allLoaded || cookieDetails(cookie) ) + { + dlg->leName->validateAndSet(cookie->name,0,0,0); + dlg->leValue->validateAndSet(cookie->value,0,0,0); + dlg->leDomain->validateAndSet(cookie->domain,0,0,0); + dlg->lePath->validateAndSet(cookie->path,0,0,0); + dlg->leExpires->validateAndSet(cookie->expireDate,0,0,0); + dlg->leSecure->validateAndSet(cookie->secure,0,0,0); + } + + dlg->pbPolicy->setEnabled (true); + } + else + { + clearCookieDetails(); + dlg->pbPolicy->setEnabled(false); + } + + dlg->pbDelete->setEnabled(true); +} + +void KCookiesManagement::doPolicy() +{ + // Get current item + CookieListViewItem *item = static_cast( dlg->lvCookies->currentItem() ); + + if( item && item->cookie()) + { + CookieProp *cookie = item->cookie(); + + TQString domain = cookie->domain; + + if( domain.isEmpty() ) + { + CookieListViewItem *parent = static_cast( item->parent() ); + + if ( parent ) + domain = parent->domain (); + } + + KCookiesMain* mainDlg =static_cast( mainWidget ); + // must be present or something is really wrong. + assert (mainDlg); + + KCookiesPolicies* policyDlg = mainDlg->policyDlg(); + // must be present unless someone rewrote the widget in which case + // this needs to be re-written as well. + assert (policyDlg); + policyDlg->addNewPolicy(domain); + } +} + + +void KCookiesManagement::deleteCookie(TQListViewItem* deleteItem) +{ + CookieListViewItem *item = static_cast( deleteItem ); + if( item->cookie() ) + { + CookieListViewItem *parent = static_cast(item->parent()); + CookiePropList *list = deletedCookies.find(parent->domain()); + if(!list) + { + list = new CookiePropList; + list->setAutoDelete(true); + deletedCookies.insert(parent->domain(), list); + } + + list->append(item->leaveCookie()); + delete item; + + if(parent->childCount() == 0) + delete parent; + } + else + { + deletedDomains.append(item->domain()); + delete item; + } +} + +void KCookiesManagement::deleteCookie() +{ + deleteCookie(dlg->lvCookies->currentItem()); + + TQListViewItem* currentItem = dlg->lvCookies->currentItem(); + + if ( currentItem ) + { + dlg->lvCookies->setSelected( currentItem, true ); + showCookieDetails( currentItem ); + } + else + clearCookieDetails(); + + dlg->pbDeleteAll->setEnabled(dlg->lvCookies->childCount()); + + const bool hasSelectedItem = dlg->lvCookies->selectedItem(); + dlg->pbDelete->setEnabled(hasSelectedItem); + dlg->pbPolicy->setEnabled(hasSelectedItem); + + emit changed( true ); +} + +void KCookiesManagement::deleteAllCookies() +{ + if ( dlg->kListViewSearchLine->text().isEmpty()) + { + reset(); + m_bDeleteAll = true; + } + else + { + TQListViewItem* item = dlg->lvCookies->firstChild(); + + while (item) + { + if (item->isVisible()) + { + deleteCookie(item); + item = dlg->lvCookies->currentItem(); + } + else + item = item->nextSibling(); + } + + const int count = dlg->lvCookies->childCount(); + m_bDeleteAll = (count == 0); + dlg->pbDeleteAll->setEnabled(count); + + const bool hasSelectedItem = dlg->lvCookies->selectedItem(); + dlg->pbDelete->setEnabled(hasSelectedItem); + dlg->pbPolicy->setEnabled(hasSelectedItem); + } + + emit changed( true ); +} + +#include "kcookiesmanagement.moc" diff --git a/kcontrol/tdeio/kcookiesmanagement.h b/kcontrol/tdeio/kcookiesmanagement.h new file mode 100644 index 000000000..51e31fbee --- /dev/null +++ b/kcontrol/tdeio/kcookiesmanagement.h @@ -0,0 +1,101 @@ +/** + * kcookiesmanagement.h - Cookies manager + * + * Copyright 2000-2001 Marco Pinelli + * + * Contributors: + * Copyright (c) 2000-2001 Dawit Alemayehu + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#ifndef __KCOOKIESMANAGEMENT_H +#define __KCOOKIESMANAGEMENT_H + +#include +#include +#include + +#include + + +class DCOPClient; +class KCookiesManagementDlgUI; + +struct CookieProp; + +class CookieListViewItem : public TQListViewItem +{ +public: + CookieListViewItem(TQListView *parent, TQString dom); + CookieListViewItem(TQListViewItem *parent, CookieProp *cookie); + ~CookieListViewItem(); + + TQString domain() const { return mDomain; } + CookieProp* cookie() const { return mCookie; } + CookieProp* leaveCookie(); + void setCookiesLoaded() { mCookiesLoaded = true; } + bool cookiesLoaded() const { return mCookiesLoaded; } + virtual TQString text(int f) const; + +private: + void init( CookieProp* cookie, + TQString domain = TQString::null, + bool cookieLoaded=false ); + CookieProp *mCookie; + TQString mDomain; + bool mCookiesLoaded; +}; + +class KCookiesManagement : public TDECModule +{ + Q_OBJECT + +public: + KCookiesManagement(TQWidget *parent = 0 ); + ~KCookiesManagement(); + + virtual void load(); + virtual void save(); + virtual void defaults(); + virtual TQString quickHelp() const; + +private slots: + void deleteCookie(); + void deleteAllCookies(); + void getDomains(); + void getCookies(TQListViewItem*); + void showCookieDetails(TQListViewItem*); + void doPolicy(); + +private: + void reset (); + void deleteCookie(TQListViewItem*); + bool cookieDetails(CookieProp *cookie); + void clearCookieDetails(); + bool policyenabled(); + +private: + bool m_bDeleteAll; + + TQWidget* mainWidget; + KCookiesManagementDlgUI* dlg; + + TQStringList deletedDomains; + typedef TQPtrList CookiePropList; + TQDict deletedCookies; +}; + +#endif // __KCOOKIESMANAGEMENT_H diff --git a/kcontrol/tdeio/kcookiesmanagementdlg_ui.ui b/kcontrol/tdeio/kcookiesmanagementdlg_ui.ui new file mode 100644 index 000000000..e4fb65121 --- /dev/null +++ b/kcontrol/tdeio/kcookiesmanagementdlg_ui.ui @@ -0,0 +1,323 @@ + +KCookiesManagementDlgUI + + + KCookiesManagementDlgUI + + + + 0 + 0 + 294 + 432 + + + + + unnamed + + + 0 + + + + layout6 + + + + unnamed + + + + + Domain [Group] + + + true + + + true + + + + + Host [Set By] + + + true + + + true + + + + lvCookies + + + Single + + + true + + + true + + + true + + + 15 + + + + + layout4 + + + + unnamed + + + + pbDelete + + + D&elete + + + + + pbDeleteAll + + + Delete A&ll + + + + + pbPolicy + + + Change &Policy... + + + + + pbReload + + + &Reload List + + + + + spacer3 + + + Vertical + + + MinimumExpanding + + + + 21 + 62 + + + + + + + + layout3 + + + + unnamed + + + + tbClearSearchLine + + + ... + + + Clear Search + + + + + textLabel1 + + + &Search: + + + kListViewSearchLine + + + + + kListViewSearchLine + + + Search interactively for domains and hosts + + + + + + + + + + + + gbDetails + + + Details + + + + unnamed + + + + leDomain + + + true + + + + + lePath + + + true + + + + + leSecure + + + true + + + + + lbName + + + Name: + + + leName + + + + + lbValue + + + Value: + + + leValue + + + + + lbDomain + + + Domain: + + + leDomain + + + + + lbPath + + + Path: + + + lePath + + + + + lbExpires + + + Expires: + + + leExpires + + + + + lbSecure + + + Secure: + + + leSecure + + + + + leValue + + + true + + + + + leExpires + + + true + + + + + leName + + + true + + + + + + + + + + + tbClearSearchLine + clicked() + kListViewSearchLine + clear() + + + + kdialog.h + + + + + klistviewsearchline.h + + diff --git a/kcontrol/tdeio/kcookiespolicies.cpp b/kcontrol/tdeio/kcookiespolicies.cpp new file mode 100644 index 000000000..803edf07f --- /dev/null +++ b/kcontrol/tdeio/kcookiespolicies.cpp @@ -0,0 +1,474 @@ +/** + * kcookiespolicies.cpp - Cookies configuration + * + * Original Authors + * Copyright (c) Waldo Bastian + * Copyright (c) 1999 David Faure + * + * Re-written by: + * Copyright (c) 2000- Dawit Alemayehu + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "ksaveioconfig.h" + +#include "kcookiespolicies.h" +#include "kcookiespoliciesdlg_ui.h" + +KCookiesPolicies::KCookiesPolicies(TQWidget *parent) + :TDECModule(parent, "kcmtdeio") +{ + TQVBoxLayout *mainLayout = new TQVBoxLayout(this, 0, 0); + + dlg = new KCookiesPolicyDlgUI (this); + dlg->lvDomainPolicy->header()->setStretchEnabled(true, 0); + dlg->lvDomainPolicy->setColumnWidthMode(0, KListView::Manual); + dlg->lvDomainPolicy->setColumnWidthMode(1, KListView::Maximum); + dlg->tbClearSearchLine->setIconSet(SmallIconSet(TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase")); + dlg->kListViewSearchLine->setListView(dlg->lvDomainPolicy); + TQValueList columns; + columns.append(0); + dlg->kListViewSearchLine->setSearchColumns(columns); + + mainLayout->addWidget(dlg); + + load(); +} + +KCookiesPolicies::~KCookiesPolicies() +{ +} + +void KCookiesPolicies::configChanged () +{ + //kdDebug() << "KCookiesPolicies::configChanged..." << endl; + emit changed((d_configChanged=true)); +} + +void KCookiesPolicies::cookiesEnabled( bool enable ) +{ + dlg->bgDefault->setEnabled( enable ); + dlg->bgPreferences->setEnabled ( enable ); + dlg->gbDomainSpecific->setEnabled( enable ); + + if (enable) + { + ignoreCookieExpirationDate ( enable ); + autoAcceptSessionCookies ( enable ); + } +} + +void KCookiesPolicies::ignoreCookieExpirationDate ( bool enable ) +{ + bool isAutoAcceptChecked = dlg->cbAutoAcceptSessionCookies->isChecked(); + enable = (enable && isAutoAcceptChecked); + + dlg->bgDefault->setEnabled( !enable ); + dlg->gbDomainSpecific->setEnabled( !enable ); +} + +void KCookiesPolicies::autoAcceptSessionCookies ( bool enable ) +{ + bool isIgnoreExpirationChecked = dlg->cbIgnoreCookieExpirationDate->isChecked(); + enable = (enable && isIgnoreExpirationChecked); + + dlg->bgDefault->setEnabled( !enable ); + dlg->gbDomainSpecific->setEnabled( !enable ); +} + +void KCookiesPolicies::addNewPolicy(const TQString& domain) +{ + PolicyDlg pdlg (i18n("New Cookie Policy"), this); + pdlg.setEnableHostEdit (true, domain); + + if (dlg->rbPolicyAccept->isChecked()) + pdlg.setPolicy(KCookieAdvice::Reject); + else + pdlg.setPolicy(KCookieAdvice::Accept); + + if (pdlg.exec() && !pdlg.domain().isEmpty()) + { + TQString domain = KIDNA::toUnicode(pdlg.domain()); + int advice = pdlg.advice(); + + if ( !handleDuplicate(domain, advice) ) + { + const char* strAdvice = KCookieAdvice::adviceToStr(advice); + TQListViewItem* index = new TQListViewItem (dlg->lvDomainPolicy, + domain, i18n(strAdvice)); + m_pDomainPolicy.insert (index, strAdvice); + configChanged(); + } + } +} + + +void KCookiesPolicies::addPressed() +{ + addNewPolicy (TQString::null); +} + +void KCookiesPolicies::changePressed() +{ + TQListViewItem* index = dlg->lvDomainPolicy->currentItem(); + + if (!index) + return; + + TQString oldDomain = index->text(0); + + PolicyDlg pdlg (i18n("Change Cookie Policy"), this); + pdlg.setPolicy (KCookieAdvice::strToAdvice(m_pDomainPolicy[index])); + pdlg.setEnableHostEdit (true, oldDomain); + + if( pdlg.exec() && !pdlg.domain().isEmpty()) + { + TQString newDomain = KIDNA::toUnicode(pdlg.domain()); + int advice = pdlg.advice(); + if (newDomain == oldDomain || !handleDuplicate(newDomain, advice)) + { + m_pDomainPolicy[index] = KCookieAdvice::adviceToStr(advice); + index->setText(0, newDomain); + index->setText(1, i18n(m_pDomainPolicy[index]) ); + configChanged(); + } + } +} + +bool KCookiesPolicies::handleDuplicate( const TQString& domain, int advice ) +{ + TQListViewItem* item = dlg->lvDomainPolicy->firstChild(); + while ( item != 0 ) + { + if ( item->text(0) == domain ) + { + TQString msg = i18n("A policy already exists for" + "
    %1
    " + "Do you want to replace it?
    ").arg(domain); + int res = KMessageBox::warningContinueCancel(this, msg, + i18n("Duplicate Policy"), + i18n("Replace")); + if ( res == KMessageBox::Continue ) + { + m_pDomainPolicy[item]= KCookieAdvice::adviceToStr(advice); + item->setText(0, domain); + item->setText(1, i18n(m_pDomainPolicy[item])); + configChanged(); + return true; + } + else + return true; // User Cancelled!! + } + item = item->nextSibling(); + } + return false; +} + +void KCookiesPolicies::deletePressed() +{ + TQListViewItem* nextItem = 0L; + TQListViewItem* item = dlg->lvDomainPolicy->firstChild (); + + while (item != 0L) + { + if (dlg->lvDomainPolicy->isSelected (item)) + { + nextItem = item->itemBelow(); + if ( !nextItem ) + nextItem = item->itemAbove(); + + delete item; + item = nextItem; + } + else + { + item = item->itemBelow(); + } + } + + if (nextItem) + dlg->lvDomainPolicy->setSelected (nextItem, true); + + updateButtons(); + configChanged(); +} + +void KCookiesPolicies::deleteAllPressed() +{ + m_pDomainPolicy.clear(); + dlg->lvDomainPolicy->clear(); + updateButtons(); + configChanged(); +} + +void KCookiesPolicies::updateButtons() +{ + bool hasItems = dlg->lvDomainPolicy->childCount() > 0; + + dlg->pbChange->setEnabled ((hasItems && d_itemsSelected == 1)); + dlg->pbDelete->setEnabled ((hasItems && d_itemsSelected > 0)); + dlg->pbDeleteAll->setEnabled ( hasItems ); +} + +void KCookiesPolicies::updateDomainList(const TQStringList &domainConfig) +{ + dlg->lvDomainPolicy->clear(); + + TQStringList::ConstIterator it = domainConfig.begin(); + for (; it != domainConfig.end(); ++it) + { + TQString domain; + KCookieAdvice::Value advice = KCookieAdvice::Dunno; + + splitDomainAdvice(*it, domain, advice); + + if (!domain.isEmpty()) + { + TQListViewItem* index = new TQListViewItem( dlg->lvDomainPolicy, KIDNA::toUnicode(domain), + i18n(KCookieAdvice::adviceToStr(advice)) ); + m_pDomainPolicy[index] = KCookieAdvice::adviceToStr(advice); + } + } +} + +void KCookiesPolicies::selectionChanged () +{ + TQListViewItem* item = dlg->lvDomainPolicy->firstChild (); + + d_itemsSelected = 0; + + while (item != 0L) + { + if (dlg->lvDomainPolicy->isSelected (item)) + d_itemsSelected++; + item = item->nextSibling (); + } + + updateButtons (); +} + +void KCookiesPolicies::load() +{ + d_itemsSelected = 0; + d_configChanged = false; + + TDEConfig cfg ("kcookiejarrc", true); + cfg.setGroup ("Cookie Policy"); + + bool enableCookies = cfg.readBoolEntry("Cookies", true); + dlg->cbEnableCookies->setChecked (enableCookies); + cookiesEnabled( enableCookies ); + + KCookieAdvice::Value advice = KCookieAdvice::strToAdvice (cfg.readEntry( + "CookieGlobalAdvice", "Ask")); + switch (advice) + { + case KCookieAdvice::Accept: + dlg->rbPolicyAccept->setChecked (true); + break; + case KCookieAdvice::Reject: + dlg->rbPolicyReject->setChecked (true); + break; + case KCookieAdvice::Ask: + case KCookieAdvice::Dunno: + default: + dlg->rbPolicyAsk->setChecked (true); + } + + bool enable = cfg.readBoolEntry("RejectCrossDomainCookies", true); + dlg->cbRejectCrossDomainCookies->setChecked (enable); + + bool sessionCookies = cfg.readBoolEntry("AcceptSessionCookies", true); + dlg->cbAutoAcceptSessionCookies->setChecked (sessionCookies); + bool cookieExpiration = cfg.readBoolEntry("IgnoreExpirationDate", false); + dlg->cbIgnoreCookieExpirationDate->setChecked (cookieExpiration); + updateDomainList(cfg.readListEntry("CookieDomainAdvice")); + + if (enableCookies) + { + ignoreCookieExpirationDate( cookieExpiration ); + autoAcceptSessionCookies( sessionCookies ); + updateButtons(); + } + + // Connect the main swicth :) Enable/disable cookie support + connect( dlg->cbEnableCookies, TQT_SIGNAL( toggled(bool) ), + TQT_SLOT( cookiesEnabled(bool) ) ); + connect( dlg->cbEnableCookies, TQT_SIGNAL( toggled(bool) ), + TQT_SLOT( configChanged() ) ); + + // Connect the preference check boxes... + connect ( dlg->cbRejectCrossDomainCookies, TQT_SIGNAL(clicked()), + TQT_SLOT(configChanged())); + connect ( dlg->cbAutoAcceptSessionCookies, TQT_SIGNAL(toggled(bool)), + TQT_SLOT(configChanged())); + connect ( dlg->cbIgnoreCookieExpirationDate, TQT_SIGNAL(toggled(bool)), + TQT_SLOT(configChanged())); + + connect ( dlg->cbAutoAcceptSessionCookies, TQT_SIGNAL(toggled(bool)), + TQT_SLOT(autoAcceptSessionCookies(bool))); + connect ( dlg->cbIgnoreCookieExpirationDate, TQT_SIGNAL(toggled(bool)), + TQT_SLOT(ignoreCookieExpirationDate(bool))); + + // Connect the default cookie policy radio buttons... + connect(dlg->bgDefault, TQT_SIGNAL(clicked(int)), TQT_SLOT(configChanged())); + + // Connect signals from the domain specific policy listview. + connect( dlg->lvDomainPolicy, TQT_SIGNAL(selectionChanged()), + TQT_SLOT(selectionChanged()) ); + connect( dlg->lvDomainPolicy, TQT_SIGNAL(doubleClicked (TQListViewItem *)), + TQT_SLOT(changePressed() ) ); + connect( dlg->lvDomainPolicy, TQT_SIGNAL(returnPressed ( TQListViewItem * )), + TQT_SLOT(changePressed() ) ); + + // Connect the buttons... + connect( dlg->pbNew, TQT_SIGNAL(clicked()), TQT_SLOT( addPressed() ) ); + connect( dlg->pbChange, TQT_SIGNAL( clicked() ), TQT_SLOT( changePressed() ) ); + connect( dlg->pbDelete, TQT_SIGNAL( clicked() ), TQT_SLOT( deletePressed() ) ); + connect( dlg->pbDeleteAll, TQT_SIGNAL( clicked() ), TQT_SLOT( deleteAllPressed() ) ); +} + +void KCookiesPolicies::save() +{ + // If nothing changed, ignore the save request. + if (!d_configChanged) + return; + + TDEConfig cfg ( "kcookiejarrc" ); + cfg.setGroup( "Cookie Policy" ); + + bool state = dlg->cbEnableCookies->isChecked(); + cfg.writeEntry( "Cookies", state ); + state = dlg->cbRejectCrossDomainCookies->isChecked(); + cfg.writeEntry( "RejectCrossDomainCookies", state ); + state = dlg->cbAutoAcceptSessionCookies->isChecked(); + cfg.writeEntry( "AcceptSessionCookies", state ); + state = dlg->cbIgnoreCookieExpirationDate->isChecked(); + cfg.writeEntry( "IgnoreExpirationDate", state ); + + TQString advice; + if (dlg->rbPolicyAccept->isChecked()) + advice = KCookieAdvice::adviceToStr(KCookieAdvice::Accept); + else if (dlg->rbPolicyReject->isChecked()) + advice = KCookieAdvice::adviceToStr(KCookieAdvice::Reject); + else + advice = KCookieAdvice::adviceToStr(KCookieAdvice::Ask); + + cfg.writeEntry("CookieGlobalAdvice", advice); + + TQStringList domainConfig; + TQListViewItem *at = dlg->lvDomainPolicy->firstChild(); + + while( at ) + { + domainConfig.append(TQString::fromLatin1("%1:%2").arg(KIDNA::toAscii(at->text(0))).arg(m_pDomainPolicy[at])); + at = at->nextSibling(); + } + + cfg.writeEntry("CookieDomainAdvice", domainConfig); + cfg.sync(); + + // Update the cookiejar... + if (!dlg->cbEnableCookies->isChecked()) + (void)DCOPRef("kded", "kcookiejar").send("shutdown"); + else + { + if (!DCOPRef("kded", "kcookiejar").send("reloadPolicy")) + KMessageBox::sorry(0, i18n("Unable to communicate with the cookie handler service.\n" + "Any changes you made will not take effect until the service " + "is restarted.")); + } + + // Force running io-slave to reload configurations... + KSaveIOConfig::updateRunningIOSlaves (this); + emit changed( false ); +} + + +void KCookiesPolicies::defaults() +{ + dlg->cbEnableCookies->setChecked( true ); + dlg->rbPolicyAsk->setChecked( true ); + dlg->rbPolicyAccept->setChecked( false ); + dlg->rbPolicyReject->setChecked( false ); + dlg->cbRejectCrossDomainCookies->setChecked( true ); + dlg->cbAutoAcceptSessionCookies->setChecked( true ); + dlg->cbIgnoreCookieExpirationDate->setChecked( false ); + dlg->lvDomainPolicy->clear(); + + cookiesEnabled( dlg->cbEnableCookies->isChecked() ); + updateButtons(); +} + +void KCookiesPolicies::splitDomainAdvice (const TQString& cfg, TQString &domain, + KCookieAdvice::Value &advice) +{ + int sepPos = cfg.findRev(':'); + + // Ignore any policy that does not contain a domain... + if ( sepPos <= 0 ) + return; + + domain = cfg.left(sepPos); + advice = KCookieAdvice::strToAdvice( cfg.mid( sepPos+1 ) ); +} + +TQString KCookiesPolicies::quickHelp() const +{ + return i18n("

    Cookies

    Cookies contain information that Konqueror" + " (or any other TDE application using the HTTP protocol) stores" + " on your computer from a remote Internet server. This means" + " that a web server can store information about you and your" + " browsing activities on your machine for later use. You might" + " consider this an invasion of privacy.

    However, cookies are" + " useful in certain situations. For example, they are often used" + " by Internet shops, so you can 'put things into a shopping" + " basket'. Some sites require you have a browser that supports" + " cookies.

    Because most people want a compromise between privacy" + " and the benefits cookies offer, TDE offers you the ability to" + " customize the way it handles cookies. You might, for example" + " want to set TDE's default policy to ask you whenever a server" + " wants to set a cookie or simply reject or accept everything." + " For example, you might choose to accept all cookies from your" + " favorite shopping web site. For this all you have to do is" + " either browse to that particular site and when you are presented" + " with the cookie dialog box, click on This domain under" + " the 'apply to' tab and choose accept or simply specify the name" + " of the site in the Domain Specific Policy tab and set" + " it to accept. This enables you to receive cookies from trusted" + " web sites without being asked every time TDE receives a cookie." + ); +} + +#include "kcookiespolicies.moc" diff --git a/kcontrol/tdeio/kcookiespolicies.h b/kcontrol/tdeio/kcookiespolicies.h new file mode 100644 index 000000000..50ce7a62b --- /dev/null +++ b/kcontrol/tdeio/kcookiespolicies.h @@ -0,0 +1,81 @@ +/** + * kcookiespolicies.h - Cookies configuration + * + * Original Authors + * Copyright (c) Waldo Bastian + * Copyright (c) 1999 David Faure + * + * Re-written by: + * Copyright (c) 2000- Dawit Alemayehu + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#ifndef __KCOOKIESPOLICIES_H +#define __KCOOKIESPOLICIES_H + +#include +#include + +#include "policydlg.h" + +class TQListViewItem; + +class DCOPClient; +class KCookiesPolicyDlgUI; + +class KCookiesPolicies : public TDECModule +{ + Q_OBJECT + +public: + KCookiesPolicies(TQWidget *parent = 0); + ~KCookiesPolicies(); + + virtual void load(); + virtual void save(); + virtual void defaults(); + virtual TQString quickHelp() const; + + void addNewPolicy(const TQString& domain); + +protected slots: + void autoAcceptSessionCookies ( bool ); + void ignoreCookieExpirationDate ( bool ); + void cookiesEnabled( bool ); + void configChanged(); + + void selectionChanged(); + void updateButtons(); + + void deleteAllPressed(); + void deletePressed(); + void changePressed(); + void addPressed(); + +private: + void updateDomainList(const TQStringList& list); + bool handleDuplicate( const TQString& domain, int ); + void splitDomainAdvice (const TQString& configStr, TQString &domain, + KCookieAdvice::Value &advice); + +private: + int d_itemsSelected; + bool d_configChanged; + KCookiesPolicyDlgUI* dlg; + TQMap m_pDomainPolicy; +}; + +#endif // __KCOOKIESPOLICIES_H diff --git a/kcontrol/tdeio/kcookiespoliciesdlg_ui.ui b/kcontrol/tdeio/kcookiespoliciesdlg_ui.ui new file mode 100644 index 000000000..880b41cba --- /dev/null +++ b/kcontrol/tdeio/kcookiespoliciesdlg_ui.ui @@ -0,0 +1,323 @@ + +KCookiesPolicyDlgUI + + + KCookiesPolicyDlgUI + + + + 0 + 0 + 444 + 552 + + + + + unnamed + + + + cbEnableCookies + + + Enable coo&kies + + + <qt> +Enable cookie support. Normally you will want to have cookie support enabled and customize it to suit your privacy needs.<p> +Please note that disabling cookie support might make many web sites unbrowsable. +</qt> + + + + + bgPreferences + + + + + + + unnamed + + + + cbRejectCrossDomainCookies + + + Only acce&pt cookies from originating server + + + <qt> +Reject the so called third-party cookies. These are cookies that originate from a site other than the one you are currently browsing. For example, if you visit <b>www.foobar.com</b> while this option is on, only cookies that originate from www.foobar.com will be processed per your settings. Cookies from any other site will be rejected. This reduces the chances of site operators compiling a profile about your daily browsing habits. +</qt> + + + + + cbAutoAcceptSessionCookies + + + Automaticall&y accept session cookies + + + <qt> +Automatically accept temporary cookies meant to expire at the end of the current session. Such cookies will not be stored in your computer's hard drive or storage device. Instead, they are deleted when you close all applications (e.g. your browser) that use them.<p> +<u>NOTE:</u> Checking this option along with the next one will override your default as well as site specific cookie policies. However, doing so also increases your privacy since all cookies will be removed when the current session ends. +</qt> + + + + + cbIgnoreCookieExpirationDate + + + Treat &all cookies as session cookies + + + <qt> +Treat all cookies as session cookies. Session cookies are small pieces of data that are temporarily stored in your computer's memory until you quit or close all applications (e.g. your browser) that use them. Unlike regular cookies, session cookies are never stored on your hard drive or other storage medium.<p> +<u>NOTE:</u> Checking this option along with the previous one will override your default as well as site specific cookie policies. However, doing so also increases your privacy since all cookies will be removed when the current session ends. +</qt> + + + + + + + bgDefault + + + Default Policy + + + true + + + <qt> +Determines how cookies received from a remote machine will be handled: +<ul> +<li><b>Ask</b> will cause KDE to ask for your confirmation whenever a server wants to set a cookie."</li> +<li><b>Accept</b> will cause cookies to be accepted without prompting you.</li> +<li><b>Reject</b> will cause the cookiejar to refuse all cookies it receives.</li> +</ul><p> +<u>NOTE:</u> Domain specific policies, which can be set below, always take precedence over the default policy. +</qt> + + + + unnamed + + + + rbPolicyAsk + + + Ask &for confirmation + + + + + rbPolicyAccept + + + Accep&t all cookies + + + + + rbPolicyReject + + + Re&ject all cookies + + + + + + + gbDomainSpecific + + + Site Policy + + + <qt> +To add a new policy, simply click on the <b>Add...</b> button and supply the necessary information. To change an existing policy, use the <b>Change...</b> button and choose the new policy from the policy dialog box. Clicking on the <b>Delete</b> button will remove the currently selected policy causing the default policy setting to be used for that domain whereas <b>Delete All</b> will remove all the site specific policies. +</qt> + + + + unnamed + + + + spacer1 + + + Vertical + + + MinimumExpanding + + + + 20 + 16 + + + + + + layout3 + + + + unnamed + + + + pbNew + + + &New... + + + + + pbChange + + + Chan&ge... + + + + + pbDelete + + + D&elete + + + + + pbDeleteAll + + + Delete A&ll + + + + + + + + Domain + + + true + + + true + + + + + Policy + + + true + + + true + + + + lvDomainPolicy + + + Extended + + + true + + + true + + + 0 + + + <qt> +List of sites for which you have set a specific cookie policy. Specific policies override the default policy setting for these sites. +</qt> + + + + + layout2 + + + + unnamed + + + + tbClearSearchLine + + + ... + + + Clear Search + + + + + textLabel1 + + + &Search: + + + kListViewSearchLine + + + + + kListViewSearchLine + + + + + + Search interactively for domains + + + + + + + + + + + + + tbClearSearchLine + clicked() + kListViewSearchLine + clear() + + + + kdialog.h + + + + + klistview.h + klistviewsearchline.h + + diff --git a/kcontrol/tdeio/kenvvarproxydlg.cpp b/kcontrol/tdeio/kenvvarproxydlg.cpp new file mode 100644 index 000000000..22accb4e9 --- /dev/null +++ b/kcontrol/tdeio/kenvvarproxydlg.cpp @@ -0,0 +1,303 @@ +/* + kenvvarproxydlg.cpp - Proxy configuration dialog + + Copyright (C) 2001- Dawit Alemayehu + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License (GPL) version 2 as published by the Free Software + Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include + +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#include "envvarproxy_ui.h" +#include "kenvvarproxydlg.h" + + +#define ENV_FTP_PROXY "FTP_PROXY,ftp_proxy,FTPPROXY,ftpproxy,PROXY,proxy" +#define ENV_HTTP_PROXY "HTTP_PROXY,http_proxy,HTTPPROXY,httpproxy,PROXY,proxy" +#define ENV_HTTPS_PROXY "HTTPS_PROXY,https_proxy,HTTPSPROXY,httpsproxy,PROXY,proxy" +#define NO_PROXY "NO_PROXY,no_proxy" + + +static TQString getProxyEnv(const TQString& var) +{ + return TQString::fromLocal8Bit(::getenv(var.local8Bit().data())); +} + +static bool autoDetectProxySetting(const TQString& type, TQString& proxyEnv) +{ + TQStringList list = TQStringList::split( ',', type); + TQStringList::ConstIterator it = list.begin(); + TQStringList::ConstIterator end = list.end(); + + for(; it != end; ++it) + { + if(!getProxyEnv(*it).isEmpty()) + { + proxyEnv = *it; + return true; + } + } + + return false; +} + +KEnvVarProxyDlg::KEnvVarProxyDlg( TQWidget* parent, const char* name ) + :KProxyDialogBase( parent, name, true, + i18n( "Variable Proxy Configuration" ) ) +{ + mDlg = new EnvVarProxyDlgUI( this ); + setMainWidget( mDlg ); + mDlg->leHttp->setMinimumWidth( mDlg->leHttp->fontMetrics().maxWidth() * 20 ); + init(); +} + +KEnvVarProxyDlg::~KEnvVarProxyDlg () +{ +} + +void KEnvVarProxyDlg::init() +{ + m_bHasValidData = false; + + connect( mDlg->cbShowValue, TQT_SIGNAL( clicked() ), TQT_SLOT( showValuePressed() ) ); + connect( mDlg->pbVerify, TQT_SIGNAL( clicked() ), TQT_SLOT( verifyPressed() ) ); + connect( mDlg->pbDetect, TQT_SIGNAL( clicked() ), TQT_SLOT( autoDetectPressed() ) ); +} + +void KEnvVarProxyDlg::setProxyData( const KProxyData& data ) +{ + // Setup HTTP Proxy... + if (!getProxyEnv(data.proxyList["http"]).isEmpty()) + mEnvVarsMap["http"] = data.proxyList["http"]; + + // Setup HTTPS Proxy... + if (!getProxyEnv(data.proxyList["https"]).isEmpty()) + mEnvVarsMap["https"] = data.proxyList["https"]; + + // Setup FTP Proxy... + if (!getProxyEnv(data.proxyList["ftp"]).isEmpty()) + mEnvVarsMap["ftp"] = data.proxyList["ftp"]; + + // Setup NO Proxy For... + TQString noProxyFor = data.noProxyFor.join(""); + if (!getProxyEnv(noProxyFor).isEmpty()) + mEnvVarsMap["noProxy"] = noProxyFor; + + mDlg->cbShowValue->setChecked( data.showEnvVarValue ); + showValue(); +} + +const KProxyData KEnvVarProxyDlg::data() const +{ + KProxyData data; + + if (m_bHasValidData) + { + data.proxyList["http"] = mEnvVarsMap["http"]; + data.proxyList["https"] = mEnvVarsMap["https"]; + data.proxyList["ftp"] = mEnvVarsMap["ftp"]; + data.noProxyFor = mEnvVarsMap["noProxy"]; + data.type = KProtocolManager::EnvVarProxy; + data.showEnvVarValue = mDlg->cbShowValue->isChecked(); + } + + return data; +} + + +void KEnvVarProxyDlg::verifyPressed() +{ + if ( !validate() ) + { + TQString msg = i18n("You must specify at least one valid proxy " + "environment variable."); + + TQString details = i18n("Make sure you entered the actual environment " + "variable name rather than its value. For " + "example, if the environment variable is
    " + "HTTP_PROXY=http://localhost:3128
    you need " + "to enter HTTP_PROXY here instead of the " + "actual value http://localhost:3128.
    "); + + KMessageBox::detailedSorry( this, msg, details, + i18n("Invalid Proxy Setup") ); + } + else + { + KMessageBox::information( this, i18n("Successfully verified."), + i18n("Proxy Setup") ); + } +} + +void KEnvVarProxyDlg::autoDetectPressed() +{ + bool found = false; + + setHighLight (mDlg->lbHttp, false); + setHighLight (mDlg->lbHttps, false); + setHighLight (mDlg->lbFtp, false); + setHighLight (mDlg->lbNoProxy, false); + + // Detect HTTP proxy settings... + found |= autoDetectProxySetting (TQString::fromLatin1(ENV_HTTP_PROXY), mEnvVarsMap["http"]); + + // Detect HTTPS proxy settings... + found |= autoDetectProxySetting (TQString::fromLatin1(ENV_HTTPS_PROXY), mEnvVarsMap["https"]); + + // Detect FTP proxy settings... + found |= autoDetectProxySetting (TQString::fromLatin1(ENV_FTP_PROXY), mEnvVarsMap["ftp"]); + + // Detect the NO_PROXY settings... + found |= autoDetectProxySetting (TQString::fromLatin1(NO_PROXY), mEnvVarsMap["noProxy"]); + + if ( !found ) + { + TQString msg = i18n("Did not detect any environment variables " + "commonly used to set system wide proxy " + "information."); + + TQString details = i18n("To learn about the variable names the " + "automatic detection process searches for, " + "press OK, click on the quick help button " + "on the window title bar of the " + "previous dialog and then click on the " + "\"Auto Detect\" button."); + + KMessageBox::detailedSorry( this, msg, details, + i18n("Automatic Proxy Variable Detection") ); + return; + } + + showValue(); +} + +void KEnvVarProxyDlg::updateVariables() +{ + TQString text = mDlg->leHttp->text(); + if (mEnvVarsMap["http"] != text) + mEnvVarsMap["http"] = text; + + text = mDlg->leHttps->text(); + if (mEnvVarsMap["https"] != text) + mEnvVarsMap["https"] = text; + + text = mDlg->leFtp->text(); + if (mEnvVarsMap["ftp"] != text) + mEnvVarsMap["ftp"] = text; + + text = mDlg->leNoProxy->text(); + if (mEnvVarsMap["noProxy"] != text) + mEnvVarsMap["noProxy"] = text; +} + +void KEnvVarProxyDlg::showValuePressed() +{ + // Only update the variables whenever + if (mDlg->cbShowValue->isChecked()) + updateVariables(); + + showValue(); +} + +void KEnvVarProxyDlg::showValue() +{ + bool enable = mDlg->cbShowValue->isChecked(); + + mDlg->leHttp->setReadOnly (enable); + mDlg->leHttps->setReadOnly (enable); + mDlg->leFtp->setReadOnly (enable); + mDlg->leNoProxy->setReadOnly (enable); + + if (enable) + { + mDlg->leHttp->setText(getProxyEnv(mEnvVarsMap["http"])); + mDlg->leHttps->setText(getProxyEnv(mEnvVarsMap["https"])); + mDlg->leFtp->setText(getProxyEnv(mEnvVarsMap["ftp"])); + mDlg->leNoProxy->setText(getProxyEnv(mEnvVarsMap["noProxy"])); + } + else + { + mDlg->leHttp->setText(mEnvVarsMap["http"]); + mDlg->leHttps->setText(mEnvVarsMap["https"]); + mDlg->leFtp->setText(mEnvVarsMap["ftp"]); + mDlg->leNoProxy->setText(mEnvVarsMap["noProxy"]); + } +} + +bool KEnvVarProxyDlg::validate(bool erase) +{ + m_bHasValidData = false; + + if(!mDlg->cbShowValue->isChecked()) + updateVariables(); + + bool notFound = getProxyEnv(mEnvVarsMap["http"]).isEmpty(); + m_bHasValidData |= !notFound; + setHighLight (mDlg->lbHttp, notFound); + if(notFound && erase) mEnvVarsMap["http"] = TQString::null; + + notFound = getProxyEnv(mEnvVarsMap["https"]).isEmpty(); + m_bHasValidData |= !notFound; + setHighLight (mDlg->lbHttps, notFound); + if(notFound && erase) mEnvVarsMap["https"] = TQString::null; + + notFound = getProxyEnv(mEnvVarsMap["ftp"]).isEmpty(); + m_bHasValidData |= !notFound; + setHighLight (mDlg->lbFtp, notFound); + if(notFound && erase) mEnvVarsMap["ftp"] = TQString::null; + + notFound = getProxyEnv(mEnvVarsMap["noProxy"]).isEmpty(); + m_bHasValidData |= !notFound; + setHighLight (mDlg->lbNoProxy, notFound); + if(notFound && erase) mEnvVarsMap["noProxy"] = TQString::null; + + return m_bHasValidData; +} + +void KEnvVarProxyDlg::slotOk() +{ + if(!validate(true)) + { + TQString msg = i18n("You must specify at least one valid proxy " + "environment variable."); + + TQString details = i18n("Make sure you entered the actual environment " + "variable name rather than its value. For " + "example, if the environment variable is
    " + "HTTP_PROXY=http://localhost:3128
    you need " + "to enter HTTP_PROXY here instead of the " + "actual value http://localhost:3128.
    "); + + KMessageBox::detailedError( this, msg, details, + i18n("Invalid Proxy Setup") ); + return; + } + + KDialogBase::slotOk (); +} + +#include "kenvvarproxydlg.moc" diff --git a/kcontrol/tdeio/kenvvarproxydlg.h b/kcontrol/tdeio/kenvvarproxydlg.h new file mode 100644 index 000000000..3ddbc989f --- /dev/null +++ b/kcontrol/tdeio/kenvvarproxydlg.h @@ -0,0 +1,57 @@ +/* + kenvvarproxydlg.h - Base dialog box for proxy configuration + + Copyright (C) 2001- Dawit Alemayehu + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License (GPL) version 2 as published by the Free Software + Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#ifndef KENVVAR_PROXY_DIALOG_H +#define KENVVAR_PROXY_DIALOG_H + +#include + +#include "kproxydlgbase.h" + +class EnvVarProxyDlgUI; + +class KEnvVarProxyDlg : public KProxyDialogBase +{ + Q_OBJECT + +public: + KEnvVarProxyDlg( TQWidget* parent = 0, const char* name = 0 ); + ~KEnvVarProxyDlg(); + + virtual const KProxyData data() const; + virtual void setProxyData( const KProxyData &data ); + +protected slots: + virtual void slotOk(); + void verifyPressed(); + void showValuePressed(); + void autoDetectPressed(); + +protected: + void init(); + bool validate(bool erase = false); + void showValue(); + void updateVariables(); + +private: + EnvVarProxyDlgUI* mDlg; + TQMap mEnvVarsMap; +}; +#endif diff --git a/kcontrol/tdeio/kmanualproxydlg.cpp b/kcontrol/tdeio/kmanualproxydlg.cpp new file mode 100644 index 000000000..dd5dcfd16 --- /dev/null +++ b/kcontrol/tdeio/kmanualproxydlg.cpp @@ -0,0 +1,498 @@ +/* + kmanualproxydlg.cpp - Proxy configuration dialog + + Copyright (C) 2001-2004 Dawit Alemayehu + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License (GPL) version 2 as published by the Free Software + Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "manualproxy_ui.h" +#include "kmanualproxydlg.h" + + +KManualProxyDlg::KManualProxyDlg( TQWidget* parent, const char* name ) + :KProxyDialogBase( parent, name, true, + i18n("Manual Proxy Configuration") ) +{ + mDlg = new ManualProxyDlgUI (this); + setMainWidget( mDlg ); + + mDlg->pbCopyDown->setPixmap( BarIcon("down", KIcon::SizeSmall) ); + TQSizePolicy sizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed, + mDlg->pbCopyDown->sizePolicy().hasHeightForWidth() ); + mDlg->pbCopyDown->setSizePolicy( sizePolicy ); + + init(); +} + +void KManualProxyDlg::init() +{ + mDlg->sbHttp->setRange( 0, MAX_PORT_VALUE ); + mDlg->sbHttps->setRange( 0, MAX_PORT_VALUE ); + mDlg->sbFtp->setRange( 0, MAX_PORT_VALUE ); + + connect( mDlg->pbNew, TQT_SIGNAL( clicked() ), TQT_SLOT( newPressed() ) ); + connect( mDlg->pbChange, TQT_SIGNAL( clicked() ), TQT_SLOT( changePressed() ) ); + connect( mDlg->pbDelete, TQT_SIGNAL( clicked() ), TQT_SLOT( deletePressed() ) ); + connect( mDlg->pbDeleteAll, TQT_SIGNAL( clicked() ), TQT_SLOT( deleteAllPressed() ) ); + + connect( mDlg->lbExceptions, TQT_SIGNAL(selectionChanged()), TQT_SLOT(updateButtons()) ); + connect( mDlg->lbExceptions, TQT_SIGNAL(doubleClicked (TQListBoxItem *)), TQT_SLOT(changePressed())); + + connect( mDlg->cbSameProxy, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( sameProxy(bool) ) ); + connect( mDlg->pbCopyDown, TQT_SIGNAL( clicked() ), TQT_SLOT( copyDown() ) ); + + connect( mDlg->leHttp, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(textChanged(const TQString&)) ); + connect( mDlg->sbHttp, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(valueChanged (int)) ); +} + +void KManualProxyDlg::setProxyData( const KProxyData &data ) +{ + KURL url; + + // Set the HTTP proxy... + if (!isValidURL(data.proxyList["http"], &url)) + mDlg->sbHttp->setValue( DEFAULT_PROXY_PORT ); + else + { + int port = url.port(); + if ( port <= 0 ) + port = DEFAULT_PROXY_PORT; + + url.setPort( 0 ); + mDlg->leHttp->setText( url.url() ); + mDlg->sbHttp->setValue( port ); + } + + bool useSameProxy = (!mDlg->leHttp->text().isEmpty () && + data.proxyList["http"] == data.proxyList["https"] && + data.proxyList["http"] == data.proxyList["ftp"]); + + mDlg->cbSameProxy->setChecked ( useSameProxy ); + + if ( useSameProxy ) + { + mDlg->leHttps->setText ( mDlg->leHttp->text() ); + mDlg->leFtp->setText ( mDlg->leHttp->text() ); + mDlg->sbHttps->setValue( mDlg->sbHttp->value() ); + mDlg->sbFtp->setValue( mDlg->sbHttp->value() ); + + sameProxy ( true ); + } + else + { + // Set the HTTPS proxy... + if( !isValidURL( data.proxyList["https"], &url ) ) + mDlg->sbHttps->setValue( DEFAULT_PROXY_PORT ); + else + { + int port = url.port(); + if ( port <= 0 ) + port = DEFAULT_PROXY_PORT; + + url.setPort( 0 ); + mDlg->leHttps->setText( url.url() ); + mDlg->sbHttps->setValue( port ); + } + + // Set the FTP proxy... + if( !isValidURL( data.proxyList["ftp"], &url ) ) + mDlg->sbFtp->setValue( DEFAULT_PROXY_PORT ); + else + { + int port = url.port(); + if ( port <= 0 ) + port = DEFAULT_PROXY_PORT; + + url.setPort( 0 ); + mDlg->leFtp->setText( url.url() ); + mDlg->sbFtp->setValue( port ); + } + } + + TQStringList::ConstIterator it = data.noProxyFor.begin(); + for( ; it != data.noProxyFor.end(); ++it ) + { + // "no_proxy" is a keyword used by the environment variable + // based configuration. We ignore it here as it is not applicable... + if ((*it).lower() != "no_proxy" && !(*it).isEmpty()) + { + // Validate the NOPROXYFOR entries and use only hostnames if the entry is + // a valid or legitimate URL. NOTE: needed to catch manual manipulation + // of the proxy config files... + if( isValidURL( *it ) || ((*it).length() >= 3 && (*it).startsWith(".")) ) + mDlg->lbExceptions->insertItem( *it ); + } + } + + mDlg->cbReverseProxy->setChecked( data.useReverseProxy ); +} + +const KProxyData KManualProxyDlg::data() const +{ + KProxyData data; + + if (!m_bHasValidData) + return data; + + data.proxyList["http"] = urlFromInput( mDlg->leHttp, mDlg->sbHttp ); + + if ( mDlg->cbSameProxy->isChecked () ) + { + data.proxyList["https"] = data.proxyList["http"]; + data.proxyList["ftp"] = data.proxyList["http"]; + } + else + { + data.proxyList["https"] = urlFromInput( mDlg->leHttps, mDlg->sbHttps ); + data.proxyList["ftp"] = urlFromInput( mDlg->leFtp, mDlg->sbFtp ); + } + + if ( mDlg->lbExceptions->count() ) + { + TQListBoxItem* item = mDlg->lbExceptions->firstItem(); + for( ; item != 0L; item = item->next() ) + data.noProxyFor << item->text(); + } + + data.type = KProtocolManager::ManualProxy; + data.useReverseProxy = mDlg->cbReverseProxy->isChecked(); + + return data; +} + +void KManualProxyDlg::sameProxy( bool enable ) +{ + mDlg->leHttps->setEnabled (!enable ); + mDlg->leFtp->setEnabled (!enable ); + mDlg->sbHttps->setEnabled (!enable ); + mDlg->sbFtp->setEnabled (!enable ); + mDlg->pbCopyDown->setEnabled( !enable ); + + if (enable) + { + mOldFtpText = mDlg->leFtp->text(); + mOldHttpsText = mDlg->leHttps->text(); + + mOldFtpPort = mDlg->sbFtp->value(); + mOldHttpsPort = mDlg->sbHttps->value(); + + int port = mDlg->sbHttp->value(); + TQString text = mDlg->leHttp->text(); + + mDlg->leFtp->setText (text); + mDlg->leHttps->setText (text); + + mDlg->sbFtp->setValue (port); + mDlg->sbHttps->setValue (port); + + if (mDlg->lbHttps->font().bold()) + setHighLight( mDlg->lbHttps, false ); + + if (mDlg->lbFtp->font().bold()) + setHighLight( mDlg->lbFtp, false ); + } + else + { + mDlg->leFtp->setText (mOldFtpText); + mDlg->leHttps->setText (mOldHttpsText); + + mDlg->sbFtp->setValue (mOldFtpPort); + mDlg->sbHttps->setValue (mOldHttpsPort); + } +} + +bool KManualProxyDlg::validate() +{ + KURL filteredURL; + unsigned short count = 0; + + if ( isValidURL( mDlg->leHttp->text(), &filteredURL ) ) + { + mDlg->leHttp->setText( filteredURL.url() ); + count++; + } + else + setHighLight( mDlg->lbHttp, true ); + + if ( !mDlg->cbSameProxy->isChecked () ) + { + if ( isValidURL( mDlg->leHttps->text(), &filteredURL ) ) + { + mDlg->leHttps->setText( filteredURL.url() ); + count++; + } + else + setHighLight( mDlg->lbHttps, true ); + + if ( isValidURL( mDlg->leFtp->text(), &filteredURL ) ) + { + mDlg->leFtp->setText( filteredURL.url() ); + count++; + } + else + setHighLight( mDlg->lbFtp, true ); + } + + if ( count == 0 ) + { + showErrorMsg( i18n("Invalid Proxy Setting"), + i18n("One or more of the specified proxy settings are " + "invalid. The incorrect entries are highlighted.") ); + } + + return (count > 0); +} + +void KManualProxyDlg::textChanged(const TQString& text) +{ + if (!mDlg->cbSameProxy->isChecked()) + return; + + mDlg->leFtp->setText( text ); + mDlg->leHttps->setText( text ); +} + +void KManualProxyDlg::valueChanged(int value) +{ + if (!mDlg->cbSameProxy->isChecked()) + return; + + mDlg->sbFtp->setValue (value); + mDlg->sbHttps->setValue (value); + } + +void KManualProxyDlg::copyDown() +{ + int action = -1; + + if ( !mDlg->leHttp->text().isEmpty() ) + action += 4; + else if ( !mDlg->leHttps->text().isEmpty() ) + action += 3; + + switch ( action ) + { + case 3: + mDlg->leHttps->setText( mDlg->leHttp->text() ); + mDlg->sbHttps->setValue( mDlg->sbHttp->value() ); + mDlg->leFtp->setText( mDlg->leHttp->text() ); + mDlg->sbFtp->setValue( mDlg->sbHttp->value() ); + break; + case 2: + mDlg->leFtp->setText( mDlg->leHttps->text() ); + mDlg->sbFtp->setValue( mDlg->sbHttps->value() ); + break; + case 1: + case 0: + default: + break; + } +} + +void KManualProxyDlg::slotOk() +{ + //tqDebug("m_bHasValidData: %s" , m_bHasValidData ? "true" : "false"); + if ( m_bHasValidData || validate() ) + { + KDialogBase::slotOk(); + m_bHasValidData = true; + } +} + +bool KManualProxyDlg::handleDuplicate( const TQString& site ) +{ + TQListBoxItem* item = mDlg->lbExceptions->firstItem(); + while ( item != 0 ) + { + if ( item->text().findRev( site ) != -1 && + item != mDlg->lbExceptions->selectedItem() ) + { + TQString msg = i18n("You entered a duplicate address. " + "Please try again."); + TQString details = i18n("

    %1
    " + "is already in the list.
    ").arg(site); + KMessageBox::detailedError( this, msg, details, i18n("Duplicate Entry") ); + return true; + } + + item = item->next(); + } + return false; +} + +void KManualProxyDlg::newPressed() +{ + TQString result; + if( getException(result, i18n("New Exception")) && !handleDuplicate(result) ) + mDlg->lbExceptions->insertItem( result ); +} + +void KManualProxyDlg::changePressed() +{ + TQString result; + if( getException( result, i18n("Change Exception"), + mDlg->lbExceptions->currentText() ) && + !handleDuplicate( result ) ) + mDlg->lbExceptions->changeItem( result, mDlg->lbExceptions->currentItem() ); +} + +void KManualProxyDlg::deletePressed() +{ + mDlg->lbExceptions->removeItem( mDlg->lbExceptions->currentItem() ); + mDlg->lbExceptions->setSelected( mDlg->lbExceptions->currentItem(), true ); + updateButtons(); +} + +void KManualProxyDlg::deleteAllPressed() +{ + mDlg->lbExceptions->clear(); + updateButtons(); +} + +void KManualProxyDlg::updateButtons() +{ + bool hasItems = mDlg->lbExceptions->count() > 0; + bool itemSelected = (hasItems && mDlg->lbExceptions->selectedItem()!=0); + + mDlg->pbDeleteAll->setEnabled( hasItems ); + mDlg->pbDelete->setEnabled( itemSelected ); + mDlg->pbChange->setEnabled( itemSelected ); +} + +TQString KManualProxyDlg::urlFromInput(const KLineEdit* edit, + const TQSpinBox* spin) const +{ + if (!edit) + return TQString::null; + + KURL u( edit->text() ); + + if (spin) + u.setPort( spin->value() ); + + return u.url(); +} + +bool KManualProxyDlg::isValidURL( const TQString& _url, KURL* result ) const +{ + KURL url (_url); + + TQStringList filters; + filters << "kshorturifilter" << "localdomainurifilter"; + + // If the typed URL is malformed, and the filters cannot filter it + // then it must be an invalid entry. + if( !(url.isValid() || KURIFilter::self()->filterURI(url, filters)) && + !url.hasHost() ) + return false; + + TQString host (url.host()); + + // We only check for a relevant subset of characters that are + // not allowed in component of a URL. + if ( host.contains ('*') || host.contains (' ') || host.contains ('?') ) + return false; + + if ( result ) + *result = url; + + return true; +} + +void KManualProxyDlg::showErrorMsg( const TQString& caption, + const TQString& message ) +{ + TQString cap( caption ); + TQString msg( message ); + + if ( cap.isNull() ) + cap = i18n("Invalid Entry"); + + if ( msg.isNull() ) + msg = i18n("The address you have entered is not valid."); + + TQString details = i18n("Make sure none of the addresses or URLs you " + "specified contain invalid or wildcard characters " + "such as spaces, asterisks (*), or question marks(?).

    " + "Examples of VALID entries:
    " + "http://mycompany.com, 192.168.10.1, " + "mycompany.com, localhost, http://localhost

    " + "Examples of INVALID entries:
    " + "http://my company.com, http:/mycompany,com " + "file:/localhost"); + + KMessageBox::detailedError( this, msg, details, cap ); +} + +bool KManualProxyDlg::getException ( TQString& result, + const TQString& caption, + const TQString& value ) +{ + TQString label; + + // Specify the appropriate message... + if ( mDlg->cbReverseProxy->isChecked() ) + label = i18n("Enter the URL or address that should use the above proxy " + "settings:"); + else + label = i18n("Enter the address or URL that should be excluded from " + "using the above proxy settings:"); + + TQString whatsThis = i18n("Enter a valid address or url.

    " + "NOTE: Wildcard matching such as " + "*.kde.org is not supported. If you want " + "to match any host in the .kde.org domain, " + "e.g. printing.kde.org, then simply enter " + ".kde.org"); + + bool ok; + result = KInputDialog::text( caption, label, value, &ok, 0, 0, 0, + TQString::null, whatsThis ); + + // If the user pressed cancel, do nothing... + if (!ok) + return false; + + // If the typed URL is malformed, and the filters cannot filter it + // then it must be an invalid entry, + if( isValidURL(result) || (result.length() >= 3 && result.startsWith("."))) + return true; + + showErrorMsg(); + return false; +} + +#include "kmanualproxydlg.moc" diff --git a/kcontrol/tdeio/kmanualproxydlg.h b/kcontrol/tdeio/kmanualproxydlg.h new file mode 100644 index 000000000..18cbd6f0a --- /dev/null +++ b/kcontrol/tdeio/kmanualproxydlg.h @@ -0,0 +1,77 @@ +/* + kmanualproxydlg.h - Base dialog box for proxy configuration + + Copyright (C) 2001-2004 Dawit Alemayehu + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License (GPL) version 2 as published by the Free Software + Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KMANUAL_PROXY_DIALOG_H +#define KMANUAL_PROXY_DIALOG_H + +#include "kproxydlgbase.h" + +class TQSpinBox; +class KLineEdit; +class ManualProxyDlgUI; + +class KManualProxyDlg : public KProxyDialogBase +{ + Q_OBJECT + +public: + KManualProxyDlg( TQWidget* parent = 0, const char* name = 0 ); + ~KManualProxyDlg() {}; + + virtual void setProxyData( const KProxyData &data ); + virtual const KProxyData data() const; + +protected: + void init(); + bool validate(); + +protected slots: + virtual void slotOk(); + + void copyDown(); + void sameProxy( bool ); + void valueChanged (int value); + void textChanged (const TQString&); + + void newPressed(); + void updateButtons(); + void changePressed(); + void deletePressed(); + void deleteAllPressed(); + +private: + TQString urlFromInput( const KLineEdit* edit, const TQSpinBox* spin ) const; + bool isValidURL( const TQString&, KURL* = 0 ) const; + bool handleDuplicate( const TQString& ); + bool getException ( TQString&, const TQString&, + const TQString& value = TQString::null ); + void showErrorMsg( const TQString& caption = TQString::null, + const TQString& message = TQString::null ); + +private: + ManualProxyDlgUI* mDlg; + + int mOldFtpPort; + int mOldHttpsPort; + TQString mOldFtpText; + TQString mOldHttpsText; +}; +#endif diff --git a/kcontrol/tdeio/kproxydlg.cpp b/kcontrol/tdeio/kproxydlg.cpp new file mode 100644 index 000000000..a165f9576 --- /dev/null +++ b/kcontrol/tdeio/kproxydlg.cpp @@ -0,0 +1,375 @@ +/* + kproxydlg.cpp - Proxy configuration dialog + + Copyright (C) 2001- Dawit Alemayehu + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License (GPL) version 2 as published by the Free Software + Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +#include "ksaveioconfig.h" +#include "kenvvarproxydlg.h" +#include "kmanualproxydlg.h" + +#include "socks.h" +#include "kproxydlg.h" +#include "kproxydlg_ui.h" + +KProxyOptions::KProxyOptions (TQWidget* parent ) + :TDECModule (parent, "kcmtdeio") +{ + TQVBoxLayout *layout = new TQVBoxLayout(this); + + mTab = new TQTabWidget(this); + layout->addWidget(mTab); + + mProxy = new KProxyDialog(mTab); + mSocks = new KSocksConfig(mTab); + + mTab->addTab(mProxy, i18n("&Proxy")); + mTab->addTab(mSocks, i18n("&SOCKS")); + + connect(mProxy, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool))); + connect(mSocks, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool))); + connect(mTab, TQT_SIGNAL(currentChanged(TQWidget *)), TQT_SIGNAL(quickHelpChanged())); +} + +KProxyOptions::~KProxyOptions() +{ +} + +void KProxyOptions::load() +{ + mProxy->load(); + mSocks->load(); +} + +void KProxyOptions::save() +{ + mProxy->save(); + mSocks->save(); +} + +void KProxyOptions::defaults() +{ + mProxy->defaults(); + mSocks->defaults(); +} + +TQString KProxyOptions::quickHelp() const +{ + TQWidget *w = mTab->currentPage(); + + if (w && w->inherits("TDECModule")) + { + TDECModule *m = static_cast(w); + return m->quickHelp(); + } + + return TQString::null; +} + + +KProxyDialog::KProxyDialog( TQWidget* parent) + :TDECModule( parent, "kcmtdeio" ) +{ + TQVBoxLayout* mainLayout = new TQVBoxLayout( this, KDialog::marginHint(), + KDialog::spacingHint() ); + + mDlg = new KProxyDialogUI( this ); + mainLayout->addWidget( mDlg ); + mainLayout->addStretch(); + + // signals and slots connections + connect( mDlg->rbNoProxy, TQT_SIGNAL( toggled(bool) ), + TQT_SLOT( slotUseProxyChanged() ) ); + + connect( mDlg->rbAutoDiscover, TQT_SIGNAL( toggled(bool) ), + TQT_SLOT( slotChanged() ) ); + connect( mDlg->rbAutoScript, TQT_SIGNAL( toggled(bool) ), + TQT_SLOT( slotChanged() ) ); + + connect( mDlg->rbPrompt, TQT_SIGNAL( toggled(bool) ), + TQT_SLOT( slotChanged() ) ); + connect( mDlg->rbPresetLogin, TQT_SIGNAL( toggled(bool) ), + TQT_SLOT( slotChanged() ) ); + + connect( mDlg->cbPersConn, TQT_SIGNAL( toggled(bool) ), + TQT_SLOT( slotChanged() ) ); + + connect( mDlg->location, TQT_SIGNAL( textChanged(const TQString&) ), + TQT_SLOT( slotChanged() ) ); + + connect( mDlg->pbEnvSetup, TQT_SIGNAL( clicked() ), TQT_SLOT( setupEnvProxy() ) ); + connect( mDlg->pbManSetup, TQT_SIGNAL( clicked() ), TQT_SLOT( setupManProxy() ) ); + + load(); +} + +KProxyDialog::~KProxyDialog() +{ + delete mData; + mData = 0; +} + +void KProxyDialog::load() +{ + mDefaultData = false; + mData = new KProxyData; + + KProtocolManager proto; + bool useProxy = proto.useProxy(); + mData->type = proto.proxyType(); + mData->proxyList["http"] = proto.proxyFor( "http" ); + mData->proxyList["https"] = proto.proxyFor( "https" ); + mData->proxyList["ftp"] = proto.proxyFor( "ftp" ); + mData->proxyList["script"] = proto.proxyConfigScript(); + mData->useReverseProxy = proto.useReverseProxy(); + mData->noProxyFor = TQStringList::split( TQRegExp("[',''\t'' ']"), + proto.noProxyForRaw() ); + + mDlg->gbAuth->setEnabled( useProxy ); + mDlg->gbOptions->setEnabled( useProxy ); + + mDlg->cbPersConn->setChecked( proto.persistentProxyConnection() ); + + if ( !mData->proxyList["script"].isEmpty() ) + mDlg->location->lineEdit()->setText( mData->proxyList["script"] ); + + switch ( mData->type ) + { + case KProtocolManager::WPADProxy: + mDlg->rbAutoDiscover->setChecked( true ); + break; + case KProtocolManager::PACProxy: + mDlg->rbAutoScript->setChecked( true ); + break; + case KProtocolManager::ManualProxy: + mDlg->rbManual->setChecked( true ); + break; + case KProtocolManager::EnvVarProxy: + mDlg->rbEnvVar->setChecked( true ); + break; + case KProtocolManager::NoProxy: + default: + mDlg->rbNoProxy->setChecked( true ); + break; + } + + switch( proto.proxyAuthMode() ) + { + case KProtocolManager::Prompt: + mDlg->rbPrompt->setChecked( true ); + break; + case KProtocolManager::Automatic: + mDlg->rbPresetLogin->setChecked( true ); + default: + break; + } +} + +void KProxyDialog::save() +{ + bool updateProxyScout = false; + + if (mDefaultData) + mData->reset (); + + if ( mDlg->rbNoProxy->isChecked() ) + { + KSaveIOConfig::setProxyType( KProtocolManager::NoProxy ); + } + else + { + if ( mDlg->rbAutoDiscover->isChecked() ) + { + KSaveIOConfig::setProxyType( KProtocolManager::WPADProxy ); + updateProxyScout = true; + } + else if ( mDlg->rbAutoScript->isChecked() ) + { + KURL u( mDlg->location->lineEdit()->text() ); + + if ( !u.isValid() ) + { + showInvalidMessage( i18n("The address of the automatic proxy " + "configuration script is invalid. Please " + "correct this problem before proceeding. " + "Otherwise, your changes you will be " + "ignored.") ); + return; + } + else + { + KSaveIOConfig::setProxyType( KProtocolManager::PACProxy ); + mData->proxyList["script"] = u.url(); + updateProxyScout = true; + } + } + else if ( mDlg->rbManual->isChecked() ) + { + if ( mData->type != KProtocolManager::ManualProxy ) + { + // Let's try a bit harder to determine if the previous + // proxy setting was indeed a manual proxy + KURL u ( mData->proxyList["http"] ); + bool validProxy = (u.isValid() && u.port() != 0); + u= mData->proxyList["https"]; + validProxy |= (u.isValid() && u.port() != 0); + u= mData->proxyList["ftp"]; + validProxy |= (u.isValid() && u.port() != 0); + + if (!validProxy) + { + showInvalidMessage(); + return; + } + + mData->type = KProtocolManager::ManualProxy; + } + + KSaveIOConfig::setProxyType( KProtocolManager::ManualProxy ); + } + else if ( mDlg->rbEnvVar->isChecked() ) + { + if ( mData->type != KProtocolManager::EnvVarProxy ) + { + showInvalidMessage(); + return; + } + + KSaveIOConfig::setProxyType( KProtocolManager::EnvVarProxy ); + } + + if ( mDlg->rbPrompt->isChecked() ) + KSaveIOConfig::setProxyAuthMode( KProtocolManager::Prompt ); + else if ( mDlg->rbPresetLogin->isChecked() ) + KSaveIOConfig::setProxyAuthMode( KProtocolManager::Automatic ); + } + + KSaveIOConfig::setPersistentProxyConnection( mDlg->cbPersConn->isChecked() ); + + // Save the common proxy setting... + KSaveIOConfig::setProxyFor( "ftp", mData->proxyList["ftp"] ); + KSaveIOConfig::setProxyFor( "http", mData->proxyList["http"] ); + KSaveIOConfig::setProxyFor( "https", mData->proxyList["https"] ); + + KSaveIOConfig::setProxyConfigScript( mData->proxyList["script"] ); + KSaveIOConfig::setUseReverseProxy( mData->useReverseProxy ); + KSaveIOConfig::setNoProxyFor( mData->noProxyFor.join(",") ); + + + KSaveIOConfig::updateRunningIOSlaves (this); + if ( updateProxyScout ) + KSaveIOConfig::updateProxyScout( this ); + + emit changed( false ); +} + +void KProxyDialog::defaults() +{ + mDefaultData = true; + mDlg->rbNoProxy->setChecked( true ); + mDlg->location->lineEdit()->clear(); + mDlg->cbPersConn->setChecked( false ); + emit changed( true ); +} + +void KProxyDialog::setupManProxy() +{ + KManualProxyDlg dlgManual( this ); + + dlgManual.setProxyData( *mData ); + + if ( dlgManual.exec() == TQDialog::Accepted ) + { + *mData = dlgManual.data(); + mDlg->rbManual->setChecked(true); + emit changed( true ); + } +} + +void KProxyDialog::setupEnvProxy() +{ + KEnvVarProxyDlg dlgEnv( this ); + + dlgEnv.setProxyData( *mData ); + + if ( dlgEnv.exec() == TQDialog::Accepted ) + { + *mData = dlgEnv.data(); + mDlg->rbEnvVar->setChecked(true); + emit changed( true ); + } +} + +void KProxyDialog::slotChanged() +{ + mDefaultData = false; + emit changed( true ); +} + +void KProxyDialog::slotUseProxyChanged() +{ + mDefaultData = false; + bool useProxy = !(mDlg->rbNoProxy->isChecked()); + mDlg->gbAuth->setEnabled(useProxy); + mDlg->gbOptions->setEnabled(useProxy); + emit changed( true ); +} + +TQString KProxyDialog::quickHelp() const +{ + return i18n( "

    Proxy

    " + "

    A proxy server is an intermediate program that sits between " + "your machine and the Internet and provides services such as " + "web page caching and/or filtering.

    " + "

    Caching proxy servers give you faster access to sites you have " + "already visited by locally storing or caching the content of those " + "pages; filtering proxy servers, on the other hand, provide the " + "ability to block out requests for ads, spam, or anything else you " + "want to block.

    " + "

    Note: Some proxy servers provide both services.

    " ); +} + +void KProxyDialog::showInvalidMessage( const TQString& _msg ) +{ + TQString msg; + + if( !_msg.isEmpty() ) + msg = _msg; + else + msg = i18n( "The proxy settings you specified are invalid." + "

    Please click on the Setup... " + "button and correct the problem before proceeding; " + "otherwise your changes will be ignored." ); + + KMessageBox::error( this, msg, i18n("Invalid Proxy Setup") ); +} + +#include "kproxydlg.moc" diff --git a/kcontrol/tdeio/kproxydlg.h b/kcontrol/tdeio/kproxydlg.h new file mode 100644 index 000000000..30bdb935b --- /dev/null +++ b/kcontrol/tdeio/kproxydlg.h @@ -0,0 +1,82 @@ +/* + kproxydlg.h - Proxy configuration dialog + + Copyright (C) 2001- Dawit Alemayehu + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License (GPL) version 2 as published by the Free Software + Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KPROXYDIALOG_H +#define _KPROXYDIALOG_H + +#include + +#include + +class TQTabWidget; + +class KProxyData; +class KProxyDialogUI; + +class KProxyOptions : public TDECModule +{ + Q_OBJECT + +public: + KProxyOptions( TQWidget* parent = 0 ); + ~KProxyOptions(); + + virtual void load(); + virtual void save(); + virtual void defaults(); + virtual TQString quickHelp() const; + +private: + TDECModule* mProxy; + TDECModule* mSocks; + TQTabWidget* mTab; +}; + +class KProxyDialog : public TDECModule +{ + Q_OBJECT + +public: + KProxyDialog( TQWidget* parent = 0 ); + ~KProxyDialog(); + + virtual void load(); + virtual void save(); + virtual void defaults(); + TQString quickHelp() const; + +private slots: + void slotChanged(); + void slotUseProxyChanged(); + + void setupManProxy(); + void setupEnvProxy(); + +private: + void showInvalidMessage( const TQString& _msg = TQString::null ); + +private: + KProxyDialogUI* mDlg; + KProxyData* mData; + bool mDefaultData; +}; + +#endif diff --git a/kcontrol/tdeio/kproxydlg_ui.ui b/kcontrol/tdeio/kproxydlg_ui.ui new file mode 100644 index 000000000..e2edb2d27 --- /dev/null +++ b/kcontrol/tdeio/kproxydlg_ui.ui @@ -0,0 +1,441 @@ + +KProxyDialogUI + + + ProxyDlgUI + + + + 0 + 0 + 418 + 420 + + + + <qt> +Setup proxy configuration. +<p> +A proxy server is an intermediate machine that sits between your computer and the Internet and provides services such as web page caching and filtering. Caching proxy servers give you faster access to web sites you have already visited by locally storing or caching those pages; filtering proxy servers usually provide the ability to block out requests for ads, spam, or anything else you want to block. +<p> +If you are uncertain whether or not you need to use a proxy server to connect to the Internet, consult your Internet service provider's setup guide or your system administrator. +</qt> + + + + unnamed + + + 0 + + + + gbConfigure + + + NoFrame + + + 0 + + + + + + true + + + + unnamed + + + 0 + + + + rbNoProxy + + + Connect to the &Internet directly + + + true + + + Connect to the Internet directly. + + + + + rbAutoDiscover + + + true + + + A&utomatically detect proxy configuration + + + <qt> +Automatically detect and configure the proxy settings.<p> +Automatic detection is performed using the <b>Web Proxy Auto-Discovery Protocol (WPAD)</b>.<p> +<b>NOTE:</b> This option might not work properly or not work at all in some UNIX/Linux distributions. If you encounter a problem when using this option, please check the FAQ section at http://konqueror.kde.org. +</qt> + + + + + rbAutoScript + + + true + + + U&se the following proxy configuration URL + + + Use the specified proxy script URL to configure the proxy settings. + + + + + layout5 + + + + unnamed + + + + spacer2 + + + Horizontal + + + Fixed + + + + 16 + 20 + + + + + + location + + + false + + + + 7 + 5 + 0 + 0 + + + + Enter the address for the proxy configuration script. + + + + + + + layout7 + + + + unnamed + + + + rbEnvVar + + + true + + + + 3 + 0 + 0 + 0 + + + + Use preset proxy environment &variables + + + <qt> +Use environment variables to configure the proxy settings.<p> +Environment variables such as <b>HTTP_PROXY</b> and <b>NO_PROXY</b> are usually used in multi-user UNIX installations, where both graphical and non-graphical applications need to share the same proxy configuration information. +</qt> + + + + + pbEnvSetup + + + true + + + Setup... + + + Show the proxy environment variable configuration dialog. + + + + + + + layout6 + + + + unnamed + + + + rbManual + + + true + + + + 3 + 0 + 0 + 0 + + + + &Manually specify the proxy settings + + + Manually enter proxy server configuration information. + + + + + pbManSetup + + + true + + + Setup... + + + Show the manual proxy configuration dialog. + + + + + + + + + gbAuth + + + false + + + Authori&zation + + + + unnamed + + + + rbPrompt + + + Prompt as &needed + + + true + + + Prompt for login information whenever it is required. + + + + + rbPresetLogin + + + false + + + Use the following lo&gin information. + + + Use the information below to login into proxy servers as needed. + + + + + layout5 + + + + unnamed + + + + spacer5 + + + Horizontal + + + Fixed + + + + 16 + 20 + + + + + + lePassword + + + false + + + Password + + + Login password. + + + + + leUsername + + + false + + + Login name. + + + + + lbPassword + + + false + + + Password: + + + Login password. + + + + + lbUsername + + + false + + + Username: + + + Login name. + + + + + + + + + gbOptions + + + false + + + O&ptions + + + + unnamed + + + + cbPersConn + + + Use persistent connections to proxy + + + <qt> +Use persistent proxy connection.<p> +Although a persistent proxy connection is faster, note that it only works correctly with proxies that are fully HTTP 1.1 compliant. Do <b>not</b> use this option in combination with non-HTTP 1.1 compliant proxy servers such as JunkBuster and WWWOfle. +</qt> + + + + + + + + + + + rbPresetLogin + toggled(bool) + leUsername + setEnabled(bool) + + + rbPresetLogin + toggled(bool) + lbUsername + setEnabled(bool) + + + rbPresetLogin + toggled(bool) + lePassword + setEnabled(bool) + + + rbPresetLogin + toggled(bool) + lbPassword + setEnabled(bool) + + + rbAutoScript + toggled(bool) + location + setEnabled(bool) + + + + kdialog.h + + + + + kpushbutton.h + + diff --git a/kcontrol/tdeio/kproxydlgbase.cpp b/kcontrol/tdeio/kproxydlgbase.cpp new file mode 100644 index 000000000..e95625713 --- /dev/null +++ b/kcontrol/tdeio/kproxydlgbase.cpp @@ -0,0 +1,74 @@ + /* + kproxydlgbase.h - Base dialog box for proxy configuration + + Copyright (C) 2001- Dawit Alemayehu + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License (GPL) version 2 as published by the Free Software + Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "kproxydlgbase.h" + +KProxyData::KProxyData() +{ + init (); +} + +KProxyData::KProxyData(const KProxyData &data) +{ + (*this) = data; +} + +KProxyData& KProxyData::operator=( const KProxyData &data ) +{ + useReverseProxy = data.useReverseProxy; + showEnvVarValue = data.showEnvVarValue; + noProxyFor = data.noProxyFor; + proxyList = data.proxyList; + type = data.type; + + return (*this); +} + +void KProxyData::reset() +{ + init(); +} + +void KProxyData::init() +{ + proxyList.clear(); + noProxyFor.clear(); + useReverseProxy = false; + showEnvVarValue = false; +} + + +KProxyDialogBase::KProxyDialogBase( TQWidget* parent, const char* name, + bool modal, const TQString &caption ) + :KDialogBase( parent, name, modal, caption, Ok|Cancel, Ok, true ) +{ + m_bHasValidData = false; +} + +void KProxyDialogBase::setHighLight (TQWidget* widget, bool highlight) +{ + if (!widget) + return; + + TQFont f = widget->font(); + f.setBold( highlight ); + widget->setFont( f ); +} diff --git a/kcontrol/tdeio/kproxydlgbase.h b/kcontrol/tdeio/kproxydlgbase.h new file mode 100644 index 000000000..06ffa8753 --- /dev/null +++ b/kcontrol/tdeio/kproxydlgbase.h @@ -0,0 +1,68 @@ +/* + kproxydlgbase.h - Base dialog box for proxy configuration + + Copyright (C) 2001- Dawit Alemayehu + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License (GPL) version 2 as published by the Free Software + Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KPROXY_DIALOG_BASE_H +#define KPROXY_DIALOG_BASE_H + +#include +#include +#include + +#include +#include + +class KProxyData +{ +public: + KProxyData(); + KProxyData( const KProxyData &data ); + + void reset (); + KProxyData& operator=( const KProxyData &data ); + + bool useReverseProxy; + bool showEnvVarValue; + TQStringList noProxyFor; + KProtocolManager::ProxyType type; + TQMap proxyList; + +private: + void init(); +}; + + +class KProxyDialogBase : public KDialogBase +{ +public: + KProxyDialogBase( TQWidget* parent = 0, const char* name = 0, + bool modal = false, const TQString &caption = TQString::null); + + virtual ~KProxyDialogBase() {}; + + virtual const KProxyData data() const=0; + + virtual void setProxyData (const KProxyData&)=0; + +protected: + void setHighLight (TQWidget* widget = 0, bool highlight = false); + bool m_bHasValidData; +}; +#endif diff --git a/kcontrol/tdeio/ksaveioconfig.cpp b/kcontrol/tdeio/ksaveioconfig.cpp new file mode 100644 index 000000000..845184158 --- /dev/null +++ b/kcontrol/tdeio/ksaveioconfig.cpp @@ -0,0 +1,260 @@ +/* + Copyright (C) 2001 Dawit Alemayehu + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include +#include +#include +#include +#include +#include + +#include "ksaveioconfig.h" + +class KSaveIOConfigPrivate +{ +public: + KSaveIOConfigPrivate (); + ~KSaveIOConfigPrivate (); + + TDEConfig* config; + TDEConfig* http_config; +}; + +static KSaveIOConfigPrivate *ksiocpref = 0; +static KStaticDeleter ksiocp; + +KSaveIOConfigPrivate::KSaveIOConfigPrivate (): config(0), http_config(0) +{ + ksiocp.setObject (ksiocpref, this); +} + +KSaveIOConfigPrivate::~KSaveIOConfigPrivate () +{ + delete config; +} + +KSaveIOConfigPrivate* KSaveIOConfig::d = 0; + +TDEConfig* KSaveIOConfig::config() +{ + if (!d) + d = new KSaveIOConfigPrivate; + + if (!d->config) + d->config = new TDEConfig("tdeioslaverc", false, false); + + return d->config; +} + +TDEConfig* KSaveIOConfig::http_config() +{ + if (!d) + d = new KSaveIOConfigPrivate; + + if (!d->http_config) + d->http_config = new TDEConfig("tdeio_httprc", false, false); + + return d->http_config; +} + +void KSaveIOConfig::reparseConfiguration () +{ + delete d->config; + d->config = 0; +} + +void KSaveIOConfig::setReadTimeout( int _timeout ) +{ + TDEConfig* cfg = config (); + cfg->setGroup( TQString() ); + cfg->writeEntry("ReadTimeout", QMAX(MIN_TIMEOUT_VALUE,_timeout)); + cfg->sync(); +} + +void KSaveIOConfig::setConnectTimeout( int _timeout ) +{ + TDEConfig* cfg = config (); + cfg->setGroup( TQString() ); + cfg->writeEntry("ConnectTimeout", QMAX(MIN_TIMEOUT_VALUE,_timeout)); + cfg->sync(); +} + +void KSaveIOConfig::setProxyConnectTimeout( int _timeout ) +{ + TDEConfig* cfg = config (); + cfg->setGroup( TQString() ); + cfg->writeEntry("ProxyConnectTimeout", QMAX(MIN_TIMEOUT_VALUE,_timeout)); + cfg->sync(); +} + +void KSaveIOConfig::setResponseTimeout( int _timeout ) +{ + TDEConfig* cfg = config (); + cfg->setGroup( TQString() ); + cfg->writeEntry("ResponseTimeout", QMAX(MIN_TIMEOUT_VALUE,_timeout)); + cfg->sync(); +} + + +void KSaveIOConfig::setMarkPartial( bool _mode ) +{ + TDEConfig* cfg = config (); + cfg->setGroup( TQString() ); + cfg->writeEntry( "MarkPartial", _mode ); + cfg->sync(); +} + +void KSaveIOConfig::setMinimumKeepSize( int _size ) +{ + TDEConfig* cfg = config (); + cfg->setGroup( TQString() ); + cfg->writeEntry( "MinimumKeepSize", _size ); + cfg->sync(); +} + +void KSaveIOConfig::setAutoResume( bool _mode ) +{ + TDEConfig* cfg = config (); + cfg->setGroup( TQString() ); + cfg->writeEntry( "AutoResume", _mode ); + cfg->sync(); +} + +void KSaveIOConfig::setUseCache( bool _mode ) +{ + TDEConfig* cfg = http_config (); + cfg->writeEntry( "UseCache", _mode ); + cfg->sync(); +} + +void KSaveIOConfig::setMaxCacheSize( int cache_size ) +{ + TDEConfig* cfg = http_config (); + cfg->writeEntry( "MaxCacheSize", cache_size ); + cfg->sync(); +} + +void KSaveIOConfig::setCacheControl(TDEIO::CacheControl policy) +{ + TDEConfig* cfg = http_config (); + TQString tmp = TDEIO::getCacheControlString(policy); + cfg->writeEntry("cache", tmp); + cfg->sync(); +} + +void KSaveIOConfig::setMaxCacheAge( int cache_age ) +{ + TDEConfig* cfg = http_config (); + cfg->writeEntry( "MaxCacheAge", cache_age ); + cfg->sync(); +} + +void KSaveIOConfig::setUseReverseProxy( bool mode ) +{ + TDEConfig* cfg = config (); + cfg->setGroup( "Proxy Settings" ); + cfg->writeEntry("ReversedException", mode); + cfg->sync(); +} + +void KSaveIOConfig::setProxyType(KProtocolManager::ProxyType type) +{ + TDEConfig* cfg = config (); + cfg->setGroup( "Proxy Settings" ); + cfg->writeEntry( "ProxyType", static_cast(type) ); + cfg->sync(); +} + +void KSaveIOConfig::setProxyAuthMode(KProtocolManager::ProxyAuthMode mode) +{ + TDEConfig* cfg = config (); + cfg->setGroup( "Proxy Settings" ); + cfg->writeEntry( "AuthMode", static_cast(mode) ); + cfg->sync(); +} + +void KSaveIOConfig::setNoProxyFor( const TQString& _noproxy ) +{ + TDEConfig* cfg = config (); + cfg->setGroup( "Proxy Settings" ); + cfg->writeEntry( "NoProxyFor", _noproxy ); + cfg->sync(); +} + +void KSaveIOConfig::setProxyFor( const TQString& protocol, + const TQString& _proxy ) +{ + TDEConfig* cfg = config (); + cfg->setGroup( "Proxy Settings" ); + cfg->writeEntry( protocol.lower() + "Proxy", _proxy ); + cfg->sync(); +} + +void KSaveIOConfig::setProxyConfigScript( const TQString& _url ) +{ + TDEConfig* cfg = config (); + cfg->setGroup( "Proxy Settings" ); + cfg->writeEntry( "Proxy Config Script", _url ); + cfg->sync(); +} + +void KSaveIOConfig::setPersistentProxyConnection( bool enable ) +{ + TDEConfig* cfg = config (); + cfg->setGroup( TQString() ); + cfg->writeEntry( "PersistentProxyConnection", enable ); + cfg->sync(); +} + +void KSaveIOConfig::setPersistentConnections( bool enable ) +{ + TDEConfig* cfg = config (); + cfg->setGroup( TQString() ); + cfg->writeEntry( "PersistentConnections", enable ); + cfg->sync(); +} + +void KSaveIOConfig::updateRunningIOSlaves (TQWidget *parent) +{ + // Inform all running io-slaves about the changes... + // if we cannot update, ioslaves inform the end user... + if (!DCOPRef("*", "TDEIO::Scheduler").send("reparseSlaveConfiguration", TQString())) + { + TQString caption = i18n("Update Failed"); + TQString message = i18n("You have to restart the running applications " + "for these changes to take effect."); + KMessageBox::information (parent, message, caption); + return; + } +} + +void KSaveIOConfig::updateProxyScout( TQWidget * parent ) +{ + // Inform the proxyscout kded module about changes + // if we cannot update, ioslaves inform the end user... + if (!DCOPRef("kded", "proxyscout").send("reset")) + { + TQString caption = i18n("Update Failed"); + TQString message = i18n("You have to restart TDE " + "for these changes to take effect."); + KMessageBox::information (parent, message, caption); + return; + } +} + diff --git a/kcontrol/tdeio/ksaveioconfig.h b/kcontrol/tdeio/ksaveioconfig.h new file mode 100644 index 000000000..f14e98e22 --- /dev/null +++ b/kcontrol/tdeio/ksaveioconfig.h @@ -0,0 +1,96 @@ +/* + Copyright (C) 2001 Dawit Alemayehu + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KSAVEIO_CONFIG_H_ +#define KSAVEIO_CONFIG_H_ + +#include + +class TQWidget; +class KSaveIOConfigPrivate; + +class KSaveIOConfig +{ +public: + + /* Reload config file (tdeioslaverc) */ + static void reparseConfiguration(); + + + /** Timeout Settings */ + static void setReadTimeout( int ); + + static void setConnectTimeout( int ); + + static void setProxyConnectTimeout( int ); + + static void setResponseTimeout( int ); + + + /** Cache Settings */ + static void setMaxCacheAge( int ); + + static void setUseCache( bool ); + + static void setMaxCacheSize( int ); + + static void setCacheControl( TDEIO::CacheControl ); + + + /** Proxy Settings */ + static void setUseReverseProxy( bool ); + + static void setProxyType( KProtocolManager::ProxyType ); + + static void setProxyAuthMode( KProtocolManager::ProxyAuthMode ); + + static void setProxyConfigScript( const TQString& ); + + static void setProxyFor( const TQString&, const TQString& ); + + static void setNoProxyFor( const TQString& ); + + + /** Miscelaneous Settings */ + static void setMarkPartial( bool ); + + static void setMinimumKeepSize( int ); + + static void setAutoResume( bool ); + + static void setPersistentConnections( bool ); + + static void setPersistentProxyConnection( bool ); + + + /** Update all running io-slaves */ + static void updateRunningIOSlaves (TQWidget * parent = 0L); + + /** Update proxy scout */ + static void updateProxyScout( TQWidget * parent = 0L ); + +protected: + static TDEConfig* config (); + static TDEConfig* http_config (); + KSaveIOConfig (); + +private: + static KSaveIOConfigPrivate* d; +}; +#endif diff --git a/kcontrol/tdeio/lanbrowser.desktop b/kcontrol/tdeio/lanbrowser.desktop new file mode 100644 index 000000000..87901589e --- /dev/null +++ b/kcontrol/tdeio/lanbrowser.desktop @@ -0,0 +1,226 @@ +[Desktop Entry] +Type=Application +Icon=samba +Exec=tdecmshell lanbrowser + + +X-TDE-Library=tdeio +X-TDE-FactoryName=lanbrowser + +Name=Local Network Browsing +Name[af]=Plaaslike Netwerk Blaaiïng +Name[ar]=تصفح الشبكة المحلية +Name[az]=Yerli Şəbəkə +Name[be]=Прагляд мясцовай сеткі +Name[bg]=Локална мрежа +Name[bn]=স্থানীয় নেটওয়ার্ক ব্রাউজিং +Name[br]=Furchal ar rouedad lec'hel +Name[bs]=Pregledanje lokalne mreže +Name[ca]=Navegació per la xarxa local +Name[cs]=Prohlížení lokální sítě +Name[csb]=Przezéranié môlowi sécë +Name[cy]=Pori Rhwydwaith Lleol +Name[da]=Lokal netværkssøgning +Name[de]=Netzwerk-Browser +Name[el]=Τοπική περιήγηση δικτύου +Name[eo]=Traserĉado de la loka reto +Name[es]=Navegación por la red local +Name[et]=Kohtvõrgu lehitsemine +Name[eu]=Sare lokaleko arakaketa +Name[fa]=مرور شبکۀ محلی +Name[fi]=Paikallisverkon selaus +Name[fr]=Navigation dans le réseau local +Name[fy]=Lokaal netwurk +Name[ga]=Brabhsáil an Líonra Logánta +Name[gl]=Exploración da Rede Local +Name[he]=עיון ברשת המקומית +Name[hi]=स्थानीय नेटवर्क ब्राउजिंग +Name[hr]=Pregledavanje lokalne mreže +Name[hu]=Hálózatböngészés +Name[is]=Staðarnetsflakk +Name[it]=Navigazione rete locale +Name[ja]=ローカルネットワーク参照 +Name[ka]=ლოკალური ქსელის მიმოხილვა +Name[kk]=Жергілікті желіні шолу +Name[km]=ការ​រុករក​បណ្ដាញ​មូលដ្ឋាន +Name[ko]=로컬 네트워크 탐색 +Name[lo]=ເຄືອຂ່າຍພາຍໃນ +Name[lt]=Vietinio tinklo naršymas +Name[lv]=Lokālā Tīkla pārlūkošana +Name[mk]=Прелистување на локалната мрежа +Name[mn]=Дотоод Сүлжээ-Хөтөч +Name[ms]=Pelayaran Rangkaian Setempat +Name[mt]=Browsing tan-Network Lokali +Name[nb]=Lokalt nettverk +Name[nds]=Lokaal Nettwarkkieker +Name[ne]=स्थानीय सञ्जाल ब्राउजिङ +Name[nl]=Lokaal netwerk +Name[nn]=Lokalt nettverk +Name[nso]=Boinyakisi bja Kgokagano ya Selegae +Name[pa]=ਸਥਾਨਕ ਨੈੱਟਵਰਕ ਝਲਕਾਰਾ +Name[pl]=Przeglądanie sieci lokalnej +Name[pt]=Navegação na Rede Local +Name[pt_BR]=Navegação em Rede Local +Name[ro]=Răsfoire rețea locală +Name[ru]=Обзор локальной сети +Name[rw]=Gucukumbura Urusobemiyoboro rwa Hafi +Name[se]=Báikkálaš fierbmebláđđen +Name[sk]=Prehliadanie lokálnej siete +Name[sl]=Brskanje po krajevnem omrežju +Name[sr]=Прегледање локалне мреже +Name[sr@Latn]=Pregledanje lokalne mreže +Name[sv]=Lokal nätverksbläddring +Name[ta]=உள் வலைதல உலாவுதல் +Name[te]=స్థానిక నెట్వర్క్ బ్రౌజింగ్ +Name[tg]=Обзори шабакаи локалӣ +Name[th]=เรียกดูเครือข่ายท้องถิ่น +Name[tr]=Yerel Ağ Tarama +Name[tt]=Cirle Çeltärne Küzläw +Name[uk]=Перегляд локальної мережі +Name[uz]=Lokal tarmoqni koʻrish +Name[uz@cyrillic]=Локал тармоқни кўриш +Name[ven]=Burausini ya vhukwamani ha hefhano +Name[vi]=Duyệt mạng nội bộ +Name[wa]=Naiviaedje del locåle rantoele +Name[xh]=Ukhangelo Lomsebenzi womnatha Wobulali +Name[zh_CN]=局域网浏览 +Name[zh_TW]=區域網路瀏覽 +Name[zu]=Ukucinga oxhumanweni oluseduze + +Comment=Setup lisa, reslisa and the ioslaves +Comment[af]=Stel lisa, reslisa en die ioslaves op +Comment[az]=Lisa, reslisa və ioslaves-i quraşdır +Comment[be]=Настаўленні lisa, reslisa і ioslaves +Comment[bg]=Настройване на lisa, reslisa и ioslaves +Comment[bn]=lisa, reslisa এবং ioslaves সেট-আপ +Comment[br]=Kefluniadur lisa, reslisa and skalvoù IO +Comment[bs]=Podesite lisa, reslisa i ioslaves +Comment[ca]=Arranja lisa, reslisa i els ioslaves +Comment[cs]=Nastavení Lisa, ResLisa a pomocných zařízení +Comment[csb]=Ùstôw lisa, reslisa ë procedurów wé/wi +Comment[cy]=Gosodiad lisa,reslisa a'r gweision-io +Comment[da]=Opsætning af lisa, reslisa og ioslaverne +Comment[de]=Einrichtung von LISa, resLISa und Ein-/Ausgabemodulen +Comment[el]=Ρύθμιση του lisa, reslisa και των ioslaves +Comment[eo]=Agordo de Lisa, Reslisa kaj la Enel-sklavoj +Comment[es]=Configuración de lisa, reslisa y los ioslaves +Comment[et]=Lisa, reslisa ja KIO moodulite seadistamine +Comment[eu]=Konfiguratu lisa, reslisa eta ioslave-ak +Comment[fa]=برپایی lisa، reslisa و ioslaves +Comment[fi]=Lisan, Reslisan ja KIO-palveluiden asetukset +Comment[fr]=Configuration de LISa, ResLISa et des modules d'entrées-sorties +Comment[fy]=Lisa, reslisa en de ioslaves ynstelle +Comment[ga]=Socraigh lisa, reslisa agus ioslaves +Comment[gl]=Configurar lisa, reslisa e os escravos I/O +Comment[he]=שינוי הגדרות reslisa ,lisa והפרוטוקולים +Comment[hi]=लिसा,रेसलिसा तथा आईओस्लेव्स सेटअप करें +Comment[hr]=Postavke za module lisa, reslisu i ioslaves +Comment[hu]=A Lisa, a ResLisa és a TDE protokollok beállításai +Comment[is]=Stilla lisa, reslisa og I/Ú-þrælana +Comment[it]=Imposta lisa, reslisa e gli ioslave +Comment[ja]=lisa, reslisa, ioslave の設定 +Comment[ka]=lisa, reslisa და ioslaves -ს კონფიგურაცია +Comment[kk]=lisa, reslisa және the ioslaves дегендерді орнату +Comment[km]=ដំឡើង lisa, reslisa និង ioslaves +Comment[ko]=lisa, reslisa, IO 슬레이브 설정 +Comment[lt]=Lisa, reslisa ir ioslaves nustatymas +Comment[lv]=Uzstāda lisa, reslisa un iovergus +Comment[mk]=Поставете ги lisa, reslisa и ioslaves +Comment[mn]=LISa, resLISa ба Оролт/Гаралт-модулын тохируулга +Comment[mt]=Issettja lisa, reslisa u l-ioslaves +Comment[nb]=Oppsett av lisa, reslisa og i/u-slavene +Comment[nds]=Lisa, reslisa un de In-/Utgaavdeensten instellen +Comment[ne]=लिसा, रेसलिसा र इओस्लेभ सेटअप गर्नुहोस् +Comment[nl]=Lisa, reslisa en de ioslaves instellen +Comment[nn]=Oppsett av lisa, reslisa og i/u-slavane +Comment[nso]=Beakanya lisa, reslisa le ioslaves +Comment[pa]=lisa, reslisa ਤੇ ioslaves ਸੈੱਟਅੱਪ +Comment[pl]=Ustawienie lisa, reslisa i procedur we/wy +Comment[pt]=Configurar o lisa, o reslisa e os seus ioslaves +Comment[pt_BR]=Configura lisa, reslisa e os escravos +Comment[ro]=Setează lisa, reslisa și dispozitivele I/O +Comment[ru]=Настройка lisa, reslisa и ioslaves +Comment[rw]=Kugena imiterere ya lisa, reslisa na ioslaves +Comment[se]=Heivet lisa,reslisa ja s/o-šlávaid +Comment[sk]=Nastavenie lisa, reslisa a IO klientov +Comment[sl]=Nastavitve lisa, reslisa in ioslave +Comment[sr]=Подешавање lisa-e, reslisa-e, и ioslave-ова +Comment[sr@Latn]=Podešavanje lisa-e, reslisa-e, i ioslave-ova +Comment[sv]=Ställ in lisa, reslisa och I/O-slavarna +Comment[ta]= லிசா, ரெஸ்லிசா மற்றும் ஐஓஸ்லேவ்ஸ் அமைப்பு +Comment[tg]=Танзимоти lisa, reslisa ва ioslaves +Comment[th]=ตั้งค่า lisa, reslisa และ ioslaves +Comment[tr]=lisa, reslisa ve ioslaves kurulumu +Comment[tt]=lisa, reslisa, ioslaves caylawları +Comment[uk]=Встановлення lisa,reslisa та ioslaves +Comment[uz]=Lisa, reslisa va ioslave xizmatlarni moslash +Comment[uz@cyrillic]=Lisa, reslisa ва ioslave хизматларни мослаш +Comment[ven]=Vhekanyani lisa,reslisa na ioslaves +Comment[vi]=Cài đặt lisa,reslisa và các ioslave +Comment[wa]=Apontiaedje di lisa, reslisa et les ioslaves +Comment[xh]=Cwangcisa i lisa, reslisa ne ioslaves +Comment[zh_CN]=设置 lisa、reslisa 和 ioslaves +Comment[zu]=lungiselela i-lisa, i-reslisa ne-ioslaves + +Keywords=samba,smb,windows,network +Keywords[az]=xml,rpc,daemon,demon,port,qapı,network,şəbəkə,samba,smb,windows +Keywords[be]=Сетка,Навакольнае асяроддзе,samba,smb,windows,network +Keywords[bg]=самба, мрежа, локална, преглед, връзка, samba, smb, windows, network +Keywords[br]=samba,smb,prenester,rouedad +Keywords[bs]=samba,smb,windows,network,mreža +Keywords[ca]=samba,smb,windows,xarxa +Keywords[cs]=samba,smb,windows,síť +Keywords[csb]=samba,smb,windows,séc +Keywords[cy]=samba,smb,windows, rhwydwaith +Keywords[da]=samba,smb,windows,netværk +Keywords[de]=samba,smb,windows,netzwerk +Keywords[el]=samba,smb,windows,δίκτυο +Keywords[eo]=samba,smb,fenestro,windows,reto +Keywords[es]=samba,smb,windows,red +Keywords[et]=samba,smb,windows,võrk +Keywords[eu]=samba,smb,windows,sarea +Keywords[fa]=samba، smb، پنجره‌ها، شبکه +Keywords[fi]=samba,smb,windows,verkko +Keywords[fr]=samba,smb,windows,réseau +Keywords[fy]=samba,smb,windows,netwurk +Keywords[ga]=samba,smb,windows,líonra +Keywords[gl]=samba,smb,windows,rede +Keywords[he]=סמבה,smb,חלונות,רשת, samba,windows,network +Keywords[hi]=साम्बा,एसएमबी,विंडोज़,नेटवर्क +Keywords[hr]=samba,smb,windows,network,mreža +Keywords[hu]=Samba,smb,Windows,hálózat +Keywords[is]=samba,smb,windows,network,net +Keywords[it]=samba,smb,windows,rete +Keywords[ja]=samba,smb,ウィンドウズ,ネットワーク +Keywords[km]=samba,smb,windows,បណ្ដាញ +Keywords[lt]=samba,smb,windows,network,tinklas +Keywords[lv]=samba,smb,windows,tīkls +Keywords[mk]=samba,smb,windows,network,мрежа,заеднички,Виндоус +Keywords[nb]=samba,smb,windows,nettverk +Keywords[nds]=samba,smb,Windows,Nettwark +Keywords[ne]=साम्बा, smb, सञ्झ्याल, सञ्जाल +Keywords[nl]=samba,smb,windows,netwerk +Keywords[nn]=samba,smb,windows,nettverk +Keywords[pa]=samba,smb,windows,network,ਨੈੱਟਵਰਕ,ਸਾਂਬਾ +Keywords[pl]=samba,smb,windows,sieć +Keywords[pt]=samba,smb,windows,rede +Keywords[pt_BR]=samba,smb,windows,rede +Keywords[ro]=samba,smb,windows,rețea +Keywords[rw]=samba,smb,windows,urusobemiyoboro +Keywords[se]=samba,smb,windows,fierpmádat +Keywords[sk]=samba,smb,windows,sieť +Keywords[sl]=samba,smb,windows,network,omrežje +Keywords[sr]=samba,smb,windows,network,мрежа,самба +Keywords[sr@Latn]=samba,smb,windows,network,mreža,samba +Keywords[sv]=samba,smb,windows,nätverk +Keywords[ta]=சாம்ப்,smb,சாளரங்கள்,வலைதளம் +Keywords[th]=samba,smb,วินโดวส์,เครือข่าย +Keywords[tr]=samba,smb,windows,ağ +Keywords[uk]=samba,smb,windows,мережа +Keywords[uz]=samba,smb,windows,tarmoq +Keywords[uz@cyrillic]=samba,smb,windows,тармоқ +Keywords[vi]=samba,smb,cửa sổ,mạng +Keywords[wa]=samba,smb,windows,network,rantoele +Keywords[zh_CN]=samba,smb,windows,network,网络 + +Categories=Qt;TDE;X-TDE-settings-network; diff --git a/kcontrol/tdeio/main.cpp b/kcontrol/tdeio/main.cpp new file mode 100644 index 000000000..3fe2fd8a0 --- /dev/null +++ b/kcontrol/tdeio/main.cpp @@ -0,0 +1,158 @@ +// (c) Torben Weis 1998 +// (c) David Faure 1998 +/* + * main.cpp for lisa,reslisa,tdeio_lan and tdeio_rlan kcm module + * + * Copyright (C) 2000,2001 Alexander Neundorf + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#include +#include +#include +#include + +#include +#include + +#include "kcookiesmain.h" +#include "netpref.h" +#include "smbrodlg.h" +#include "useragentdlg.h" +#include "kproxydlg.h" +#include "cache.h" + +#include "main.h" + +extern "C" +{ + + KDE_EXPORT TDECModule *create_cookie(TQWidget *parent, const char /**name*/) + { + return new KCookiesMain(parent); + } + + KDE_EXPORT TDECModule *create_smb(TQWidget *parent, const char /**name*/) + { + return new SMBRoOptions(parent); + } + + KDE_EXPORT TDECModule *create_useragent(TQWidget *parent, const char /**name*/) + { + return new UserAgentDlg(parent); + } + + KDE_EXPORT TDECModule *create_proxy(TQWidget *parent, const char /**name*/) + { + return new KProxyOptions(parent); + } + + KDE_EXPORT TDECModule *create_cache(TQWidget *parent, const char /**name*/) + { + return new KCacheConfigDialog( parent ); + } + + KDE_EXPORT TDECModule *create_netpref(TQWidget *parent, const char /**name*/) + { + return new KIOPreferences(parent); + } + + KDE_EXPORT TDECModule *create_lanbrowser(TQWidget *parent, const char *) + { + return new LanBrowser(parent); + } + +} + +LanBrowser::LanBrowser(TQWidget *parent) +:TDECModule(parent,"kcmtdeio") +,layout(this) +,tabs(this) +{ + setQuickHelp( i18n("

    Local Network Browsing

    Here you setup your " + "\"Network Neighborhood\". You " + "can use either the LISa daemon and the lan:/ ioslave, or the " + "ResLISa daemon and the rlan:/ ioslave.

    " + "About the LAN ioslave configuration:
    If you select it, the " + "ioslave, if available, will check whether the host " + "supports this service when you open this host. Please note " + "that paranoid people might consider even this to be an attack.
    " + "Always means that you will always see the links for the " + "services, regardless of whether they are actually offered by the host. " + "Never means that you will never have the links to the services. " + "In both cases you will not contact the host, so nobody will ever regard " + "you as an attacker.

    More information about LISa " + "can be found at " + "the LISa Homepage or contact Alexander Neundorf " + "<neundorf@kde.org>.")); + + layout.addWidget(&tabs); + + smbPage = create_smb(&tabs, 0); + tabs.addTab(smbPage, i18n("&Windows Shares")); + connect(smbPage,TQT_SIGNAL(changed(bool)), TQT_SLOT( changed() )); + + lisaPage = TDECModuleLoader::loadModule("kcmlisa", TDECModuleLoader::None, &tabs); + if (lisaPage) + { + tabs.addTab(lisaPage,i18n("&LISa Daemon")); + connect(lisaPage,TQT_SIGNAL(changed()), TQT_SLOT( changed() )); + } + +// resLisaPage = TDECModuleLoader::loadModule("kcmreslisa", &tabs); +// if (resLisaPage) +// { +// tabs.addTab(resLisaPage,i18n("R&esLISa Daemon")); +// connect(resLisaPage,TQT_SIGNAL(changed()), TQT_SLOT( changed() )); +// } + + tdeioLanPage = TDECModuleLoader::loadModule("kcmtdeiolan", TDECModuleLoader::None, &tabs); + if (tdeioLanPage) + { + tabs.addTab(tdeioLanPage,i18n("lan:/ Iosla&ve")); + connect(tdeioLanPage,TQT_SIGNAL(changed()), TQT_SLOT( changed() )); + } + + setButtons(Apply|Help); + load(); +} + +void LanBrowser::load() +{ + smbPage->load(); + if (lisaPage) + lisaPage->load(); +// if (resLisaPage) +// resLisaPage->load(); + if (tdeioLanPage) + tdeioLanPage->load(); + emit changed(false); +} + +void LanBrowser::save() +{ + smbPage->save(); +// if (resLisaPage) +// resLisaPage->save(); + if (tdeioLanPage) + tdeioLanPage->save(); + if (lisaPage) + lisaPage->save(); + emit changed(false); +} + +#include "main.moc" + diff --git a/kcontrol/tdeio/main.h b/kcontrol/tdeio/main.h new file mode 100644 index 000000000..a208b942a --- /dev/null +++ b/kcontrol/tdeio/main.h @@ -0,0 +1,46 @@ +/* + * main.cpp for lisa,reslisa,tdeio_lan and tdeio_rlan kcm module + * + * Copyright (C) 2000 Alexander Neundorf + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#ifndef MYMAIN_H +#define MYMAIN_H + +#include +#include + +class TQTabWidget; + +class LanBrowser:public TDECModule +{ + Q_OBJECT + public: + LanBrowser(TQWidget *parent=0); + virtual void load(); + virtual void save(); + + private: + TQVBoxLayout layout; + TQTabWidget tabs; + TDECModule *smbPage; + TDECModule *lisaPage; +// TDECModule *resLisaPage; + TDECModule *tdeioLanPage; +}; +#endif + diff --git a/kcontrol/tdeio/manualproxy_ui.ui b/kcontrol/tdeio/manualproxy_ui.ui new file mode 100644 index 000000000..43567977e --- /dev/null +++ b/kcontrol/tdeio/manualproxy_ui.ui @@ -0,0 +1,317 @@ + +ManualProxyDlgUI + + + ManualProxyDlgUI + + + + 0 + 0 + 489 + 438 + + + + + unnamed + + + 0 + + + + gbServers + + + Ser&vers + + + + unnamed + + + + lbFtp + + + + 0 + 5 + 0 + 0 + + + + &FTP: + + + leFtp + + + + + lbHttps + + + + 0 + 5 + 0 + 0 + + + + HTTP&S: + + + leHttps + + + + + lbHttp + + + + 0 + 5 + 0 + 0 + + + + H&TTP: + + + leHttp + + + + + leHttp + + + Enter the address of the HTTP proxy server. + + + + + leHttps + + + Enter the address of the HTTPS proxy server. + + + + + leFtp + + + Enter the address of the FTP proxy server. + + + + + sbFtp + + + 65536 + + + Enter the port number of the FTP proxy server. Default 8080. Another common value is 3128. + + + + + sbHttps + + + 65536 + + + Enter the port number of the HTTP proxy server. Default is 8080. Another common value is 3128. + + + + + sbHttp + + + + 32767 + 32767 + + + + 65536 + + + Enter the port number of the HTTP proxy server. Default is 8080. Another common value is 3128. + + + + + spacer1 + + + Horizontal + + + Minimum + + + + 51 + 20 + + + + + + cbSameProxy + + + &Use the same proxy server for all protocols + + + + + pbCopyDown + + + + + + + + + + gbExceptions + + + E&xceptions + + + + unnamed + + + + cbReverseProxy + + + Use proxy only for entries in this list + + + <qt> +Reverse the use of the exception list. Checking this box will result in the proxy servers being used only when the requested URL matches one of the addresses listed here.<p>This feature is useful if all you want or need is to use a proxy server for a few specific sites.<p>If you have more complex requirements you might want to use a configuration script. +</qt> + + + + + layout2 + + + + unnamed + + + + pbDeleteAll + + + false + + + D&elete All + + + Remove all proxy exception addresses from the list. + + + + + pbDelete + + + false + + + De&lete + + + Remove the selected proxy exception address from the list. + + + + + pbNew + + + &New... + + + Add new proxy exception address to the list. + + + + + pbChange + + + false + + + C&hange... + + + Change the selected proxy exception address. + + + + + spacer2 + + + Vertical + + + Expanding + + + + 20 + 114 + + + + + + lbExceptions + + + + + + + + + + leHttp + sbHttp + leHttps + sbHttps + leFtp + sbFtp + cbSameProxy + pbCopyDown + cbReverseProxy + pbNew + pbChange + pbDelete + pbDeleteAll + + + diff --git a/kcontrol/tdeio/netpref.cpp b/kcontrol/tdeio/netpref.cpp new file mode 100644 index 000000000..ea3de857c --- /dev/null +++ b/kcontrol/tdeio/netpref.cpp @@ -0,0 +1,138 @@ +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +#include "ksaveioconfig.h" +#include "netpref.h" + +#define MAX_TIMEOUT_VALUE 3600 + +KIOPreferences::KIOPreferences( TQWidget* parent ) + :TDECModule( parent, "kcmtdeio" ) +{ + TQVBoxLayout* mainLayout = new TQVBoxLayout( this, 0, + KDialog::spacingHint() ); + gb_Timeout = new TQVGroupBox( i18n("Timeout Values"), this, "gb_Timeout" ); + TQWhatsThis::add( gb_Timeout, i18n("Here you can set timeout values. " + "You might want to tweak them if your " + "connection is very slow. The maximum " + "allowed value is %1 seconds.").arg(MAX_TIMEOUT_VALUE)); + mainLayout->addWidget( gb_Timeout ); + + sb_socketRead = new KIntNumInput( gb_Timeout, "sb_socketRead" ); + sb_socketRead->setSuffix( i18n( " sec" ) ); + sb_socketRead->setLabel( i18n( "Soc&ket read:" ), AlignVCenter); + connect(sb_socketRead, TQT_SIGNAL(valueChanged ( int )), + this, TQT_SLOT(configChanged())); + + sb_proxyConnect = new KIntNumInput( sb_socketRead, 0, gb_Timeout, + 10, "sb_proxyConnect" ); + sb_proxyConnect->setSuffix( i18n( " sec" ) ); + sb_proxyConnect->setLabel( i18n( "Pro&xy connect:" ), AlignVCenter); + connect(sb_proxyConnect, TQT_SIGNAL(valueChanged ( int )), + this, TQT_SLOT(configChanged())); + + sb_serverConnect = new KIntNumInput( sb_proxyConnect, 0, gb_Timeout, + 10, "sb_serverConnect" ); + sb_serverConnect->setSuffix( i18n( " sec" ) ); + sb_serverConnect->setLabel( i18n("Server co&nnect:"), AlignVCenter); + connect(sb_serverConnect, TQT_SIGNAL(valueChanged ( int )), + this, TQT_SLOT(configChanged())); + + sb_serverResponse = new KIntNumInput( sb_serverConnect, 0, gb_Timeout, + 10, "sb_serverResponse" ); + sb_serverResponse->setSuffix( i18n( " sec" ) ); + sb_serverResponse->setLabel( i18n("&Server response:"), AlignVCenter); + connect(sb_serverResponse, TQT_SIGNAL(valueChanged ( int )), + this, TQT_SLOT(configChanged())); + + gb_Ftp = new TQVGroupBox( i18n( "FTP Options" ), this, "gb_Ftp" ); + cb_ftpEnablePasv = new TQCheckBox( i18n( "Enable passive &mode (PASV)" ), gb_Ftp ); + TQWhatsThis::add(cb_ftpEnablePasv, i18n( "Enables FTP's \"passive\" mode. This is required to allow FTP to work from behind firewalls." )); + cb_ftpMarkPartial = new TQCheckBox( i18n( "Mark &partially uploaded files" ), gb_Ftp ); + TQWhatsThis::add(cb_ftpMarkPartial, i18n( "

    Marks partially uploaded FTP files.

    " + "

    When this option is enabled, partially uploaded files " + "will have a \".part\" extension. This extension will be removed " + "once the transfer is complete.

    ")); + + mainLayout->addWidget( gb_Ftp ); + + connect(cb_ftpEnablePasv, TQT_SIGNAL(toggled(bool)), TQT_SLOT(configChanged())); + connect(cb_ftpMarkPartial, TQT_SIGNAL(toggled(bool)), TQT_SLOT(configChanged())); + + mainLayout->addStretch(); + + load(); +} + +KIOPreferences::~KIOPreferences() +{ +} + +void KIOPreferences::load() +{ + KProtocolManager proto; + + sb_socketRead->setRange( MIN_TIMEOUT_VALUE, MAX_TIMEOUT_VALUE ); + sb_serverResponse->setRange( MIN_TIMEOUT_VALUE, MAX_TIMEOUT_VALUE ); + sb_serverConnect->setRange( MIN_TIMEOUT_VALUE, MAX_TIMEOUT_VALUE ); + sb_proxyConnect->setRange( MIN_TIMEOUT_VALUE, MAX_TIMEOUT_VALUE ); + + sb_socketRead->setValue( proto.readTimeout() ); + sb_serverResponse->setValue( proto.responseTimeout() ); + sb_serverConnect->setValue( proto.connectTimeout() ); + sb_proxyConnect->setValue( proto.proxyConnectTimeout() ); + + TDEConfig config( "tdeio_ftprc", true, false ); + cb_ftpEnablePasv->setChecked( !config.readBoolEntry( "DisablePassiveMode", false ) ); + cb_ftpMarkPartial->setChecked( config.readBoolEntry( "MarkPartial", true ) ); + emit changed( false ); +} + +void KIOPreferences::save() +{ + KSaveIOConfig::setReadTimeout( sb_socketRead->value() ); + KSaveIOConfig::setResponseTimeout( sb_serverResponse->value() ); + KSaveIOConfig::setConnectTimeout( sb_serverConnect->value() ); + KSaveIOConfig::setProxyConnectTimeout( sb_proxyConnect->value() ); + + TDEConfig config( "tdeio_ftprc", false, false ); + config.writeEntry( "DisablePassiveMode", !cb_ftpEnablePasv->isChecked() ); + config.writeEntry( "MarkPartial", cb_ftpMarkPartial->isChecked() ); + config.sync(); + + KSaveIOConfig::updateRunningIOSlaves (this); + + emit changed( false ); +} + +void KIOPreferences::defaults() +{ + sb_socketRead->setValue( DEFAULT_READ_TIMEOUT ); + sb_serverResponse->setValue( DEFAULT_RESPONSE_TIMEOUT ); + sb_serverConnect->setValue( DEFAULT_CONNECT_TIMEOUT ); + sb_proxyConnect->setValue( DEFAULT_PROXY_CONNECT_TIMEOUT ); + + cb_ftpEnablePasv->setChecked( true ); + cb_ftpMarkPartial->setChecked( true ); + + emit changed(true); +} + +TQString KIOPreferences::quickHelp() const +{ + return i18n("

    Network Preferences

    Here you can define" + " the behavior of TDE programs when using Internet" + " and network connections. If you experience timeouts" + " or use a modem to connect to the Internet, you might" + " want to adjust these settings." ); +} + +#include "netpref.moc" diff --git a/kcontrol/tdeio/netpref.desktop b/kcontrol/tdeio/netpref.desktop new file mode 100644 index 000000000..9b3bcdf10 --- /dev/null +++ b/kcontrol/tdeio/netpref.desktop @@ -0,0 +1,205 @@ +[Desktop Entry] +Comment=Configure generic network preferences, like timeout values +Comment[af]=Konfigureer generies netwerk voorkeure, hou van tydverstreke waardes +Comment[ar]=إعداد تفضيلات الشبكة العامة، مثل قيم فترات الإنتظار +Comment[az]=Ümumi şəbəkə qurğuları, məsələn vaxt dolması kimi +Comment[be]=Настаўленні агульных уласцівасцяў сеткі, напр., тэрмінаў чакання +Comment[bg]=Настройване на общите мрежови параметри +Comment[bn]=বিবিধ নেটওয়ার্ক সেটিংস কনফিগারেশন, যথা টাইম-আউট মানসমূহ +Comment[bs]=Podešavanje općih mrežnih postavki kao što su timeout vrijednosti +Comment[ca]=Configuració de les preferències genèriques de la xarxa, com ara els valors per als temps d'expiració +Comment[cs]=Nastavení obecných parametrů sítě, např. časových limitů +Comment[csb]=Kònfigùracëjô sécoëch nastôwów jakno np. limitu czasu +Comment[cy]=Ffurfweddu dewisiadau rhwydwaith generig, fel gwerthoedd goramser +Comment[da]=Indstil generelle netværksvalg såsom timeout-værdier +Comment[de]=Einfache Netzwerkeinstellungen vornehmen wie z. B. Zeitüberschreitungen +Comment[el]=Ρύθμιση γενικών προτιμήσεων δικτύου, όπως τιμές χρονικών ορίων +Comment[eo]=Ĝeneralaj retopcioj, kiel tempolimoj ktp. +Comment[es]=Configuración de las preferencias genéricas de red, como los tiempos de desconexión +Comment[et]=Üldised võrguseadistused +Comment[eu]=Konfiguratu sarerako hobespen orokorrak (denbora-muga balioak, besteak beste) +Comment[fa]=پیکربندی تنظیمات شبکۀ محلی، مانند مقادیر اتمام‌ وقت +Comment[fi]=Muokkaa yleisiä verkkoasetuksia kuten aikakatkaisuarvoja +Comment[fr]=Configuration générique du réseau, comme par exemple les valeurs des délais d'attente +Comment[fy]=ynstelle fan algemiene netwurkfoarkar, sa as tiidslimytwearden +Comment[gl]=Configurar as preferéncias xenéricas de rede, como os valores de agarda +Comment[he]=שינוי הגדרות רשת כלליות כגון ערכי זמנים מוקצבים +Comment[hi]=जेनेरिक नेटवर्क प्राथमिकताएँ, जैसे टाइम-आउट मूल्य- कॉन्फ़िगर करें +Comment[hr]=Konfiguriranje generičkih mrežnih vrijednosti, poput vremena prekoračenja +Comment[hu]=A hálózati paraméterek, például a várakozási idők beállítása +Comment[is]=Tilgreina almennar netstillingar, t.d. hámarkstíma +Comment[it]=Configura le preferenze di rete generiche, come ad esempio i tempi massimi +Comment[ja]=タイムアウト値などの一般的なネットワーク設定 +Comment[ka]=ქსელის ზოგადი პარამეტრები, ისეთი როგორიცაა ტაიმაუტი +Comment[kk]=Күту уақыты секілді желінің негізгі параметрлерін баптау +Comment[km]=កំណត់​រចនាសម្ព័ន្ធ​ចំណង់​ចំណូល​ចិត្ត​បណ្ដាញ​ទូទៅ ដូចជា​តម្លៃ​អស់​ពេល​ជាដើម +Comment[ko]=제한 시간 값 같이 일반 네트워크에서 기본이 되는 값을 설정합니다 +Comment[lo]=ປັບແຕ່ງຄ່າທົ່ວໄປການລະບົບເຄືອຂ່າຍ ເຊັ່ນຄ່າການໃຊ້ເວລາເປັນຕົ້ນ +Comment[lt]=Konfigūruoti bendrus tinklo pasirinkimus, tokius, kaip laiko limitai +Comment[lv]=Konfigurē vispārējus tīkla uzstādījumus, kā noildzes vērtības +Comment[mk]=Конфигурирајте ги општите мрежни параметри, како тајмаут вредности +Comment[mn]=Ерөнхий сүлжээ-Тохируулга тохируулах Ж.нь.Хугацаа хэтрэлтийн хугацаа +Comment[ms]=Konfigur keutamaan rangkaian generik, seperti nilai waktu rehat +Comment[mt]=Hawn tista' tagħżel preferenzi ġeneriċi tan-network, bħal ħinijiet ta' stennija +Comment[nb]=Angi generelle nettverksinnstillinger, f.eks. verdier for tidsavbrudd +Comment[nds]=Standard-Nettwarkinstellen, as t.B. Tietgrenzen +Comment[ne]=समय समाप्ति मान जस्तै जेनेरिक सञ्जाल प्राथमिकता कन्फिगर गर्नुहोस् +Comment[nl]=Instellen van algemene netwerkvoorkeuren, zoals tijdslimietwaarden +Comment[nn]=Oppsett av generelle nettverksinnstillingar, som til dømes tidsgrenser +Comment[nso]=Beakanya dikganyogo tsa kgokagano ya kakaretso, goswana le maboleng a phelelo ya nako +Comment[pa]=ਨੈੱਟਵਰਕ ਪਸੰਦ ਸੰਰਚਨਾ, ਜਿਵੇਂ ਸਮਾਂ-ਸੀਮਾ ਮੁੱਲ +Comment[pl]=Konfiguracja niskopoziomowych ustawień sieciowych np. limitu czasu +Comment[pt]=Configuração das opções gerais da rede, p.ex. tempos-limite +Comment[pt_BR]=Configurar preferências genéricas para rede tais como valores de tempo limite +Comment[ro]=Configurează opțiuni de rețea precum valorile temporizărilor +Comment[ru]=Общие свойства сети, такие как значения времени ожидания +Comment[rw]=Kuboneza ibijyanye n'urusobemiyoboro rusange, nk'uduciro tw'igihecyarenze +Comment[se]=Oppalaš fierbmeoidimat, nugo áigemearit +Comment[sk]=Nastavenie všeobecných parametrov siete, napr. dôb čakania +Comment[sl]=Nastavljanje splošnih nastavitev omrežja kot na primer vrednosti zakasnitev +Comment[sr]=Подешавања генеричких параметара мреже, као што је прекорачење времена... +Comment[sr@Latn]=Podešavanja generičkih parametara mreže, kao što je prekoračenje vremena... +Comment[sv]=Anpassa allmänna nätverksinställningar, som tidsgränser +Comment[ta]=பிறப்பு வலைதள சலுகைகள், நேரமுடிவு மதிப்பு ஆகியவற்றை வடிவமை +Comment[tg]= Хусусиятҳои шабакаи монанди мӯҳлати вақт, дар инҷо танзим кунед +Comment[th]=ปรับแต่งค่าระบบเครือข่ายทั่วไป เช่น ค่าการใช้เวลา เป็นต้น +Comment[tr]=Genel ağ tercihlerini yapılandır, zaman aşımı değerleri gibi +Comment[tt]=Çeltärneñ töp köyläwläre; kötterü arası kebek. +Comment[uk]=Налаштування загальних параметрів мережі, таких як значення тайм-аутів +Comment[uz]=Taymaut qiymatiga oʻxshagan tarmoq parametrlarni moslash +Comment[uz@cyrillic]=Таймаут қийматига ўхшаган тармоқ параметрларни мослаш +Comment[ven]=Khonifigarani thodea dza vhukwamani sa tshifhinga tsho fhelaho +Comment[vi]=Cấu hình mạng nói chung ví dụ như giới hạn thời gian +Comment[wa]=Apontiaedje des preferinces rantoele djenerikes, come les valixhances di timeout +Comment[xh]=Qwalasela iinketho zomsebenzi womnatha ka wonke-wonke, njengamaxabiso ophelelo lwexesha +Comment[zh_CN]=配置通用网络首选项,例如超时值 +Comment[zh_TW]=設定一般網路喜好設定,例如逾時值 +Comment[zu]=Hlanganisela okuncanyelwa uwonkewonke koxhumano olusazekile, njengamanani esikhathi sokuphuma +Exec=tdecmshell netpref +Icon=network +Keywords=timeout,iopref,netpref,network preferences,ftp +Keywords[be]=Тэрмін чакання,Уласцівасці сеткі,timeout,iopref,netpref,network preferences,ftp +Keywords[bg]=просрочка, време, времето, пауза, прекъсване, връзка, timeout, iopref, netpref, network preferences, ftp +Keywords[bs]=timeout,iopref,netpref,network preferences,ftp,mreža +Keywords[ca]=temps d'expiració,iopref,netpref,preferències de la xarxa,ftp +Keywords[cs]=časový limit,iopref,netpref,nastavení sítě,ftp +Keywords[csb]=limit czasu, sécowé nastôwë,séc,nastôw wé/wi,ftp +Keywords[da]=timeout,udløb,ioindst,netindst,netværksindstillinger,ftp +Keywords[de]=Zeitlimit,Netzwerkeinstellungen,Ein-/Ausgabemodul-Einstellungen +Keywords[el]=χρονικό όριο,iopref,netpref,προτιμήσεις δικτύου,ftp +Keywords[eo]=tempolimo,enel-preferaĵoj,reto,retpreferaĵoj,ftp +Keywords[es]=timeout,iopref,netpref,red preferencias,ftp +Keywords[et]=taimaut,aegumine,võrgu seadistused,ftp +Keywords[eu]=denbora-muga,iopref,netpref,sareko hobespenak, ftp +Keywords[fa]=اتمام وقت، iopref، تنظیمات شبکه، قاپ +Keywords[fr]=délai,configuration du réseau,réseau,entrées/sorties,ftp +Keywords[fy]=timeout,iopref,netpref,netwurkfoarkar,tiidslimyt,ftp +Keywords[gl]=timeout,iopref,netpref,preferéncias de rede, ftp +Keywords[he]=זמן מוקצב,iopref,netpref,העדפות רשת, timeout,iopref,netpref,network preferences,ftp +Keywords[hr]=timeout,prekoračenje vremena,iopref,netpref,network preferences,postavke mreže,ftp +Keywords[hu]=várakozási idő,iopref,netpref,hálózati beállítások,ftp +Keywords[is]=hámarkstími,iopref,netpref,netstillingar,ftp +Keywords[it]=tempo massimo,timeout,iopref,netpref,rete,preferenze di rete,ftp +Keywords[ja]=タイムアウト, iopref, netpref, ネットワーク設定, ftp +Keywords[km]=អស់​ពេល,iopref,netpref,ចំណង់ចំណូល​ចិត្ត​បណ្ដាញ,ftp +Keywords[lt]=timeout,iopref,netpref,network preferences,ftp,laiko limitas, tinklo pasirinkimai +Keywords[mk]=timeout,iopref,netpref,network preferences,ftp,тајмаут,мрежни параметри +Keywords[nb]=avbruddsverdi,I/U-innstillinger,nettverk,nettverksinnstillinger,ftp +Keywords[nds]=timeout,iopref,netpref,Nettwarkinstellen,ftp,Tietgrenz,aflopen +Keywords[ne]=समय समाप्त, iopref, netpref, सञ्जाल प्राथमिकता, ftp +Keywords[nl]=timeout,iopref,netpref,netwerkvoorkeuren,tijdslimiet,ftp +Keywords[nn]=tidsgrense,IU-oppsett,nettverksinnstillingar,nettverk,nettverksoppsett,ftp +Keywords[pl]=limit czasu, ustawienia sieciowe,sieć,ustawienia we/wy,ftp +Keywords[pt]=tempo limite,iopref,netpref,configuração da rede,ftp +Keywords[pt_BR]=tempo limite,iopref,netpref,preferências de rede,ftp,configurações de rede +Keywords[ro]=temporizare,iopref,netpref,preferințe de rețea,ftp +Keywords[rw]= Igihecyarenze,iopref,netpref,ibijyana n'urusobemiyoboro,ftp +Keywords[sl]=iztek,zakasnitev,iopref,netpref,nastavitve omrežja,ftp +Keywords[sv]=tidsgräns,io-inställning,nät-inställning,nätverksinställningar,FTP +Keywords[ta]=நேரம் முடிந்தது,iopref,netpref,வலைதளம் சலுகைகள்,ftp +Keywords[th]=หมดเวลา,iopref,netpref,ปรับแต่งระบบเครือข่าย,ftp +Keywords[tr]=zaman aşımı,ağ tercihleri,iopref,netpref,ftp +Keywords[uk]=тайм-аут,iopref,netpref,параметри мережі,ftp +Keywords[uz]=taymaut,iopref,netpref,tarmoq parametrlari,ftp +Keywords[uz@cyrillic]=таймаут,iopref,netpref,тармоқ параметрлари,ftp +Keywords[vi]=giới hạn thời gian,iopref,netpref,tuỳ chọn mạng +Keywords[wa]=timeout,iopref,netpref,preferinces rantoele,ftp +Keywords[zh_CN]=timeout,iopref,netpref,network preferences,超时,网络首选项,ftp +Keywords[zh_TW]=timeout,iopref,netpref,network preferences,ftp,作業逾時,網路喜好設定 +Name=Connection Preferences +Name[af]=Koppeling Voorkeure +Name[ar]=تفضيلات الإتصال +Name[be]=Уласцівасці злучэнняў +Name[bg]=Настройване на връзката +Name[bn]=যোগাযোগ পছন্দসমূহ +Name[br]=Kefluniadur ar gevreadenn +Name[bs]=Postavke konekcije +Name[ca]=Preferències de connexió +Name[cs]=Nastavení připojení +Name[csb]=Kònfigùracëjô sparłãczeniów +Name[da]=Indstillinger af forbindelse +Name[de]=Verbindungseinstellungen +Name[el]=Προτιμήσεις σύνδεσης +Name[eo]=Konektaj Agordoj +Name[es]=Preferencias de conexión +Name[et]=Ühenduse seadistused +Name[eu]=Konexio hobespenak +Name[fa]=تنظیمات اتصال +Name[fi]=Asetukset +Name[fr]=Préférences de connexion +Name[fy]=Ferbiningfoarkar +Name[ga]=Sainroghanna Naisc +Name[gl]=Preferéncias da Conexón +Name[he]=העדפות חיבור +Name[hi]=कनेक्शन वरीयताएँ +Name[hr]=Postavke povezivanja +Name[hu]=Hálózati paraméterek +Name[is]=Stillingar tenginga +Name[it]=Preferenze sulle connessioni +Name[ja]=接続設定 +Name[ka]=კავშირის თვისებები +Name[kk]=Қосылым параметрлері +Name[km]=ចំណង់ចំណូល​ចិត្ត​ការ​តភ្ជាប់ +Name[ko]=연결 설정 +Name[lt]=Prisijungimo pasirinkimai +Name[lv]=Savienojumu parametri +Name[mk]=Параметри на поврзувањето +Name[ms]=Keutamaan Sambungan +Name[nb]=Forbindelsesinnstillinger +Name[nds]=Instellen för de Verbinnen +Name[ne]=जडान प्राथमिकता +Name[nl]=Verbindingsvoorkeuren +Name[nn]=Innstillingar for samband +Name[pa]=ਕੁਨੈਕਸ਼ਨ ਪਸੰਦ +Name[pl]=Konfiguracja połączeń +Name[pt]=Preferências da Ligação +Name[pt_BR]=Configurações de Conexão +Name[ro]=Preferințe conexiune +Name[ru]=Свойства соединения +Name[rw]=Ibijyanye n'Ukwihuza +Name[se]=Oktavuohta oidimat +Name[sk]=Preferencie pripojenia +Name[sl]=Lastnosti povezave +Name[sr]=Подешавања повезивања +Name[sr@Latn]=Podešavanja povezivanja +Name[sv]=Anslutningsinställningar +Name[ta]=இணைப்பு முன்னுரிமைகள் +Name[tg]=Хусусиятҳои алоқа +Name[th]=ค่าที่ชอบสำหรับการเชื่อมต่อ +Name[tr]=Bağlantı Tercihleri +Name[tt]=Totaşu Caylawları +Name[uk]=Параметри з'єднання +Name[uz]=Aloqa parametrlari +Name[uz@cyrillic]=Алоқа параметрлари +Name[vi]=Tuỳ chọn trong Nối mạng +Name[wa]=Preferinces di raloyaedje +Name[zh_CN]=连接首选项 +Name[zh_TW]=連線偏好設定 +Type=Application +DocPath=kcontrol/netpref/index.html +X-TDE-FactoryName=netpref +X-TDE-Library=tdeio + +X-TDE-ParentApp=kcontrol + +Categories=Qt;TDE;X-TDE-settings-network; diff --git a/kcontrol/tdeio/netpref.h b/kcontrol/tdeio/netpref.h new file mode 100644 index 000000000..30584a598 --- /dev/null +++ b/kcontrol/tdeio/netpref.h @@ -0,0 +1,44 @@ +#ifndef KIOPREFERENCES_H +#define KIOPREFERENCES_H + +#include + +class TQLabel; +class TQVGroupBox; +class TQCheckBox; +class TQVBoxLayout; +class TQHBoxLayout; +class TQGridLayout; + +class KIntNumInput; + +class KIOPreferences : public TDECModule +{ + Q_OBJECT + +public: + KIOPreferences( TQWidget* parent = 0); + ~KIOPreferences(); + + void load(); + void save(); + void defaults(); + + TQString quickHelp() const; + +protected slots: + void configChanged() { emit changed(true); } + +private: + TQVGroupBox* gb_Ftp; + TQVGroupBox* gb_Timeout; + TQCheckBox* cb_ftpEnablePasv; + TQCheckBox* cb_ftpMarkPartial; + + KIntNumInput* sb_socketRead; + KIntNumInput* sb_proxyConnect; + KIntNumInput* sb_serverConnect; + KIntNumInput* sb_serverResponse; +}; + +#endif // KIOPREFERENCES_H diff --git a/kcontrol/tdeio/policydlg.cpp b/kcontrol/tdeio/policydlg.cpp new file mode 100644 index 000000000..44862f51e --- /dev/null +++ b/kcontrol/tdeio/policydlg.cpp @@ -0,0 +1,107 @@ +/** + * Copyright (c) 2000- Dawit Alemayehu + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#include +#include +#include +#include +#include + +#include +#include +#include + +#include "policydlg.h" +#include "policydlg_ui.h" + + +class DomainLineValidator : public TQValidator +{ +public: + DomainLineValidator(TQObject *parent) + :TQValidator(parent, "domainValidator") + { + } + + State validate(TQString &input, int &) const + { + if (input.isEmpty() || (input == ".")) + return Intermediate; + + int length = input.length(); + + for(int i = 0 ; i < length; i++) + { + if (!input[i].isLetterOrNumber() && input[i] != '.' && input[i] != '-') + return Invalid; + } + + return Acceptable; + } +}; + + +PolicyDlg::PolicyDlg (const TQString& caption, TQWidget *parent, + const char *name) + : KDialogBase(parent, name, true, caption, Ok|Cancel, Ok, true) +{ + m_dlgUI = new PolicyDlgUI (this); + setMainWidget(m_dlgUI); + + m_dlgUI->leDomain->setValidator(new DomainLineValidator(TQT_TQOBJECT(m_dlgUI->leDomain))); + m_dlgUI->cbPolicy->setMinimumWidth( m_dlgUI->cbPolicy->fontMetrics().maxWidth() * 25 ); + + enableButtonOK( false ); + connect(m_dlgUI->leDomain, TQT_SIGNAL(textChanged(const TQString&)), + TQT_SLOT(slotTextChanged(const TQString&))); + + setFixedSize (sizeHint()); + m_dlgUI->leDomain->setFocus (); +} + +void PolicyDlg::setEnableHostEdit( bool state, const TQString& host ) +{ + if ( !host.isEmpty() ) + m_dlgUI->leDomain->setText( host ); + m_dlgUI->leDomain->setEnabled( state ); +} + +void PolicyDlg::setPolicy (int policy) +{ + if ( policy > -1 && policy <= static_cast(m_dlgUI->cbPolicy->count()) ) + m_dlgUI->cbPolicy->setCurrentItem(policy-1); + + if ( !m_dlgUI->leDomain->isEnabled() ) + m_dlgUI->cbPolicy->setFocus(); +} + +int PolicyDlg::advice () const +{ + return m_dlgUI->cbPolicy->currentItem() + 1; +} + +TQString PolicyDlg::domain () const +{ + return m_dlgUI->leDomain->text(); +} + +void PolicyDlg::slotTextChanged( const TQString& text ) +{ + enableButtonOK( text.length() > 1 ); +} +#include "policydlg.moc" diff --git a/kcontrol/tdeio/policydlg.h b/kcontrol/tdeio/policydlg.h new file mode 100644 index 000000000..2bf7a4c99 --- /dev/null +++ b/kcontrol/tdeio/policydlg.h @@ -0,0 +1,87 @@ +/** + * Copyright (c) 2000- Dawit Alemayehu + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#ifndef _POLICYDLG_H +#define _POLICYDLG_H + +#include + +#include + + +class TQPushButton; +class PolicyDlgUI; + +class KCookieAdvice +{ +public: + enum Value {Dunno=0, Accept, Reject, Ask}; + + static const char * adviceToStr (const int& advice) + { + switch (advice) + { + case KCookieAdvice::Accept: + return I18N_NOOP("Accept"); + case KCookieAdvice::Reject: + return I18N_NOOP("Reject"); + case KCookieAdvice::Ask: + return I18N_NOOP("Ask"); + default: + return I18N_NOOP("Dunno"); + } + } + + static KCookieAdvice::Value strToAdvice (const TQString& advice) + { + if (advice.isEmpty()) + return KCookieAdvice::Dunno; + + if (advice.find (TQString::fromLatin1("accept"), 0, false) == 0) + return KCookieAdvice::Accept; + else if (advice.find (TQString::fromLatin1("reject"), 0, false) == 0) + return KCookieAdvice::Reject; + else if (advice.find (TQString::fromLatin1("ask"), 0, false) == 0) + return KCookieAdvice::Ask; + + return KCookieAdvice::Dunno; + } +}; + +class PolicyDlg : public KDialogBase +{ + Q_OBJECT + +public: + PolicyDlg (const TQString& caption, TQWidget *parent = 0, + const char *name = 0); + ~PolicyDlg (){}; + + int advice() const; + TQString domain() const; + + void setEnableHostEdit( bool, const TQString& host = TQString::null ); + void setPolicy (int policy); + +protected slots: + void slotTextChanged( const TQString& ); + +private: + PolicyDlgUI* m_dlgUI; +}; +#endif diff --git a/kcontrol/tdeio/policydlg_ui.ui b/kcontrol/tdeio/policydlg_ui.ui new file mode 100644 index 000000000..015359829 --- /dev/null +++ b/kcontrol/tdeio/policydlg_ui.ui @@ -0,0 +1,106 @@ + +PolicyDlgUI + + + PolicyDlgUI + + + + 0 + 0 + 291 + 120 + + + + + unnamed + + + 0 + + + + lbDomain + + + &Domain name: + + + leDomain + + + <qt> +Enter the host or domain to which this policy applies, e.g. <b>www.kde.org</b> or <b>.kde.org</b>. +</qt> + + + + + leDomain + + + <qt> +Enter the host or domain to which this policy applies, e.g. <b>www.kde.org</b> or <b>.kde.org</b>. +</qt> + + + + + lbPolicy + + + &Policy: + + + cbPolicy + + + <qt> +Select the desired policy: +<ul> +<li><b>Accept</b> - Allows this site to set cookies</li> +<li><b>Reject</b> - Refuse all cookies sent from this site</li> +<li><b>Ask</b> - Prompt when cookies are received from this site</li> +</ul> +</qt> + + + + + + Accept + + + + + Reject + + + + + Ask + + + + cbPolicy + + + <qt> +Select the desired policy: +<ul> +<li><b>Accept</b> - Allows this site to set cookies</li> +<li><b>Reject</b> - Refuse all cookies sent from this site</li> +<li><b>Ask</b> - Prompt when cookies are received from this site</li> +</ul> +</qt> + + + + + + kdialog.h + + + + diff --git a/kcontrol/tdeio/proxy.desktop b/kcontrol/tdeio/proxy.desktop new file mode 100644 index 000000000..c39a0ec7c --- /dev/null +++ b/kcontrol/tdeio/proxy.desktop @@ -0,0 +1,209 @@ +[Desktop Entry] +Type=Application +DocPath=kcontrol/proxy/index.html +Icon=proxy +Exec=tdecmshell proxy + + +X-TDE-Library=tdeio +X-TDE-FactoryName=proxy +X-TDE-ParentApp=kcontrol + +Name=Proxy +Name[af]=Volmag +Name[ar]=الوكيل +Name[az]=Vəkil Verici +Name[be]=Проксі +Name[bg]=Прокси сървър +Name[bn]=প্রক্সি +Name[br]=Proksi +Name[ca]=Intermediari +Name[csb]=Pòstrzédnik (Proxy) +Name[cy]=Dirprwy +Name[el]=Διαμεσολαβητής +Name[eo]=Prokuriloj +Name[eu]=Proxya +Name[fa]=پیشکار +Name[fi]=Välityspalvelin +Name[fr]=Serveur mandataire (proxy) +Name[ga]=Seachfhreastalaí +Name[he]=מתווכים +Name[hi]=प्रॉक्सी +Name[is]=Milliþjónn +Name[ja]=プロキシ +Name[ka]=პროქსი +Name[kk]=Прокси +Name[km]=ប្រូកស៊ី +Name[ko]=프록시 +Name[lo]=ພຣັອກຊີ +Name[mk]=Прокси +Name[mn]=Итгэмжилэгч-сервер +Name[ms]=Proksi +Name[nb]=Mellomtjener +Name[ne]=प्रोक्सी +Name[nn]=Mellomtenar +Name[nso]=Moemalegato +Name[pa]=ਪਰਾਕਸੀ +Name[pl]=Pośrednik (Proxy) +Name[ru]=Прокси +Name[rw]=Porogisi +Name[se]=Gaskabálvá +Name[sl]=Posrednik +Name[sr]=Прокси +Name[sr@Latn]=Proksi +Name[sv]=Proxyservrar +Name[ta]=பதிவாணை +Name[te]=ప్రాక్సి +Name[tg]=Прокси +Name[th]=พร็อกซี +Name[tr]=Vekil Sunucu +Name[uk]=Проксі +Name[uz]=Proksi +Name[uz@cyrillic]=Прокси +Name[ven]=Purokusi +Name[xh]=Umntu onegunya lokusebenzela omnye +Name[zh_CN]=代理 +Name[zh_TW]=代理 +Name[zu]=Umlingani +Comment=Configure the proxy servers used +Comment[af]=Konfigureer die volmag bedieners gebruik word +Comment[ar]=إعداد خوادم التوكيل المستعملة +Comment[az]=İşlədilən vəkil verici qurğuları +Comment[be]=Настаўленні сервераў проксі +Comment[bg]=Настройване на прокси сървъра +Comment[bn]=ব্যবহৃত প্রক্সি সার্ভার কনফিগার করুন +Comment[br]=Kefluniañ ar servijeroù proksi implijet +Comment[bs]=Podesite proxy servere +Comment[ca]=Configura els servidors intermediaris emprats +Comment[cs]=Nastavení proxy serverů +Comment[csb]=Kònfigùracëjô pòstrzédniczącëch serwerów (proxy) +Comment[cy]=Ffurfweddu gweinyddion dirprwyol i'w defnyddio +Comment[da]=Indstil de proxyservere der bruges +Comment[de]=Proxy-Server einrichten +Comment[el]=Ρυθμίστε τους διαμεσολαβητές που χρησιμοποιούνται +Comment[eo]=Agordo de prokurilo +Comment[es]=Configuración de los servidores Proxy usados +Comment[et]=Kasutatavate proxy serverite seadistamine +Comment[eu]=Konfiguratu erabilitako proxy zerbitzariak +Comment[fa]=پیکربندی پیشکارهای استفاده‌شده +Comment[fi]=Käytettävät välityspalvelimet +Comment[fr]=Configuration des serveurs mandataires (proxy) utilisés +Comment[fy]=Hjir kinne jo de Proxy-tsjinner ynstelle +Comment[gl]=Configurar os servidores proxy empregados +Comment[he]=שינוי הגדרות השרתים המתווכים שנעשה בהם שימוש +Comment[hi]=उपयोग में प्रॉक्सी सर्वर कॉन्फ़िगर करें +Comment[hr]=Konfiguriranje proxy poslužitelja +Comment[hu]=A proxy kiszolgálók beállításai +Comment[is]=Stilla milliþjóna sem á að nota +Comment[it]=Configura il server proxy da usare +Comment[ja]=プロキシサーバの設定 +Comment[ka]=გამოყენებული პროქსების კონფიგურაცია +Comment[kk]=Қолданатын прокси серверлерді баптау +Comment[km]=កំណត់​រចនាសម្ព័ន្ធ​ម៉ាស៊ីន​បម្រើ​ដែល​បាន​ប្រើ +Comment[ko]=사용할 프록시 서버 설정 +Comment[lo]=ປັບແຕ່ງເຊີບເວີພຣັອກຊີ +Comment[lt]=Konfigūruoti naudojamus proxy serverius +Comment[mk]=Конфигурирајте ги прокси-серверите кои се користат +Comment[mn]=Итгэмжилэгч сервер тохируулах +Comment[ms]=Konfigur pelayan proksi yang digunakan +Comment[mt]=Ikkonfigura servers proxy +Comment[nb]=Oppsett av mellomtjenere +Comment[nds]=De bruukten Proxies instellen +Comment[ne]=प्रयोग गरिएको प्रोक्सी सर्भर कन्फिगर गर्नुहोस् +Comment[nl]=Hier kunt u de Proxy-servers instellen +Comment[nn]=Oppsett av mellomtenarar +Comment[nso]=Beakanya diabi tsa moemalegato tseo di somisitswego +Comment[pa]=ਵਰਤੇ ਜਾਂਦੇ ਪਰਾਕਸੀ ਸਰਵਰਾਂ ਦੀ ਸੰਰਚਨਾ +Comment[pl]=Konfiguracja serwerów pośredniczących (proxy) +Comment[pt]=Configurar os servidores 'proxy' usados +Comment[pt_BR]=Configura os servidores proxy usados +Comment[ro]=Configurează serverele proxy utilizate +Comment[ru]=Настройка серверов прокси +Comment[rw]=Kuboneza amaseriveri porogisi akoreshwa +Comment[se]=Heivet gaskabálváid mat geavahuvvojit +Comment[sk]=Nastavenie proxy serverov +Comment[sl]=Nastavitev uporabe posredniških strežnikov +Comment[sr]=Подешавање коришћених прокси сервера +Comment[sr@Latn]=Podešavanje korišćenih proksi servera +Comment[sv]=Anpassa proxyservrar som används +Comment[ta]=பயன்படுத்தப்பட்ட பதிவாணை சேவகன்களை அமை +Comment[tg]=Танзими коргузорҳои прокси мавриди истифода +Comment[th]=ปรับแต่งเซิร์ฟเวอร์พร็อกซี +Comment[tr]=Vekil sunucularını yapılandırır +Comment[tt]=Proxy serverlären caylaw +Comment[uk]=Налаштування проксі-сервера +Comment[uz]=Proksi serverlarini moslash +Comment[uz@cyrillic]=Прокси серверларини мослаш +Comment[ven]=Dzudzanyani dzisiva dza Proxy dzo shumiswaho +Comment[vi]=Cấu hình máy chủ proxy được sử dụng +Comment[wa]=Apontyî les sierveus proxy d' eployîs +Comment[xh]=Qwalasela indlela abasebenziswa ngayo abancedisi be proxy +Comment[zh_CN]=配置所用的代理服务器 +Comment[zh_TW]=設定使用的代理伺服器 +Comment[zu]=Hlanganisela abalekeleli abangabalingani abasetshenziswayo +Keywords=Proxy,Proxy server,Firewall,Squid,proxy +Keywords[ar]=الوكيل,خادم التوكيل,جدار عزل النار,Squid,الوكيل +Keywords[az]=Proksi,vəkil verici,vəkil,Firewall,firewall,Squid,Proxy,proxy,atəş divarı,atəş +Keywords[be]=Проксі,Сервер проксі,Брандмаўэр,проксі,Proxy,Proxy server,Firewall,Squid,proxy +Keywords[bg]=прокси, сървър, посредник, Proxy, Proxy server, Firewall, Squid, proxy +Keywords[br]=Proksi,Server proksi,Moger-tan,Squid,proksi +Keywords[ca]=Intermediari,Servidor intermediari,Tallafocs,Squid,intermediari +Keywords[csb]=proxy,pòstrzédnik,pòstrzédniczącô serwera,ògniowô scana,Squid +Keywords[cy]=Dirprwy,Gweinydd dirprwyol,Mur gwarchod,Squid,dirprwy +Keywords[da]=Proxy,Proxyserver,Brandmur,Squid,proxy +Keywords[el]=Διαμεσολαβητής,Διαμεσολαβητής,Firewall,Squid,διαμεσολαβητής +Keywords[eo]=Prokurilo,Prokuro-servo,Fajroŝirmilo,Squid +Keywords[es]=Proxy,servidor Proxy,Cortafuegos,Squid,proxy +Keywords[et]=proxy,proxy server,tulemüür,squid +Keywords[eu]=Proxya,Proxy zerbitzaria,Firewalla,Squid,proxya +Keywords[fa]=پیشکار، پیشکاری، دیوارۀ آتش، Squid،پیشکار +Keywords[fi]=Välityspalvelin,Palomuuri,Squid +Keywords[fr]=proxy,serveur mandataire,pare-feu,squid +Keywords[fy]=proxy,proxy tsjinner,brânmourre,squid +Keywords[ga]=Seachfhreastalaí,Balla Dóiteáin,Squid +Keywords[gl]=Proxy,Servidor Proxy,Cortafogos,Squid,proxy +Keywords[he]=מתווך,שרת מתווך,Firewall,Squid, Proxy,Proxy server,Squid,proxy +Keywords[hi]=प्रॉक्सी,प्रॉक्सी सर्वर,फायरवाल,एसक्यू-आईडी,प्रॉक्सी +Keywords[hr]=Proxy,Proxy server,Proxy poslužitelj, Firewall,Squid,proxy,Vatrozid +Keywords[hu]=proxy,proxy kiszolgáló,tűzfal,Squid,proxy +Keywords[is]=Eldveggur,Proxy,Proxy server,Firewall,Squid,proxy +Keywords[it]=proxy,server proxy,firewall,Squid +Keywords[ja]=プロキシ,プロキシサーバ,ファイアウォール,Squid,プロキシ +Keywords[ka]=პროქსი,პროქსი სერვერი,ფაირვოლი,Squid,პროქსი +Keywords[km]=ប្រូកស៊ី,ម៉ាស៊ីន​បម្រើ​ប្រូកស៊ី,ជញ្ជាំង​ភ្លើង,Squid,ប្រូកស៊ី +Keywords[lo]=ພຣັອກຊີ,ເຊີເວີພຣັອກຊີ,ໄຟລ໌ວອລ໌,ສະວິກ,ພຣັອກຊີ +Keywords[lt]=Proxy,Proxy server,Firewall,Squid,proxy, proxy serveris,ugniasienė +Keywords[mk]=Proxy,Proxy server,Firewall,Squid,proxy, Прокси,Прокси сервер,Огнен Ѕид,прокси +Keywords[mn]=Итгэмжилэгч,Итгэмжилэгч сервер,Firewall,Squid,proxy +Keywords[nb]=proxy,mellomtjener,brannmur,squid +Keywords[nds]=Proxy,Proxyserver,Nettdiek,Squid,proxy +Keywords[ne]=प्रोक्सी, प्रोक्सी सर्भर, फायरवाल, स्क्विड, प्रोक्सी +Keywords[nl]=proxy,proxy server,firewall,squid +Keywords[nn]=proxy,mellomtenar,brannmur,squid +Keywords[nso]=Moemalegato,Moabi wa moemalegato,Firewall,Squid,moemalegato +Keywords[pa]=Proxy,Proxy server,Firewall,Squid,ਪਰਾਕਸੀ, ਪਰਾਕਸੀ ਸਰਵਰ +Keywords[pl]=proxy,pośrednik,serwer pośredniczący,zapora ogniowa,Squid +Keywords[pt]=Proxy,Servidor proxy,Firewall,Squid,proxy +Keywords[pt_BR]=Proxy,Servidor Proxy,Firewall,Squid,proxy +Keywords[ro]=proxy,server proxy,firewall,squid,zid de foc +Keywords[rw]=Porogisi, Seriveri porogisi,Urukuta-muriro,Squid,porogisi +Keywords[se]=proxy,gaskabálvá,gaskabálvá,buollinmuvra,squid +Keywords[sl]=posrednik,posredniški strežnik,požarni zid,squid,proxy +Keywords[sr]=Прокси, Прокси сервер, Firewall, Squid, прокси +Keywords[sr@Latn]=Proksi, Proksi server, Firewall, Squid, proksi +Keywords[sv]=Proxy,Proxy-server,Brandvägg,Squid,proxy +Keywords[ta]=பதிவாணை,பதிவாணை சேவகன்,ஃபயர்வால்,ஸ்க்யுட்,ப்ராக்சி +Keywords[th]=พร็อกซี,เซิร์ฟเวอร์พร็อกซี,ไฟร์วอลล์,สควิด,พร็อกซี +Keywords[tr]=Vekil,Vekil sunucu,Güvenlik duvarı,Squid,proxy +Keywords[uk]=проксі,проксі-сервер,фаєрвол,Squid,proxy +Keywords[uz]=Squid,Proksi,Proksi server,Fayervol,proksi +Keywords[uz@cyrillic]=Squid,Прокси,Прокси сервер,Файервол,прокси +Keywords[ven]=Purokusi,Siva ya Purokusi,Luvhondo lwa mulilo,Squid,Purokusi +Keywords[vi]=Proxy,Máy phục vụ proxy,Tường lửa,Squid,proxy +Keywords[wa]=Proxy,Proxy server,Firewall,Squid,proxy,sierveu proxy,meur siconte feu +Keywords[xh]=Umntu onegunya lokudsebenzela omnye, umncedisi womntu onegunya,udonga lomlilo,Squid,umntu onegunya lokusebenzela omnye +Keywords[zh_CN]=Proxy,Proxy server,Firewall,Squid,proxy,代理,代理服务器,防火墙 +Keywords[zh_TW]=Proxy,Proxy server,Firewall,Squid,proxy,代理,代理伺服器,防火牆 +Keywords[zu]=Umlingani,Umlekeleli ongumlingana,Firewall,Squid,umlingani + +Categories=Qt;TDE;X-TDE-settings-network; diff --git a/kcontrol/tdeio/smb.desktop b/kcontrol/tdeio/smb.desktop new file mode 100644 index 000000000..11b905303 --- /dev/null +++ b/kcontrol/tdeio/smb.desktop @@ -0,0 +1,233 @@ +[Desktop Entry] +Type=Application +DocPath=kcontrol/smb/index.html +Icon=samba +Exec=tdecmshell smb + + +X-TDE-Library=tdeio +X-TDE-FactoryName=smb +X-TDE-ParentApp=kcontrol + +Name=Windows Shares +Name[af]=Vensters Gedeelde bronne +Name[ar]=مشاركات Windows +Name[az]=Windows Payları +Name[be]=Агульныя тэчкі Windows +Name[bg]=Споделяне с Windows +Name[bn]=উইণ্ডোস শেয়ারস +Name[br]=Rannadur prenestrer +Name[ca]=Comparticions Windows +Name[cs]=Sdílené disky systému Microsoft Windows +Name[csb]=Zbiérné dostónczi Windows +Name[cy]=Rhaniadau Windows +Name[da]=Windows-shares +Name[de]=Windows-Freigaben +Name[el]=Κοινόχρηστοι πόροι Windows +Name[eo]=Vindozaj retdosierujoj +Name[es]=Comparticiones Windows +Name[et]=Windowsi ressursid +Name[eu]=Windows konpartizioak +Name[fa]=اشتراکهای ویندوزی +Name[fi]=Windows-jaot +Name[fr]=Partages Windows +Name[fy]=Windows-netwurken +Name[gl]=Comparticións con Windows +Name[he]=שיתופי Windows +Name[hi]=विंडोज़ साझेदारी +Name[hr]=Windows dijeljenja +Name[hu]=Samba kliens +Name[id]=Share Windows +Name[is]=SMB netdrif +Name[it]=Condivisioni Windows +Name[ja]=ウィンドウズ共有 +Name[ka]=Windows საზიარო +Name[kk]=Windows ортақ ресурстары +Name[ko]=윈도 공유 +Name[lo]=ການໃຊ້ຊັບພະຍາກອນຮ່ວມກັບວິນໂດສ໌ +Name[lt]=Windows bendro naudojimo diskai +Name[lv]=Windows Šāres +Name[mk]=Windows заеднички +Name[mn]=Windows-Нөөцүүд +Name[ms]=Kongsi Tetingkap +Name[mt]=Shares tal-Windows +Name[nb]=Delte Windows-ressurser +Name[nds]=Windows-Freegaven +Name[ne]=विण्डोज साझेदारी +Name[nl]=Windows-netwerken +Name[nn]=Delte Windows-ressursar +Name[nso]=Dikabagano tsa Window +Name[oc]=Directoris windows +Name[pa]=ਵਿੰਡੋ (windows) ਸਾਂਝ +Name[pl]=Udostępniane zasoby Windows +Name[pt]=Partilhas do Windows +Name[pt_BR]=Compartilhamentos Windows +Name[ro]=Partajări Windows +Name[ru]=Ресурсы Windows +Name[rw]=Imigabane Windows +Name[se]=Juohkojuvvon Windows-resurssat +Name[sk]=Zdieľanie v sieti Windows +Name[sl]=Souporabe iz Windows +Name[sr]=Дељени Windows ресурси +Name[sr@Latn]=Deljeni Windows resursi +Name[sv]=Utdelade Windows-kataloger +Name[ta]=சாளரங்களின் பங்குகள் +Name[tg]=Иштирокоти Windows +Name[th]=ใช้ทรัพยากรร่วมกับวินโดว์ส +Name[tr]=Windows Paylaşımları +Name[tt]=Windows Urtaqları +Name[uk]=Спільні ресурси Windows +Name[ven]=Mukovhekano wa dziwindo +Name[vi]=Chia sẻ với Windows +Name[wa]=Pårtaedjes avou Windows +Name[xh]=Ulwahlulelwano lwe Windows +Name[zh_CN]=Windows 共享资源 +Name[zh_TW]=Windows 資源共享 +Name[zu]=Izabelo zama-Window + +Comment=Use to configure which windows (SMB) filesystems you can browse +Comment[af]=Gebruik na konfigureer wat vensters (Smb) lêerstelsels jy kan blaai +Comment[ar]=إستعمل لإعداد أي من أنظمة الملفات (SMB) تستطيع التصفّح +Comment[az]=Gəzə biləcəyiniz windows (SMB) fayl sistemlərini quraşdırmaqda işlədilir +Comment[be]=Настаўленні файлавых сістэмаў SMB +Comment[bg]=Настройване споделянето на файлове с Windows +Comment[bn]=কোন কোন উইণ্ডোস (সাম্বা) শেয়ার ব্রাউজ করতে পারবেন তা নির্বাচন করতে ব্যবহার করুন +Comment[br]=Implijit evit kefluniañ pe reizhiad restroù windows (SMB) a c'hellit furchal +Comment[bs]=Koristite ovu opciju za podešavanje Windows (SMB) datotečnih sistema koje želite pregledavati +Comment[ca]=S'usa per a configurar en quins sistemes de fitxers windows (SMB) es podrà navegar +Comment[cs]=Použijte k nastavení systémů Windows (SMB), které chcete procházet +Comment[csb]=Kònfigùracëjô przistãpnëch systemòwëch lopków z Windowsa (SMB) +Comment[cy]=Defnyddio i ffurfweddu pa cysodau ffeil Windows (SMB) a fedrwch eu pori +Comment[da]=Bruges til at indstille hvilke Windows-filsystemer (SMB) du kan se +Comment[de]=Hier stellen Sie ein, welche (SMB-)Dateisysteme Sie durchsuchen können +Comment[el]=Ρυθμίστε ποια συστήματα αρχείων windows (SMB) μπορείτε να επισκεφθείτε +Comment[eo]=Retdosierujoj alireblaj per SMB +Comment[es]=Úselo para configurar qué sistemas de archivos de Windows (SMB) puede examinar +Comment[et]=Windowsi (SMB) jagatud resursside lehitsemise seadistused +Comment[eu]=Erabil ezazu zein windows fitxategi sistema (SMB) araka dezakezunkonfiguratzeko +Comment[fa]=استفاده جهت پیکربندی سیستم پرونده‌های ویندوزی(SMB) که می‌توانید مرور کنید. +Comment[fi]=Käytä asettaaksesi windowsin (SMB) tiedostojärjestelmiä, joita voit selata +Comment[fr]=Configuration des systèmes de fichiers Windows (SMB) +Comment[fy]=Hjir kinne jo fêstelle mei wat fan Windows-triemsystemen (SMB) jo fia it netwurk blêdzje wolle. +Comment[gl]=Use-o para configurar os sistemas de ficheiros windows (SMB) que pode navegar +Comment[he]=שינוי ההגדרות בנוגע למערכות הקבצים של SMB) Windows) בהן ניתן לעיין +Comment[hi]=कॉन्फ़िगर करने के लिए इस्तेमाल करें कि कौन सा विंडोज़ फ़ाइलसिस्टम (SMB) आप ब्राउज कर सकते हैं. +Comment[hr]=Konfiguriranje Windows (SMB) datotečnih sustava koje smijete pregledavati +Comment[hu]=Az SMB fájlrendszerek böngészésének beállításai +Comment[id]=Digunakan untuk konfigurasi sistem file windows (SMB) yang digunakan +Comment[is]=Stilla hvaða SMB netdiska (e. windows sameignir) þú getur skoðað +Comment[it]=Configura quali filesystem windows (SMB) si possono sfogliare +Comment[ja]=windows(SMB)ファイルシステムをブラウズするための設定 +Comment[ka]=გამოიყენება windows (SMB) ფაილური სისტემების ჩვენების მისათითებლად +Comment[kk]=Windows-компьютерлердің қай файл жүйелері (SMB) қатынауға ашық екенін баптау +Comment[km]=ប្រើ​ដើម្បី​កំណត់​រចនាសម្ព័ន្ធ ថា​តើ​ប្រព័ន្ធ​ឯកសារ Windows (SMB) ណា​មួយ​ដែល​អ្នក​អាច​រុករក +Comment[ko]=윈도 (SMB) 파일 시스템 탐색 설정 +Comment[lo]=ໃຊ້ສຳລັບການປັບແຕ່ງການເອີ້ນລະບົບ ແຟ້ມຂອງວິນໂດສ໌ (SMB) +Comment[lt]=Naudokite tai norėdami nustatyti kurias Windows (SMB) bylų sistemas Jūs galėsite naršyti +Comment[lv]=Lietojiet, lai norādītu kuras windows (SMB) failu sistēmas Jūs varētu pārlūkot +Comment[mk]=Користете го за да конфигурирате кои windows (SMB) датотечни системи можете да ги прелистувате +Comment[mn]=Энд та ямар виндовс (SMB-)Файлын систем нэгжиж чадахаа тохируулж болно +Comment[ms]=Guna untuk konfigur sistem fail tetingkap (SMB) mana yang anda boleh layar +Comment[mt]=Uża dan biex tagħżel liema filesystems tal-Windows (SMB) tista' tibbrowsja +Comment[nb]=Her kan du stille inn hvilke Windows-filsystemer (SMB) du kan lese +Comment[nds]=Instellen, welke Windows- (SMB-) Dateisystemen Du bruken kannst +Comment[ne]=तपाईँले ब्राउज गर्न सक्ने विण्डोजको (SMB) फाइल प्रणालीहरूमा कन्फिगर गर्न प्रयोग गर्नुहोस् +Comment[nl]=Hier kunt u bepalen op welke Windows-bestandssytemen (SMB) u via het netwerk wilt kunnen bladeren. +Comment[nn]=Her kan du setja opp kva for Windows-filsystem (SMB) du kan lesa +Comment[nso]=E hlwela e beakanya gore ke di-system dife tsa faele ya window (SMB) tseo oka inyakisago tsona +Comment[oc]=S'usa per configurar quins sistemes de fiquièrs windows (SMB) podetz fullejar +Comment[pa]=ਸੰਰਚਨਾ ਵਰਤੋਂ, ਜੋ ਕਿ ਵਿੰਡੋ (SMB) ਫਾਇਲ ਸਿਸਟਮ ਦੀ ਝਲਕ ਵੇਖਾ ਸਕਦਾ ਹੈ +Comment[pl]=Konfiguracja dostępnych systemów plików z Windows (SMB) +Comment[pt]=Configuração das partilhas de Windows (SMB) a que você pode aceder +Comment[pt_BR]=Use para configurar em quais sistemas de arquivos SMB (Rede Windows) você pode navegar +Comment[ro]=Configurează partajările Windows (SMB) pe care le puteți răsfoi +Comment[ru]=Настройка просмотра доступных разделяемых ресурсов Windows-машин +Comment[rw]=Gukoresha mu kuboneza sisitemudosiye ya Windows (SMB) ushobora gucukumbura +Comment[se]=Dás sáhtát heivehit guđe Windows-fiilavuogádaid (SMB) oaččut lohkat +Comment[sk]=Konfigurácia súborového systému Windows (SMB), ktorý môžete prehliadať +Comment[sl]=Uporabite za nastavitev datotečnih sistemov Windows (SMB), po katerih lahko brskate +Comment[sr]=Користите да би подесили које Windows (SMB) системе фајлове ћете моћи да прегледате +Comment[sr@Latn]=Koristite da bi podesili koje Windows (SMB) sisteme fajlove ćete moći da pregledate +Comment[sv]=Använd detta för att ställa in vilka Windows-filsystem (SMB) som du kan komma åt +Comment[ta]=நீங்கள் உலாவக்கூடிய சாளர கோப்பு அமைப்புகளை (SMB) வடிவமைக்கவும் +Comment[tg]= Барои танзим кардани системаи windows, ки (SMB)-ро мехоҳед мурур кунед, қобили истифода аст +Comment[th]=ใช้ปรับแต่งการเรียกดูระบบแฟ้มของวินโดว์ส (SMB) +Comment[tr]=Gözatabileceğiniz windows (SMB) dosya sistemlerini yapılandırmakta kullanılır +Comment[tt]=Windows çeltärendä büleneşkän belem qaraw tärtibeneñ caylawları +Comment[uk]=Налаштування файлових систем Windows (SMB), для навігації +Comment[ven]=I shuma u khonifigara uri ndi mashumele a (SMB) faela a windo ane ninga buronza +Comment[vi]=Dùng để cấu hình hệ thống tập tin Windows (SMB) nào mà bạn có thể duyệt +Comment[wa]=Eployî po-z apontyî ké sistinme di fitchî Windows (SMB) vos ploz foyter +Comment[xh]=Sebenzisa ukuqwalasela eyiphi (SMB) indlela yousebenza okwaziyo ukukhangela iincwadi +Comment[zh_CN]=配置您可以浏览的 Windows (SMB) 文件系统 +Comment[zh_TW]=設定您可以瀏覽的 Windows (SMB) 檔案系統 +Comment[zu]=Sebenzisa ukuhlanganisela ukuthi imaphi amasistimu amafayela ama-window (SMB) ongacinga kuwo + +Keywords=SMB,SAMBA,SMB client,Windows network,LAN,Network,neighborhood,Server,Broadcast,WINS,Share,Login,Passwords +Keywords[ar]=SMB,SAMBA,زبون SMB,شبكة Windows,شبكة المنطقة المحلية,الشبكة,الجوار,الخادم,البث,WINS,المشاركة,تسجيل الدخول,كلمات المرور +Keywords[az]=SMB,SAMBA,SMB alıcı,Windows şəbəkəsi,LAN,Şəbəkə,qonşular,Giriş,Parol,Paylaşım,WINS,yayın +Keywords[be]=Кліент SMB,Сетка Windows,Навакольнае асяроддзе,Сетка,асяроддзе,Сервер,Публікацыя,Агульныя файлы,Уваход,Пароль,Паролі,Уліковы запіс,Сесія,SMB,SAMBA,SMB client,Windows network,LAN,Network,neighborhood,Server,Broadcast,WINS,Share,Login,Passwords +Keywords[bg]=самба, споделяне, файлове, принтери, печат, пароли, SMB, SAMBA, SMB client, Windows network, LAN, Network, neighborhood, Server, Broadcast, WINS, Share, Login, Passwords +Keywords[ca]=SMB,SAMBA,Client SMB,Xarxa Windows,LAN,Xarxa,veïnat,servidor,Broadcast,WINS,Compartició,Accés,Contrasenyes +Keywords[cs]=SMB,Samba,SMB klient,Síť Microsoft Windows,LAN,Síť,Okolní počítače,Server,Broadcast,WINS,Share,Login,Hesla +Keywords[csb]=SMB,SAMBA,klient SMB,séc Windows,LAN,môlowô séc,sécowé òkrãże,serwera,rozgłôszanié,WINS,dostónk,logòwanié,parole +Keywords[cy]=SMB,SAMBA,dibynnydd SMB,Rhwydwaith Windows,LAN,Rhwydwaith,cymdogaeth,Gweinydd,Darllediad,WINS,Rhanniad,Mewngofnodi,Cyfrineiriau +Keywords[da]=SMB,Samba,SMB-klient,Windows-netværk,Lan,Netværk,arbejdsgruppe,server,Udsend,WINS,Del,Login,kodeord +Keywords[de]=SMB,Samba,SMB-Client,Windows-Netzwerk,LAN,Netzwerk,Netzumgebung,Umgebung,Server,Broadcast,WINS,Freigabe,Anmeldung,Passwörter +Keywords[el]=SMB,SAMBA,Πελάτης SMB,Δίκτυο Windows,LAN,Δίκτυο,γειτονιά,Εξυπηρετητής,Εκπομπή,WINDS,Κοινόχρηστος πόρος,Σύνδεση,Κωδικοί πρόσβασης +Keywords[en_GB]=SMB,SAMBA,SMB client,Windows network,LAN,Network,neighbourhood,Server,Broadcast,WINS,Share,Login,Passwords +Keywords[eo]=SMB,Sambo,kliento,Vindozo,reto,LAN,najbaraĵo,servilo,dissendo,WINS,retdosierujo,saluto,pasvorto +Keywords[es]=SMB,SAMBA,Cliente SMB,Red Windows,LAN,Red,entorno,Servidor,Broadcast,WINS,Compartición,Entrada,Acceso,Contraseñas +Keywords[et]=SMB,samba,SMB klient,Windowsi võrk,LAN,võrk,naabrus,server,broadcast,üldlevi,WINS,jagatud ressurss,kasutajanimi,paroolid +Keywords[eu]=SMB,SAMBA,SMB bezeroa,Windows sarea,LAN,Sarea,ingurunea,Zerbitzaria,Broadcast,WINS,Konpartizioa,Saio hasiera,Pasahitza +Keywords[fa]=SMB، SAMBA، کارخواه SMB، شبکۀ ویندوزی، شبکۀ داخلی، شبکه، مجاورت، کارساز، پخش، WINS، مشترک، ورود، اسم‌ رمزها +Keywords[fi]=SMB,SAMBA,SMB-asiakas,Windows verkko,LAN,Verkko,Naapuruus,Palvelin,Jakelu,WINS,Jako,Kirjautuminen,Salasanat +Keywords[fr]=smb,samba,client smb,réseau Windows,lan,réseau local,réseau,voisinage,serveur,broadcast,diffusion,wins,partage,connexion,mot de passe,windows,login +Keywords[fy]=SMB,SAMBA,SMB-client,Windows-netwurk,LAN,netwurk,omwrâld,neighborhood,server,broadcast,WINS,share,Oanmelde,login,wachtwurden,netwurk +Keywords[gl]=SMB,SAMBA,cliente SMB,rede Windows,LAN,Rede,veciñanza,Servidor,Broadcast,WINS,Compartición,Login,Inicio,Contrasinais +Keywords[he]=שיתוף,כניסה למערכת,ססמאות,WINS,רשת מקומית,רשת,שכנים,שרת,שידור,רשת Windows,תוכנית SMB,SAMBA,SMB, SMB client,Windows network,LAN,Network,neighborhood,Server,Broadcast,WINS,Share,Login,Passwords +Keywords[hi]=एसएमबी,साम्बा,एसएमबी क्लाएंट,विंडोज़ नेटवर्क,लैन,नेटवर्क,नेबरहुड,सर्वर,ब्राडकास्ट,विन्स,साझेदारी,लॉगइन,पासवर्ड +Keywords[hr]=SMB,SAMBA,SMB client,Windows network,LAN,Network,neighborhood,Server,Broadcast,WINS,Share,Login,Passwords,SMB klijent,Windows mreža,Mreža,susjedstvo,Poslužitelj,Opća objava,Dijeljenje,Prijava,Lozinke +Keywords[hu]=SMB,Samba,SMB-kliens,Windows-hálózat,LAN,hálózat,környezet,kiszolgáló,broadcast,WINS,megosztás,bejelentkezés,jelszavak +Keywords[id]=SMB,SAMBA,klien SMB,Windows network,LAN,Network,neighborhood,Server,Broadcast,WINS,Share,Login,Passwords +Keywords[is]=Windows net,SMB netdrif,netdrif,net,SMB biðill,Net,nágrenni,þjónn,deild,lykilorð,innskráning +Keywords[it]=SMB,SAMBA,Client SMB,Rete Windows,LAN,Rete,Risorse di rete,Accesso,WINS,Login,Share,Condivisioni,Password,Broadcast,vicini,server,risorse di rete +Keywords[ja]=SMB,SAMBA,SMBクライアント,Windowsネットワーク,LAN,ネットワーク,neighborhood,サーバ,ブロードキャスト,WINS,共有,ログイン,パスワード +Keywords[km]=SMB,SAMBA,ម៉ាស៊ីន​ភ្ញៀវ SMB,បណ្ដាញ Windows,LAN,បណ្ដាញ,កុំព្យូទ័រ​ជិត​ខាង,ម៉ាស៊ីន​បម្រើ,ផ្សាយ,WINS,រួម,ចូល,ពាក្យ​សម្ងាត់ +Keywords[lo]=SMB,SAMBA,ໄຄລເອນ SMB,ລະບົບເຄືອຂ່າຍຂອງວິນໂດສ໌,ແລນ, ລະບົບເຄືອຂ່າຍ,ລະແວກດງວກັນ,ເຊີເວີ,ບອດຄາສ, WINS,ຊັບພະຍາກອນໃຊ້ຮ່ວມກັນ,ລັອກອິນ,ລະຫັດຜ່ານ +Keywords[lt]=SMB,SAMBA,SMB client,SMB klientas,Windows network,Windows tinklas,LAN,vietinis tinklas,Network,tinklas,neighborhood,kaiminystė,Server,serveris,Broadcast,transliacija,WINS,Share,bendro naudojimo,bendro naudojimo diskas,Login,Passwords +Keywords[lv]=SMB,SAMBA,SMB klients,Windows tīkls,LAN,Tīkls,kaimiņš,Serveris,Pārraide,WINS,Šāre,Pieteikšanās,Paroles +Keywords[mk]=SMB,SAMBA,SMB client,Windows network,LAN,Network,neighborhood,Server,Broadcast,WINS,Share,Login,Passwords,клиент,Windows мрежа,Мрежа, соседство,Сервер,Емитување,WINS,Заеднички,Најава,Лозинки +Keywords[mn]=SMB,Samba,SMB-Client,Виндовс-Сүлжээ,LAN,Сүлжээ, Сүлжээний орчин,Орчин,сервер,Цацалт,WINS,Share,Login,Нууц үгс +Keywords[nb]=SMB,SAMBA,SMB-klient,Windows-nettverk,LAN,Nettverk,nabolag,tjener,kringkasting,WINS,deling,innlogging,passord,ressurs +Keywords[nds]=SMB,SAMBA,SMB-Client,Windowsnettwark,LAN,Nettwark,Naverschap,Server,Broadcast,Rundroop,WINS,deelt Ressource,anmellen,Passwöör +Keywords[ne]=SMB, SAMBA, SMB क्लाइन्ट,सञ्झ्याल सञ्जाल, LAN, सञ्जाल, छिमेकी, सर्भर, प्रसारण, WINS, बाडँफाट, लगइन, पासवर्ड +Keywords[nl]=SMB,SAMBA,SMB-client,Windows-netwerk,LAN,netwerk,omgeving,neighborhood,server,broadcast,WINS,share,inloggen,login,aanmelden,wachtwoorden,netwerk +Keywords[nn]=SMB,SAMBA,SMB-klient,Windows-nettverk,LAN,nettverk,nabolag,grannelag,tenar,kringkasting,WINS,deling,innlogging,passord,ressurs +Keywords[nso]=SMB,SAMBA,Moreki wa SMB,Kgokagano ya di-Window,LAN,Kgokagano,boagisane,Moabi,Kgaso,WINS,Kabagano,Tseno,Mantsuphetiso +Keywords[pa]=SMB,SAMBA,SMB ਕਲਾਂਇਟ,Windows network,LAN,ਨੈਟਵਰਕ,ਗੁਆਂਢੀ, ਸਰਵਰ,Broadcast,WINS,ਸਾਂਝ, ਲਾਗਿੰਨ, ਗੁਪਤ-ਕੋਡ +Keywords[pl]=SMB,SAMBA,klient SMB,sieć Windows,LAN,sieć lokalna,otoczenie sieciowe,serwer,rozgłoszenie,WINS,zasób,logowanie,hasła +Keywords[pt]=SMB,SAMBA,cliente SMB,rede Windows,Windows,LAN,rede,vizinhança de rede,servidor,difusão,WINS,partilha,login,senhas +Keywords[pt_BR]=SMB,SAMBA,cliente SMB,rede Windows,LAN,rede,vizinhança,ambiente de rede,servidor,difusão,WINS,Volume,compartilhamento,login,senhas +Keywords[ro]=SMB,SAMBA,client SMB,Windows,LAN,rețea,vecinătate,server,difuziune,WINS,partajare,logare,parole +Keywords[rw]=SMB,SAMBA,Umukiriya SMB, Urusobemiyoboro Windows,LAN,Urusobemiyoboro,Seriveri,Isakazamakuru,WINS,Isangira,Ifashayinjira,Amagambobanga +Keywords[se]=SMB,SAMBA,SMB-klienta,Windows-fierpmádat,LAN,fierpmádat,WINS,sisačáliheapmi,beassansánit +Keywords[sk]=SMB,SAMBA,SMB klient,sieť Windows,LAN,Sieť,WINS,broadcast,server,login,prihlásenie,heslá,share +Keywords[sl]=SMB,SAMBA,odjemnik SMB,omrežje Windows,LAN,omrežje,omrežna soseščina,oddajanje,WINS,prijava,gesla +Keywords[sr]=SMB,SAMBA,SMB client,Windows network,LAN,Network,neighborhood,Сервер,Broadcast,WINS,Share,Login,Passwords,Мрежа,комшилук,дељење,пријава,лозинке +Keywords[sr@Latn]=SMB,SAMBA,SMB client,Windows network,LAN,Network,neighborhood,Server,Broadcast,WINS,Share,Login,Passwords,Mreža,komšiluk,deljenje,prijava,lozinke +Keywords[sv]=SMB,SAMBA,SMB-klient,Windowsnätverk,LAN,Nätverk,omgivning,Server,Broadcast,WINS,Utdelning,Lösenord,Inloggning +Keywords[ta]=SMB,SAMBA,SMB உறுப்பினர்,சாளரங்கள் வலைதளம்,LAN,வலைதளம்,பல வலைதளங்கள்,சேவகன்,ஒலிப்பரப்புதல்,WINS,பங்கு,உள்நுழை,கடவுச்சொற்கள் +Keywords[th]=SMB,SAMBA,ไคลเอนต์ SMB,ระบบเครือข่ายของวินโดว์ส,แลน,ระบบเครือข่าย,ที่ใกล้เคียง,เซิร์ฟเวอร์,ถ่ายทอด,WINS,ทรัพยากรใช้ร่วมกัน,ล็อกอิน,รหัสผ่าน +Keywords[tr]=SMB,SAMBA,SMB istemci,Windows ağı,LAN,Ağ,komşular,Giriş,Parola,Paylaşım,WINS,yayın +Keywords[uk]=клієнт SMB,мережа Windows,ЛОМ,LAN,мережа,оточення,SMB,SAMBA,сервер,мережа Windows,ЛОМ,LAN,мережа,оточення,SMB,SAMBA,сервер,трансляція,WINS,спільний ресурс,реєстрація,паролі +Keywords[uz]=SMB,SAMBA,SMB klienti,Windows tarmogʻi,LAN,Tarmoq,tarmoq muhiti,Server,Broadcast,WINS,Share,Foydalanuvchi,Maxfiy soʻzlar +Keywords[uz@cyrillic]=SMB,SAMBA,SMB клиенти,Windows тармоғи,LAN,Тармоқ,тармоқ муҳити,Сервер,Broadcast,WINS,Share,Фойдаланувчи,Махфий сўзлар +Keywords[ven]=SMB,SAMBA,vhashumisani na SMB,Vhukwamani ha Dziwindo,LAN,Vhukwamani,vhadzulatsini,Siva,Hasha,WINS,U kovhekana,U loga,Dziphasiwede +Keywords[vi]=SMB,SAMBA,SMB khách,Mạng Windows,LAN,Mạng,hàng xóm,Máy chủ,Broadcast,WINS,Chia xẻ,Đăng nhập,Mật khẩu +Keywords[wa]=SMB,SAMBA,cliyint SMB,rantoele Windows,LAN,Rantoele,vijhnaedje,Sierveu,Broadcast,WINS,pårtaedje,pårtaedjî,Login,Passwords,sicrets,mots di passe +Keywords[xh]=SMB,SAMBA,umxhasi we SMB,umsebenzi womnatha we Window,LAN, Umsebenzi womnatha,ubumelwane,Umncedisi,Usasazo,WINS,Yahlula,Igama elithile, Amagama agqithisiweyo +Keywords[zh_CN]=SMB,SAMBA,SMB client,Windows network,LAN,Network,neighborhood,Server,Broadcast,WINS,Share,Login,Passwords,局域网,网络,邻居,服务器,广播,共享,登录,密码 +Keywords[zh_TW]=SMB,SAMBA,SMB client,Windows network,LAN,Network,neighborhood,Server,Broadcast,WINS,Share,Login,Passwords,客戶端程式,Windows 網路,區域網路,網路,網路芳鄰,伺服器,廣播,共享,登入,密碼 +Keywords[zu]=SMB,SAMBA,umxhasi we-SMB,uxhumano olusakazekile lwama-window,LAN,Uxhumano olusakazekile,isizinda,Umlekeleli,Sakaza,WINS, ukwabelana,Ukungena ngaphakathi,Amagama-okudlula + diff --git a/kcontrol/tdeio/smbrodlg.cpp b/kcontrol/tdeio/smbrodlg.cpp new file mode 100644 index 000000000..617c27b98 --- /dev/null +++ b/kcontrol/tdeio/smbrodlg.cpp @@ -0,0 +1,191 @@ +/* This file is part of the KDE project + + Copyright (C) 2000 Alexander Neundorf + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +#include "smbrodlg.h" +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + + +SMBRoOptions::SMBRoOptions(TQWidget *parent) + : TDECModule(parent, "kcmtdeio") +{ + TQGridLayout *layout = new TQGridLayout(this,2,-1,KDialog::marginHint(), + KDialog::spacingHint()); + TQLabel *label=new TQLabel(i18n("This is the configuration for the samba client only, not the server."),this); + layout->addMultiCellWidget(label,0,0,0,1); + + m_userLe=new TQLineEdit(this); + label=new TQLabel(m_userLe,i18n("Default user name:"),this); + layout->addWidget(label,1,0); + layout->addWidget(m_userLe,1,1); + + m_passwordLe=new TQLineEdit(this); + m_passwordLe->setEchoMode(TQLineEdit::Password); + label=new TQLabel(m_passwordLe,i18n("Default password:"),this); + layout->addWidget(label,2,0); + layout->addWidget(m_passwordLe,2,1); + +/* m_workgroupLe=new TQLineEdit(this); + label=new TQLabel(m_workgroupLe,i18n("Workgroup:"),this); + layout->addWidget(label,3,0); + layout->addWidget(m_workgroupLe,3,1); + + m_showHiddenShares=new TQCheckBox(i18n("Show hidden shares"),this); + layout->addMultiCellWidget(m_showHiddenShares,4,4,0,1); + + m_encodingList = new KComboBox( false, this ); + TQStringList _strList = TDEGlobal::charsets()->availableEncodingNames(); + m_encodingList->insertStringList( _strList ); + + label = new TQLabel( m_encodingList, i18n( "MS Windows encoding:" ), this ); + layout->addWidget( label, 3, 0 ); + layout->addWidget( m_encodingList, 3, 1 ); + */ + + layout->addWidget(new TQWidget(this),4,0); + +// connect(m_showHiddenShares, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(changed())); + connect(m_userLe, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(changed())); + connect(m_passwordLe, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(changed())); +// connect(m_workgroupLe, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(changed())); +// connect( m_encodingList, TQT_SIGNAL( activated( const TQString & ) ), this , TQT_SLOT( changed() ) ); + + layout->setRowStretch(4, 1); + + // finaly read the options + load(); +} + +SMBRoOptions::~SMBRoOptions() +{ +} + +void SMBRoOptions::load() +{ + TDEConfig *cfg = new TDEConfig("tdeioslaverc"); + + TQString tmp; + cfg->setGroup( "Browser Settings/SMBro" ); + m_userLe->setText(cfg->readEntry("User")); +// m_workgroupLe->setText(cfg->readEntry("Workgroup")); +// m_showHiddenShares->setChecked(cfg->readBoolEntry("ShowHiddenShares",false)); + +// TQStringList _strList = TDEGlobal::charsets()->availableEncodingNames(); +// TQString m_encoding = TQTextCodec::codecForLocale()->name(); +// m_encodingList->setCurrentItem( _strList.findIndex( cfg->readEntry( "Encoding", m_encoding.lower() ) ) ); + + // unscramble + TQString scrambled = cfg->readEntry( "Password" ); + TQString password = ""; + for (uint i=0; isetText(password); + + delete cfg; +} + +void SMBRoOptions::save() +{ + TDEConfig *cfg = new TDEConfig("tdeioslaverc"); + + cfg->setGroup( "Browser Settings/SMBro" ); + cfg->writeEntry( "User", m_userLe->text()); +// cfg->writeEntry( "Workgroup", m_workgroupLe->text()); +// cfg->writeEntry( "ShowHiddenShares", m_showHiddenShares->isChecked()); +// cfg->writeEntry( "Encoding", m_encodingList->currentText() ); + + //taken from Nicola Brodu's smb ioslave + //it's not really secure, but at + //least better than storing the plain password + TQString password(m_passwordLe->text()); + TQString scrambled; + for (uint i=0; i> 10; + unsigned int a2 = (num & 0x3E0) >> 5; + unsigned int a3 = (num & 0x1F); + scrambled += (char)(a1+'0'); + scrambled += (char)(a2+'A'); + scrambled += (char)(a3+'0'); + } + cfg->writeEntry( "Password", scrambled); + + delete cfg; +} + +void SMBRoOptions::defaults() +{ + m_userLe->setText(""); + m_passwordLe->setText(""); +// m_workgroupLe->setText(""); +// m_showHiddenShares->setChecked(false); +} + +void SMBRoOptions::changed() +{ + emit TDECModule::changed(true); +} + +TQString SMBRoOptions::quickHelp() const +{ + return i18n("

    Windows Shares

    Konqueror is able to access shared " + "windows filesystems if properly configured. If there is a " + "specific computer from which you want to browse, fill in " + "the Browse server field. This is mandatory if you " + "do not run Samba locally. The Broadcast address " + "and WINS address fields will also be available, if you " + "use the native code, or the location of the 'smb.conf' file " + "from which the options are read, when using Samba. In any case, the " + "broadcast address (interfaces in smb.conf) must be set up if it " + "is guessed incorrectly or you have multiple cards. A WINS server " + "usually improves performance, and reduces the network load a lot.

    " + "The bindings are used to assign a default user for a given server, " + "possibly with the corresponding password, or for accessing specific " + "shares. If you choose to, new bindings will be created for logins and " + "shares accessed during browsing. You can edit all of them from here. " + "Passwords will be stored locally, and scrambled so as to render them " + "unreadable to the human eye. For security reasons, you may not want to " + "do that, as entries with passwords are clearly indicated as such.

    "); +} + +#include "smbrodlg.moc" diff --git a/kcontrol/tdeio/smbrodlg.h b/kcontrol/tdeio/smbrodlg.h new file mode 100644 index 000000000..1c9d0347d --- /dev/null +++ b/kcontrol/tdeio/smbrodlg.h @@ -0,0 +1,55 @@ +/* This file is part of the KDE project + + Copyright (C) 2000, 2005 Alexander Neundorf + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef __SMBRODLG_H +#define __SMBRODLG_H + +#include +#include +#include + +#include + +class KComboBox; + +class SMBRoOptions : public TDECModule +{ + Q_OBJECT + public: + SMBRoOptions(TQWidget *parent = 0); + ~SMBRoOptions(); + + virtual void load(); + virtual void save(); + virtual void defaults(); + TQString quickHelp() const; + + private slots: + void changed(); + + private: + TQLineEdit *m_userLe; + TQLineEdit *m_passwordLe; +// TQLineEdit *m_workgroupLe; //currently unused, Alex +// TQCheckBox *m_showHiddenShares; //currently unused, Alex +// KComboBox *m_encodingList; //currently unused +}; + +#endif diff --git a/kcontrol/tdeio/socks.cpp b/kcontrol/tdeio/socks.cpp new file mode 100644 index 000000000..a27f0c2df --- /dev/null +++ b/kcontrol/tdeio/socks.cpp @@ -0,0 +1,279 @@ +/** + * socks.cpp + * + * Copyright (c) 2001 George Staikos + * Copyright (c) 2001 Daniel Molkentin (designer port) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +#include "socks.h" +#include + +KSocksConfig::KSocksConfig(TQWidget *parent) + : TDECModule(parent, "kcmtdeio") +{ + + TDEAboutData *about = + new TDEAboutData(I18N_NOOP("kcmsocks"), I18N_NOOP("TDE SOCKS Control Module"), + 0, 0, TDEAboutData::License_GPL, + I18N_NOOP("(c) 2001 George Staikos")); + + about->addAuthor("George Staikos", 0, "staikos@kde.org"); + + setAboutData( about ); + + + TQVBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint()); + base = new SocksBase(this); + layout->add(base); + + connect(base->_c_enableSocks, TQT_SIGNAL(clicked()), this, TQT_SLOT(enableChanged())); + connect(base->bg, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(methodChanged(int))); + + // The custom library + connect(base->_c_customPath, TQT_SIGNAL(openFileDialog(KURLRequester *)), this, TQT_SLOT(chooseCustomLib(KURLRequester *))); + connect(base->_c_customPath, TQT_SIGNAL(textChanged(const TQString&)), + this, TQT_SLOT(customPathChanged(const TQString&))); + + // Additional libpaths + connect(base->_c_newPath, TQT_SIGNAL(openFileDialog(KURLRequester *)), this, TQT_SLOT(chooseCustomLib(KURLRequester *))); + connect(base->_c_newPath, TQT_SIGNAL(returnPressed(const TQString&)), + this, TQT_SLOT(addThisLibrary(const TQString&))); + connect(base->_c_newPath, TQT_SIGNAL(textChanged(const TQString&)), + this, TQT_SLOT(libTextChanged(const TQString&))); + connect(base->_c_add, TQT_SIGNAL(clicked()), this, TQT_SLOT(addLibrary())); + connect(base->_c_remove, TQT_SIGNAL(clicked()), this, TQT_SLOT(removeLibrary())); + connect(base->_c_libs, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(libSelection())); + + // The "Test" button + connect(base->_c_test, TQT_SIGNAL(clicked()), this, TQT_SLOT(testClicked())); + + // The config backend + load(); +} + +KSocksConfig::~KSocksConfig() +{ +} + +void KSocksConfig::configChanged() +{ + emit changed(true); +} + +void KSocksConfig::enableChanged() +{ + KMessageBox::information(NULL, + i18n("These changes will only apply to newly " + "started applications."), + i18n("SOCKS Support"), + "SOCKSdontshowagain"); + emit changed(true); +} + + +void KSocksConfig::methodChanged(int id) +{ + if (id == 4) { + base->_c_customLabel->setEnabled(true); + base->_c_customPath->setEnabled(true); + } else { + base->_c_customLabel->setEnabled(false); + base->_c_customPath->setEnabled(false); + } + emit changed(true); +} + + +void KSocksConfig::customPathChanged(const TQString&) +{ + emit changed(true); +} + + +void KSocksConfig::testClicked() +{ + save(); // we have to save before we can test! Perhaps + // it would be best to warn, though. + + if (KSocks::self()->hasSocks()) { + KMessageBox::information(NULL, + i18n("Success: SOCKS was found and initialized."), + i18n("SOCKS Support")); + // Eventually we could actually attempt to connect to a site here. + } else { + KMessageBox::information(NULL, + i18n("SOCKS could not be loaded."), + i18n("SOCKS Support")); + } + + KSocks::self()->die(); + +} + + +void KSocksConfig::chooseCustomLib(KURLRequester * url) +{ + url->setMode( KFile::Directory ); +/* TQString newFile = KFileDialog::getOpenFileName(); + if (newFile.length() > 0) { + base->_c_customPath->setURL(newFile); + emit changed(true); + }*/ +} + + + +void KSocksConfig::libTextChanged(const TQString& lib) +{ + if (lib.length() > 0) + base-> _c_add->setEnabled(true); + else base->_c_add->setEnabled(false); +} + + +void KSocksConfig::addThisLibrary(const TQString& lib) +{ + if (lib.length() > 0) { + new TQListViewItem(base->_c_libs, lib); + base->_c_newPath->clear(); + base->_c_add->setEnabled(false); + base->_c_newPath->setFocus(); + emit changed(true); + } +} + + +void KSocksConfig::addLibrary() +{ + addThisLibrary(base->_c_newPath->url()); +} + + +void KSocksConfig::removeLibrary() +{ + TQListViewItem *thisitem = base->_c_libs->selectedItem(); + base->_c_libs->takeItem(thisitem); + delete thisitem; + base->_c_libs->clearSelection(); + base->_c_remove->setEnabled(false); + emit changed(true); +} + + +void KSocksConfig::libSelection() +{ + base->_c_remove->setEnabled(true); +} + + +void KSocksConfig::load() +{ + TDEConfigGroup config(kapp->config(), "Socks"); + base->_c_enableSocks->setChecked(config.readBoolEntry("SOCKS_enable", false)); + int id = config.readNumEntry("SOCKS_method", 1); + base->bg->setButton(id); + if (id == 4) { + base->_c_customLabel->setEnabled(true); + base->_c_customPath->setEnabled(true); + } else { + base->_c_customLabel->setEnabled(false); + base->_c_customPath->setEnabled(false); + } + base->_c_customPath->setURL(config.readPathEntry("SOCKS_lib")); + + TQListViewItem *thisitem; + while ((thisitem = base->_c_libs->firstChild())) { + base->_c_libs->takeItem(thisitem); + delete thisitem; + } + + TQStringList libs = config.readPathListEntry("SOCKS_lib_path"); + for(TQStringList::Iterator it = libs.begin(); + it != libs.end(); + ++it ) { + new TQListViewItem(base->_c_libs, *it); + } + base->_c_libs->clearSelection(); + base->_c_remove->setEnabled(false); + base->_c_add->setEnabled(false); + base->_c_newPath->clear(); + emit changed(false); +} + +void KSocksConfig::save() +{ + TDEConfigGroup config(kapp->config(), "Socks"); + config.writeEntry("SOCKS_enable",base-> _c_enableSocks->isChecked(), true, true); + config.writeEntry("SOCKS_method", base->bg->id(base->bg->selected()), true, true); + config.writePathEntry("SOCKS_lib", base->_c_customPath->url(), true, true); + TQListViewItem *thisitem = base->_c_libs->firstChild(); + + TQStringList libs; + while (thisitem) { + libs << thisitem->text(0); + thisitem = thisitem->itemBelow(); + } + config.writePathEntry("SOCKS_lib_path", libs, ',', true, true); + + kapp->config()->sync(); + + emit changed(false); +} + +void KSocksConfig::defaults() +{ + + base->_c_enableSocks->setChecked(false); + base->bg->setButton(1); + base->_c_customLabel->setEnabled(false); + base->_c_customPath->setEnabled(false); + base->_c_customPath->setURL(""); + TQListViewItem *thisitem; + while ((thisitem = base->_c_libs->firstChild())) { + base->_c_libs->takeItem(thisitem); + delete thisitem; + } + base->_c_newPath->clear(); + base->_c_add->setEnabled(false); + base->_c_remove->setEnabled(false); + emit changed(true); +} + +TQString KSocksConfig::quickHelp() const +{ + return i18n("

    SOCKS

    This module allows you to configure TDE support" + " for a SOCKS server or proxy.

    SOCKS is a protocol to traverse firewalls" + " as described in RFC 1928." + "

    If you have no idea what this is and if your system administrator does not" + " tell you to use it, leave it disabled.

    "); +} + + +#include "socks.moc" + diff --git a/kcontrol/tdeio/socks.h b/kcontrol/tdeio/socks.h new file mode 100644 index 000000000..f5c5cb2a4 --- /dev/null +++ b/kcontrol/tdeio/socks.h @@ -0,0 +1,73 @@ +/** + * socks.h + * + * Copyright (c) 2001 George Staikos + * Copyright (c) 2001 Daniel Molkentin (designer port) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#ifndef _SOCKS_H +#define _SOCKS_H + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include + +#include "socksbase.h" + + +class TQVButtonGroup; + +class KSocksConfig : public TDECModule +{ + Q_OBJECT +public: + KSocksConfig(TQWidget *parent); + virtual ~KSocksConfig(); + + SocksBase *base; + + void load(); + void save(); + void defaults(); + + int buttons(); + TQString quickHelp() const; + +public slots: + void configChanged(); + +private slots: + void enableChanged(); + void methodChanged(int id); + void testClicked(); + void chooseCustomLib(KURLRequester *url); + void customPathChanged(const TQString&); + void addLibrary(); + void libTextChanged(const TQString& lib); + void addThisLibrary(const TQString& lib); + void removeLibrary(); + void libSelection(); + +private: + + bool _socksEnabled; + int _useWhat; +}; + +#endif diff --git a/kcontrol/tdeio/socks.upd b/kcontrol/tdeio/socks.upd new file mode 100644 index 000000000..3b8bfd7f9 --- /dev/null +++ b/kcontrol/tdeio/socks.upd @@ -0,0 +1,8 @@ +# Hello world +Id=trinity.0/r1 +File=ksocksrc,kdeglobals +Group=,Socks +Key=Custom Lib,SOCKS_lib +Key=Enable SOCKS,SOCKS_enable +Key=Lib Path,SOCKS_lib_path +Key=SOCKS Method,SOCKS_method diff --git a/kcontrol/tdeio/socksbase.ui b/kcontrol/tdeio/socksbase.ui new file mode 100644 index 000000000..bfda8e776 --- /dev/null +++ b/kcontrol/tdeio/socksbase.ui @@ -0,0 +1,335 @@ + +SocksBase + + + SocksBase + + + + 0 + 0 + 455 + 402 + + + + SOCKS + + + + + + + + unnamed + + + 0 + + + + _c_enableSocks + + + &Enable SOCKS support + + + Check this to enable SOCKS4 and SOCKS5 support in TDE applications and I/O subsystems. + + + + + bg + + + false + + + SOCKS Implementation + + + + unnamed + + + + _c_detect + + + A&uto detect + + + 1 + + + If you select Autodetect, then KDE will automatically search for an implementation of SOCKS on your computer. + + + + + _c_NEC + + + &NEC SOCKS + + + 2 + + + This will force KDE to use NEC SOCKS if it can be found. + + + + + _c_custom + + + Use &custom library + + + 4 + + + Select custom if you wish to use an unlisted SOCKS library. Please note that this may not always work as it depends on the API of the library which you specify (below). + + + + + Layout6 + + + + unnamed + + + + _c_customLabel + + + + 4 + 1 + 0 + 0 + + + + &Path: + + + 20 + + + _c_customPath + + + + + _c_customPath + + + + 0 + 20 + + + + Enter the path to an unsupported SOCKS library. + + + + + + + _c_Dante + + + &Dante + + + 3 + + + This will force KDE to use Dante if it can be found. + + + + + + + _c_addPaths + + + false + + + + 1 + 1 + 0 + 0 + + + + Additional Library Search Paths + + + Here you can specify additional directories to search for the SOCKS libraries. /usr/lib, /usr/local/lib, /usr/local/socks5/lib and /opt/socks5/lib are already searched by default. + + + + unnamed + + + + + Path + + + true + + + true + + + + _c_libs + + + + 7 + 7 + 0 + 0 + + + + This is the list of additional paths that will be searched. + + + + + _c_newPath + + + + 0 + 25 + + + + + + Layout1 + + + + unnamed + + + + Spacer1 + + + Horizontal + + + MinimumExpanding + + + + 20 + 20 + + + + + + _c_add + + + &Add + + + + + _c_remove + + + &Remove + + + + + + + + + Layout2 + + + + unnamed + + + + Spacer2 + + + Horizontal + + + Expanding + + + + 20 + 0 + + + + + + _c_test + + + false + + + &Test + + + Click here to test SOCKS support. + + + + + + + + + _c_enableSocks + toggled(bool) + bg + setEnabled(bool) + + + _c_enableSocks + toggled(bool) + _c_addPaths + setEnabled(bool) + + + _c_enableSocks + toggled(bool) + _c_test + setEnabled(bool) + + + + kurlrequester.h + kdialog.h + + + + diff --git a/kcontrol/tdeio/tdeio_ftprc.kcfg b/kcontrol/tdeio/tdeio_ftprc.kcfg new file mode 100644 index 000000000..12482d15b --- /dev/null +++ b/kcontrol/tdeio/tdeio_ftprc.kcfg @@ -0,0 +1,22 @@ + + + + + + + + When FTP connections are passive the client connects to the server, instead of the other way round, so firewalls do not block the connection; old FTP servers may not support Passive FTP though. + false + + + + + While a file is being uploaded its extension is ".part". When fully uploaded it is renamed to its real name. + true + + + + diff --git a/kcontrol/tdeio/tdeio_ftprc.kcfgc b/kcontrol/tdeio/tdeio_ftprc.kcfgc new file mode 100644 index 000000000..756df0d9f --- /dev/null +++ b/kcontrol/tdeio/tdeio_ftprc.kcfgc @@ -0,0 +1,5 @@ +File=tdeio_ftprc.kcfg +ClassName=KioFtp +Singleton=true +Mutators=true + diff --git a/kcontrol/tdeio/tdeioslave.kcfg b/kcontrol/tdeio/tdeioslave.kcfg new file mode 100644 index 000000000..05b08d267 --- /dev/null +++ b/kcontrol/tdeio/tdeioslave.kcfg @@ -0,0 +1,44 @@ + + + + + + false + + + 10 + 2 + 3600 + + + 20 + 2 + 3600 + + + 15 + 2 + 3600 + + + 600 + 2 + 3600 + + + + + + + + + + + + + + + diff --git a/kcontrol/tdeio/tdeioslave.kcfgc b/kcontrol/tdeio/tdeioslave.kcfgc new file mode 100644 index 000000000..756df0d9f --- /dev/null +++ b/kcontrol/tdeio/tdeioslave.kcfgc @@ -0,0 +1,5 @@ +File=tdeio_ftprc.kcfg +ClassName=KioFtp +Singleton=true +Mutators=true + diff --git a/kcontrol/tdeio/uagentproviderdlg.cpp b/kcontrol/tdeio/uagentproviderdlg.cpp new file mode 100644 index 000000000..9e945948d --- /dev/null +++ b/kcontrol/tdeio/uagentproviderdlg.cpp @@ -0,0 +1,149 @@ +/** + * Copyright (c) 2001 Dawit Alemayehu + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +#include "fakeuaprovider.h" +#include "uagentproviderdlg.h" +#include "uagentproviderdlg_ui.h" + +UALineEdit::UALineEdit( TQWidget *parent, const char *name ) + :KLineEdit( parent, name ) +{ + // For now do not accept any drops since they might contain + // characters we do not accept. + // TODO: Re-implement ::dropEvent to allow acceptable formats... + setAcceptDrops( false ); +} + +void UALineEdit::keyPressEvent( TQKeyEvent* e ) +{ + int key = e->key(); + TQString keycode = e->text(); + if ( (key >= Qt::Key_Escape && key <= Qt::Key_Help) || key == Qt::Key_Period || + (cursorPosition() > 0 && key == Qt::Key_Minus) || + (!keycode.isEmpty() && keycode.unicode()->isLetterOrNumber()) ) + { + KLineEdit::keyPressEvent(e); + return; + } + e->accept(); +} + +UAProviderDlg::UAProviderDlg( const TQString& caption, TQWidget *parent, + FakeUASProvider* provider, const char *name ) + :KDialog(parent, name, true), m_provider(provider) +{ + setCaption ( caption ); + + TQVBoxLayout* mainLayout = new TQVBoxLayout(this, 0, 0); + + dlg = new UAProviderDlgUI (this); + mainLayout->addWidget(dlg); + //dlg->leIdentity->setEnableSqueezedText( true ); + + if (!m_provider) + { + setEnabled( false ); + return; + } + + init(); +} + +UAProviderDlg::~UAProviderDlg() +{ +} + +void UAProviderDlg::init() +{ + connect( dlg->pbOk, TQT_SIGNAL(clicked()), TQT_SLOT(accept()) ); + connect( dlg->pbCancel, TQT_SIGNAL(clicked()), TQT_SLOT(reject()) ); + + connect( dlg->leSite, TQT_SIGNAL(textChanged(const TQString&)), + TQT_SLOT(slotTextChanged( const TQString&)) ); + + connect( dlg->cbAlias, TQT_SIGNAL(activated(const TQString&)), + TQT_SLOT(slotActivated(const TQString&)) ); + + dlg->cbAlias->clear(); + dlg->cbAlias->insertStringList( m_provider->userAgentAliasList() ); + dlg->cbAlias->insertItem( "", 0 ); + dlg->cbAlias->listBox()->sort(); + + dlg->leSite->setFocus(); +} + +void UAProviderDlg::slotActivated( const TQString& text ) +{ + if ( text.isEmpty() ) + dlg->leIdentity->setText( "" ); + else + dlg->leIdentity->setText( m_provider->agentStr(text) ); + + dlg->pbOk->setEnabled( (!dlg->leSite->text().isEmpty() && !text.isEmpty()) ); +} + +void UAProviderDlg::slotTextChanged( const TQString& text ) +{ + dlg->pbOk->setEnabled( (!text.isEmpty() && !dlg->cbAlias->currentText().isEmpty()) ); +} + +void UAProviderDlg::setSiteName( const TQString& text ) +{ + dlg->leSite->setText( text ); +} + +void UAProviderDlg::setIdentity( const TQString& text ) +{ + int id = dlg->cbAlias->listBox()->index( dlg->cbAlias->listBox()->findItem(text) ); + dlg->cbAlias->setCurrentItem( id ); + slotActivated( dlg->cbAlias->currentText() ); + if ( !dlg->leSite->isEnabled() ) + dlg->cbAlias->setFocus(); +} + +TQString UAProviderDlg::siteName() +{ + TQString site_name=dlg->leSite->text().lower(); + site_name = site_name.remove( "https://" ); + site_name = site_name.remove( "http://" ); + return site_name; +} + +TQString UAProviderDlg::identity() +{ + return dlg->cbAlias->currentText(); +} + +TQString UAProviderDlg::alias() +{ + return dlg->leIdentity->text(); +} + +#include "uagentproviderdlg.moc" diff --git a/kcontrol/tdeio/uagentproviderdlg.h b/kcontrol/tdeio/uagentproviderdlg.h new file mode 100644 index 000000000..3e60edb54 --- /dev/null +++ b/kcontrol/tdeio/uagentproviderdlg.h @@ -0,0 +1,68 @@ +/** + * Copyright (c) 2001 Dawit Alemayehu + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#ifndef __UAPROVIDERDLG_H___ +#define __UAPROVIDERDLG_H___ + + +#include +#include + + +class FakeUASProvider; +class UAProviderDlgUI; + +class UALineEdit : public KLineEdit +{ + Q_OBJECT + +public: + UALineEdit( TQWidget *parent, const char *name=0 ); + +protected: + virtual void keyPressEvent( TQKeyEvent * ); +}; + +class UAProviderDlg : public KDialog +{ + Q_OBJECT + +public: + UAProviderDlg( const TQString& caption, TQWidget *parent = 0, + FakeUASProvider* provider = 0, const char *name = 0 ); + ~UAProviderDlg(); + + void setSiteName( const TQString& ); + void setIdentity( const TQString& ); + + TQString siteName(); + TQString identity(); + TQString alias(); + +protected slots: + void slotActivated( const TQString& ); + void slotTextChanged( const TQString& ); + +protected: + void init(); + +private: + FakeUASProvider* m_provider; + UAProviderDlgUI* dlg; +}; +#endif diff --git a/kcontrol/tdeio/uagentproviderdlg_ui.ui b/kcontrol/tdeio/uagentproviderdlg_ui.ui new file mode 100644 index 000000000..2082e3db4 --- /dev/null +++ b/kcontrol/tdeio/uagentproviderdlg_ui.ui @@ -0,0 +1,207 @@ + +UAProviderDlgUI + + + UAProviderDlgUI + + + + 0 + 0 + 298 + 240 + + + + + 1 + 5 + 0 + 0 + + + + + unnamed + + + + lbSite + + + &When browsing the following site: + + + leSite + + + <qt> +Enter the site or domain name where a fake browser identification should be used.<p> +<u>NOTE:</u> Wildcard syntax such as \"*,?\" is NOT allowed: instead, use the top level address of a site to make generic matches; for example, if you want all KDE sites to receive a fake browser identification, you would enter <code>.kde.org</code> - the fake identity would then be sent to any KDE site that ends with <code>.kde.org</code>. +</qt> + + + + + leSite + + + <qt> +Enter the site or domain name where a fake browser identification should be used.<p> +<u>NOTE:</u> Wildcard syntax such as \"*,?\" is NOT allowed: instead, use the top level address of a site to make generic matches; for example, if you want all KDE sites to receive a fake browser identification, you would enter <code>.kde.org</code> - the fake identity would then be sent to any KDE site that ends with <code>.kde.org</code>. +</qt> + + + + + lbAlias + + + &Use the following identification: + + + leIdentity + + + <qt> +Select the browser identification to use whenever contacting the site you specified above. +</qt> + + + + + cbAlias + + + <qt> +Select the browser identification to use whenever contacting the site you specified above. +</qt> + + + + + lbIdentity + + + Real identification: + + + leIdentity + + + <qt> +The actual browser identification text that will be sent to the remote machine. +</qt> + + + + + leIdentity + + + true + + + <qt> +The actual browser identification text that will be sent to the remote machine. +</qt> + + + + + spacer3 + + + Vertical + + + MinimumExpanding + + + + 21 + 16 + + + + + + layout3 + + + + unnamed + + + + spacer2 + + + Horizontal + + + MinimumExpanding + + + + 29 + 20 + + + + + + pbOk + + + false + + + &OK + + + + + pbCancel + + + &Cancel + + + + + + + line1 + + + + 3 + 0 + 0 + 0 + + + + HLine + + + Sunken + + + Horizontal + + + + + + kdialog.h + + + + + klineedit.h + kcombobox.h + klineedit.h + + diff --git a/kcontrol/tdeio/uasprovider.desktop b/kcontrol/tdeio/uasprovider.desktop new file mode 100644 index 000000000..f6f6feb24 --- /dev/null +++ b/kcontrol/tdeio/uasprovider.desktop @@ -0,0 +1,98 @@ +[Desktop Entry] +Type=ServiceType +X-TDE-ServiceType=UserAgentStrings +Comment=UserAgent Strings +Comment[af]=Gebruiker agent Stringe +Comment[ar]=سلاسل UserAgent +Comment[az]=İstifadəçi Vasitəsi Kəliməsi +Comment[be]=Радкі ідэнтыфікацыі вандроўніка UserAgent +Comment[bg]=Идентификация на браузъра +Comment[bs]=UserAgent stringovi +Comment[ca]=Regles de l'agent d'usuari +Comment[cs]=Řetězce uživatelského agenta +Comment[csb]=Miona "Programë Brëkòwnika" +Comment[cy]=Llinynnau Asiant y Defnyddiwr +Comment[da]=Brugeragent-strenge +Comment[de]=Browserkennungen +Comment[el]=Συμβολοσειρές πράκτορα χρήστη +Comment[eo]=Uzantoagento-frazoj +Comment[es]=Cadenas del Agente de Usuario +Comment[et]=Veebilehitseja identifikaatorid +Comment[eu]=Erabiltzaile agentearen kateak +Comment[fa]=رشته‌های عامل‌ کاربر +Comment[fi]=Käyttäjäagenttimerkkijonot +Comment[fr]=Chaînes d'identité du navigateur +Comment[fy]=regels foar brûkersagint +Comment[ga]=Teaghráin UserAgent +Comment[gl]=Cadeas do Axente de Usuario +Comment[he]=מחרוזות זיהוי דפדפן +Comment[hi]=यूज़रएजेंट स्ट्रिंग्स +Comment[hr]=Identifikacijske (UA - UserAgent) poruke +Comment[hu]=Böngészőazonosítók +Comment[is]=UserAgent strengir +Comment[it]=Stringhe User Agent +Comment[ja]=UserAgent 文字列 +Comment[ka]=Строки UserAgent +Comment[kk]=UserAgent жолдары +Comment[km]=ខ្សែ​អក្សរ​ភ្នាក់ងារ​អ្នក​ប្រើ +Comment[ko]=UserAgent 문자열 +Comment[lo]=ຂໍ້ຄວາມສະແດງຕົວເຄື່ອງມືຂອງຜູ້ໃຊ້ +Comment[lt]=Vartojo agento eilutės +Comment[lv]=LietotājaAģenta Rinda +Comment[mk]=UserAgent низи +Comment[mn]=UserAgent-Таних тэмдэг +Comment[ms]=Rentetan Ejen Pengguna +Comment[mt]=Test tal-UserAgent +Comment[nb]=Brukeragentstrenger +Comment[nds]=Nettkieker-Kennen instellen +Comment[ne]=प्रयोगकर्ता एजेन्ट स्ट्रिङ +Comment[nl]=regels voor Gebruikersagent +Comment[nn]=Brukaragentstrengar +Comment[nso]=Methalofoko ya Mothusi wa Modirisi +Comment[pa]=ਉਪਭੋਗੀ-ਏਜੰਟ ਸਤਰਾਂ +Comment[pl]=Nazwy "Programu Użytkownika" +Comment[pt]=Mensagens do agente do utilizador +Comment[pt_BR]=Strings de Agente de Usuários +Comment[ro]=Texte "User Agent" +Comment[ru]=Строки UserAgent +Comment[rw]=Amakurikiranyanyuguti UmukoziUkoresha +Comment[se]=Geavaheaddjeageanta-dovdamearkkat +Comment[sk]=Reťazce WWW agenta +Comment[sl]=Nizi uporabniškega agenta +Comment[sr]=UserAgent низови +Comment[sr@Latn]=UserAgent nizovi +Comment[sv]=Användaragentsträngar +Comment[ta]=பயன்படுத்துபவர் தொடர்ச்சிகள் +Comment[tg]=Сатри оҷонсии корбар +Comment[th]=ข้อความแสดงตัวเครื่องมือของผู้ใช้ +Comment[tr]=UserAgent Dizileri +Comment[tt]=UserAgent Sätirläre +Comment[uk]=Рядки агента користувача +Comment[ven]=Mutevhe wa vhashumisi +Comment[vi]=Chuỗi UserAgent +Comment[wa]=Tchinnes d' idintité do betchteu +Comment[xh]=Iqela lamagama UserAgent +Comment[zh_CN]=用户代理设置 +Comment[zh_TW]=使用者代理字串設定 +Comment[zu]=Iqoqo lamagama lommeli womsebenzisi + +[PropertyDef::X-TDE-UA-TAG] +Type=TQString + +[PropertyDef::X-TDE-UA-FULL] +Type=TQString + +[PropertyDef::X-TDE-UA-NAME] +Type=TQString + +[PropertyDef::X-TDE-UA-VERSION] +Type=TQString + +[PropertyDef::X-TDE-UA-SYSNAME] +Type=TQString + +[PropertyDef::X-TDE-UA-SYSRELEASE] +Type=TQString + +[PropertyDef::X-TDE-UA-DYNAMIC-ENTRY] +Type=bool diff --git a/kcontrol/tdeio/uasproviders/CMakeLists.txt b/kcontrol/tdeio/uasproviders/CMakeLists.txt new file mode 100644 index 000000000..95f1823c8 --- /dev/null +++ b/kcontrol/tdeio/uasproviders/CMakeLists.txt @@ -0,0 +1,18 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES + ie401onwinnt4.desktop ie45onwinnt5.desktop ie501onwinnt5.desktop + ie50onppc.desktop ie55onwin98.desktop ie55onwinnt5.desktop + ie60onwinnt51.desktop ie60oncurrent.desktop + lynxoncurrent.desktop w3moncurrent.desktop + ns71oncurrent.desktop ns71onwinnt51.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/useragentstrings ) diff --git a/kcontrol/tdeio/uasproviders/Makefile.am b/kcontrol/tdeio/uasproviders/Makefile.am new file mode 100644 index 000000000..868ccbd16 --- /dev/null +++ b/kcontrol/tdeio/uasproviders/Makefile.am @@ -0,0 +1,9 @@ +services_DATA = ie401onwinnt4.desktop ie45onwinnt5.desktop ie501onwinnt5.desktop \ + ie50onppc.desktop \ + ie55onwin98.desktop ie55onwinnt5.desktop ie60onwinnt51.desktop \ + ie60oncurrent.desktop \ + lynxoncurrent.desktop w3moncurrent.desktop \ + ns71oncurrent.desktop ns71onwinnt51.desktop + +servicesdir = $(kde_servicesdir)/useragentstrings + diff --git a/kcontrol/tdeio/uasproviders/ie401onwinnt4.desktop b/kcontrol/tdeio/uasproviders/ie401onwinnt4.desktop new file mode 100644 index 000000000..1aacae9a3 --- /dev/null +++ b/kcontrol/tdeio/uasproviders/ie401onwinnt4.desktop @@ -0,0 +1,98 @@ +[Desktop Entry] +Name=UADescription (IE 4.01 on Win 2000) +Name[af]=UA-beskrywing (IE 4.01 op Win 2000) +Name[ar]=وصف وكيل-مستخدم (IE 4.01 على Win 2000) +Name[as]=UADescription (IE 4.01 on Win 2000) +Name[be]=UADescription (IE 4.01 на Win 2000) +Name[be@latin]=UADescription (IE 4.01 na „Windows 2000”) +Name[bg]=UADescription (IE 4.01 на Win 2000) +Name[bn]=UADescription (IE 4.01 on Win 2000) +Name[bn_IN]=UADescription (Win 2000-র মধ্যে IE 4.01) +Name[br]=UADescription (IE 4.01 war Win 2000) +Name[ca]=Descripció AU (IE 4.01 en Windows 2000) +Name[ca@valencia]=Descripció AU (IE 4.01 en Windows 2000) +Name[cs]=Popis agenta (IE 4.01 na Win 2000) +Name[csb]=Òpisënk programë brëkòwnika (IE 4.01 na Win 2000) +Name[cy]=UADisgrifiad (IE 4.01 ar Win 2000) +Name[da]=Brugeragentbeskrivelse (IE 4.01 på Win 2000) +Name[de]=Browserkennung (IE 4.01 auf Windows 2000) +Name[el]=Περιγραφή UA (IE 4.01 σε Win 2000) +Name[en_GB]=UADescription (IE 4.01 on Win 2000) +Name[eo]=UA-Priskribo (IE 4.01 sur Vindozo 2000) +Name[es]=Descripción de AU (IE 4.01 en Windows 2000) +Name[et]=UADescription (IE 4.01 Win2000 platvormil) +Name[eu]=UA azalpena (IE 4.01 Win 2000-n) +Name[fa]=UADescription (IE 4.01 در Win 2000) +Name[fi]=Käyttäjäagenttikuvaus (IE 4.01 Win 2000:lla) +Name[fr]=UADescription (IE 4.01 sous Windows 2000) +Name[fy]=GA-omskriuwing (IE 4.01 op Win 2000) +Name[ga]=UADescription (IE 4.01 ar Win 2000) +Name[gl]=UADescription (IE 4.01 en Win 2000) +Name[gu]=UADescription (આઇ.ઇ. ૪.૦૧ વિન્ડોઝ ૨૦૦૦ પર) +Name[he]=UADescription (IE 4.01 on Win 2000) +Name[hi]=यूए-डिस्क्रिप्शन (आईई 4.01 विन 2000 पर) +Name[hne]=यूए-डिस्क्रिप्सन (आईई 4.01 विन 2000 मं) +Name[hr]=UADescription (IE 4.01 na Win 2000) +Name[hsb]=UADescription (IE 4.01 na Win 2000) +Name[hu]=Böngészőtípus (IE 4.01, Win 2000) +Name[ia]=UADescription (IE 4.01 super Win 2000) +Name[id]=UADescription (IE 4.01 di Win 2000) +Name[is]=UADescription (IE 4.01 á Win 2000) +Name[it]=Descrizione UA (IE 4.01 su Windows 2000) +Name[ja]=UADescription (IE 4.01 on Win 2000) +Name[ka]=UADescription (IE 4.01 Win 2000-ში) +Name[kk]=UADescription (IE 4.01 / Win 2000) +Name[km]=UADescription (IE 4.01 នៅ​លើ​វីនដូ ២០០០) +Name[kn]=UAವಿವರಣೆ (ವಿನ್ಡೋಸ್ ೨೦೦೦ ದ ಮೇಲಿನ ಐಇ ೪.೦೧) +Name[ko]=UADescription (윈도 2000의 IE 4.01) +Name[ku]=Pênasa UA (IE 4.01 ji bo Win 2000) +Name[lt]=Vartotojo agentas (IE 4.01 ir Win 2000) +Name[lv]=UA Apraksts (IE 4.01 uz Win 2000) +Name[mai]=यूए-डिस्क्रिप्शन (आईई 4.01 विन 2000 पर) +Name[mk]=UADescription (IE 4.01 на Win 2000) +Name[ml]=യുഎവിവരണം (വിന്‍ 2000 ലെ ഐഇ 4.01) +Name[mr]=UAडिस्क्रिप्शन (IE 4.01 विन 2000 पर) +Name[ms]=UADescription (IE 4.01 on Win 2000) +Name[nb]=Brukeragent (IE 4.01 på Win 2000) +Name[nds]=UA-Beschrieven (IE 4.01 op Win 2000) +Name[ne]=UA वर्णन (Win 2000 मा IE 4.01) +Name[nl]=GA-beschrijving (IE 4.01 op Win 2000) +Name[nn]=Brukaragent (IE 4.01 på Windows 2000) +Name[or]=UA ବର୍ଣ୍ଣନା (Win 2000 ଉପରେ IE 4.01) +Name[pa]=UADescription (Win ੨੦੦੦ ਉੱਤੇ IE 4.01) +Name[pl]=Opis przeglądarki użytkownika (IE 4.01 na Win 2000) +Name[pt]=UADescription (IE 4.01 no Win 2000) +Name[pt_BR]=UADescription (IE 4.01 no Windows 2000) +Name[ro]=Descriere AU (IE 4.01 pentru Win 2000) +Name[ru]=UADescription (IE 4.01 на Windows 2000) +Name[se]=UA-čilgehus (IE 4.01 ja Win 2000) +Name[si]=UADescription (Win 2000 මත IE 4.01 ) +Name[sk]=Popis agenta (IE 4.01 na Win 2000) +Name[sl]=UAOpis (IE 4.01 na Windows 2000) +Name[sr]=УА‑опис (ИЕ 4.01 на Виндоузу 2000) +Name[sr@ijekavian]=УА‑опис (ИЕ 4.01 на Виндоузу 2000) +Name[sr@ijekavianlatin]=UA-opis (IE 4.01 na Windowsu 2000) +Name[sr@latin]=UA-opis (IE 4.01 na Windowsu 2000) +Name[sv]=AA-beskrivning (IE 4.01 på Win 2000) +Name[ta]=UADescription (IE 4.01 on Win 2000) +Name[te]=UADescription (IE 4.01 on Win 2000) +Name[tg]=UADescription (IE 4.01 дар Win 2000) +Name[th]=UADescription (IE 4.01 บน Win 2000) +Name[tr]=Kullanıcı Uygulaması Tanımı (Win 2000 üzerinde IE 4.01) +Name[uk]=UADescription (IE 4.01 на Win 2000) +Name[uz]=UADescription (Win 2000 bilan IE 4.01) +Name[uz@cyrillic]=UADescription (Win 2000 билан IE 4.01) +Name[vi]=Mô tả UA (IE 4.01 trên Win 2000) +Name[wa]=Idintifiaedje do betchteu (MSIE 4.01 so Windows 2000) +Name[xh]=UADescription (IE 4.01 kwi Win 2000) +Name[x-test]=xxUADescription (IE 4.01 on Win 2000)xx +Name[zh_CN]=客户端描述(运行于 Win 2000 的 IE 4.01) +Name[zh_TW]=使用者代理描述 (IE 4.01 on Win 2000) +Type=Service +X-TDE-ServiceTypes=UserAgentStrings +X-TDE-UA-TAG=IE +X-TDE-UA-FULL=Mozilla/4.0 (compatible; MSIE 4.01; Windows NT 5.0) +X-TDE-UA-NAME=Internet Explorer +X-TDE-UA-VERSION=4.01 +X-TDE-UA-SYSNAME=Windows +X-TDE-UA-SYSRELEASE=2000 diff --git a/kcontrol/tdeio/uasproviders/ie45onwinnt5.desktop b/kcontrol/tdeio/uasproviders/ie45onwinnt5.desktop new file mode 100644 index 000000000..94fa23150 --- /dev/null +++ b/kcontrol/tdeio/uasproviders/ie45onwinnt5.desktop @@ -0,0 +1,80 @@ +[Desktop Entry] +Name=UADescription (IE 4.5 on Win 2000) +Name[af]=UA-beskrywing (Ie 4.5 op Win 2000) +Name[az]=UADescription (IE 5.5 on Win 2000) +Name[be]=UADescription (IE 4.5 на Win 2000) +Name[br]=UADescription (IE 4.5 war Win 2000) +Name[ca]=Descripció de AU (IE 4.5 en Windows 2000) +Name[cs]=Popis agenta (IE 4.5 na Win 2000) +Name[csb]=Òpis programë brëkòwnika (IE 4.5 na Win 2000) +Name[cy]=UADisgrifiad(IE 4.5 ar Win 2000) +Name[da]=Brugeragentbeskrivelse (IE 4.5 på Win 2000) +Name[de]=Browserkennung (IE 4.5 auf Windows 2000) +Name[el]=Περιγραφή UA (IE 5.5 σε Win 2000) +Name[eo]=UA-Priskribo (IE 4.5 sub Vindozo 2000) +Name[es]=Descripción de AU (IE 4.5 en Windows 2000) +Name[et]=UADescription (IE 4.5 Win2000 platvormil) +Name[eu]=UA azalpena (IE 4.5 Win 2000-n) +Name[fa]=UADescription (IE 4.5 در Win 2000) +Name[fi]=Käyttäjäagenttikuvaus (IE 4.5 Win 2000:lla) +Name[fr]=Identité du navigateur (IE 4.5 sous Windows 2000) +Name[fy]=GA-omskriuwing (IE 4.5 op Win 2000) +Name[ga]=UADescription (IE 4.5 ar Win 2000) +Name[gl]=UADescription (IE 4.5 en Win 2000) +Name[he]=UADescription (Win 2000ב־ IE 4.5) +Name[hi]=यूएडी-डिस्क्रिप्शन (IE 4.5 विन 2000 पर) +Name[hr]=UADescription (IE 4.5 na Win 2000) +Name[hu]=Böngészőtípus (IE 4.5, Win 2000) +Name[id]=UADescription (IE 4.5 di Win 2000) +Name[is]=UAD strengur (IE 4.5 on Win 2000) +Name[it]=DescrizioneUA (IE 4.5 su Win 2000) +Name[ka]=UADescription (IE 4.5 Win 2000-ში) +Name[kk]=UADescription (IE 4.5 / Win 2000) +Name[km]=UADescription (IE 4.5 នៅ​លើ Win 2000) +Name[ko]=UADescription (윈도 2000의 IE 5.5) +Name[lt]=Naudotojo agento aprašymas (IE 4.5 ir Win 2000) +Name[lv]=UAApraksts (IE 5.5 uz Win 2000) +Name[mk]=UADescription (IE 4.5 на Win 2000) +Name[mn]=UserAgent-Тодорхойлолт (IE 5.5 on Win 2000) +Name[mt]=UADescription (IE 4.5 fuq Win 2000) +Name[nb]=Brukeragent (IE 4.5 på Win 2000) +Name[nds]=UA-Beschrieven (IE 4.5 op Win 2000) +Name[ne]=UA वर्णन (Win 2000 मा IE 4.5) +Name[nl]=GA-beschrijving (IE 4.5 op Win 2000) +Name[nn]=Brukaragent (IE 4.5 på Win 2000) +Name[nso]=UAThlaloso (IE 4.5 go Win 2000) +Name[pa]=UADescription (ਵਿੰਡੋ ੨੦੦੦ 'ਤੇ IE 4.5) +Name[pl]=Opis przeglądarki użytkownika (IE 4.5 na Win 2000) +Name[pt]=UADescription (IE 4.5 no Win 2000) +Name[pt_BR]=Descrição (IE 4.5 no Win 2000) +Name[ro]=Descriere UA (IE 4.5 pentru Win 2000) +Name[ru]=UADescription (IE 4.5 на Win 2000) +Name[rw]=UADescription (IE 4.5 kuri Win 2000) +Name[se]=UA-čilgehus (IE 4.5 ja Win 2000) +Name[sk]=Popis agenta (IE 4.5 na Win 2000) +Name[sl]=UAOpis (IE 4.5 v Windows 2000) +Name[sr]=UADescription (IE 4.5 на Win 2000) +Name[sr@Latn]=UADescription (IE 4.5 na Win 2000) +Name[sv]=AA-beskrivning (IE 4.5 på Win 2000) +Name[ta]=UAவிவரம் (IE 4.5 on Win 2000) +Name[tg]=ТавзеҳиUA (IE 4.5 ба Win 2000) +Name[th]=UADescription (IE 4.5 บน Win 2000) +Name[tr]=UA Tanımı (Win 2000 üzerinde IE 4.5) +Name[tt]=UADescription (IE 4.5, Win 2000 astında) +Name[uk]=UADescription (IE 4.5 на Win 2000) +Name[uz]=UADescription (Win 2000 bilan IE 4.5) +Name[uz@cyrillic]=UADescription (Win 2000 билан IE 4.5) +Name[ven]=Thalutshedzo ya UA (IE 4.5 on Win 2000) +Name[vi]=Mô tả UA (IE 5.5 trên Win 2000) +Name[wa]=Discrijhaedje di l' idintité do betchteu (IE 4.5 so Win 2000)Name= +Name[xh]=UADescription (IE 4.5 kwi Win 2000) +Name[zh_CN]=用户代理描述 (运行于 Win 2000 的 IE 4.5) +Name[zh_TW]=使用者代理描述 (IE 4.5 on Win 2000) +Type=Service +ServiceTypes=UserAgentStrings +X-TDE-UA-TAG=IE +X-TDE-UA-FULL=Mozilla/4.0 (compatible; MSIE 4.5; Windows NT 5.0) +X-TDE-UA-NAME=Internet Explorer +X-TDE-UA-VERSION=4.5 +X-TDE-UA-SYSNAME=Windows +X-TDE-UA-SYSRELEASE=2000 diff --git a/kcontrol/tdeio/uasproviders/ie501onwinnt5.desktop b/kcontrol/tdeio/uasproviders/ie501onwinnt5.desktop new file mode 100644 index 000000000..a32a4a606 --- /dev/null +++ b/kcontrol/tdeio/uasproviders/ie501onwinnt5.desktop @@ -0,0 +1,79 @@ +[Desktop Entry] +Name=UADescription (IE 5.01 on Win 2000) +Name[af]=Ua-beskrywing (Ie 5.01 op Win 2000) +Name[be]=UADescription (IE 5.01 на Win 2000) +Name[br]=UADescription (IE 5.01 war Win 2000) +Name[ca]=Descripció de AU (IE 5.01 en Windows 2000) +Name[cs]=Popis agenta (IE 5.01 na Win 2000) +Name[csb]=Òpis programë brëkòwnika (IE 5.01 na Win 2000) +Name[cy]=UADisgrifiad (IE 5.01 ar Win 2000) +Name[da]=Brugeragentbeskrivelse (IE 5.01 på Win 2000) +Name[de]=Browserkennung (IE 5.01 auf Windows 2000) +Name[el]=Περιγραφή UA (IE 5.01 σε Win 2000) +Name[eo]=UA-Priskribo (IE 5.01 sub Vindozo 2000) +Name[es]=Descripción de AU (IE 5.01 en Windows 2000) +Name[et]=UADescription (IE 5.01 Win2000 platvormil) +Name[eu]=UA azalpena (IE 5.01 Win 2000-n) +Name[fa]=UADescription (IE 5.01 در Win 2000) +Name[fi]=Käyttäjäagenttikuvaus (IE 5.01 Win 2000:lla) +Name[fr]=Identité du navigateur (IE 5.01 sous Windows 2000) +Name[fy]=GA-omskriuwing (IE 5.01 op Win 2000) +Name[ga]=UADescription (IE 5.01 ar Win 2000) +Name[gl]=UADescription (IE 5.01 en Win 2000) +Name[he]=UADescription (Win 2000ב־ IE 5.01) +Name[hi]=यूएडी-डिस्क्रिप्शन (IE 5.01 विन 2000 पर) +Name[hr]=UADescription (IE 5.01 na Win 2000) +Name[hu]=Böngészőtípus (IE 5.01, Win 2000) +Name[id]=UADescription (IE 5.01 di Win 2000) +Name[is]=UAD strengur (IE 5.01 on Win 2000) +Name[it]=DescrizioneUA (IE 5.01 su Win 2000) +Name[ka]=UADescription (IE 5.01 Win 2000-ში) +Name[kk]=UADescription (IE 5.01 / Win 2000) +Name[km]=UADescription (IE 5.01 នៅ​លើ Win 2000) +Name[ko]=UADescription (윈도 2000의 IE 4.01) +Name[lt]=Naudotojo agento aprašymas (IE 5.01 ir Win 2000) +Name[lv]=UAApraksts (IE 5.01 uz Win 2000) +Name[mk]=UADescription (IE 5.01 на Win 2000) +Name[mn]=UserAgent-Тодорхойлолт (IE 5.01 on Win 2000) +Name[mt]=UADescription (IE 5.01 fuq Win 2000) +Name[nb]=Brukeragent (IE 5.01 på Win 2000) +Name[nds]=UA-Beschrieven (IE 5.01 op Win 2000) +Name[ne]=UA वर्णन (Win 2000 मा IE 5.01) +Name[nl]=GA-beschrijving (IE 5.01 op Win 2000) +Name[nn]=Brukaragent (IE 5.01 på Win 2000) +Name[nso]=UAThlaloso (IE 5.01 go Win 2000) +Name[pa]=UADescription (ਵਿੰਡੋ ੨੦੦੦ 'ਤੇ IE 5.01) +Name[pl]=Opis przeglądarki użytkownika (IE 5.01 na Win 2000) +Name[pt]=UADescription (IE 5.01 no Win 2000) +Name[pt_BR]=Descrição (IE 5.01 no Win 2000) +Name[ro]=Descriere UA (IE 5.01 pentru Win 2000) +Name[ru]=UADescription (IE 5.01 на Win 2000) +Name[rw]=UADescription (IE 5.01 kuri Win 2000) +Name[se]=UA-čilgehus (IE 5.01 ja Win 2000) +Name[sk]=Popis agenta (IE 5.01 na Win 2000) +Name[sl]=UAOpis (IE 5.01 na Windows 2000) +Name[sr]=UADescription (IE 5.01 на Win 2000) +Name[sr@Latn]=UADescription (IE 5.01 na Win 2000) +Name[sv]=AA-beskrivning (IE 5.01 på Win 2000) +Name[ta]=UAவிவரம் (IE 5.01 on Win 2000) +Name[tg]=ТавзеҳиUA (IE 5.01 ба Win 2000) +Name[th]=UADescription (IE 5.01 บน Win 2000) +Name[tr]=UA Tanımı (Win 2000 üzerinde IE 5.01) +Name[tt]=UADescription (IE 5.01, Win 2000 astında) +Name[uk]=UADescription (IE 5.01 на Win 2000) +Name[uz]=UADescription (Win 2000 bilan IE 5.01) +Name[uz@cyrillic]=UADescription (Win 2000 билан IE 5.01) +Name[ven]=Thalutshedzo (IE 5.01 on Win 2000) +Name[vi]=Mô tả UA (IE 5.01 trên Win 2000) +Name[wa]=Discrijhaedje di l' idintité do betchteu (IE 5.01 so Win 2000) +Name[xh]=UADescription (IE 5.01 kwi Win 2000) +Name[zh_CN]=用户代理描述 (运行于 Win 2000 的 IE 5.01) +Name[zh_TW]=使用者代理描述 (IE 5.01 on Win 2000) +Type=Service +ServiceTypes=UserAgentStrings +X-TDE-UA-TAG=IE +X-TDE-UA-FULL=Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) +X-TDE-UA-NAME=Internet Explorer +X-TDE-UA-VERSION=5.01 +X-TDE-UA-SYSNAME=Windows +X-TDE-UA-SYSRELEASE=2000 diff --git a/kcontrol/tdeio/uasproviders/ie50onppc.desktop b/kcontrol/tdeio/uasproviders/ie50onppc.desktop new file mode 100644 index 000000000..2f14da7b1 --- /dev/null +++ b/kcontrol/tdeio/uasproviders/ie50onppc.desktop @@ -0,0 +1,98 @@ +[Desktop Entry] +Name=UADescription (IE 5.0 on Mac PPC) +Name[af]=UA-beskrywing (Ie 5.0 op Mac Ppc) +Name[ar]=وصف وكيل-مستخدم (IE 5.0 على Mac PPC) +Name[as]=UADescription (IE 5.0 on Mac PPC) +Name[be]=UADescription (IE 5.0 на Mac PPC) +Name[be@latin]=UADescription (IE 5.0 na „Mac” dla PPC) +Name[bg]=UADescription (IE 5.0 на Mac PPC) +Name[bn]=UADescription (IE 5.0 on Mac PPC) +Name[bn_IN]=UADescription (Mac PPC-র মধ্যে IE 5.0) +Name[br]=UADescription (IE 5.0 war Mac PPC) +Name[ca]=Descripció AU (IE 5.0 en Mac PPC) +Name[ca@valencia]=Descripció AU (IE 5.0 en Mac PPC) +Name[cs]=Popis agenta (IE 5.0 na Mac PPC) +Name[csb]=Òpisënk programë brëkòwnika (IE 5.0 na Mac PPC) +Name[cy]=UADisgrifiad (IE 5.0 ar Mac PPC) +Name[da]=Brugeragentbeskrivelse (IE 5.0 på Mac PPC) +Name[de]=Browserkennung (IE 5.0 auf Mac PPC) +Name[el]=Περιγραφή UA (IE 5.0 σε Mac PPC) +Name[en_GB]=UADescription (IE 5.0 on Mac PPC) +Name[eo]=UA-Priskribo (IE 5.0 sub Mac-PPC) +Name[es]=Descripción de AU (IE 5.0 en Mac PPC) +Name[et]=UADescription (IE 5.0 MacPPC platvormil) +Name[eu]=UA azalpena (IE 5.0 Mac PPC-n) +Name[fa]=UADescription (IE 5.0 در Mac PPC) +Name[fi]=Käyttäjäagenttikuvaus (IE 5.0 Mac PPC:llä) +Name[fr]=UADescription (IE 5.0 sous Mac PPC) +Name[fy]=GA-omskriuwing (IE 5.0 op Mac PPC) +Name[ga]=UADescription (IE 5.0 ar Mac PPC) +Name[gl]=UADescription (IE 5.0 en Mac PPC) +Name[gu]=UADescription (આઇ.ઇ. ૫.૦ મેક પીપીસી પર) +Name[he]=UADescription (IE 5.0 on Mac PPC) +Name[hi]=यूए-डिस्क्रिप्शन (आईई 5.0 मैक पीपीसी पर) +Name[hne]=यूए-डिस्क्रिप्सन (आईई 5.0 मैक पीपीसी मं) +Name[hr]=UADescription (IE 5.0 na Mac PPC) +Name[hsb]=UADescription (IE 5.0 na Mac PPC) +Name[hu]=Böngészőtípus (IE 5.0, Mac PPC) +Name[ia]=UADescription (IE 5.0 super Mac PPC) +Name[id]=UADescription (IE 5.0 di Mac PPC) +Name[is]=UADescription (IE 5.0 á Mac PPC) +Name[it]=Descrizione UA (IE 5.0 su Mac PPC) +Name[ja]=UADescription (IE 5.0 on Mac PPC) +Name[ka]=UADescription (IE 5.0 Mac PPC-ში) +Name[kk]=UADescription (IE 5.0 / Mac PPC) +Name[km]=UADescription (IE 5.0 នៅ​លើ Mac PPC) +Name[kn]=UAವಿವರಣೆ (ಮಾಕ್ ಪಿಪಿಸಿ ಮೇಲಿನ ಐಇ ೫.೦) +Name[ko]=UADescription (Mac PPC의 IE 5.0) +Name[ku]=Pênasa UA (IE 5.0 ji bo Mac PPC) +Name[lt]=Vartotojo agentas (IE 5.0 ir Mac PPC) +Name[lv]=UA Apraksts (IE 5.0 uz Mac PPC) +Name[mai]=यूए-डिस्क्रिप्शन (आईई 5.0 मैक पीपीसी पर) +Name[mk]=UADescription (IE 5.0 на Mac PPC) +Name[ml]=യുഎവിവരണം (പിപിസി മാകിലെ ഐഇ 5.0) +Name[mr]=UAडिस्क्रिप्शन (IE 5.0 मैक पीपीसी पर) +Name[ms]=UADescription (IE 5.0 on Mac PPC) +Name[nb]=Brukeragent (IE 5.0 på Mac PPC) +Name[nds]=UA-Beschrieven (IE 5.0 op Mac PPC) +Name[ne]=UA वर्णन (Mac PPC मा IE 5.0) +Name[nl]=GA-beschrijving (IE 5.0 op Mac PPC) +Name[nn]=Brukaragent (IE 5.0 på Mac PPC) +Name[or]=UA ବର୍ଣ୍ଣନା (Mac PPC ଉପରେ IE 5.0) +Name[pa]=UADescription (ਮੈਕ PPC ਉੱਤੇ IE 5.0) +Name[pl]=Opis przeglądarki użytkownika (IE 5.0 na Mac PPC) +Name[pt]=UADescription (IE 5.0 no Mac PPC) +Name[pt_BR]=UADescription (IE 5.0 no Mac PPC) +Name[ro]=Descriere AU (IE 5.0 pentru Mac PPC) +Name[ru]=UADescription (IE 5.0 на Mac PPC) +Name[se]=UA-čilgehus (IE 5.0 ja Mac PPC) +Name[si]=UADescription (Mac PPC මත IE 5.0) +Name[sk]=Popis agenta (IE 5.0 na Mac PPC) +Name[sl]=UAOpis (IE 5.0 na Mac PPC) +Name[sr]=УА‑опис (ИЕ 5.0 на ППЦ мекинтошу) +Name[sr@ijekavian]=УА‑опис (ИЕ 5.0 на ППЦ мекинтошу) +Name[sr@ijekavianlatin]=UA-opis (IE 5.0 na PPC Macintoshu) +Name[sr@latin]=UA-opis (IE 5.0 na PPC Macintoshu) +Name[sv]=AA-beskrivning (IE 5.0 på Mac PPC) +Name[ta]=UADescription (IE 5.0 on Mac PPC) +Name[te]=UADescription (IE 5.0 on Mac PPC) +Name[tg]=UADescription (IE 5.0 дар Mac PPC) +Name[th]=UADescription (IE 5.0 บน Mac PPC) +Name[tr]=Kullanıcı Uygulaması Tanımı (Mac PPC üzerinde IE 5.0) +Name[uk]=UADescription (IE 5.0 на Mac PPC) +Name[uz]=UADescription (Mac PPC bilan IE 5.0) +Name[uz@cyrillic]=UADescription (Mac PPC билан IE 5.0) +Name[vi]=Mô tả UA (IE 5.0 trên Mac PPC) +Name[wa]=Idintifiaedje do betchteu (MSIE 5.0 so MacOS PPC) +Name[xh]=UADescription (IE 5.0 kwi Mac PPC) +Name[x-test]=xxUADescription (IE 5.0 on Mac PPC)xx +Name[zh_CN]=客户端描述(运行于 Mac PPC 的 IE 5.0) +Name[zh_TW]=使用者代理描述 (IE 5.0 on Mac PPC) +Type=Service +X-TDE-ServiceTypes=UserAgentStrings +X-TDE-UA-TAG=IE +X-TDE-UA-FULL=Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC) +X-TDE-UA-NAME=Internet Explorer +X-TDE-UA-VERSION=5.0 +X-TDE-UA-SYSNAME=Mac +X-TDE-UA-SYSRELEASE=PPC diff --git a/kcontrol/tdeio/uasproviders/ie55onwin98.desktop b/kcontrol/tdeio/uasproviders/ie55onwin98.desktop new file mode 100644 index 000000000..f5c7046f0 --- /dev/null +++ b/kcontrol/tdeio/uasproviders/ie55onwin98.desktop @@ -0,0 +1,79 @@ +[Desktop Entry] +Name=UADescription (IE 5.5 on Win 98) +Name[af]=UA-beskrywing (Ie 5.5 op Win 98) +Name[be]=UADescription (IE 5.5 на Win 98) +Name[br]=UADescription (IE 5.5 war Win 98) +Name[ca]=Descripció de AU (IE 5.5 en Windows 98) +Name[cs]=Popis agenta (IE 5.5 na Win 98) +Name[csb]=Òpis programë brëkòwnika (IE 5.5 na Win 98) +Name[cy]=UADisgrifiad (IE 5.5 ar Win 98) +Name[da]=Brugeragentbeskrivelse (IE 5.5 på Win 98) +Name[de]=Browserkennung (IE 5.5 unter Windows 98) +Name[el]=Περιγραφή UA (IE 5.5 σε Win 98) +Name[eo]=UA-Priskribo (IE 5.5 sub Vindozo 98) +Name[es]=Descripción de AU (IE 5.5 en Windows 98) +Name[et]=UADescription (IE 5.5 Win98 platvormil) +Name[eu]=UA azalpena (IE 5.5 Win 98-an) +Name[fa]=UADescription (IE 5.5 در Win 98) +Name[fi]=Käyttäjäagenttikuvaus (IE 5.5 Win 98:lla) +Name[fr]=Identité du navigateur (IE 5.5 sous Windows 98) +Name[fy]=GA-omskriuwing (IE 5.5 op Win 98) +Name[ga]=UADescription (IE 5.5 ar Win 98) +Name[gl]=UADescription (IE 5.5 en Win 98) +Name[he]=UADescription (Win 98ב־ IE 5.5) +Name[hi]=यूएडी-डिस्क्रिप्शन (IE 5.5 विन 98 पर) +Name[hr]=UADescription (IE 5.5 na Win 98) +Name[hu]=Böngészőtípus (IE 5.5, Win 98) +Name[id]=UADescription (IE 5.5 di Win 98) +Name[is]=UAD strengur (IE 5.5 on Win 98) +Name[it]=DescrizioneUA (IE 5.5 su Win 98) +Name[ka]=UADescription (IE 5.5 Win 98-ში) +Name[kk]=UADescription (IE 5.5 / Win 98) +Name[km]=UADescription (IE 5.5 នៅ​លើ Win 98) +Name[ko]=UADescription (윈도 2000의 IE 5.5) +Name[lt]=Naudotojo agento aprašymas (IE 5.5 ir Win 98) +Name[lv]=UAApraksts (IE 5.5 uz Win 98) +Name[mk]=UADescription (IE 5.5 на Win 98) +Name[mn]=UserAgent-Тодорхойлолт (IE 5.5 on Win 98) +Name[mt]=UADescription (IE 5.5 fuq Win 98) +Name[nb]=Brukeragent (IE 5.5 på Win 98) +Name[nds]=UA-Beschrieven (IE 5.5 op Win 98) +Name[ne]=UA वर्णन (Win 98 मा IE 5.5) +Name[nl]=GA-beschrijving (IE 5.5 op Win 98) +Name[nn]=Brukaragent (IE 5.5 på Win 98) +Name[nso]=UAThlaloso (IE 5.5 go Win 98) +Name[pa]=UADescription (ਵਿੰਡੋ ੯੮ 'ਤੇ IE 5.5) +Name[pl]=Opis przeglądarki użytkownika (IE 5.5 na Win 98) +Name[pt]=UADescription (IE 5.5 no Win 95) +Name[pt_BR]=Descrição (IE 5.5 no Win 98) +Name[ro]=Descriere UA (IE 5.5 pentru Win 98) +Name[ru]=UADescription (IE 5.5 на Win 98) +Name[rw]=UADescription (IE 5.5 kuri Win 98) +Name[se]=UA-čilgehus (IE 5.5 ja Win 98) +Name[sk]=Popis agenta (IE 5.5 na Win 98) +Name[sl]=UAOpis (IE 5.5 na Windows 98) +Name[sr]=UADescription (IE 5.5 на Win 98) +Name[sr@Latn]=UADescription (IE 5.5 na Win 98) +Name[sv]=AA-beskrivning (IE 5.5 på Win 98) +Name[ta]=UAவிவரம் (IE 5.5 on Win 98) +Name[tg]=ТавзеҳиUA (IE 5.5 ба Win 98) +Name[th]=UADescription (IE 5.5 บน Win 98) +Name[tr]=UA Tanımı (Win 98 üzerinde IE 5.5) +Name[tt]=UADescription (IE 5.5, Win 98 astında) +Name[uk]=UADescription (IE 5.5 на Win 98) +Name[uz]=UADescription (Win 98 bilan IE 5.5) +Name[uz@cyrillic]=UADescription (Win 98 билан IE 5.5) +Name[ven]=Thalutshedzo ya UA (IE 5.5 on Win 98) +Name[vi]=Mô tả UA (IE 5.5 trên Win 98) +Name[wa]=Discrijhaedje di l' idintité do betchteu (IE 5.5 so Win 98) +Name[xh]=UADescription UA (IE 5.5 kwi Win 98) +Name[zh_CN]=用户代理描述 (运行于 Win 98 的 IE 5.5) +Name[zh_TW]=使用者代理描述 (IE 5.5 on Win 98) +Type=Service +ServiceTypes=UserAgentStrings +X-TDE-UA-TAG=IE +X-TDE-UA-FULL=Mozilla/4.0 (compatible; MSIE 5.5; Windows 98) +X-TDE-UA-NAME=Internet Explorer +X-TDE-UA-VERSION=5.5 +X-TDE-UA-SYSNAME=Windows +X-TDE-UA-SYSRELEASE=98 diff --git a/kcontrol/tdeio/uasproviders/ie55onwinnt5.desktop b/kcontrol/tdeio/uasproviders/ie55onwinnt5.desktop new file mode 100644 index 000000000..89740ed21 --- /dev/null +++ b/kcontrol/tdeio/uasproviders/ie55onwinnt5.desktop @@ -0,0 +1,98 @@ +[Desktop Entry] +Name=UADescription (IE 5.5 on Win 2000) +Name[af]=UA-beskrywing (Ie 5.5 op Win 2000) +Name[ar]=وصف وكيل-مستخدم (IE 5.5 على Win 2000) +Name[as]=UADescription (IE 5.5 on Win 2000) +Name[be]=UADescription (IE 5.5 на Win 2000) +Name[be@latin]=UADescription (IE 5.5 na „Windows 2000”) +Name[bg]=UADescription (IE 5.5 на Win 2000) +Name[bn]=UADescription (IE 5.5 on Win 2000) +Name[bn_IN]=UADescription (Win 2000-র মধ্যে IE 5.5) +Name[br]=UADescription (IE 5.5 war Win 2000) +Name[ca]=Descripció AU (IE 5.5 en Windows 2000) +Name[ca@valencia]=Descripció AU (IE 5.5 en Windows 2000) +Name[cs]=Popis agenta (IE 5.5 na Win 2000) +Name[csb]=Òpisënk programë brëkòwnika (IE 5.5 na Win 2000) +Name[cy]=UADisgrifiad (IE 5.5 ar Win 2000) +Name[da]=Brugeragentbeskrivelse (IE 5.5 på Win 2000) +Name[de]=Browserkennung (IE 5.5 unter Windows 2000) +Name[el]=Περιγραφή UA (IE 5.5 σε Win 2000) +Name[en_GB]=UADescription (IE 5.5 on Win 2000) +Name[eo]=UA-Priskribo (IE 5.5 sub Vindozo 2000) +Name[es]=Descripción de AU (IE 5.5 en Windows 2000) +Name[et]=UADescription (IE 5.5 Win2000 platvormil) +Name[eu]=UA azalpena (IE 5.5 Win 2000-n) +Name[fa]=UADescription (IE 5.5 در Win 2000) +Name[fi]=Käyttäjäagenttikuvaus (IE 5.5 Win 2000:lla) +Name[fr]=UADescription (IE 5.5 sous Windows 2000) +Name[fy]=GA-omskriuwing (IE 5.5 op Win 2000) +Name[ga]=UADescription (IE 5.5 ar Win 2000) +Name[gl]=UADescription (IE 5.5 en Win 2000) +Name[gu]=UADescription (આઇ.ઇ. ૫.૫ વિન્ડોઝ ૨૦૦૦ પર) +Name[he]=UADescription (IE 5.5 on Win 2000) +Name[hi]=यूए-डिस्क्रिप्शन (आईई 5.5 विन 2000 पर) +Name[hne]=यूए-डिस्क्रिप्सन (आईई 5.5 विन 2000 मं) +Name[hr]=UADescription (IE 5.5 na Win 2000) +Name[hsb]=UADescription (IE 5.5 na Win 2000) +Name[hu]=Böngészőtípus (IE 5.5, Win 2000) +Name[ia]=UADescription (IE 5.5 super Win 2000) +Name[id]=UADescription (IE 5.5 di Win 2000) +Name[is]=UADescription (IE 5.5 á Win 2000) +Name[it]=Descrizione UA (IE 5.5 su Windows 2000) +Name[ja]=UADescription (IE 5.5 on Win 2000) +Name[ka]=UADescription (IE 5.5 Win 2000-ში) +Name[kk]=UADescription (IE 5.5 / Win 2000) +Name[km]=UADescription (IE 5.5 នៅ​លើ​វីនដូ ២០០០) +Name[kn]=UAವಿವರಣೆ (ವಿನ್ಡೋಸ್ ೨೦೦೦ ದ ಮೇಲಿನ ಐಇ ೫.೫) +Name[ko]=UADescription (윈도 2000의 IE 5.5) +Name[ku]=Pênasa UA (IE 5.5 ji bo Win 2000) +Name[lt]=Vartotojo agentas (IE 5.5 ir Win 2000) +Name[lv]=UA Apraksts (IE 5.5 uz Win 2000) +Name[mai]=यूए-डिस्क्रिप्शन (आईई 5.5 विन 2000 पर) +Name[mk]=UADescription (IE 5.5 на Win 2000) +Name[ml]=യുഎവിവരണം (വിന്‍ 2000 ലെ ഐഇ 5.5) +Name[mr]=UAडिस्क्रिप्शन (IE 5.5 विन 2000 पर) +Name[ms]=UADescription (IE 5.5 on Win 2000) +Name[nb]=Brukeragent (IE 5.5 på Win 2000) +Name[nds]=UA-Beschrieven (IE 5.5 op Win 2000) +Name[ne]=UA वर्णन (Win 2000मा IE 5.5) +Name[nl]=GA-beschrijving (IE 5.5 op Win 2000) +Name[nn]=Brukaragent (IE 5.5 på Windows 2000) +Name[or]=UA ବର୍ଣ୍ଣନା (Win 2000 ଉପରେ IE 5.5) +Name[pa]=UADescription (Win ੨੦੦੦ ਉੱਤੇ IE 5.5) +Name[pl]=Opis przeglądarki użytkownika (IE 5.5 na Win 2000) +Name[pt]=UADescription (IE 5.5 no Win 2000) +Name[pt_BR]=UADescription (IE 5.5 no Windows 2000) +Name[ro]=Descriere AU (IE 5.5 pentru Win 2000) +Name[ru]=UADescription (IE 5.5 на Windows 2000) +Name[se]=UA-čilgehus (IE 5.5 ja Win 2000) +Name[si]=UADescription (Win 2000 මත IE 5.0) +Name[sk]=Popis agenta (IE 5.5 na Win 2000) +Name[sl]=UAOpis (IE 5.5 na Windows 2000) +Name[sr]=УА‑опис (ИЕ 5.5 на Виндоузу 2000) +Name[sr@ijekavian]=УА‑опис (ИЕ 5.5 на Виндоузу 2000) +Name[sr@ijekavianlatin]=UA-opis (IE 5.5 na Windowsu 2000) +Name[sr@latin]=UA-opis (IE 5.5 na Windowsu 2000) +Name[sv]=AA-beskrivning (IE 5.5 på Win 2000) +Name[ta]=UADescription (IE 5.5 on Win 2000) +Name[te]=UADescription (IE 5.5 on Win 2000) +Name[tg]=UADescription (IE 5.5 дар Win 2000) +Name[th]=UADescription (IE 5.5 บน Win 2000) +Name[tr]=Kullanıcı Uygulaması Tanımı (Win 2000 üzerinde IE 5.5) +Name[uk]=UADescription (IE 5.5 на Win 2000) +Name[uz]=UADescription (Win 2000 bilan IE 5.5) +Name[uz@cyrillic]=UADescription (Win 2000 билан IE 5.5) +Name[vi]=Mô tả UA (IE 5.5 trên Win 2000) +Name[wa]=Idintifiaedje do betchteu (MSIE 5.5 so Windows 2000) +Name[xh]=UADescription (IE 5.5 kwi Win 2000) +Name[x-test]=xxUADescription (IE 5.5 on Win 2000)xx +Name[zh_CN]=客户端描述(运行于 Win 2000 的 IE 5.5) +Name[zh_TW]=使用者代理描述 (IE 5.5 on Win 2000) +Type=Service +X-TDE-ServiceTypes=UserAgentStrings +X-TDE-UA-TAG=IE +X-TDE-UA-FULL=Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0) +X-TDE-UA-NAME=Internet Explorer +X-TDE-UA-VERSION=5.5 +X-TDE-UA-SYSNAME=Windows +X-TDE-UA-SYSRELEASE=2000 diff --git a/kcontrol/tdeio/uasproviders/ie60oncurrent.desktop b/kcontrol/tdeio/uasproviders/ie60oncurrent.desktop new file mode 100644 index 000000000..09abff044 --- /dev/null +++ b/kcontrol/tdeio/uasproviders/ie60oncurrent.desktop @@ -0,0 +1,93 @@ +[Desktop Entry] +Name=UADescription (IE 6.0 on current) +Name[af]=UA-beskrywing (IE 6.0 op huidige bedryfstelsel) +Name[ar]=وصف وكيل-مستخدم (IE 6.0 على الحالي) +Name[as]=UADescription (IE 6.0 on current) +Name[be]=UADescription (IE 6.0 на гэтай сістэме) +Name[be@latin]=UADescription (IE 6.0 na hetaj systemie) +Name[bg]=UADescription (IE 6.0 на текущата система) +Name[bn]=UADescription (IE 6.0 on current) +Name[bn_IN]=UADescription (সাম্প্রতিক সংস্করণের মধ্যে IE 6.0) +Name[ca]=Descripció AU (IE 6.0 a l'actual) +Name[ca@valencia]=Descripció AU (IE 6.0 a l'actual) +Name[cs]=Popis agenta (IE 6.0 na aktuálním) +Name[csb]=Òpisënk programë brëkòwnika (IE 6.0) +Name[da]=Brugeragentbeskrivelse (IE 6.0 på nuværende) +Name[de]=Browserkennung (IE 6.0 auf aktuellem Betriebssystem) +Name[el]=Περιγραφή UA (IE 6.01 στο τρέχον σύστημα) +Name[en_GB]=UADescription (IE 6.0 on current) +Name[eo]=UA-Priskribo (IE 6.0 sub nuna) +Name[es]=UADescription (IE 6.0 en actual) +Name[et]=UADescription (Selles masinas töötav IE 6.0) +Name[eu]=UA azalpena (IE 6.0 unekoan) +Name[fa]=UADescription (IE 6.0 در حال حاضر) +Name[fi]=Käyttäjäagenttikuvaus (IE 6.0 on current) +Name[fr]=UADescription (IE 6.0 sous le système actuel) +Name[fy]=GA-omskriuwing (IE 6.0 op aktive) +Name[ga]=UADescription (IE 6.0 ar an gcóras reatha) +Name[gl]=UADescription (IE 6.0 no actual) +Name[gu]=UADescription (આઇ.ઇ. ૬.૦ હાલ પર) +Name[he]=UADescription (IE 6.0 on current) +Name[hi]=यूए-डिस्क्रिप्शन (आईई 6.0 हालिया पर) +Name[hne]=यूए-डिस्क्रिप्सन (आईई 6.0 वाले मं) +Name[hr]=UADescription (IE 6.0 na trenutnom) +Name[hsb]=UADescription (IE 6.0 abo pozdźišo) +Name[hu]=Böngészőtípus (IE 6.0) +Name[ia]=UADescription (IE 6.0 super le currente) +Name[id]=UADescription (IE 6.0 di saat ini) +Name[is]=UADescription (IE 6.0 á núverandi) +Name[it]=Descrizione UA (IE 6.0 sul sistema attuale) +Name[ja]=UADescription (IE 6.0 on current) +Name[ka]=UADescription (IE 6.0 მიმდინარე სისტემაში) +Name[kk]=UADescription (IE 6.0 осы орында) +Name[km]=UADescription (IE 6.0 បច្ចុប្បន្ន) +Name[kn]=UAವಿವರಣೆ (ಪ್ರಸ್ತುತದ ಮೇಲಿನ ಐಇ ೬.೦) +Name[ko]=UADescription (현재 플랫폼의 IE 6.0) +Name[ku]=Pênasa UA (IE 6.0 derbasdar e) +Name[lt]=Vartotojo agentas (IE 6.0 šioje sistemoje) +Name[lv]=UA Apraksts (IE 6.0 uz pašreizējā) +Name[mai]=यूए-डिस्क्रिप्शन (आईई 6.0 अखनका पर) +Name[mk]=UADescription (IE 6.0 на тековно) +Name[ml]=യുഎവിവരണം (ഇപ്പോഴത്തേതില്‍ ഐഇ 6.0) +Name[mr]=UAडिस्क्रिप्शन (IE 6.0 वर्तमान वर) +Name[nb]=Brukeragent (IE 6.0 herifra) +Name[nds]=UA-Beschrieven (IE 6.0 op dit Systeem) +Name[ne]=UA वर्णन (हाल IE 6.0 मा) +Name[nl]=GA-beschrijving (IE 6.0 op huidige) +Name[nn]=Brukaragent (IE 6.0 herifrå) +Name[or]=UA ବର୍ଣ୍ଣନା (ପ୍ରଚଳିତ IE 6.0) +Name[pa]=UADescription (ਮੌਜੂਦਾ ਉੱਤੇ IE 6.0) +Name[pl]=Opis przeglądarki użytkownika (IE 6.0 na bieżącym systemie) +Name[pt]=UADescription (IE 6.0 no sistema actual) +Name[pt_BR]=UADescription (IE 6.0 no sistema atual) +Name[ro]=Descriere AU (IE 6.0 pe sistemul curent) +Name[ru]=UADescription (IE 6.0 на текущей системе) +Name[se]=UA-čilgehus (IE 6.0 dán mašiinnas) +Name[si]=UADescription (වත්මන මත IE 6.0) +Name[sk]=Popis agenta (IE 6.0 na aktuálnom) +Name[sl]=UAOpis (IE 6.0 na trenutnem) +Name[sr]=УА‑опис (ИЕ 6.0 на текућем) +Name[sr@ijekavian]=УА‑опис (ИЕ 6.0 на текућем) +Name[sr@ijekavianlatin]=UA-opis (IE 6.0 na tekućem) +Name[sr@latin]=UA-opis (IE 6.0 na tekućem) +Name[sv]=AA-beskrivning (IE 6.0 på aktuell) +Name[ta]=UADescription (IE 6.0 on current) +Name[te]=UADescription (IE 6.0 on current) +Name[tg]=UADescription (IE 6.0 on current) +Name[th]=UADescription (IE 6.0 บนระบบปัจจุบัน) +Name[tr]=Kullanıcı Uygulaması Tanımı (geçerli işletim sistemi üzerinde IE 6.0) +Name[uk]=UADescription (IE 6.0 на поточній) +Name[uz]=UADescription (joriy bilan IE 6.0) +Name[uz@cyrillic]=UADescription (жорий билан IE 6.0) +Name[vi]=Mô tả UA (IE 6.0 trên hệ thống hiện thời) +Name[wa]=Idintifiaedje do betchteu (MSIE 6.0 so Windows 2000) +Name[x-test]=xxUADescription (IE 6.0 on current)xx +Name[zh_CN]=客户端描述(运行于本机的 IE 6.0) +Name[zh_TW]=使用者代理描述 (IE 6.0 on current) +Type=Service +X-TDE-ServiceTypes=UserAgentStrings +X-TDE-UA-TAG=IE +X-TDE-UA-FULL=Mozilla/4.0 (compatible; MSIE 6.0; appPlatform; appSysName appMachineType) Konqueror/3.4 (KHTML, like Gecko) +X-TDE-UA-NAME=Internet Explorer +X-TDE-UA-VERSION=6.0 +X-TDE-UA-DYNAMIC-ENTRY=1 diff --git a/kcontrol/tdeio/uasproviders/ie60onwinnt51.desktop b/kcontrol/tdeio/uasproviders/ie60onwinnt51.desktop new file mode 100644 index 000000000..133643167 --- /dev/null +++ b/kcontrol/tdeio/uasproviders/ie60onwinnt51.desktop @@ -0,0 +1,98 @@ +[Desktop Entry] +Name=UADescription (IE 6.0 on Win XP) +Name[af]=UA-beskrywing (IE 6.0 op Win XP) +Name[ar]=وصف وكيل-مستخدم (IE 6.0 على Win XP) +Name[as]=UADescription (IE 6.0 on Win XP) +Name[be]=UADescription (IE 6.0 на Win XP) +Name[be@latin]=UADescription (IE 6.0 na „Windows XP”) +Name[bg]=UADescription (IE 6.0 на Win XP) +Name[bn]=UADescription (IE 6.0 on Win XP) +Name[bn_IN]=UADescription (Win XP-র মধ্যে IE 6.0) +Name[br]=UADescription (IE 6.0 war Win XP) +Name[ca]=Descripció AU (IE 6.0 en Win XP) +Name[ca@valencia]=Descripció AU (IE 6.0 en Win XP) +Name[cs]=Popis agenta (IE 6.0 na Win XP) +Name[csb]=Òpisënk programë brëkòwnika (IE 6.0 na Win XP) +Name[cy]=UADisgrifiad (IE 6.0 ar Win XP) +Name[da]=Brugeragentbeskrivelse (IE 6.0 på Win XP) +Name[de]=Browserkennung (IE 6.0 unter Windows XP) +Name[el]=Περιγραφή UA (IE 6.0 σε Win XP) +Name[en_GB]=UADescription (IE 6.0 on Win XP) +Name[eo]=UA-Priskribo (IE 6.0 sub Vindozo XP) +Name[es]=Descripción de AU (IE 6.0 en Win XP) +Name[et]=UADescription (IE 6.0 Win XP platvormil) +Name[eu]=UA azalpena (IE 6.0 Win XP-n) +Name[fa]=UADescription (IE 6.0 در Win XP) +Name[fi]=Käyttäjäagenttikuvaus (IE 6.0 Win XP:llä) +Name[fr]=UADescription (IE 6.0 sous Windows XP) +Name[fy]=GA-omskriuwing (IE 6.0 op Win XP) +Name[ga]=UADescription (IE 6.0 ar Win XP) +Name[gl]=UADescription (IE 6.0 en Win XP) +Name[gu]=UADescription (આઇ.ઇ. ૬.૦ વિન્ડોઝ XP પર) +Name[he]=UADescription (IE 6.0 on Win XP) +Name[hi]=यूए-डिस्क्रिप्शन (आईई 6.0 विन एक्सपी पर) +Name[hne]=यूए-डिस्क्रिप्सन (आईई 6.0 विन एक्सपी मं) +Name[hr]=UADescription (IE 5.0 na Win 95) +Name[hsb]=UADescription (IE 6.0 na Win XP) +Name[hu]=Böngészőtípus (IE 6.0, Win XP) +Name[ia]=UADescription (IE 6.0 super Win XP) +Name[id]=UADescription (IE 6.0 di Win XP) +Name[is]=UADescription (IE 6.0 á Win XP) +Name[it]=Descrizione UA (IE 6.0 su Windows XP) +Name[ja]=UADescription (IE 6.0 on Win XP) +Name[ka]=UADescription (IE 5.0 Win 95-ში) +Name[kk]=UADescription (IE 6.0 / Win XP) +Name[km]=UADescription (IE 6.0 នៅ​លើ​វីនដូ XP) +Name[kn]=UAವಿವರಣೆ (ವಿನ್ಡೋಸ್ ಕ್ಸಪಿ ಮೇಲಿನ ಐಇ ೬.೦) +Name[ko]=UADescription (윈도 XP의 IE 6.0) +Name[ku]=pênasa UA (IE 6.0 ji bo Win XP) +Name[lt]=Vartotojo agentas (IE 6.0 ir Win XP) +Name[lv]=UA Apraksts (IE 6.0 uz Win XP) +Name[mai]=यूए-डिस्क्रिप्शन (आईई 6.0 विन एक्सपी पर) +Name[mk]=UADescription (IE 6.0 на Win XP) +Name[ml]=യുഎവിവരണം (വിന്‍ എക്സ്പിയിലെ ഐഇ 6.0) +Name[mr]=UAडिस्क्रिप्शन (IE 6.0 Win XP वर) +Name[ms]=UADescription (IE 6.0 on Win XP) +Name[nb]=Brukeragent (IE 6.0 på Win XP) +Name[nds]=UA-Beschrieven (IE 6.0 op Win XP) +Name[ne]=UA वर्णन (Win XP मा IE 6.0) +Name[nl]=GA-beschrijving (IE 6.0 op Win XP) +Name[nn]=Brukaragent (IE 6.0 på Windows XP) +Name[or]=UA ବର୍ଣ୍ଣନା (Win XP ଉପରେ IE 6.0) +Name[pa]=UADescription (ਵਿੰਡੋ XP ਉੱਤੇ IE 6.0) +Name[pl]=Opis przeglądarki użytkownika (IE 6.0 na Win XP) +Name[pt]=UADescription (IE 6.0 no Win XP) +Name[pt_BR]=UADescription (IE 6.0 no Windows XP) +Name[ro]=Descriere AU (IE 6.0 pentru Win XP) +Name[ru]=UADescription (IE 5.0 на Windows 95) +Name[se]=UA-čilgehus (IE 6.0 ja Win XP) +Name[si]=UADescription (Win XP මත IE 6.0) +Name[sk]=Popis agenta (IE 6.0 na Win XP) +Name[sl]=UAOpis (IE 6.0 na Windows XP) +Name[sr]=УА‑опис (ИЕ 6.0 на Виндоузу ИксП) +Name[sr@ijekavian]=УА‑опис (ИЕ 6.0 на Виндоузу ИксП) +Name[sr@ijekavianlatin]=UA-opis (IE 6.0 na Windowsu XP) +Name[sr@latin]=UA-opis (IE 6.0 na Windowsu XP) +Name[sv]=AA-beskrivning (IE 6.0 på Win XP) +Name[ta]=UADescription (IE 6.0 on Win XP) +Name[te]=UADescription (IE 6.0 on Win XP) +Name[tg]=UADescription (IE 6.0 дар Win XP) +Name[th]=UADescription (IE 6.0 บน Win XP) +Name[tr]=Kullanıcı Uygulaması Tanımı (Win XP üzerinde IE 6.0) +Name[uk]=UADescription (IE 6.0 у Win XP) +Name[uz]=UADescription (Win XP bilan IE 6.0) +Name[uz@cyrillic]=UADescription (Win XP билан IE 6.0) +Name[vi]=Mô tả UA (IE 6.0 trên Win XP) +Name[wa]=Idintifiaedje do betchteu (MSIE 6.0 so Windows XP) +Name[xh]=UADescription (IE 6.0 kwi Win XP) +Name[x-test]=xxUADescription (IE 6.0 on Win XP)xx +Name[zh_CN]=客户端描述(运行于 Win XP 的 IE 6.0) +Name[zh_TW]=使用者代理描述 (IE 6.0 on Win XP) +Type=Service +X-TDE-ServiceTypes=UserAgentStrings +X-TDE-UA-TAG=IE +X-TDE-UA-FULL=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) +X-TDE-UA-NAME=Internet Explorer +X-TDE-UA-VERSION=6.0 +X-TDE-UA-SYSNAME=Windows +X-TDE-UA-SYSRELEASE=XP diff --git a/kcontrol/tdeio/uasproviders/lynxoncurrent.desktop b/kcontrol/tdeio/uasproviders/lynxoncurrent.desktop new file mode 100644 index 000000000..78d6855fe --- /dev/null +++ b/kcontrol/tdeio/uasproviders/lynxoncurrent.desktop @@ -0,0 +1,95 @@ +[Desktop Entry] +Name=UADescription (Lynx 2.8.3) +Name[af]=UA-beskrywing (Lynx 2.8.3) +Name[ar]=وصف وكيل-مستخدم (Lynx 2.8.3) +Name[as]=UADescription (Lynx 2.8.3) +Name[be]=UADescription (Lynx 2.8.3) +Name[be@latin]=UADescription (Lynx 2.8.3) +Name[bg]=UADescription (Lynx 2.8.3) +Name[bn]=UADescription (Lynx 2.8.3) +Name[bn_IN]=UADescription (Lynx 2.8.3) +Name[br]=UADescription (Lynx 2.8.3) +Name[ca]=Descripció AU (Lynx 2.8.3) +Name[ca@valencia]=Descripció AU (Lynx 2.8.3) +Name[cs]=Popis agenta (Lynx 2.8.3) +Name[csb]=Òpisënk programë brëkòwnika (Lynx 2.8.3) +Name[cy]=UADisgrifiad (Lynx 2.8.3) +Name[da]=Brugeragentbeskrivelse (Lynx 2.8.3) +Name[de]=Browserkennung (Lynx 2.8.3) +Name[el]=Περιγραφή UA (Lynx 2.8.3) +Name[en_GB]=UADescription (Lynx 2.8.3) +Name[eo]=UA-Priskribo (Lynx 2.8.3) +Name[es]=Descripción de AU (Lynx 2.8.3) +Name[et]=UADescription (Lynx 2.8.3) +Name[eu]=UA azalpena (Lynx 2.8.3) +Name[fi]=Käyttäjäagenttikuvaus (Lynx 2.8.3) +Name[fr]=UADescription (Lynx 2.8.3) +Name[fy]=GA-omskriuwing (Lynx 2.8.3) +Name[ga]=UADescription (Lynx 2.8.3) +Name[gl]=UADescription (Lynx 2.8.3) +Name[gu]=UADescription (લાયન્ક્સ ૨.૮.૩) +Name[he]=UADescription (Lynx 2.8.3) +Name[hi]=यूए-डिस्क्रिप्शन (लायनक्स 2.8.3) +Name[hne]=यूए-डिस्क्रिप्सन (लायनक्स 2.8.3) +Name[hr]=UADescription (Lynx 2.8.3) +Name[hsb]=UADescription (Lynx 2.8.3) +Name[hu]=Böngészőtípus (Lynx 2.8.3) +Name[ia]=UADescription (Lynx 2.8.3) +Name[id]=UADescription (Lynx 2.8.3) +Name[is]=UADescription (Lynx 2.8.3) +Name[it]=Descrizione UA (Lynx 2.8.3) +Name[ja]=UADescription (Lynx 2.8.3) +Name[ka]=UADescription (Lynx 2.8.3) +Name[kk]=UADescription (Lynx 2.8.3) +Name[km]=UADescription (Lynx 2.8.3) +Name[kn]=UAವಿವರಣೆ (ಲಿಂಕ್ಸ್ ೨.೮.೩) +Name[ko]=UADescription (Lynx 2.8.3) +Name[ku]=Pênasa UA (Lynx 2.8.3) +Name[lt]=Vartotojo agentas (Lynx 2.8.3) +Name[lv]=UA Apraksts (Lynx 2.8.3) +Name[mai]=यूए-डिस्क्रिप्शन (लिन्क्स 2.8.3) +Name[mk]=UADescription (Lynx 2.8.3) +Name[ml]=യുഎവിവരണം (ലിന്‍ക്സ് 2.8.3) +Name[mr]=UAडिस्क्रिप्शन (लिंक्स् 2.8.3) +Name[ms]=UADescription (Lynx 2.8.3) +Name[nb]=Brukeragent (Lynx 2.8.3) +Name[nds]=UA-Beschrieven (Lynx 2.8.3) +Name[ne]=UA वर्णन (Lynx 2.8.3) +Name[nl]=GA-beschrijving (Lynx 2.8.3) +Name[nn]=Brukaragent (Lynx 2.8.3) +Name[or]=UA ବର୍ଣ୍ଣନା (Lynx 2.8.3) +Name[pa]=UADescription(ਲੇਨਕਸ 2.8.3) +Name[pl]=Opis przeglądarki użytkownika (Lynx 2.8.3) +Name[pt]=UADescription (Lynx 2.8.3) +Name[pt_BR]=UADescription (Lynx 2.8.3) +Name[ro]=Descriere AU (Lynx 2.8.3) +Name[ru]=UADescription (Lynx 2.8.3) +Name[se]=UA-čilgehus (Lynx 2.8.3) +Name[si]=UADescription (Lynx 2.8.3) +Name[sk]=Popis agenta (Lynx 2.8.3) +Name[sl]=UAOpis (Lynx 2.8.3) +Name[sr]=УА‑опис (Линкс 2.8.3) +Name[sr@ijekavian]=УА‑опис (Линкс 2.8.3) +Name[sr@ijekavianlatin]=UA-opis (Lynx 2.8.3) +Name[sr@latin]=UA-opis (Lynx 2.8.3) +Name[sv]=AA-beskrivning (Lynx 2.8.3) +Name[ta]=UADescription (Lynx 2.8.3) +Name[te]=UADescription (Lynx 2.8.3) +Name[tg]=UADescription (Lynx 2.8.3) +Name[th]=UADescription (Lynx 2.8.3) +Name[tr]=Kullanıcı Uygulaması Tanımı (Lynx 2.8.3) +Name[uk]=UADescription (Lynx 2.8.3) +Name[uz]=UADescription (Lynx 2.8.3) +Name[uz@cyrillic]=UADescription (Lynx 2.8.3) +Name[vi]=Mô tả UA (Lynx 2.8.3) +Name[wa]=Idintifiaedje do betchteu (Lynx 2.8.3) +Name[xh]=UADescription (Lynx 2.8.3) +Name[x-test]=xxUADescription (Lynx 2.8.3)xx +Name[zh_CN]=客户端描述(Lynx 2.8.3) +Name[zh_TW]=使用者代理描述 (Lynx 2.8.3) +Type=Service +X-TDE-ServiceTypes=UserAgentStrings +X-TDE-UA-TAG=MISC +X-TDE-UA-FULL=Lynx/2.8.3dev.6 libwww-FM/2.14 +X-TDE-UA-NAME=Lynx +X-TDE-UA-VERSION=2.8.3dev.6 diff --git a/kcontrol/tdeio/uasproviders/ns71oncurrent.desktop b/kcontrol/tdeio/uasproviders/ns71oncurrent.desktop new file mode 100644 index 000000000..6246257d9 --- /dev/null +++ b/kcontrol/tdeio/uasproviders/ns71oncurrent.desktop @@ -0,0 +1,93 @@ +[Desktop Entry] +Name=UADescription (Netscape 7.1 on current) +Name[af]=UA-beskrywing (Netscape 7.1 op huidige bedryfstelsel) +Name[ar]=وصف وكيل-مستخدم (Netscape 7.1 على الحالي) +Name[as]=UADescription (Netscape 7.1 on current) +Name[be]=UADescription (NN 7.1 на гэтай сістэме) +Name[be@latin]=UADescription (Netscape 7.1 na hetaj systemie) +Name[bg]=UADescription (Netscape 7.1 на текущата система) +Name[bn]=UADescription (Netscape 7.1 on current) +Name[bn_IN]=UADescription (সাম্প্রতিক সংস্করণের মধ্যে Netscape 7.1 +Name[ca]=Descripció AU (Netscape 7.1 a l'actual) +Name[ca@valencia]=Descripció AU (Netscape 7.1 a l'actual) +Name[cs]=Popis agenta (Netscape 7.1 na aktuálním) +Name[csb]=Òpisënk programë brëkòwnika (Netscape 7.1) +Name[da]=Brugeragentbeskrivelse (Netscape 7.1 på nuværende) +Name[de]=Browserkennung (Netscape 7.1 auf aktuellem Betriebssystem) +Name[el]=Περιγραφή UA (Netscape 7.1 στο τρέχον σύστημα) +Name[en_GB]=UADescription (Netscape 7.1 on current) +Name[eo]=UA-Priskribo (Netskapo 7.1 sub nuna) +Name[es]=UADescription (Netscape 7.1 en actual) +Name[et]=UADescription (Selles masinas töötav Netscape 7.1) +Name[eu]=UA azalpena (Netscape 7.1 unekoan) +Name[fa]=UADescription (Netscape 7.1 در حال حاضر) +Name[fi]=Käyttäjäagenttikuvaus (Netscape 7.1 nykyisellä) +Name[fr]=UADescription (Netscape 7.1 sous le système actuel) +Name[fy]=GA-omskriuwing (Netscape 7.1 op aktive) +Name[ga]=UADescription (Netscape 7.1 ar an gcóras reatha) +Name[gl]=UADescription (Netscape 7.1 no actual) +Name[gu]=UADescription (નેટસ્કેપ ૭.૧ હાલ પર) +Name[he]=UADescription (Netscape 7.1 on current) +Name[hi]=यूए-डिस्क्रिप्शन (मौजूदा में नेटस्केप 7.1) +Name[hne]=यूए-डिस्क्रिप्सन (अभी वाले मं नेटस्केप 7.1) +Name[hr]=UADescription (Netscape 7.1 na trenutnom) +Name[hsb]=UADescription (Netscape 7.1 abo pozdźišo) +Name[hu]=Böngészőtípus (Netscape 7.1) +Name[ia]=UADescription (Netscape 7.1 super le currente) +Name[id]=UADescription (Netscape 7.1 di saat ini) +Name[is]=UADescription (Netscape 7.1 á núverandi) +Name[it]=Descrizione UA (Netscape 7.1 sul sistema attuale) +Name[ja]=UADescription (Netscape 7.1 on current) +Name[ka]=UADescription (Netscape 7.1 მიმდინარე სისტემაში) +Name[kk]=UADescription (Netscape 7.1 осында)0 +Name[km]=UADescription (Netscape 7.1 បច្ចុប្បន្ន) +Name[kn]=UAವಿವರಣೆ (ಪ್ರಸ್ತುತದ ಮೇಲಿನ ಎನ್ಎನ್ ೭.೧) +Name[ko]=UADescription (현재 플랫폼의 넷스케이프 7.1) +Name[ku]=Pênasa UA (Netscape 7.1 derbasdar e) +Name[lt]=Vartotojo agentas (Netscape 7.1 šioje sistemoje) +Name[lv]=UA Apraksts (NN 7.1 uz pašreizējā) +Name[mai]=यूए-डिस्क्रिप्शन (मोजुदा मे नेटस्केप 7.1) +Name[mk]=UADescription (Netscape 7.1 на тековно) +Name[ml]=യുഎവിവരണം (ഇപ്പോഴത്തേതില്‍ നെറ്റ്സ്കേപ് 7.1) +Name[mr]=UAडिस्क्रिप्शन (वर्तमानातील नेटस्केप 7.1) +Name[nb]=Brukeragent (Netscape 7.1 herifra) +Name[nds]=UA-Beschrieven (Netscape 7.1 op dit Systeem) +Name[ne]=UA वर्णन (हाल नेटस्केप ७.१) +Name[nl]=GA-beschrijving (Netscape 7.1 op current) +Name[nn]=Brukaragent (Netscape 7.1 herifrå) +Name[or]=UA ବର୍ଣ୍ଣନା (ପ୍ରଚଳିତ ଉପରେ Netscape 7.1) +Name[pa]=UADescription (ਮੌਜੂਦਾ ਉੱਤੇ Netscape 7.1) +Name[pl]=Opis przeglądarki użytkownika (Netscape 7.1 na bieżącym systemie) +Name[pt]=UADescription (Netscape 7.1 no sistema actual) +Name[pt_BR]=UADescription (Netscape 7.1 no sistema atual) +Name[ro]=Descriere AU (Netscape 7.1 pe sistemul curent) +Name[ru]=UADescription (Netscape 7.1 на текущей системе) +Name[se]=UA-čilgehus (Netscape 7.1 dán mašiinnas) +Name[si]=UADescription (වත්මන මත Netscape 7.1) +Name[sk]=Popis agenta (Netscape 7.1 na aktuálnom) +Name[sl]=UAOpis (Netscape 7.1 na trenutnem) +Name[sr]=УА‑опис (Нетскејп 7.1 на текућем) +Name[sr@ijekavian]=УА‑опис (Нетскејп 7.1 на текућем) +Name[sr@ijekavianlatin]=UA-opis (Netscape 7.1 na tekućem) +Name[sr@latin]=UA-opis (Netscape 7.1 na tekućem) +Name[sv]=AA-beskrivning (Netscape 7.1 på aktuell) +Name[ta]=UAவிவரம் (நடப்பில் 3.01 நெட்ஸ்கேப்) +Name[te]=UADescription (Netscape 7.1 on current) +Name[tg]=UADescription (Netscape 7.1 on current) +Name[th]=UADescription (เน็ตสเคป 7.1 บนระบบปัจจุบัน) +Name[tr]=Kullanıcı Uygulaması Tanımı (Netscape 7.1) +Name[uk]=UADescription (Netscape 7.1 на поточній) +Name[uz]=UADescription (joriy bilan Netscape 7.1) +Name[uz@cyrillic]=UADescription (жорий билан Netscape 7.1) +Name[vi]=Mô tả UA (Netscape 7.1 trên hệ thống hiện thời) +Name[wa]=Idintifiaedje do betchteu (Netscape 7.1 sol sistinme do moumint) +Name[x-test]=xxUADescription (Netscape 7.1 on current)xx +Name[zh_CN]=客户端描述(运行于本机的 Netscape 7.1) +Name[zh_TW]=使用者代理描述 (Netscape 7.1 on current) +Type=Service +X-TDE-ServiceTypes=UserAgentStrings +X-TDE-UA-TAG=NN +X-TDE-UA-FULL=Mozilla/5.0 (appPlatform; U; appSysName appMachineType; en-CA; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) +X-TDE-UA-NAME=Netscape +X-TDE-UA-VERSION=7.1 +X-TDE-UA-DYNAMIC-ENTRY=1 diff --git a/kcontrol/tdeio/uasproviders/ns71onwinnt51.desktop b/kcontrol/tdeio/uasproviders/ns71onwinnt51.desktop new file mode 100644 index 000000000..7486f17a2 --- /dev/null +++ b/kcontrol/tdeio/uasproviders/ns71onwinnt51.desktop @@ -0,0 +1,95 @@ +[Desktop Entry] +Name=UADescription (Netscape 7.1 on XP) +Name[af]=UA-beskrywing (Netscape 7.1 op XP) +Name[ar]=وصف وكيل-مستخدم (Netscape 7.1 على XP) +Name[as]=UADescription (Netscape 7.1 on XP) +Name[be]=UADescription (Netscape 7.1 на XP) +Name[be@latin]=UADescription (Netscape 7.1 na „Windows XP”) +Name[bg]=UADescription (Netscape 7.1 на XP) +Name[bn]=UADescription (Netscape 7.1 on XP) +Name[bn_IN]=UADescription (XP-র মধ্যে Netscape 7.1) +Name[br]=UADescription (Netscape 7.1 war XP) +Name[ca]=Descripció AU (Netscape 7.1 a XP) +Name[ca@valencia]=Descripció AU (Netscape 7.1 a XP) +Name[cs]=Popis agenta (Netscape 7.1 na XP) +Name[csb]=Òpisënk programë brëkòwnika (Netscape 7.1 na Windows XP) +Name[da]=Brugeragentbeskrivelse (Netscape 7.1 på XP) +Name[de]=Browserkennung (Netscape 7.1 unter Windows XP) +Name[el]=Περιγραφή UA (Netscape 7.1 σε Win XP) +Name[en_GB]=UADescription (Netscape 7.1 on XP) +Name[eo]=UA-Priskribo (Netskapo 7.1 sub Vindozo XP) +Name[es]=UADescription (Netscape 7.1 en XP) +Name[et]=UADescription (Netscape 7.1 Win XP platvormil) +Name[eu]=UA azalpena (Netscape 7.1 XPn) +Name[fa]=UADescription (Netscape 7.1 در XP) +Name[fi]=Käyttäjäagenttikuvaus (Netscape 7.1 Win XP:llä) +Name[fr]=UADescription (Netscape 7.1 sous Windows XP) +Name[fy]=GA-omskriuwing (Netscape 7.1 op XP) +Name[ga]=UADescription (Netscape 7.1 ar XP) +Name[gl]=UADescription (Netscape 7.1 en Win XP) +Name[gu]=UADescription (નેટસ્કેપ ૭.૧ XP પર) +Name[he]=UADescription (Netscape 7.1 on XP) +Name[hi]=यूए-डिस्क्रिप्शन (एक्सपी में नेटस्केप 7.1) +Name[hne]=यूए-डिस्क्रिप्सन (एक्सपी मं नेटस्केप 7.1) +Name[hr]=UADescription (Netscape 7.1 na XP) +Name[hsb]=UADescription (Netscape 7.1 na XP) +Name[hu]=Böngészőtípus (Netscape 7.1 Windows XP) +Name[ia]=UADescription (Netscape 7.1 super XP) +Name[id]=UADescription (Netscape 7.1 di XP) +Name[is]=UADescription (Netscape 7.1 á XP) +Name[it]=Descrizione UA (Netscape 7.1 su Windows XP) +Name[ja]=UADescription (Netscape 7.1 on XP) +Name[ka]=UADescription (Netscape 7.1 XP-ში) +Name[kk]=UADescription (Netscape 7.1 / XP) +Name[km]=UADescription (Netscape 7.1 នៅ​លើ XP) +Name[kn]=UAವಿವರಣೆ (ಕ್ಸಪಿ ಮೇಲಿನ ಎನ್ಎನ್ ೩.೦೧) +Name[ko]=UADescription (윈도 XP의 넷스케이프 7.1) +Name[ku]=Pênasa UA (Netscape 7.1 ji bo XP) +Name[lt]=Vartotojo agentas (Netscape 7.1 ir Windows XP) +Name[lv]=UA Apraksts (Netscape 7.1 uz XP) +Name[mai]=यूए-डिस्क्रिप्शन (एक्सपी मे नेटस्केप 7.1) +Name[mk]=UADescription (Netscape 7.1 на XP) +Name[ml]=യുഎവിവരണം (എക്സ്പിയിലെ നെറ്റ്സ്കേപ് 7.1) +Name[mr]=UAडिस्क्रिप्शन (XP वरील नेटस्केप 7.1) +Name[nb]=Brukeragent (Netscape 7.1 på XP) +Name[nds]=UA-Beschrieven (Netscape 7.1 op XP) +Name[ne]=UA वर्णन (XP मा नेटस्केप ७.१) +Name[nl]=GA-beschrijving (Netscape 7.1 op XP) +Name[nn]=Brukaragent (Netscape 7.1 på Windows XP) +Name[or]=UA ବର୍ଣ୍ଣନା (XP Netscape 7.1) +Name[pa]=UADescription (XP ਉੱਤੇ Netscape 7.1) +Name[pl]=Opis przeglądarki użytkownika (Netscape 7.1 na Windows XP) +Name[pt]=UADescription (Netscape 7.1 no XP) +Name[pt_BR]=UADescription (Netscape 7.1 no XP) +Name[ro]=Descriere AU (Netscape 7.1 pentru Win XP) +Name[ru]=UADescription (Netscape 7.1 на Windows XP) +Name[se]=UA-čilgehus (Netscape 7.1 on XP) +Name[si]=UADescription (XP මත Netscape 7.1) +Name[sk]=Popis agenta (Netscape 7.1 na XP) +Name[sl]=UAOpis (Netscape 7.1 na Windows XP) +Name[sr]=УА‑опис (Нетскејп 7.1 на ИксП‑у) +Name[sr@ijekavian]=УА‑опис (Нетскејп 7.1 на ИксП‑у) +Name[sr@ijekavianlatin]=UA-opis (Netscape 7.1 na XP‑u) +Name[sr@latin]=UA-opis (Netscape 7.1 na XP‑u) +Name[sv]=AA-beskrivning (Netscape 7.1 på XP) +Name[ta]=UAவிவரம் ( XPல் நெட்ஸ்கேப் 7.1 ) +Name[te]=UADescription (Netscape 7.1 on XP) +Name[tg]=UADescription (Netscape 7.1 дар XP) +Name[th]=UADescription (เน็ตสเคป 7.1 บน XP) +Name[tr]=Kullanıcı Uygulaması Tanımı (XP üzerinde Netscape 7.1) +Name[uk]=UADescription (Netscape 7.1 на XP) +Name[uz]=UADescription (Windows XP bilan Netscape 7.1) +Name[uz@cyrillic]=UADescription (Windows XP билан Netscape 7.1) +Name[vi]=Mô tả UA (Netscape 7.1 trên Win XP) +Name[wa]=Idintifiaedje do betchteu (Netscape 7.1 so Windows XP) +Name[x-test]=xxUADescription (Netscape 7.1 on XP)xx +Name[zh_CN]=客户端描述(运行于 Win XP 的 Netscape 7.1) +Name[zh_TW]=使用者代理描述 (Netscape 7.1 on XP) +Type=Service +X-TDE-ServiceTypes=UserAgentStrings +X-TDE-UA-TAG=NN +X-TDE-UA-FULL=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-CA; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) +X-TDE-UA-NAME=Netscape +X-TDE-UA-VERSION=7.1 +X-TDE-UA-SYSNAME=Windows +X-TDE-UA-SYSRELEASE=XP diff --git a/kcontrol/tdeio/uasproviders/op75oncurrent.desktop b/kcontrol/tdeio/uasproviders/op75oncurrent.desktop new file mode 100644 index 000000000..64c0c234b --- /dev/null +++ b/kcontrol/tdeio/uasproviders/op75oncurrent.desktop @@ -0,0 +1,69 @@ +[Desktop Entry] +Name=UADescription (Opera 7.55 on current) +Name[af]=UA-beskrywing (Opera 7.55 op huidige bedryfstelsel) +Name[be]=UADescription (Opera 7.55 на гэтай сістэме) +Name[bs]=UADescription (Opera 7.55 na trenutnom) +Name[ca]=Descripció UA (Opera 7.55 a l'actual) +Name[cs]=Popis agenta (Opera 7.55 na aktuálním) +Name[csb]=Òpis programë brëkòwnika (Opera 7.55) +Name[da]=UADescription (Opera 7.55 på denne) +Name[de]=Browserkennung (Opera 7.55 unter aktuellem Betriebssystem) +Name[el]=Περιγραφή UA (Opera 7.55 στο τρέχον σύστημα) +Name[eo]=UA-Priskribo (Opera 7.55 sub nuna) +Name[es]=UADescription (Opera 7.55 en actual) +Name[et]=UADescription (Selles masinas töötav Opera 7.55) +Name[eu]=UA azalpena (Opera 7.55 unekoan) +Name[fa]=UADescription (Opera 7.55 در حال حاضر) +Name[fi]=Käyttäjäagenttikuvaus (Opera 7.55 nykyisellä) +Name[fr]=Identité du navigateur (Opera 7.55 sous le système actuel) +Name[fy]=GA-omskriuwing (Opera 7.55 op aktive) +Name[ga]=UADescription (Opera 7.55 ar an gcóras reatha) +Name[gl]=UADescription (Opera 7.55 no actual) +Name[hr]=UADescription (Opera 7.55 na trenutnom) +Name[hu]=Böngészőtípus (Opera 7.55) +Name[id]=UADescription (Opera 7.55) +Name[is]=UAD strengur (Opera 7.55 á núverandi) +Name[it]=DescrizioneUA (Opera 7.55 su sistema attuale) +Name[ka]=UADescription (Opera 7.55 მიმდინარე სისტემაში) +Name[kk]=UADescription (Opera 7.55 осы орында) +Name[km]=UADescription (Opera 7.55 បច្ចុប្បន្ន) +Name[ko]=UADescription (현재 플랫폼의 Opera 8.5) +Name[lt]=Naudotojo agento aprašymas (Opera 7.55 ir esama) +Name[lv]=UAApraksts (Opera 7.55 uz tekošā) +Name[mk]=UADescription (Opera 7.55 на тековно) +Name[nb]=Brukeragent (Opera 7.55 herifra) +Name[nds]=UA-Beschrieven (Opera 7.55 op dit Systeem) +Name[ne]=UA वर्णन (हाल Opera 7.55) +Name[nl]=GA-beschrijving (Opera 7.55 op huidige) +Name[nn]=Brukaragent (Opera 7.55 herifrå) +Name[pa]=UADescription (ਮੌਜੂਦਾ 'ਤੇ ਓਪੇਰਾ 7.55) +Name[pl]=Opis przeglądarki użytkownika (Opera 7.55 na bieżącym systemie) +Name[pt]=UADescription (Opera 7.55 no sistema actual) +Name[pt_BR]=Descrição (Opera 7.55 no sistema atual) +Name[ro]=Descriere UA (Opera 7.55 pentru sistemul de operare curent) +Name[ru]=UADescription (Opera 7.55 на текущей системе) +Name[rw]=UADescription (Opera 7.55 ku igezweho) +Name[se]=UA-čilgehus (Opera 7.55 dán mašiinnas) +Name[sl]=UAOpis (Opera 7.55 na trenutnem) +Name[sr]=UADescription (Opera 7.55 на тренутном) +Name[sr@Latn]=UADescription (Opera 7.55 na trenutnom) +Name[sv]=AA-beskrivning (Opera 7.55 på aktuell) +Name[ta]=UAவிவரம் (நடப்பில் 7.55 ஓபெரா) +Name[tg]=UADescription (Системаи ҷорӣ Opera 7.55) +Name[th]=UADescription (โอเปร่า 7.55 บนระบบปัจจุบัน) +Name[tr]=UA Tanımı (bulunulanda Opera 7.55) +Name[tt]=UADescription (Opera 7.55, şul uq astında) +Name[uk]=UADescription (Opera 7.55 на поточній) +Name[uz]=UADescription (joriy bilan Opera 7.55) +Name[uz@cyrillic]=UADescription (жорий билан Opera 7.55) +Name[vi]=Mô tả UA (đang dùng Opera 7.55) +Name[wa]=Discrijhaedje di l' idintité do betchteu (Opera 7.55 sol ci do moumint) +Name[zh_CN]=用户代理描述 (运行于本机的 Opera 7.55) +Name[zh_TW]=使用者代理描述 (Opera 7.55 on current) +Type=Service +ServiceTypes=UserAgentStrings +X-TDE-UA-TAG=OPR +X-TDE-UA-FULL=Opera/7.55 (appPlatform; appSysName appMachineType; U) [appLanguage] +X-TDE-UA-NAME=Opera +X-TDE-UA-VERSION=7.55 +X-TDE-UA-DYNAMIC-ENTRY=1 diff --git a/kcontrol/tdeio/uasproviders/w3moncurrent.desktop b/kcontrol/tdeio/uasproviders/w3moncurrent.desktop new file mode 100644 index 000000000..1e71a50f8 --- /dev/null +++ b/kcontrol/tdeio/uasproviders/w3moncurrent.desktop @@ -0,0 +1,95 @@ +[Desktop Entry] +Name=UADescription (w3m 0.1.9) +Name[af]=UA-beskrywing (w3m 0.1.9) +Name[ar]=وصف وكيل-مستخدم (w3m 0.1.9) +Name[as]=UADescription (w3m 0.1.9) +Name[be]=UADescription (w3m 0.1.9) +Name[be@latin]=UADescription (w3m 0.1.9) +Name[bg]=UADescription (w3m 0.1.9) +Name[bn]=UADescription (w3m 0.1.9) +Name[bn_IN]=UADescription (w3m 0.1.9) +Name[br]=UADescription (w3m 0.1.9) +Name[ca]=Descripció AU (w3m 0.1.9) +Name[ca@valencia]=Descripció AU (w3m 0.1.9) +Name[cs]=Popis agenta (w3m 0.1.9) +Name[csb]=Òpisënk programë brëkòwnika (w3m 0.1.9) +Name[cy]=UADisgrifiad (w3m 0.1.9) +Name[da]=Brugeragentbeskrivelse (w3m 0.1.9) +Name[de]=Browserkennung (w3m 0.1.9) +Name[el]=Περιγραφή UA (w3m 0.1.9) +Name[en_GB]=UADescription (w3m 0.1.9) +Name[eo]=UA-Priskribo (w3m 0.1.9) +Name[es]=Descripción de AU (w3m 0.1.9) +Name[et]=UADescription (w3m 0.1.9) +Name[eu]=UA azalpena (w3m 0.1.9) +Name[fi]=Käyttäjäagenttikuvaus (w3m 0.1.9) +Name[fr]=UADescription (w3m 0.1.9) +Name[fy]=GA-omskriuwing (w3m 0.1.9) +Name[ga]=UADescription (w3m 0.1.9) +Name[gl]=UADescription (w3m 0.1.9) +Name[gu]=UADescription (w3m ૦.૧.૯) +Name[he]=UADescription (w3m 0.1.9) +Name[hi]=यूए-डिस्क्रिप्शन (डब्ल्यू3एम 0.1.9) +Name[hne]=यूएडी-डिस्क्रिप्सन (डब्ल्यू3एम 0.1.9) +Name[hr]=UADescription (w3m 0.1.9) +Name[hsb]=UADescription (w3m 0.1.9) +Name[hu]=Böngészőtípus (w3m 0.1.9) +Name[ia]=UADescription (w3m 0.1.9) +Name[id]=UADescription (w3m 0.1.9) +Name[is]=UADescription (w3m 0.1.9) +Name[it]=Descrizione UA (w3m 0.1.9) +Name[ja]=UADescription (w3m 0.1.9) +Name[ka]=UADescription (w3m 0.1.9) +Name[kk]=UADescription (w3m 0.1.9) +Name[km]=UADescription (w3m 0.1.9) +Name[kn]=UAವಿವರಣೆ (w3m ೦.೧.೯) +Name[ko]=UADescription (w3m 0.1.9) +Name[ku]=Pênasa UA (w3m 0.19) +Name[lt]=Vartotojo agentas (w3m 0.1.9) +Name[lv]=UA Apraksts (w3m 0.1.9) +Name[mai]=यूएडी-डिस्क्रिप्शन (डब्ल्यू3एम 0.1.9) +Name[mk]=UADescription (w3m 0.1.9) +Name[ml]=യുഎവിവരണം (ഡബ്ലിയു3എം 0.1.9) +Name[mr]=UAडिस्क्रिप्शन (w3m 0.1.9) +Name[ms]=UADescription (w3m 0.1.9) +Name[nb]=Brukeragent (w3m 0.1.9) +Name[nds]=UA-Beschrieven (w3m 0.1.9) +Name[ne]=UA वर्णन (w3m 0.1.9) +Name[nl]=GA-beschrijving (w3m 0.1.9) +Name[nn]=Brukaragent (w3m 0.1.9) +Name[or]=UA ବର୍ଣ୍ଣନା (w3m 0.1.9) +Name[pa]=UADescription (w3m 0.1.9) +Name[pl]=Opis przeglądarki użytkownika (w3m 0.1.9) +Name[pt]=UADescription (w3m 0.1.9) +Name[pt_BR]=UADescription (w3m 0.1.9) +Name[ro]=Descriere AU (w3m 0.1.9) +Name[ru]=UADescription (w3m 0.1.9) +Name[se]=UA-čilgehus (w3m 0.1.9) +Name[si]=UADescription (w3m 0.1.9) +Name[sk]=Popis agenta (w3m 0.1.9) +Name[sl]=UAOpis (w3m 0.1.9) +Name[sr]=УА‑опис (в3м 0.1.9) +Name[sr@ijekavian]=УА‑опис (в3м 0.1.9) +Name[sr@ijekavianlatin]=UA-opis (w3m 0.1.9) +Name[sr@latin]=UA-opis (w3m 0.1.9) +Name[sv]=AA-beskrivning (w3m 0.1.9) +Name[ta]=UAவிவரம் (w3m 0.1.9) +Name[te]=UADescription (w3m 0.1.9) +Name[tg]=UADescription (w3m 0.1.9) +Name[th]=UADescription (w3m 0.1.9) +Name[tr]=Kullanıcı Uygulaması Tanımı (w3m 0.1.9) +Name[uk]=UADescription (w3m 0.1.9) +Name[uz]=UADescription (w3m 0.1.9) +Name[uz@cyrillic]=UADescription (w3m 0.1.9) +Name[vi]=Mô tả UA (w3m 0.1.9) +Name[wa]=Idintifiaedje do betchteu (w3m 0.1.9) +Name[xh]=UADescription (w3m 0.1.9) +Name[x-test]=xxUADescription (w3m 0.1.9)xx +Name[zh_CN]=客户端描述(w3m 0.1.9) +Name[zh_TW]=使用者代理描述 (w3m 0.1.9) +Type=Service +X-TDE-ServiceTypes=UserAgentStrings +X-TDE-UA-TAG=MISC +X-TDE-UA-FULL=w3m/0.1.9 +X-TDE-UA-NAME=w3m +X-TDE-UA-VERSION=0.1.9 diff --git a/kcontrol/tdeio/uasproviders/wgetoncurrent.desktop b/kcontrol/tdeio/uasproviders/wgetoncurrent.desktop new file mode 100644 index 000000000..17e07ba55 --- /dev/null +++ b/kcontrol/tdeio/uasproviders/wgetoncurrent.desktop @@ -0,0 +1,74 @@ +[Desktop Entry] +Name=UADescription (Wget 1.11.4) +Name[ar]=وصف وكيل-مستخدم (Wget 1.11.4) +Name[bg]=UADescription (Wget 1.11.4) +Name[bn]=UADescription (Wget 1.11.4) +Name[ca]=Descripció AU (Wget 1.11.4) +Name[ca@valencia]=Descripció AU (Wget 1.11.4) +Name[cs]=Popis agenta (Wget 1.11.4) +Name[csb]=Òpisënk programë brëkòwnika (Wget 1.11.4) +Name[da]=Brugeragentbeskrivelse (Wget 1.11.4) +Name[de]=Programmkennung (Wget 1.11.4) +Name[el]=Περιγραφή UA (Wget 1.11.4) +Name[en_GB]=UADescription (Wget 1.11.4) +Name[eo]=UA-Priskribo (Wget 1.11.4) +Name[es]=UADescription (Wget 1.11.4) +Name[et]=UADescription (Wget 1.11.4) +Name[eu]=UADescription (Wget 1.11.4) +Name[fi]=Käyttäjäagenttikuvaus (Wget 1.11.4) +Name[fr]=UADescription (Wget 1.11.4) +Name[fy]=UA-beskriuwing (Wget 1.11.4) +Name[ga]=UADescription (Wget 1.11.4) +Name[gl]=UADescription (Wget 1.11.4) +Name[gu]=UADescription (Wget ૧.૧૧.૪) +Name[he]=UADescription (Wget 1.11.4) +Name[hi]=यूए-डिस्क्रिप्शन (डब्ल्यूगेट 1.11.4) +Name[hr]=UADescription (Wget 1.11.4) +Name[hu]=Böngészőtípus (Wget 1.11.4) +Name[ia]=UADescritpion (Wget 1.11.4) +Name[id]=UADescription (Wget 1.11.4) +Name[is]=UADescription (Wget 1.11.4) +Name[it]=Descrizione UA (Wget 1.11.4) +Name[ja]=UADescription (Wget 1.11.4) +Name[kk]=UADescription (Wget 1.11.4) +Name[km]=UADescription (Wget 1.11.4) +Name[kn]=UADescription (Wget 1.11.4) +Name[ko]=UADescription (Wget 1.11.4) +Name[lt]=UADescription (Wget 1.11.4) +Name[lv]=UA Apraksts (Wget 1.11.4) +Name[mai]=यूएडी-डिस्क्रिप्शन (डब्ल्यूगेट 1.11.4) +Name[mk]=UADescription (Wget 1.11.4) +Name[ml]=യുഎവിവരണം (ഡബ്ലിയുഗെറ്റ് 1.11.4) +Name[nb]=Brukeragent (Wget 1.11.4) +Name[nds]=UA-Beschrieven (Wget 1.11.4) +Name[nl]=GA-beschrijving (Wget 1.11.4) +Name[nn]=Brukaragent (Wget 1.11.4) +Name[pa]=UADescription (Wget 1.11.4) +Name[pl]=Opis przeglądarki użytkownika (Wget 1.11.4) +Name[pt]=UADescription (Wget 1.11.4) +Name[pt_BR]=UADescription (Wget 1.11.4) +Name[ro]=Descriere AU (Wget 1.11.4) +Name[ru]=UADescription (Wget 1.11.4) +Name[se]=UA-čilgehus (Wget 1.11.4) +Name[si]=UADescription (Wget 1.11.4) +Name[sk]=Popis agenta (Wget 1.11.4) +Name[sl]=UAOpis (Wget 1.11.4) +Name[sr]=УА‑опис (Вгет 1.11.4) +Name[sr@ijekavian]=УА‑опис (Вгет 1.11.4) +Name[sr@ijekavianlatin]=UA-opis (wget 1.11.4) +Name[sr@latin]=UA-opis (wget 1.11.4) +Name[sv]=AA-beskrivning (Wget 1.11.4) +Name[tg]=UADescription (Wget 1.11.4) +Name[th]=UADescription (Wget 1.11.4) +Name[tr]=Kullanıcı Uygulaması Tanımı (Wget 1.11.4) +Name[uk]=UADescription (Wget 1.11.4) +Name[wa]=Idintifiaedje do betchteu (Wget 1.11.4) +Name[x-test]=xxUADescription (Wget 1.11.4)xx +Name[zh_CN]=客户端描述(Wget 1.11.4) +Name[zh_TW]=使用者代理描述 (Wget 1.11.4) +Type=Service +X-TDE-ServiceTypes=UserAgentStrings +X-TDE-UA-TAG=MISC +X-TDE-UA-FULL=Wget/1.11.4 +X-TDE-UA-NAME=Wget +X-TDE-UA-VERSION=1.11.4 diff --git a/kcontrol/tdeio/uninstall.desktop b/kcontrol/tdeio/uninstall.desktop new file mode 100644 index 000000000..e1e3e1732 --- /dev/null +++ b/kcontrol/tdeio/uninstall.desktop @@ -0,0 +1,2 @@ +[Desktop Entry] +Hidden=true diff --git a/kcontrol/tdeio/useragent.desktop b/kcontrol/tdeio/useragent.desktop new file mode 100644 index 000000000..5209c0d5f --- /dev/null +++ b/kcontrol/tdeio/useragent.desktop @@ -0,0 +1,232 @@ +[Desktop Entry] +Type=Application +Icon=agent +Exec=tdecmshell useragent +DocPath=kcontrol/useragent/index.html + + +X-TDE-Library=tdeio +X-TDE-FactoryName=useragent +X-TDE-ParentApp=kcontrol + +Name=Browser Identification +Name[af]=Stelsel identifisering +Name[ar]=تعريف المتصفح +Name[az]=Səyyah Tanıdılması +Name[be]=Ідэнтыфікацыя вандроўніка +Name[bg]=Идентификация +Name[bn]=ব্রাউজার সনাক্তকরণ +Name[br]=Anvelezh ar furcher +Name[bs]=Identifikacija browsera +Name[ca]=Identificació del navegador +Name[cs]=Identifikace prohlížeče +Name[csb]=Identifikacëjô przezérnika +Name[cy]=Enw'r Porwr +Name[da]=Browser-identifikation +Name[de]=Browserkennung +Name[el]=Ταυτοποίηση περιηγητή +Name[eo]=TTT-legila identeco +Name[es]=Identificación del navegador +Name[et]=Veebilehitseja identifikaator +Name[eu]=Arakatzailearen identifikazioa +Name[fa]=شناسایی مرورگر +Name[fi]=Selaimen tunnistus +Name[fr]=Identification du navigateur +Name[fy]=Blêder identifikaasje +Name[ga]=Aitheantas Brabhsálaithe +Name[gl]=Identificación do Navegador +Name[he]=זיהוי דפדפן +Name[hi]= ब्राउज़र पहचान +Name[hr]=Identifikacija preglednika +Name[hu]=Böngészőazonosító +Name[is]=Auðkenni vafra +Name[it]=Identificazione browser +Name[ja]=ブラウザ識別情報 +Name[ka]=ბრაუზერის ინდენტიფიკაცია +Name[kk]=Браузердің өз туралы хабарлауы +Name[km]=ការ​កំណត់​អត្តសញ្ញាណ​កម្មវិធី​រុករក +Name[ko]=브라우저 증명 +Name[lo]=ການແຈ້ງເຕືອນ +Name[lt]=Naršyklės identifikacija +Name[lv]=Pārlūka identifikācija +Name[mk]=Идентификација +Name[mn]=Хөтөч-Тодотгол +Name[ms]=Pengenalpastian Pelayar +Name[mt]=Identifikazzjoni tal-browser +Name[nb]=Nettleseridentifisering +Name[nds]=Nettkieker-Identiteet +Name[ne]=ब्राउजर पहिचान +Name[nl]=Browseridentificatie +Name[nn]=Nettlesaridentifikasjon +Name[nso]=Boitsibiso bja Seinyakisi +Name[pa]=ਝਲਕਾਰਾ ਪਛਾਣ +Name[pl]=Identyfikacja przeglądarki +Name[pt]=Identificação do Navegador +Name[pt_BR]=Identificação do Navegador +Name[ro]=Identificare navigator web +Name[ru]=Идентификация браузера +Name[rw]=Ikiranga Mucukumbuzi +Name[se]=Fierpmádatloganidentifikašuvdna +Name[sk]=Identifikácie prehliadača +Name[sl]=Identifikacija brskalnika +Name[sr]=Идентификација прегледача +Name[sr@Latn]=Identifikacija pregledača +Name[sv]=Webbläsaridentifikation +Name[ta]=உலாவி அடையாளம் +Name[tg]=Шиносоии тафсир +Name[th]=การแสดงตัวของบราวเซอร์ +Name[tr]=Web tarayıcı kimliği +Name[tt]=Browser Tanışması +Name[uk]=Ідентифікація навігатора +Name[ven]=U talusa ha burausu +Name[vi]=Nhận diện trình duyệt +Name[wa]=Inditifiaedje do betchteu +Name[xh]=Uchazo Lomkhangeli zincwadi +Name[zh_CN]=浏览器识别 +Name[zh_TW]=瀏覽器識別 +Name[zu]=Umazisi Womcingi + +Comment=Configure the way Konqueror reports itself +Comment[af]=Stel die manier waarop Konqueror homself raporteer op +Comment[ar]=إعداد طريقة التعريف لــ Konqueror عن نفسه +Comment[az]=Konqeror-un özünü tanıtmasını quraşdır +Comment[be]=Настаўленні спосабу прадстаўлення Konqueror у Сеціве +Comment[bg]=Настройване идентификацията на браузъра +Comment[bn]=কনকরার নিজেকে কিভাবে উপস্থাপন করবে তা কনফিগার করুন +Comment[bs]=Podesite kako se Konqueror identificira serveru +Comment[ca]=Configura com desitgeu que s'identifiqui el Konqueror +Comment[cs]=Zde můžete jak se bude Konqueror hlásit webovým serverům +Comment[csb]=Kònfigùracëjô ôrtu przedstôwianiô sã Konquerora +Comment[cy]=Ffurfweddu'r ffordd y mae Konqueror yn adrodd ei hun +Comment[da]=Indstil den måde Konquerors rapporterer sigselv +Comment[de]=Kennungen für Konqueror als Webbrowser festlegen +Comment[el]=Ρυθμίστε τον τρόπο με τον οποίο αναφέρεται το Konqueror +Comment[eo]=Agordo de Konkeranto-"user agent" +Comment[es]=Configuración del modo de autoidentificación de Konqueror +Comment[et]=Viisi, kuidas Konqueror endast teada annab, seadistamine +Comment[eu]=Konfiguratu nola azaltzen duen Konquerorrek bere burua +Comment[fa]=پیکربندی روشی که Konqueror گزارش خود را می‌دهد. +Comment[fi]=Vaihda Konquerorin esittäytymistapaa +Comment[fr]=Configuration de la manière dont Konqueror se signale +Comment[fy]=Hjir kinne jo fêststelle hoe Konqueror har by webtsjinners identifisearret +Comment[gl]=Configurar o xeito en que Konqueror informa sobre si mesmo +Comment[he]=שינוי הדרך שבה Konqueror מזדהה +Comment[hi]=कॉन्करर अपने आप को जिस रूप में रिपोर्ट करे वैसा कॉन्फ़िगर करें +Comment[hr]=Konfiguriranje načina na koji se Konqueror prijavljuje +Comment[hu]=A Konqueror webböngésző kliensazonosítójának beállítása +Comment[is]=Stilla hvernig Konqueror kynnir sig +Comment[it]=Configura il modo in cui Konqueror si identifica presso i server +Comment[ja]=Konqueror のブラウザ識別情報を設定 +Comment[ka]=Konqueror-ის იდენტიფიკაციის კონფიგურირება +Comment[kk]=Konqueror өз туралы хабарлауын баптау +Comment[km]=កំណត់​រចនាសម្ព័ន្ធ​របៀប​ដែល Konqueror រាយការណ៍​ខ្លួន​វា +Comment[ko]=Konqueror가 자신을 보고하는 방법 설정 +Comment[lo]=ທ່ານສາມາດປັບແຕ່ງລັກສະນະແລະຄວາມຮູ້ສຶກໃນການໃຊ້ງານ Konqueror ໄດ້ທີ່ນີ້ +Comment[lt]=Čia galite nustatyti, kaip Konqueror save identifikuoja +Comment[lv]=Norādiet kā Iekarotājs identificēs sevi +Comment[mk]=Конфигурирајте го начинот на кој Konqueror се пријавува себе си +Comment[mn]=Конкюрорыг вэб-Хөтөчөөр авах эсэхийг тогтоох +Comment[ms]=Konfigur cara Konqueror melaporkan dirinya +Comment[mt]=Ikkonfigura kif jirrapporta ruħu Konqueror +Comment[nb]=Tilpass Konquerors egenrapportering +Comment[nds]=Instellen, wat Konqueror seggt, woneem he is +Comment[ne]=कन्क्वेररले प्रतिवेदन गर्ने तरिकामा कन्फिगर गर्नुहोस् +Comment[nl]=Hier kunt u bepalen hoe Konqueror zich bij webservers identificeert +Comment[nn]=Vel korleis Konqueror skal presentera seg sjølv +Comment[nso]=Beakanya ka mokgwa wo Konqueror e ipegago ka gona +Comment[pa]=ਕੋਨਕਿਉਰੋਰ ਦੇ ਖੁਦ ਨੂੰ ਜਾਣਕਾਰੀ ਦੇਣ ਦੇ ਢੰਗ ਦੀ ਸੰਰਚਨਾ +Comment[pl]=Konfiguracja sposobu przedstawiania się Konquerora +Comment[pt]=Configuração da forma como o Konqueror se apresenta +Comment[pt_BR]=Configura o modo como o Konqueror se mostra externamente +Comment[ro]=Configurează modul în care Konqueror se identifică la serverele de web +Comment[ru]=Настройка идентификации Konqueror +Comment[rw]=Kuboneza inzira Konqueror yitangaza +Comment[se]=Vállje mo Konqueror galgá iežas ovdanbuktit +Comment[sk]=Nastavenie identifikácie Konquerora +Comment[sl]=Nastavitev načina predstavljanja Konquerorja +Comment[sr]=Подешавање како Konqueror представља себе +Comment[sr@Latn]=Podešavanje kako Konqueror predstavlja sebe +Comment[sv]=Anpassa hur Konqueror identifierar sig +Comment[ta]=கான்கொரர் அறிக்கைகளை வழிகளை வடிவமை +Comment[tg]=Танзими идентификатсияи Konqueror +Comment[th]=ปรับแต่งการแสดงตัวของคอนเควอร์เรอร์ +Comment[tr]=Konqueror'ın raporlama sistemini yapılandır +Comment[tt]=Konqueror üz-üzen beldergän ısulın saylaw +Comment[uk]=Тут можна налаштувати ідентифікацію Konqueror +Comment[ven]=Dzudzanyani ndila ine Kongueror yadi vhiga ngayo +Comment[vi]=Cấu hình cách Konqueror tự báo cáo +Comment[wa]=Aponteye li manire ki Konqueror si prezinte +Comment[xh]=Qwalasela indlela i Konqueror ezichaza ngayo +Comment[zh_CN]=配置 Konqueror 的报告自己的方式 +Comment[zh_TW]=設定 Konqueror 回報自身狀況的方式 +Comment[zu]=Hlanganisela indlela i-Konqueror ezibika ngayo + +Keywords=User Agent,Browser,Internet,WWW,Network,agent,bindings,server,login +Keywords[af]=Gebruiker Agent,Browser,Internet,WWW,Network,agent,bindings,server,login +Keywords[ar]=عميل المستخدم,المتصفح,الشبكة العالمية,الشبكة,عميل,bindings,User Agent,Browser,Internet,WWW,Network,agent,bindings, server,login,خادم,دخول +Keywords[az]=İstifadəçi Vasitəsi,Səyyah,İnternet,WWW,Şəbəkə,giriş,verici,vasitə +Keywords[be]=Кліент,Вандроўнік,Сетка,Агент,сервер,уваход,сесія,User Agent,Browser,Internet,WWW,Network,agent,bindings,server,login +Keywords[bg]=идентификация, клиент, потребителски, браузър, Интернет, агент, сайт, представяне, User Agent, Browser, Internet, WWW, Network, agent, bindings, server, login +Keywords[ca]=Agent d'usuari,Fullejador,Internet,WWW,Xarxa,agent,lligams,servidor,accés +Keywords[cs]=Uživatelský agent,Prohlížeč,Internet,WWW,Síť,Agent,Vazby,Server,Login,Přihlášení +Keywords[csb]=User Agent,programa brëkòwnika,przezérnik,Internet,WWW,séc,agent,sparłączenia,serwera,login +Keywords[cy]=Asiant y Defnyddiwr,Porwr,Rhyngrwyd,WWW,Rhwydwaith,asiant,rhwymiadau,gweinydd,mewngofnodi +Keywords[da]=Brugeragent,Internet,WWW,Netværk,agent,bindinger,server,login +Keywords[de]=Browserkennung,Internetprogramm,Browser,Internet,WWW,Netzwerk,Server,Zuordnungen,Anmeldung +Keywords[el]=Πράκτορας χρήστη,Περιηγητής,Διαδίκτυο,WWW,Δίκτυο,πράκτορας,bindings,εξυπηρετητής,σύνδεση +Keywords[eo]=uzanto,agento,TTT,Interreto,WWW,reto,asocioj,servilo,saluto +Keywords[es]=Agente de Usuario,Navegador,Internet,WWW,Red,agente,asociaciones,servidor,entrada,acceso +Keywords[et]=kasutajaagent,identifikaator,veebilehitseja,Internet,WWW,võrk,agent,seosed,server,sisselogimine +Keywords[eu]=Erabiltzaile agentea,Arakatzailea,Internet,WWW,sarea,agentea, elkarketak,zerbitzaria,saio-hasiera +Keywords[fa]=عامل کاربر، مرورگر، اینترنت، WWW، شبکه، عامل، مقیدسازیها، کارساز، ورود +Keywords[fi]=Käyttäjäagentti,Selain,Internet,WWW,Verkko,agentti,sidokset,palvelin,kirjautuminen +Keywords[fr]=identité du navigateur,navigateur,WWW,réseau,associations,serveur,connexion,login,internet +Keywords[fy]=user agent,browser,internet,www,netwurk,brûkersagint,agint,biningen,tsjinner,oanmelding +Keywords[ga]=UserAgent,gníomhaire úsáideora,Brabhsálaí,Idirlíon,WWW,Líonra,Gréasán,gníomhaire,ceangail,freastalaí,logáil isteach +Keywords[gl]=Axente de Usuario,User Agent,Navegador,Internet,WWW,Rede,axente,atallos,servidor,login +Keywords[he]=רשת,זיהוי,קישורים,שרת,כניסה למערכת,דפדפן,זיהוי דפדפן,WWW,אינטרנט, User Agent,Browser,Internet,WWW,Network,agent,bindings,server,login +Keywords[hi]=उपयोक्ता एजेंट, ब्राउज़र,इंटरनेट,डब्ल्यूडब्ल्यूडब्ल्यू,नेटवर्क,एजेंट,बाइंडिंग्स,सर्वर,लॉगइन +Keywords[hr]=User Agent,Browser,Internet,WWW,Network,agent,bindings,server,login,Korisnički agent,Preglednik,Mreža,povezivanja,poslužitelj,prijava +Keywords[hu]=böngészőtípus,böngésző,internet,WWW,hálózat,azonosító,hozzárendelések,kiszolgáló,bejelentkezés +Keywords[id]=Agen User,Browser,Internet,WWW,Jaringan,agent,bindings,server,login +Keywords[is]=Vafraauðkenning,Auðkennig,Auðkenning Vafra,Vafri,Net,Netið,bindingar,þjónn,innstimplun,innskráning +Keywords[it]=User agent,Navigazione,Browser,Internet,WWW,Rete,agent,collegamenti,server,login,accesso +Keywords[ja]=ユーザエージェント,ブラウザ,インターネット, WWW,ネットワーク,エージェント,バインディング,サーバ,ログイン +Keywords[km]=ភ្នាក់ងារ​អ្នក​ប្រើ,កម្មវិធី​រុករក,អ៊ិនធឺណិត,វើលវ៉ាយវិប,បណ្ដាញ,ភ្នាក់ងារ,ការ​ចង,ម៉ាស៊ីន​បម្រើ,ចូល +Keywords[lt]=Naudotojo agentas,User-Agent,Naršyklė,Internet,WWW,Tinklas,agentas,sietis,serveris, registracija +Keywords[lv]=Lietotāja Aģents,Pārlūks,Internets,WWW,Tīkls,aģents,sasaistes,serveris,pieteikšanās +Keywords[mk]=User Agent,Browser,Internet,WWW,Network,agent,bindings,server,login,Кориснички агент,Прелистувач,Интернет,Мрежа,агент,поврзувања,сервер,најава +Keywords[mn]=User Agent,Интернэт програм,Хөтөч,Интернэт,WWW,Сүлжээ,сервер,Холбоос,Нэвтрэлт +Keywords[nb]=brukaragent,nettleser,internett,WWW,verdensveven,nettverk,agent,tjener,innlogging +Keywords[nds]=User Agent,Browser,Internet,WWW,Nettwark,agent,bindings,Server,Nettkieker,anmellen +Keywords[ne]=प्रयोगकर्ता एजेन्ट, ब्राउजर, इन्टरनेट, WWW, सञ्जाल, एजेन्ट, बाइन्डिङहरू, सर्भर, लगइन +Keywords[nl]=user agent,browser,internet,www,netwerk,gebruikersagent,agent,bindingen,server,login +Keywords[nn]=brukaragent,nettlesar,internett,WWW,verdsveven,nettverk,agent,tenar,innlogging +Keywords[nso]=Mothusi wa Modirisi,Seinyakisi,Internet,WWW,Kgokagano,mothusi, ditlemo,moabi,tseno +Keywords[pa]=WWW,Network,agent,bindings,ਏਜੰਟ,ਸਰਵਰ,ਲਾਗਿੰਨ,ਇੰਟਰਨੈਟ,ਝਲਕਾਰਾ,ਉਪਭੋਗੀ ਏਜੰਟ,ਨੈਟਵਰਕ +Keywords[pl]=User Agent,program użytkownika,przeglądarka,Internet,WWW,sieć,agent,powiązania,serwer,login +Keywords[pt]=agente do utilizador,navegador,internet,WWW,rede +Keywords[pt_BR]=Agente de usuário,navegador,Internet,WWW,Rede,agente,ligações,servidor,login +Keywords[ro]=agent utilizator,User Agent,navigator,browser,Internet,WWW,rețea,agent,asocieri,server,logare +Keywords[rw]=Umukozi Ukoresha,Mucukumbuzi,Interineti,WWW,Urusoberemiyoboro,umukozi, Ibyafataranyijwe,seriveri,ifashayinjira +Keywords[se]=geavaheaddjiageanta,fierpmádatlogan,fierpmádat,WWW,interneahtta,fierbmi, ageanta,bálvá,sisačáliheapmi +Keywords[sk]=User Agent,Prehliadač,Internet,WWW,Sieť,agent,server,login,prihlásenie +Keywords[sl]=uporabniški agent,brskalnik,internet,WWW,splet,omrežje,strežnik,prijava +Keywords[sr]=User Агент,Browser,Интернет,WWW,Network,агент,bindings,сервер,login, Мрежа,прегледач,агент,кориснички агент +Keywords[sr@Latn]=User Agent,Browser,Internet,WWW,Network,agent,bindings,server,login, Mreža,pregledač,agent,korisnički agent +Keywords[sv]=Användaragent,Webbläsare,Internet,WWW,Nätverk,agent,bindningar, server,inloggning +Keywords[ta]=பயன்படுத்துபவர் முகவர்,உலாவி,வலைபின்னல்,WWW,வலைதளம்,முகவர்,bindings,சேவகன்,உள்நுழை +Keywords[th]=เครื่องมือของผู้ใช้,บราวเซอร์,อินเทอร์เน็ต,WWW,เครือข่าย,เครื่องมือ,การจับคู่,เซิร์ฟเวอร์,ล็อกอิน +Keywords[tr]=Kullanıcı Aracısı,Tarayıcı,İnternet,WWW,Ağ,giriş,sunucu,aracı +Keywords[uk]=агент навігатора,навігатор,Інтернет,WWW,мережа,агент,прив'язки,сервер,реєстрація +Keywords[uz]=User Agent,WWW,agent,bindings,Brauzer,Internet,Tarmoq,server +Keywords[uz@cyrillic]=User Agent,WWW,agent,bindings,Браузер,Интернет,Тармоқ,сервер +Keywords[ven]=Mushumisi,Buronza.Inithanete,WWW,Vhgukwamani,Mushumeli,dzithanganyo,Siva,U loga +Keywords[vi]=Trình khách,Trình duyệt,Internet,WWW,Mạng,khách,tổ hợp,máy chủ,đăng nhập +Keywords[wa]=User Agent,idintité do betchteu,betchteu,Internet,daedntoele,WWW,rantoele,idintité,agent,sierveu,login,elodjaedje +Keywords[xh]=Ummeli womsebenzisi,Umkhangeli zincwadi,Internet,WWW,Umsebenzi womnatha,ummeli,izibophelelo,umncedisi,igama elithile +Keywords[zh_CN]=User Agent,Browser,Internet,WWW,Network,agent,bindings,server,login,用户代理,Agent,Browser,Internet,WWW,Network,agent,bindings,server,login,用户代理,浏览,网络,代理,关联,服务器,登录 +Keywords[zh_TW]=User Agent,Browser,Internet,WWW,Network,agent,bindings,server,login,使用者代理程式,瀏覽器,網際網路,網路,代理程式,伺服器,登入 +Keywords[zu]=Ummeli Womsebenzisi,Umcingi,Internet,WWW,Uxhumano olusakazekile, ummeli,izibongo,umlekeleli,ngena ngaphakathi + +Categories=Qt;TDE;X-TDE-settings-webbrowsing; diff --git a/kcontrol/tdeio/useragentdlg.cpp b/kcontrol/tdeio/useragentdlg.cpp new file mode 100644 index 000000000..67f13bf8b --- /dev/null +++ b/kcontrol/tdeio/useragentdlg.cpp @@ -0,0 +1,403 @@ +/* + Original Authors: + Copyright (c) Kalle Dalheimer 1997 + Copyright (c) David Faure 1998 + Copyright (c) Dirk Mueller 2000 + + Completely re-written by: + Copyright (C) 2000- Dawit Alemayehu + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License (GPL) + version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +#include "ksaveioconfig.h" +#include "fakeuaprovider.h" +#include "uagentproviderdlg.h" + +#include "useragentdlg.h" +#include "useragentdlg_ui.h" + +UserAgentDlg::UserAgentDlg( TQWidget * parent ) + :TDECModule( parent, "kcmtdeio" ) +{ + TQVBoxLayout *mainLayout = new TQVBoxLayout(this, 0, KDialog::spacingHint()); + + dlg = new UserAgentDlgUI (this); + mainLayout->addWidget(dlg); + + dlg->lvDomainPolicyList->setSorting(0); + + connect( dlg->cbSendUAString, TQT_SIGNAL(clicked()), TQT_SLOT(configChanged()) ); + + connect( dlg->gbDefaultId, TQT_SIGNAL(clicked(int)), + TQT_SLOT(changeDefaultUAModifiers(int))); + + connect( dlg->lvDomainPolicyList, TQT_SIGNAL(selectionChanged()), + TQT_SLOT(selectionChanged()) ); + connect( dlg->lvDomainPolicyList, TQT_SIGNAL(doubleClicked (TQListViewItem *)), + TQT_SLOT(changePressed()) ); + connect( dlg->lvDomainPolicyList, TQT_SIGNAL( returnPressed ( TQListViewItem * ) ), + TQT_SLOT( changePressed() )); + + connect( dlg->pbNew, TQT_SIGNAL(clicked()), TQT_SLOT( addPressed() ) ); + connect( dlg->pbChange, TQT_SIGNAL( clicked() ), TQT_SLOT( changePressed() ) ); + connect( dlg->pbDelete, TQT_SIGNAL( clicked() ), TQT_SLOT( deletePressed() ) ); + connect( dlg->pbDeleteAll, TQT_SIGNAL( clicked() ), TQT_SLOT( deleteAllPressed() ) ); + + load(); +} + +UserAgentDlg::~UserAgentDlg() +{ + delete m_provider; + delete m_config; +} + +void UserAgentDlg::load() +{ + d_itemsSelected = 0; + dlg->lvDomainPolicyList->clear(); + + m_config = new TDEConfig("tdeio_httprc", false, false); + m_provider = new FakeUASProvider(); + + TQStringList list = m_config->groupList(); + for ( TQStringList::Iterator it = list.begin(); it != list.end(); ++it ) + { + if ( (*it) == "") + continue; + TQString domain = *it; + m_config->setGroup(*it); + TQString agentStr = m_config->readEntry("UserAgent"); + if (!agentStr.isEmpty()) + { + TQString realName = m_provider->aliasStr(agentStr); + (void) new TQListViewItem( dlg->lvDomainPolicyList, domain.lower(), realName, agentStr ); + } + } + + // Update buttons and checkboxes... + m_config->setGroup(TQString::null); + bool b = m_config->readBoolEntry("SendUserAgent", true); + dlg->cbSendUAString->setChecked( b ); + m_ua_keys = m_config->readEntry("UserAgentKeys", DEFAULT_USER_AGENT_KEYS).lower(); + dlg->leDefaultId->setSqueezedText( KProtocolManager::defaultUserAgent( m_ua_keys ) ); + dlg->cbOS->setChecked( m_ua_keys.contains('o') ); + dlg->cbOSVersion->setChecked( m_ua_keys.contains('v') ); + dlg->cbOSVersion->setEnabled( m_ua_keys.contains('o') ); + dlg->cbPlatform->setChecked( m_ua_keys.contains('p') ); + dlg->cbProcessorType->setChecked( m_ua_keys.contains('m') ); + dlg->cbLanguage->setChecked( m_ua_keys.contains('l') ); + updateButtons(); + emit changed( false ); +} + +void UserAgentDlg::updateButtons() +{ + bool hasItems = dlg->lvDomainPolicyList->childCount() > 0; + + dlg->pbChange->setEnabled ((hasItems && d_itemsSelected == 1)); + dlg->pbDelete->setEnabled ((hasItems && d_itemsSelected > 0)); + dlg->pbDeleteAll->setEnabled ( hasItems ); +} + +void UserAgentDlg::defaults() +{ + dlg->lvDomainPolicyList->clear(); + m_ua_keys = DEFAULT_USER_AGENT_KEYS; + dlg->leDefaultId->setSqueezedText( KProtocolManager::defaultUserAgent(m_ua_keys) ); + dlg->cbOS->setChecked( m_ua_keys.contains('o') ); + dlg->cbOSVersion->setChecked( m_ua_keys.contains('v') ); + dlg->cbOSVersion->setEnabled( m_ua_keys.contains('o') ); + dlg->cbPlatform->setChecked( m_ua_keys.contains('p') ); + dlg->cbProcessorType->setChecked( m_ua_keys.contains('m') ); + dlg->cbLanguage->setChecked( m_ua_keys.contains('l') ); + dlg->cbSendUAString->setChecked( true ); + updateButtons(); + configChanged(); +} + +void UserAgentDlg::save() +{ + TQStringList deleteList; + + // This is tricky because we have to take care to delete entries + // as well. + TQStringList list = m_config->groupList(); + for ( TQStringList::Iterator it = list.begin(); it != list.end(); ++it ) + { + if ( (*it) == "") + continue; + TQString domain = *it; + m_config->setGroup(*it); + if (m_config->hasKey("UserAgent")) + deleteList.append(*it); + } + + TQListViewItem* it = dlg->lvDomainPolicyList->firstChild(); + while(it) + { + TQString domain = it->text(0); + if (domain[0] == '.') + domain = domain.mid(1); + TQString userAgent = it->text(2); + m_config->setGroup(domain); + m_config->writeEntry("UserAgent", userAgent); + deleteList.remove(domain); + + it = it->nextSibling(); + } + + m_config->setGroup(TQString::null); + m_config->writeEntry("SendUserAgent", dlg->cbSendUAString->isChecked()); + m_config->writeEntry("UserAgentKeys", m_ua_keys ); + m_config->sync(); + + // Delete all entries from deleteList. + if (!deleteList.isEmpty()) + { + // Remove entries from local file. + KSimpleConfig cfg("tdeio_httprc"); + for ( TQStringList::Iterator it = deleteList.begin(); + it != deleteList.end(); ++it ) + { + cfg.setGroup(*it); + cfg.deleteEntry("UserAgent", false); + cfg.deleteGroup(*it, false); // Delete if empty. + } + cfg.sync(); + + m_config->reparseConfiguration(); + // Check everything is gone, reset to blank otherwise. + for ( TQStringList::Iterator it = deleteList.begin(); + it != deleteList.end(); ++it ) + { + m_config->setGroup(*it); + if (m_config->hasKey("UserAgent")) + m_config->writeEntry("UserAgent", TQString::null); + } + m_config->sync(); + } + + KSaveIOConfig::updateRunningIOSlaves (this); + + emit changed( false ); +} + +bool UserAgentDlg::handleDuplicate( const TQString& site, + const TQString& identity, + const TQString& alias ) +{ + TQListViewItem* item = dlg->lvDomainPolicyList->firstChild(); + while ( item != 0 ) + { + if ( item->text(0) == site ) + { + TQString msg = i18n("
    Found an existing identification for" + "
    %1
    " + "Do you want to replace it?
    " + "
    ").arg(site); + int res = KMessageBox::warningContinueCancel(this, msg, + i18n("Duplicate Identification"), + i18n("Replace")); + if ( res == KMessageBox::Continue ) + { + item->setText(0, site); + item->setText(1, identity); + item->setText(2, alias); + configChanged(); + } + return true; + } + item = item->nextSibling(); + } + return false; +} + +void UserAgentDlg::addPressed() +{ + UAProviderDlg pdlg ( i18n("Add Identification"), this, m_provider ); + + if ( pdlg.exec() == TQDialog::Accepted ) + { + if ( !handleDuplicate( pdlg.siteName(), pdlg.identity(), pdlg.alias() ) ) + { + TQListViewItem* index = new TQListViewItem( dlg->lvDomainPolicyList, + pdlg.siteName(), + pdlg.identity(), + pdlg.alias() ); + dlg->lvDomainPolicyList->sort(); + dlg->lvDomainPolicyList->setCurrentItem( index ); + configChanged(); + } + } +} + +void UserAgentDlg::changePressed() +{ + UAProviderDlg pdlg ( i18n("Modify Identification"), this, m_provider ); + + TQListViewItem *index = dlg->lvDomainPolicyList->currentItem(); + + if(!index) + return; + + TQString old_site = index->text(0); + pdlg.setSiteName( old_site ); + pdlg.setIdentity( index->text(1) ); + + if ( pdlg.exec() == TQDialog::Accepted ) + { + TQString new_site = pdlg.siteName(); + if ( new_site == old_site || + !handleDuplicate( new_site, pdlg.identity(), pdlg.alias() ) ) + { + index->setText( 0, new_site ); + index->setText( 1, pdlg.identity() ); + index->setText( 2, pdlg.alias() ); + configChanged(); + } + } +} + +void UserAgentDlg::deletePressed() +{ + TQListViewItem* item; + TQListViewItem* nextItem = 0; + + item = dlg->lvDomainPolicyList->firstChild (); + + while (item != 0L) + { + if (dlg->lvDomainPolicyList->isSelected (item)) + { + nextItem = item->itemBelow(); + if ( !nextItem ) + nextItem = item->itemAbove(); + + delete item; + item = nextItem; + } + else + { + item = item->itemBelow(); + } + } + + if (nextItem) + dlg->lvDomainPolicyList->setSelected (nextItem, true); + + updateButtons(); + configChanged(); +} + +void UserAgentDlg::deleteAllPressed() +{ + dlg->lvDomainPolicyList->clear(); + updateButtons(); + configChanged(); +} + +void UserAgentDlg::configChanged() +{ + emit changed ( true ); +} + +void UserAgentDlg::changeDefaultUAModifiers( int ) +{ + m_ua_keys = ":"; // Make sure it's not empty + + if ( dlg->cbOS->isChecked() ) + m_ua_keys += 'o'; + + if ( dlg->cbOSVersion->isChecked() ) + m_ua_keys += 'v'; + + if ( dlg->cbPlatform->isChecked() ) + m_ua_keys += 'p'; + + if ( dlg->cbProcessorType->isChecked() ) + m_ua_keys += 'm'; + + if ( dlg->cbLanguage->isChecked() ) + m_ua_keys += 'l'; + + dlg->cbOSVersion->setEnabled(m_ua_keys.contains('o')); + + TQString modVal = KProtocolManager::defaultUserAgent( m_ua_keys ); + if ( dlg->leDefaultId->text() != modVal ) + { + dlg->leDefaultId->setSqueezedText(modVal); + configChanged(); + } +} + +void UserAgentDlg::selectionChanged () +{ + TQListViewItem* item; + + d_itemsSelected = 0; + item = dlg->lvDomainPolicyList->firstChild (); + + while (item != 0L) + { + if (dlg->lvDomainPolicyList->isSelected (item)) + d_itemsSelected++; + item = item->nextSibling (); + } + + updateButtons (); +} + +TQString UserAgentDlg::quickHelp() const +{ + return i18n( "

    Browser Identification

    " + "The browser-identification module allows you to have full " + "control over how Konqueror will identify itself to web " + "sites you browse." + "

    This ability to fake identification is necessary because " + "some web sites do not display properly when they detect that " + "they are not talking to current versions of either Netscape " + "Navigator or Internet Explorer, even if the browser actually " + "supports all the necessary features to render those pages " + "properly. " + "For such sites, you can use this feature to try to browse " + "them. Please understand that this might not always work, since " + "such sites might be using non-standard web protocols and or " + "specifications." + "

    NOTE: To obtain specific help on a particular section " + "of the dialog box, simply click on the quick help button on " + "the window title bar, then click on the section " + "for which you are seeking help." ); +} + +#include "useragentdlg.moc" diff --git a/kcontrol/tdeio/useragentdlg.h b/kcontrol/tdeio/useragentdlg.h new file mode 100644 index 000000000..746a8524a --- /dev/null +++ b/kcontrol/tdeio/useragentdlg.h @@ -0,0 +1,83 @@ +/* + Original Authors: + Copyright (c) Kalle Dalheimer 1997 + Copyright (c) David Faure 1998 + Copyright (c) Dirk Mueller 2000 + + Completely re-written by: + Copyright (C) 2000- Dawit Alemayehu + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License (GPL) + version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _USERAGENTDLG_H +#define _USERAGENTDLG_H + +#include + +class TDEConfig; +class FakeUASProvider; +class UserAgentDlgUI; + +class UserAgentDlg : public TDECModule +{ + Q_OBJECT + +public: + UserAgentDlg ( TQWidget * parent = 0) ; + ~UserAgentDlg(); + + virtual void load(); + virtual void save(); + virtual void defaults(); + TQString quickHelp() const; + +private slots: + void updateButtons(); + void selectionChanged(); + + void addPressed(); + void changePressed(); + void deletePressed(); + void deleteAllPressed(); + + void configChanged(); + void changeDefaultUAModifiers( int ); + +private: + bool handleDuplicate( const TQString&, const TQString&, const TQString& ); + + enum { + SHOW_OS = 0, + SHOW_OS_VERSION, + SHOW_PLATFORM, + SHOW_MACHINE, + SHOW_LANGUAGE + }; + + // Useragent modifiers... + TQString m_ua_keys; + + // Fake user-agent modifiers... + FakeUASProvider* m_provider; + + // + int d_itemsSelected; + + TDEConfig *m_config; + UserAgentDlgUI* dlg; +}; + +#endif diff --git a/kcontrol/tdeio/useragentdlg_ui.ui b/kcontrol/tdeio/useragentdlg_ui.ui new file mode 100644 index 000000000..1e5d55c4e --- /dev/null +++ b/kcontrol/tdeio/useragentdlg_ui.ui @@ -0,0 +1,355 @@ + +UserAgentDlgUI + + + UserAgentDlgUI + + + + 0 + 0 + 395 + 470 + + + + <qt> +Here you can modify the default browser-identification text or set a site <code>(eg. www.kde.org)</code> or a domain <code>(eg. kde.org)</code> specific identification text.<p> +To add a new site specific identification text, click the <code>New</code> button and supply the necessary information. To change an existing site specific entry, click on the <code>Change</code> button. The <code>Delete</code> button will remove the selected site specific identification text, causing the setting to be used for that site or domain. +</qt> + + + + unnamed + + + 0 + + + + cbSendUAString + + + &Send identification + + + true + + + <qt> +Send the browser identification to web sites.<p> +<u>NOTE:</u> Many sites rely on this information to display pages properly, hence, it is highly recommended that you do not totally disable this feature but rather customize it.<p> +By default, only minimal identification information is sent to remote sites. The identification text that will be sent is shown below. +</qt> + + + + + gbDefaultId + + + true + + + Default Identification + + + The browser identification text sent to the sites you visit. Use the provided options to customize it. + + + + unnamed + + + 11 + + + + leDefaultId + + + + 1 + + + + Box + + + Raised + + + 0 + + + true + + + The browser identification text sent to the sites you visit. You can customize it using the options provided below. + + + + + cbOS + + + Add operating s&ystem name + + + Includes your operating system's name in the browser identification text. + + + + + layout2 + + + + unnamed + + + + spacer2 + + + Horizontal + + + Fixed + + + + 16 + 20 + + + + + + cbOSVersion + + + false + + + Add operating system &version + + + Includes your operating system's version number in the browser identification text. + + + + + + + cbPlatform + + + Add &platform name + + + Includes your platform type in the browser identification text + + + + + cbProcessorType + + + Add &machine (processor) type + + + Includes your machine's CPU type in the browser identification text. + + + + + cbLanguage + + + Add lang&uage information + + + Includes your language settings in the browser identification text. + + + + + + + gbDomainPolicy + + + true + + + Site Specific Identification + + + + unnamed + + + 11 + + + + + Site Name + + + true + + + true + + + + + Identification + + + true + + + true + + + + + User Agent + + + true + + + true + + + + lvDomainPolicyList + + + Extended + + + true + + + true + + + AllColumns + + + 0 + + + List of sites for which the specified identification text will be used instead of the default one. + + + + + layout1 + + + + unnamed + + + + pbNew + + + &New... + + + Add new identification text for a site. + + + + + pbChange + + + Chan&ge... + + + Change the selected identifier text. + + + + + pbDelete + + + D&elete + + + Delete the selected identifier text. + + + + + pbDeleteAll + + + Delete A&ll + + + Delete all identifiers. + + + + + spacer1 + + + Vertical + + + Expanding + + + + 21 + 16 + + + + + + + + + + + + cbOS + toggled(bool) + cbOSVersion + setEnabled(bool) + + + cbSendUAString + toggled(bool) + gbDefaultId + setEnabled(bool) + + + cbSendUAString + toggled(bool) + gbDomainPolicy + setEnabled(bool) + + + + kdialog.h + + + + + klineedit.h + klistview.h + + -- cgit v1.2.1