From 4bc3dcd8cbc23e1470e121e25a83d57c22e61b26 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 27 Jan 2013 01:00:38 -0600 Subject: Rename a number of libraries and executables to avoid conflicts with KDE4 --- README | 4 +- atlantikdesigner/designer/designer.cpp | 4 +- kaddressbook-plugins/xxports/gmx/gmx_xxport.cpp | 4 +- .../xxports/kworldclock/geo_xxport.cpp | 2 +- kate/cppsymbolviewer/plugin_katesymbolviewer.cpp | 2 +- kate/cppsymbolviewer/plugin_katesymbolviewer.h | 2 +- kate/filelistloader/katefll_initplugin.cpp | 2 +- kate/filelistloader/katefll_plugin.cpp | 4 +- kate/filetemplates/plugin/filetemplates.cpp | 6 +- kate/insertcommand/plugin_kateinsertcommand.cpp | 4 +- kate/make/plugin_katemake.cpp | 2 +- kate/openheader/plugin_kateopenheader.cpp | 2 +- kate/snippets/plugin_katesnippets.h | 2 +- .../tabbarextension/plugin_katetabbarextension.cpp | 4 +- kate/xmltools/plugin_katexmltools.cpp | 4 +- kfile-plugins/Makefile.am | 5 - kfile-plugins/RETURNED_ITEMS | 28 --- kfile-plugins/cert/Makefile.am | 22 -- kfile-plugins/cert/configure.in.in | 2 - kfile-plugins/cert/kfile_cert.cpp | 161 --------------- kfile-plugins/cert/kfile_cert.desktop | 60 ------ kfile-plugins/cert/kfile_cert.h | 43 ---- kfile-plugins/desktop/Makefile.am | 22 -- kfile-plugins/desktop/kfile_desktop.cpp | 128 ------------ kfile-plugins/desktop/kfile_desktop.desktop | 68 ------ kfile-plugins/desktop/kfile_desktop.h | 40 ---- kfile-plugins/folder/Makefile.am | 21 -- kfile-plugins/folder/kfile_folder.cpp | 86 -------- kfile-plugins/folder/kfile_folder.desktop | 70 ------- kfile-plugins/folder/kfile_folder.h | 38 ---- kfile-plugins/html/Makefile.am | 22 -- kfile-plugins/html/kfile_html.cpp | 158 -------------- kfile-plugins/html/kfile_html.desktop | 66 ------ kfile-plugins/html/kfile_html.h | 39 ---- kfile-plugins/lnk/Makefile.am | 34 --- kfile-plugins/lnk/README | 29 --- kfile-plugins/lnk/kfile_lnk.cpp | 93 --------- kfile-plugins/lnk/kfile_lnk.desktop | 62 ------ kfile-plugins/lnk/kfile_lnk.h | 47 ----- kfile-plugins/lnk/lnkforward.cpp | 130 ------------ kfile-plugins/lnk/lnkforward.desktop | 114 ----------- kfile-plugins/lnk/lnkforward.h | 43 ---- kfile-plugins/lnk/read_lnk.cpp | 227 --------------------- kfile-plugins/lnk/read_lnk.h | 46 ----- kfile-plugins/lnk/x-win-lnk.desktop | 61 ------ kfile-plugins/mhtml/Makefile.am | 21 -- kfile-plugins/mhtml/kfile_mhtml.cpp | 201 ------------------ kfile-plugins/mhtml/kfile_mhtml.desktop | 60 ------ kfile-plugins/mhtml/kfile_mhtml.h | 46 ----- kfile-plugins/txt/Makefile.am | 21 -- kfile-plugins/txt/kfile_txt.cpp | 129 ------------ kfile-plugins/txt/kfile_txt.desktop | 70 ------- kfile-plugins/txt/kfile_txt.h | 40 ---- kicker-applets/kbinaryclock/kbinaryclock.cpp | 8 +- kicker-applets/kbinaryclock/kbinaryclock.h | 2 +- kicker-applets/kbinaryclock/prefs.kcfgc | 2 +- kicker-applets/kolourpicker/kolourpicker.cpp | 2 +- kicker-applets/ktimemon/timemon.cc | 2 +- kicker-applets/math/mathapplet.cpp | 2 +- kicker-applets/mediacontrol/configfrontend.h | 2 +- kicker-applets/mediacontrol/mediacontrolconfig.cpp | 2 +- konq-plugins/adblock/adblock.cpp | 2 +- konq-plugins/akregator/akregatorplugin.h | 4 +- konq-plugins/arkplugin/arkplugin.cpp | 2 +- konq-plugins/arkplugin/arkplugin.h | 4 +- konq-plugins/babelfish/plugin_babelfish.cpp | 2 +- konq-plugins/crashes/crashesplugin.cpp | 2 +- konq-plugins/dirfilter/dirfilterplugin.h | 2 +- konq-plugins/domtreeviewer/domtreeview.cpp | 2 +- konq-plugins/domtreeviewer/domtreewindow.cpp | 2 +- konq-plugins/fsview/fsview.cpp | 4 +- konq-plugins/fsview/fsview_part.cpp | 6 +- konq-plugins/fsview/fsview_part.h | 2 +- konq-plugins/fsview/main.cpp | 2 +- konq-plugins/fsview/scan.h | 2 +- konq-plugins/fsview/treemap.cpp | 2 +- konq-plugins/kimgalleryplugin/imgallerydialog.cpp | 2 +- konq-plugins/kimgalleryplugin/imgalleryplugin.cpp | 4 +- konq-plugins/kimgalleryplugin/imgalleryplugin.h | 2 +- konq-plugins/kuick/kcmkuick/kcmkuick.cpp | 2 +- konq-plugins/kuick/kcmkuick/kcmkuick.desktop | 2 +- konq-plugins/kuick/kdirmenu.cpp | 2 +- konq-plugins/kuick/kmetamenu.cpp | 4 +- konq-plugins/kuick/kuick_plugin.cpp | 4 +- konq-plugins/minitools/minitoolsplugin.cpp | 2 +- konq-plugins/rsync/rsyncplugin.cpp | 6 +- konq-plugins/rsync/rsyncplugin.h | 6 +- konq-plugins/searchbar/searchbar.cpp | 8 +- konq-plugins/sidebar/delicious/Makefile.am | 2 +- konq-plugins/sidebar/delicious/mainWidget.cpp | 4 +- konq-plugins/sidebar/delicious/mainWidget.h | 2 +- konq-plugins/sidebar/mediaplayer/Makefile.am | 2 +- konq-plugins/sidebar/mediaplayer/engine.cpp | 2 +- konq-plugins/sidebar/mediaplayer/mediaplayer.cpp | 2 +- konq-plugins/sidebar/metabar/src/configdialog.cpp | 2 +- konq-plugins/sidebar/metabar/src/configdialog.h | 2 +- konq-plugins/sidebar/metabar/src/defaultplugin.cpp | 6 +- konq-plugins/sidebar/metabar/src/defaultplugin.h | 2 +- konq-plugins/sidebar/metabar/src/metabar.h | 2 +- .../sidebar/metabar/src/metabarfunctions.cpp | 2 +- konq-plugins/sidebar/metabar/src/metabarwidget.cpp | 4 +- konq-plugins/sidebar/metabar/src/metabarwidget.h | 4 +- konq-plugins/sidebar/metabar/src/protocolplugin.h | 2 +- konq-plugins/sidebar/metabar/src/serviceloader.h | 2 +- .../sidebar/metabar/src/settingsplugin.cpp | 4 +- konq-plugins/sidebar/metabar/src/settingsplugin.h | 4 +- konq-plugins/sidebar/newsticker/norsswidget.cpp | 2 +- konq-plugins/sidebar/newsticker/nspanel.h | 2 +- .../sidebar/newsticker/nsstacktabwidget.cpp | 2 +- .../tdehtmlsettingsplugin/settingsplugin.cpp | 6 +- konq-plugins/uachanger/uachangerplugin.cpp | 4 +- konq-plugins/validators/validatorsdialog.cpp | 2 +- konq-plugins/validators/validatorsdialog.h | 2 +- konq-plugins/webarchiver/archivedialog.cpp | 6 +- konq-plugins/webarchiver/archivedialog.h | 2 +- konq-plugins/webarchiver/plugin_webarchiver.cpp | 2 +- konq-plugins/webarchiver/webarchivecreator.h | 2 +- ksig/ksig.cpp | 2 +- ksig/siggenerator.cpp | 2 +- noatun-plugins/alarm/wakeup.cpp | 2 +- noatun-plugins/alsaplayer/configmodule.cpp | 2 +- noatun-plugins/alsaplayer/userinterface.cpp | 2 +- noatun-plugins/charlatan/configmodule.cpp | 2 +- noatun-plugins/charlatan/userinterface.cpp | 2 +- noatun-plugins/dub/dub.kdevprj | 2 +- noatun-plugins/dub/dub/dub.cpp | 4 +- noatun-plugins/dub/dub/dubapp.cpp | 4 +- noatun-plugins/dub/dub/dubconfigmodule.cpp | 2 +- noatun-plugins/dub/dub/dubplaylist.h | 2 +- noatun-plugins/dub/dub/dubplaylistitem.cpp | 4 +- noatun-plugins/dub/dub/dubplaylistitem.h | 2 +- noatun-plugins/dub/dub/fileselectorwidget.cpp | 2 +- noatun-plugins/dub/dub/fileselectorwidget.h | 2 +- noatun-plugins/ffrs/ffrs.cpp | 2 +- noatun-plugins/lyrics/cmodule.cpp | 2 +- noatun-plugins/lyrics/lyrics.cpp | 2 +- noatun-plugins/nexscope/gui.cpp | 2 +- noatun-plugins/oblique/cmodule.cpp | 2 +- noatun-plugins/oblique/file.cpp | 2 +- noatun-plugins/oblique/kdatacollection.cpp | 2 +- noatun-plugins/oblique/oblique.cpp | 6 +- noatun-plugins/oblique/oblique.h | 2 +- noatun-plugins/oblique/view.cpp | 2 +- noatun-plugins/synaescope/cmodule.cpp | 2 +- noatun-plugins/synaescope/main.cpp | 2 +- noatun-plugins/synaescope/ui.cpp | 2 +- noatun-plugins/tippercanoe/ui.cpp | 2 +- noatun-plugins/wavecapture/wavecapture.cpp | 6 +- renamedlgplugins/audio/audio_plugin.cpp | 4 +- renamedlgplugins/audio/audiopreview.cpp | 4 +- renamedlgplugins/images/image_plugin.cpp | 4 +- renamedlgplugins/images/imagevisualizer.cpp | 2 +- tdefile-plugins/Makefile.am | 5 + tdefile-plugins/RETURNED_ITEMS | 28 +++ tdefile-plugins/cert/Makefile.am | 22 ++ tdefile-plugins/cert/configure.in.in | 2 + tdefile-plugins/cert/tdefile_cert.cpp | 161 +++++++++++++++ tdefile-plugins/cert/tdefile_cert.desktop | 60 ++++++ tdefile-plugins/cert/tdefile_cert.h | 43 ++++ tdefile-plugins/desktop/Makefile.am | 22 ++ tdefile-plugins/desktop/tdefile_desktop.cpp | 128 ++++++++++++ tdefile-plugins/desktop/tdefile_desktop.desktop | 68 ++++++ tdefile-plugins/desktop/tdefile_desktop.h | 40 ++++ tdefile-plugins/folder/Makefile.am | 21 ++ tdefile-plugins/folder/tdefile_folder.cpp | 86 ++++++++ tdefile-plugins/folder/tdefile_folder.desktop | 70 +++++++ tdefile-plugins/folder/tdefile_folder.h | 38 ++++ tdefile-plugins/html/Makefile.am | 22 ++ tdefile-plugins/html/tdefile_html.cpp | 158 ++++++++++++++ tdefile-plugins/html/tdefile_html.desktop | 66 ++++++ tdefile-plugins/html/tdefile_html.h | 39 ++++ tdefile-plugins/lnk/Makefile.am | 34 +++ tdefile-plugins/lnk/README | 29 +++ tdefile-plugins/lnk/lnkforward.cpp | 130 ++++++++++++ tdefile-plugins/lnk/lnkforward.desktop | 114 +++++++++++ tdefile-plugins/lnk/lnkforward.h | 43 ++++ tdefile-plugins/lnk/read_lnk.cpp | 227 +++++++++++++++++++++ tdefile-plugins/lnk/read_lnk.h | 46 +++++ tdefile-plugins/lnk/tdefile_lnk.cpp | 93 +++++++++ tdefile-plugins/lnk/tdefile_lnk.desktop | 62 ++++++ tdefile-plugins/lnk/tdefile_lnk.h | 47 +++++ tdefile-plugins/lnk/x-win-lnk.desktop | 61 ++++++ tdefile-plugins/mhtml/Makefile.am | 21 ++ tdefile-plugins/mhtml/tdefile_mhtml.cpp | 201 ++++++++++++++++++ tdefile-plugins/mhtml/tdefile_mhtml.desktop | 60 ++++++ tdefile-plugins/mhtml/tdefile_mhtml.h | 46 +++++ tdefile-plugins/txt/Makefile.am | 21 ++ tdefile-plugins/txt/tdefile_txt.cpp | 129 ++++++++++++ tdefile-plugins/txt/tdefile_txt.desktop | 70 +++++++ tdefile-plugins/txt/tdefile_txt.h | 40 ++++ 190 files changed, 2716 insertions(+), 2716 deletions(-) delete mode 100644 kfile-plugins/Makefile.am delete mode 100644 kfile-plugins/RETURNED_ITEMS delete mode 100644 kfile-plugins/cert/Makefile.am delete mode 100644 kfile-plugins/cert/configure.in.in delete mode 100644 kfile-plugins/cert/kfile_cert.cpp delete mode 100644 kfile-plugins/cert/kfile_cert.desktop delete mode 100644 kfile-plugins/cert/kfile_cert.h delete mode 100644 kfile-plugins/desktop/Makefile.am delete mode 100644 kfile-plugins/desktop/kfile_desktop.cpp delete mode 100644 kfile-plugins/desktop/kfile_desktop.desktop delete mode 100644 kfile-plugins/desktop/kfile_desktop.h delete mode 100644 kfile-plugins/folder/Makefile.am delete mode 100644 kfile-plugins/folder/kfile_folder.cpp delete mode 100644 kfile-plugins/folder/kfile_folder.desktop delete mode 100644 kfile-plugins/folder/kfile_folder.h delete mode 100644 kfile-plugins/html/Makefile.am delete mode 100644 kfile-plugins/html/kfile_html.cpp delete mode 100644 kfile-plugins/html/kfile_html.desktop delete mode 100644 kfile-plugins/html/kfile_html.h delete mode 100644 kfile-plugins/lnk/Makefile.am delete mode 100644 kfile-plugins/lnk/README delete mode 100644 kfile-plugins/lnk/kfile_lnk.cpp delete mode 100644 kfile-plugins/lnk/kfile_lnk.desktop delete mode 100644 kfile-plugins/lnk/kfile_lnk.h delete mode 100644 kfile-plugins/lnk/lnkforward.cpp delete mode 100644 kfile-plugins/lnk/lnkforward.desktop delete mode 100644 kfile-plugins/lnk/lnkforward.h delete mode 100644 kfile-plugins/lnk/read_lnk.cpp delete mode 100644 kfile-plugins/lnk/read_lnk.h delete mode 100644 kfile-plugins/lnk/x-win-lnk.desktop delete mode 100644 kfile-plugins/mhtml/Makefile.am delete mode 100644 kfile-plugins/mhtml/kfile_mhtml.cpp delete mode 100644 kfile-plugins/mhtml/kfile_mhtml.desktop delete mode 100644 kfile-plugins/mhtml/kfile_mhtml.h delete mode 100644 kfile-plugins/txt/Makefile.am delete mode 100644 kfile-plugins/txt/kfile_txt.cpp delete mode 100644 kfile-plugins/txt/kfile_txt.desktop delete mode 100644 kfile-plugins/txt/kfile_txt.h create mode 100644 tdefile-plugins/Makefile.am create mode 100644 tdefile-plugins/RETURNED_ITEMS create mode 100644 tdefile-plugins/cert/Makefile.am create mode 100644 tdefile-plugins/cert/configure.in.in create mode 100644 tdefile-plugins/cert/tdefile_cert.cpp create mode 100644 tdefile-plugins/cert/tdefile_cert.desktop create mode 100644 tdefile-plugins/cert/tdefile_cert.h create mode 100644 tdefile-plugins/desktop/Makefile.am create mode 100644 tdefile-plugins/desktop/tdefile_desktop.cpp create mode 100644 tdefile-plugins/desktop/tdefile_desktop.desktop create mode 100644 tdefile-plugins/desktop/tdefile_desktop.h create mode 100644 tdefile-plugins/folder/Makefile.am create mode 100644 tdefile-plugins/folder/tdefile_folder.cpp create mode 100644 tdefile-plugins/folder/tdefile_folder.desktop create mode 100644 tdefile-plugins/folder/tdefile_folder.h create mode 100644 tdefile-plugins/html/Makefile.am create mode 100644 tdefile-plugins/html/tdefile_html.cpp create mode 100644 tdefile-plugins/html/tdefile_html.desktop create mode 100644 tdefile-plugins/html/tdefile_html.h create mode 100644 tdefile-plugins/lnk/Makefile.am create mode 100644 tdefile-plugins/lnk/README create mode 100644 tdefile-plugins/lnk/lnkforward.cpp create mode 100644 tdefile-plugins/lnk/lnkforward.desktop create mode 100644 tdefile-plugins/lnk/lnkforward.h create mode 100644 tdefile-plugins/lnk/read_lnk.cpp create mode 100644 tdefile-plugins/lnk/read_lnk.h create mode 100644 tdefile-plugins/lnk/tdefile_lnk.cpp create mode 100644 tdefile-plugins/lnk/tdefile_lnk.desktop create mode 100644 tdefile-plugins/lnk/tdefile_lnk.h create mode 100644 tdefile-plugins/lnk/x-win-lnk.desktop create mode 100644 tdefile-plugins/mhtml/Makefile.am create mode 100644 tdefile-plugins/mhtml/tdefile_mhtml.cpp create mode 100644 tdefile-plugins/mhtml/tdefile_mhtml.desktop create mode 100644 tdefile-plugins/mhtml/tdefile_mhtml.h create mode 100644 tdefile-plugins/txt/Makefile.am create mode 100644 tdefile-plugins/txt/tdefile_txt.cpp create mode 100644 tdefile-plugins/txt/tdefile_txt.desktop create mode 100644 tdefile-plugins/txt/tdefile_txt.h diff --git a/README b/README index 30a8f76..d91cfea 100644 --- a/README +++ b/README @@ -2,7 +2,7 @@ In this file: * What it is * Plugins for Kate -* Plugins for kfile +* Plugins for tdefile * Plugins for Kicker * Plugins for Konqueror * Plugins for Noatun @@ -36,7 +36,7 @@ Plugins for Kate * xmltools: lists XML elements, attributes, attributes values and entities allowed by DTD -Plugins for kfile +Plugins for tdefile ----------------- * cert: Certificate Info diff --git a/atlantikdesigner/designer/designer.cpp b/atlantikdesigner/designer/designer.cpp index fc4085c..3ed7e24 100644 --- a/atlantikdesigner/designer/designer.cpp +++ b/atlantikdesigner/designer/designer.cpp @@ -15,10 +15,10 @@ #include #include -#include +#include #include #include -#include +#include #include #include #include diff --git a/kaddressbook-plugins/xxports/gmx/gmx_xxport.cpp b/kaddressbook-plugins/xxports/gmx/gmx_xxport.cpp index cb9e461..a068e4b 100644 --- a/kaddressbook-plugins/xxports/gmx/gmx_xxport.cpp +++ b/kaddressbook-plugins/xxports/gmx/gmx_xxport.cpp @@ -32,8 +32,8 @@ #include #include -#include -#include +#include +#include #include #include #include diff --git a/kaddressbook-plugins/xxports/kworldclock/geo_xxport.cpp b/kaddressbook-plugins/xxports/kworldclock/geo_xxport.cpp index 0d0ffbd..48a3901 100644 --- a/kaddressbook-plugins/xxports/kworldclock/geo_xxport.cpp +++ b/kaddressbook-plugins/xxports/kworldclock/geo_xxport.cpp @@ -21,7 +21,7 @@ without including the source code for TQt in the source distribution. */ -#include +#include #include #include #include diff --git a/kate/cppsymbolviewer/plugin_katesymbolviewer.cpp b/kate/cppsymbolviewer/plugin_katesymbolviewer.cpp index 6bf06d7..39abc4a 100644 --- a/kate/cppsymbolviewer/plugin_katesymbolviewer.cpp +++ b/kate/cppsymbolviewer/plugin_katesymbolviewer.cpp @@ -45,7 +45,7 @@ #include #include #include -#include +#include #include #include diff --git a/kate/cppsymbolviewer/plugin_katesymbolviewer.h b/kate/cppsymbolviewer/plugin_katesymbolviewer.h index 05fbb39..1f18dfb 100644 --- a/kate/cppsymbolviewer/plugin_katesymbolviewer.h +++ b/kate/cppsymbolviewer/plugin_katesymbolviewer.h @@ -40,7 +40,7 @@ #include #include #include -#include +#include class KatePluginSymbolViewerView : public TQObject, public KXMLGUIClient diff --git a/kate/filelistloader/katefll_initplugin.cpp b/kate/filelistloader/katefll_initplugin.cpp index ccc8afa..b0530c5 100644 --- a/kate/filelistloader/katefll_initplugin.cpp +++ b/kate/filelistloader/katefll_initplugin.cpp @@ -26,7 +26,7 @@ #include #include #include -#include +#include K_EXPORT_COMPONENT_FACTORY( katefll_initplugin, KGenericFactory( "katefll_loader" ) ) diff --git a/kate/filelistloader/katefll_plugin.cpp b/kate/filelistloader/katefll_plugin.cpp index deec021..6852485 100644 --- a/kate/filelistloader/katefll_plugin.cpp +++ b/kate/filelistloader/katefll_plugin.cpp @@ -26,8 +26,8 @@ #include #include #include -#include -#include +#include +#include #include #include diff --git a/kate/filetemplates/plugin/filetemplates.cpp b/kate/filetemplates/plugin/filetemplates.cpp index 0be3393..5488f48 100644 --- a/kate/filetemplates/plugin/filetemplates.cpp +++ b/kate/filetemplates/plugin/filetemplates.cpp @@ -27,14 +27,14 @@ #include #include #include -#include +#include #include #include -#include +#include #include #include #include -#include +#include #include #include #include diff --git a/kate/insertcommand/plugin_kateinsertcommand.cpp b/kate/insertcommand/plugin_kateinsertcommand.cpp index 0d473a4..2d0587f 100644 --- a/kate/insertcommand/plugin_kateinsertcommand.cpp +++ b/kate/insertcommand/plugin_kateinsertcommand.cpp @@ -32,9 +32,9 @@ #include #include -#include +#include #include -#include +#include #include #include #include diff --git a/kate/make/plugin_katemake.cpp b/kate/make/plugin_katemake.cpp index f7f69ce..6e573a1 100644 --- a/kate/make/plugin_katemake.cpp +++ b/kate/make/plugin_katemake.cpp @@ -51,7 +51,7 @@ #include #include #include -#include +#include #include diff --git a/kate/openheader/plugin_kateopenheader.cpp b/kate/openheader/plugin_kateopenheader.cpp index ba5dfb7..f6ede42 100644 --- a/kate/openheader/plugin_kateopenheader.cpp +++ b/kate/openheader/plugin_kateopenheader.cpp @@ -24,7 +24,7 @@ #include #include #include -#include +#include class PluginView : public KXMLGUIClient { diff --git a/kate/snippets/plugin_katesnippets.h b/kate/snippets/plugin_katesnippets.h index d50a851..cf04e06 100644 --- a/kate/snippets/plugin_katesnippets.h +++ b/kate/snippets/plugin_katesnippets.h @@ -19,7 +19,7 @@ #include #include -#include +#include #include #include #include diff --git a/kate/tabbarextension/plugin_katetabbarextension.cpp b/kate/tabbarextension/plugin_katetabbarextension.cpp index 56f7b61..3c9e5f3 100644 --- a/kate/tabbarextension/plugin_katetabbarextension.cpp +++ b/kate/tabbarextension/plugin_katetabbarextension.cpp @@ -33,9 +33,9 @@ #include #include -#include +#include #include -#include +#include #include #include diff --git a/kate/xmltools/plugin_katexmltools.cpp b/kate/xmltools/plugin_katexmltools.cpp index 90108e1..05ff8ae 100644 --- a/kate/xmltools/plugin_katexmltools.cpp +++ b/kate/xmltools/plugin_katexmltools.cpp @@ -94,10 +94,10 @@ TODO: #include #include #include -#include +#include #include #include -#include +#include #include #include #include diff --git a/kfile-plugins/Makefile.am b/kfile-plugins/Makefile.am deleted file mode 100644 index 23348fb..0000000 --- a/kfile-plugins/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -if include_kfileplugin_cert_SUBDIR -CERT_SUBDIR=cert -endif - -SUBDIRS=txt html desktop folder lnk $(CERT_SUBDIR) mhtml diff --git a/kfile-plugins/RETURNED_ITEMS b/kfile-plugins/RETURNED_ITEMS deleted file mode 100644 index 245dbff..0000000 --- a/kfile-plugins/RETURNED_ITEMS +++ /dev/null @@ -1,28 +0,0 @@ -If you make a new plugin, please add the list of returned items to this list. - -kfile_txt -========= -int Characters -int Words -int Lines -QString Format (Unix/DOS/Macintosh) - -kfile_folder -============ -int items -QString size (as a string to display bytes, kB, MB, etc) - -kfile_lnk -============ -int Size of target -QString Location -QString Points to -QString Description - -kfile_mhtml -=========== -QString Sender -QString Recipient -QString CopyTo (The CC: field) -QString Subject -QString Date diff --git a/kfile-plugins/cert/Makefile.am b/kfile-plugins/cert/Makefile.am deleted file mode 100644 index 0c8c1be..0000000 --- a/kfile-plugins/cert/Makefile.am +++ /dev/null @@ -1,22 +0,0 @@ -## Makefile.am for cert file meta info plugin - -# set the include path for X, qt and KDE -INCLUDES = $(all_includes) - -# these are the headers for your project -noinst_HEADERS = kfile_cert.h - -kde_module_LTLIBRARIES = kfile_cert.la - -kfile_cert_la_SOURCES = kfile_cert.cpp -kfile_cert_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) -kfile_cert_la_LIBADD = $(LIB_KSYCOCA) - -# let automoc handle all of the meta source files (moc) -METASOURCES = AUTO - -messages: rc.cpp - $(XGETTEXT) kfile_cert.cpp -o $(podir)/kfile_cert.pot - -services_DATA = kfile_cert.desktop -servicesdir = $(kde_servicesdir) diff --git a/kfile-plugins/cert/configure.in.in b/kfile-plugins/cert/configure.in.in deleted file mode 100644 index 29f0193..0000000 --- a/kfile-plugins/cert/configure.in.in +++ /dev/null @@ -1,2 +0,0 @@ -KDE_CHECK_SSL -AM_CONDITIONAL(include_kfileplugin_cert_SUBDIR, test "$have_ssl" = yes) diff --git a/kfile-plugins/cert/kfile_cert.cpp b/kfile-plugins/cert/kfile_cert.cpp deleted file mode 100644 index 8a711ba..0000000 --- a/kfile-plugins/cert/kfile_cert.cpp +++ /dev/null @@ -1,161 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2004 by Leonid Zeitlin * - * lz@europe.com * - * * - * 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 "kfile_cert.h" - -#include -#include -#include -#include -//#include -//#include -//#include - -#include -#include -#include -//#include -//#include - -typedef KGenericFactory CertFactory; - -K_EXPORT_COMPONENT_FACTORY(kfile_cert, CertFactory("kfile-cert")) - -CertPlugin::CertPlugin(TQObject *parent, const char *name, const TQStringList &args) - : KFilePlugin(parent, name, args) -{ - //add the mimetype here - example: - //KFileMimeTypeInfo* info = addMimeTypeInfo( "text/html" ); - KFileMimeTypeInfo* info = addMimeTypeInfo( "application/x-x509-ca-cert" ); - - // our new group - KFileMimeTypeInfo::GroupInfo* group = 0L; - KFileMimeTypeInfo::ItemInfo* item; - - group = addGroupInfo(info, "certInfo", i18n("Certificate Information")); - item = addItemInfo(group, "ValidFrom", i18n("Valid From"), TQVariant::DateTime); - item = addItemInfo(group, "ValidUntil", i18n("Valid Until"), TQVariant::DateTime); - item = addItemInfo(group, "State", i18n("State"), TQVariant::String); - item = addItemInfo(group, "SerialNo", i18n("Serial Number"), TQVariant::String); - - group = addGroupInfo(info, "certSubjectInfo", i18n("Subject")); - item = addItemInfo(group, "O", i18n("Organization"), TQVariant::String); - item = addItemInfo(group, "OU", i18n("Organizational Unit"), TQVariant::String); - item = addItemInfo(group, "L", i18n("Locality"), TQVariant::String); - item = addItemInfo(group, "C", i18n("Country"), TQVariant::String); - item = addItemInfo(group, "CN", i18n("Common Name"), TQVariant::String); - item = addItemInfo(group, "E", i18n("Email"), TQVariant::String); - - group = addGroupInfo(info, "certIssuerInfo", i18n("Issuer")); - item = addItemInfo(group, "O", i18n("Organization"), TQVariant::String); - item = addItemInfo(group, "OU", i18n("Organizational Unit"), TQVariant::String); - item = addItemInfo(group, "L", i18n("Locality"), TQVariant::String); - item = addItemInfo(group, "C", i18n("Country"), TQVariant::String); - item = addItemInfo(group, "CN", i18n("Common Name"), TQVariant::String); - item = addItemInfo(group, "E", i18n("Email"), TQVariant::String); - - //setUnit(item, KFileMimeTypeInfo::KiloBytes); - - // strings are possible, too: - //addItemInfo(group, "Text", i18n("Document Type"), TQVariant::String); -} - -void CertPlugin::appendDNItems(KFileMetaInfoGroup &group, const TQString &DN) -{ - KSSLX509Map map(DN); - TQString value; - //TQString dbg; - TQStringList keys = group.supportedKeys(); - TQStringList::ConstIterator end = keys.end(); - for (TQStringList::ConstIterator it = keys.begin(); it != end; ++it) { - value = map.getValue(*it); - //dbg += *it + " = " + value + "; "; - if (!value.isNull()) appendItem(group, *it, value); - //appendItem(group, "CN", dbg); - } -} - -static KSSLCertificate *readCertFromFile(const TQString &path) -{ - KSSLCertificate *ret = NULL; - - TQFile file(path); - if (!file.open(IO_ReadOnly)) return NULL; - TQByteArray file_data = file.readAll(); - file.close(); - - TQCString file_string = TQCString(file_data.data(), file_data.size()); - // try as is: - ret = KSSLCertificate::fromString(file_string); - if (ret) return ret; - // didn't work. Let's see if begin/end lines are there: - KOSSL::self()->ERR_clear_error(); - const char *begin_line = "-----BEGIN CERTIFICATE-----\n"; - const char *end_line = "\n-----END CERTIFICATE-----"; - int begin_pos = file_string.find(begin_line); - if (begin_pos >= 0) { - begin_pos += strlen(begin_line); - int end_pos = file_string.find(end_line, begin_pos); - if (end_pos >= 0) { - // read the data between begin and end lines - TQCString body = file_string.mid(begin_pos, end_pos - begin_pos); - ret = KSSLCertificate::fromString(body); - return ret; // even if it's NULL, we can't help it - } - } - // still didn't work. Assume the file was in DER (binary) encoding - unsigned char *p = (unsigned char*) file_data.data(); - KOSSL::self()->ERR_clear_error(); - X509 *x = KOSSL::self()->d2i_X509(NULL, &p, file_data.size()); - if (x) { - ret = KSSLCertificate::fromX509(x); - KOSSL::self()->X509_free(x); - return ret; - } - else return NULL; -} - -bool CertPlugin::readInfo(KFileMetaInfo& info, uint /*what*/) -{ - KSSLCertificate *cert = readCertFromFile(info.path()); - if (cert) { - KFileMetaInfoGroup group = appendGroup(info, "certInfo"); - appendItem(group, "ValidFrom", cert->getQDTNotBefore()); - appendItem(group, "ValidUntil", cert->getQDTNotAfter()); - appendItem(group, "State", KSSLCertificate::verifyText(cert->validate())); - appendItem(group, "SerialNo", cert->getSerialNumber()); - - group = appendGroup(info, "certSubjectInfo"); - appendDNItems(group, cert->getSubject()); - - group = appendGroup(info, "certIssuerInfo"); - appendDNItems(group, cert->getIssuer()); - - delete cert; - return true; - } - else { - KOSSL::self()->ERR_clear_error(); // don't leave errors behind - return false; - } -} - -#include "kfile_cert.moc" diff --git a/kfile-plugins/cert/kfile_cert.desktop b/kfile-plugins/cert/kfile_cert.desktop deleted file mode 100644 index b2cd4c7..0000000 --- a/kfile-plugins/cert/kfile_cert.desktop +++ /dev/null @@ -1,60 +0,0 @@ -[Desktop Entry] -Type=Service -Name=Certificate Info -Name[bg]=Информация за удостоверение -Name[br]=Titouroù diwar-benn an testeni -Name[ca]=Informació del certificat -Name[cs]=Informace o certifikátu -Name[da]=Information om certifikat -Name[de]=Information zum Zertifikat -Name[el]=Πληροφορίες πιστοποιητικού -Name[eo]=Atesta informo -Name[es]=Información del certificado -Name[et]=Sertifikaadi info -Name[eu]=Ziurtagiriaren informazioa -Name[fa]=اطلاعات گواهی‌نامه -Name[fi]=Sertifikaatin tiedot -Name[fr]=Informations sur le certificat -Name[fy]=Sertifikaatynformaasje -Name[ga]=Eolas faoin Teastas -Name[gl]=Informacións do Certificado -Name[hi]=प्रमाणपत्र जानकारी -Name[hr]=Podaci potvrde -Name[hu]=Tanúsítvány-jellemzők -Name[is]=Upplýsingar um skírteini -Name[it]=Informazioni del certificato -Name[ja]=認証情報 -Name[ka]=სერტიფიკატის ინფორმაცია -Name[kk]=Куәлік мәліметтері -Name[km]=ព័ត៌មាន​វិញ្ញាបនបត្រ -Name[lt]=Sertifikato informacija -Name[mk]=Информации за сертификати -Name[ms]=Maklumat Sijil -Name[nb]=Sertifikatinformasjon -Name[nds]=Zertifikaat-Informatschonen -Name[ne]=प्रमाणपत्र सूचना -Name[nl]=Certificaatinformatie -Name[nn]=Informasjon om sertifikat -Name[pa]=ਸਰਟੀਫਿਕੇਟ ਜਾਣਕਾਰੀ -Name[pl]=Informacja o certyfikacie -Name[pt]=Informações do Certificado -Name[pt_BR]=Informações sobre Certificado -Name[ru]=Информация о сертификате -Name[sk]=Informácie o certifikáte -Name[sl]=Informacija o certifikatu -Name[sr]=Информације о сертификату -Name[sr@Latn]=Informacije o sertifikatu -Name[sv]=Information om certifikat -Name[ta]=சான்றிதழ் தகவல் -Name[tr]=Sertifika Bilgisi -Name[uk]=Інформація про сертифікат -Name[uz]=Sertifikat haqida maʼlumot -Name[uz@cyrillic]=Сертификат ҳақида маълумот -Name[vi]=Thông tin chứng nhận -Name[zh_CN]=证书信息 -Name[zh_TW]=憑證資訊 -ServiceTypes=KFilePlugin -X-TDE-Library=kfile_cert -MimeType=application/x-x509-ca-cert -PreferredGroups=certInfo,certSubjectInfo -PreferredItems=State,CN,O,OU,L,C diff --git a/kfile-plugins/cert/kfile_cert.h b/kfile-plugins/cert/kfile_cert.h deleted file mode 100644 index 2a76c5e..0000000 --- a/kfile-plugins/cert/kfile_cert.h +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2004 by Leonid Zeitlin * - * lz@europe.com * - * * - * 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 __KFILE_CERT_H__ -#define __KFILE_CERT_H__ - -/** - * Note: For further information look into <$TDEDIR/include/kfilemetainfo.h> - */ -#include - -class TQStringList; -class TQString; - -class CertPlugin: public KFilePlugin { - Q_OBJECT - -private: - void appendDNItems(KFileMetaInfoGroup &group, const TQString &DN); -public: - CertPlugin(TQObject *parent, const char *name, const TQStringList& args); - virtual bool readInfo(KFileMetaInfo& info, uint what); -}; - -#endif // __KFILE_CERT_H__ - diff --git a/kfile-plugins/desktop/Makefile.am b/kfile-plugins/desktop/Makefile.am deleted file mode 100644 index 4fdfa7f..0000000 --- a/kfile-plugins/desktop/Makefile.am +++ /dev/null @@ -1,22 +0,0 @@ -## Makefile.am for .desktop file meta info plugin - -# set the include path for X, qt and KDE -INCLUDES = $(all_includes) - -# these are the headers for your project -noinst_HEADERS = kfile_desktop.h - -kde_module_LTLIBRARIES = kfile_desktop.la - -kfile_desktop_la_SOURCES = kfile_desktop.cpp -kfile_desktop_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) -kfile_desktop_la_LIBADD = $(LIB_KIO) - -# let automoc handle all of the meta source files (moc) -METASOURCES = AUTO - -messages: - $(XGETTEXT) *.cpp -o $(podir)/kfile_desktop.pot - -services_DATA = kfile_desktop.desktop -servicesdir = $(kde_servicesdir) diff --git a/kfile-plugins/desktop/kfile_desktop.cpp b/kfile-plugins/desktop/kfile_desktop.cpp deleted file mode 100644 index 5c56d9e..0000000 --- a/kfile-plugins/desktop/kfile_desktop.cpp +++ /dev/null @@ -1,128 +0,0 @@ -/* This file is part of the KDE project - * Copyright (C) 2002 Rolf Magnus - * - * 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 version 2. - * - * 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; see the file COPYING. If not, write to - * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - * - */ - -#include "kfile_desktop.h" - -#include -#include -#include -#include -#include -#include - -typedef KGenericFactory DotDesktopFactory; - -K_EXPORT_COMPONENT_FACTORY(kfile_desktop, DotDesktopFactory("kfile_desktop")) - -KDotDesktopPlugin::KDotDesktopPlugin(TQObject *parent, const char *name, - const TQStringList &preferredItems) - : KFilePlugin(parent, name, preferredItems) -{ - kdDebug(7034) << ".desktop plugin\n"; - - KFileMimeTypeInfo* info; - KFileMimeTypeInfo::GroupInfo* group; - KFileMimeTypeInfo::ItemInfo* item; - - info = addMimeTypeInfo("application/x-desktop"); - group = addGroupInfo(info, "General", i18n("General")); - - item = addItemInfo(group, "Name", i18n("Name"), TQVariant::String); - setHint(item, KFileMimeTypeInfo::Name); - item = addItemInfo(group, "Comment", i18n("Comment"), TQVariant::String); - setHint(item, KFileMimeTypeInfo::Description); - - addItemInfo(group, "Type", i18n("Type"), TQVariant::String); - - addItemInfo(group, "Device", i18n("Device"), TQVariant::String); - addItemInfo(group, "Mount Point", i18n("Mount Point"), TQVariant::String); - addItemInfo(group, "File System", i18n("File System"), TQVariant::String); - addItemInfo(group, "Writable", i18n("Writable"), TQVariant::Bool); - - addItemInfo(group, "File Type", i18n("File Type"), TQVariant::String); - addItemInfo(group, "Service Type", i18n("Service Type"), TQVariant::String); - addItemInfo(group, "Preferred Items", i18n("Preferred Items"), TQVariant::String); - addItemInfo(group, "Link To", i18n("Link To"), TQVariant::String); -} - -bool KDotDesktopPlugin::readInfo( KFileMetaInfo& info, uint ) -{ - if ( info.path().isEmpty() ) // remote file - return false; - - KDesktopFile file(info.path(), true); - - TQString s; - - KFileMetaInfoGroup group = appendGroup(info, "General"); - - s = file.readName(); - if (!s.isEmpty()) appendItem(group, "Name", s); - - s = file.readComment(); - if (!s.isEmpty()) appendItem(group, "Comment", s); - - TQString type = file.readType(); - if (type == "FSDevice") - { - appendItem(group, "Type", i18n("Device")); - - s = file.readDevice(); - if (!s.isEmpty()) appendItem(group, "Device", s); - - s = file.readEntry("MountPoint"); - if (!s.isEmpty()) appendItem(group, "Mount Point", s); - - s = i18n(file.readEntry("FSType").local8Bit()); - if (!s.isEmpty()) appendItem(group, "File System", s); - - appendItem(group, "Writable", - TQVariant(!file.readBoolEntry("ReadOnly", true), 42)); - - } - else if (type == "Service") - { - appendItem(group, "Type", i18n("Service")); - - s = file.readEntry("MimeType"); - if (!s.isEmpty()) - { - KMimeType::Ptr mt = KMimeType::mimeType(s); - appendItem(group, "File Type", mt->comment()); - } - - TQString sType = file.readEntry("ServiceTypes"); - appendItem(group, "Service Type", sType); - - if (sType == "KFilePlugin") - { - TQStringList preferred = file.readListEntry("PreferredItems"); - appendItem(group, "Preferred Items", preferred); - } - } - else if (type == "Link") - { - TQString url = file.readPathEntry("URL"); - appendItem(group, "Link To", url); - } - - return true; -} - -#include "kfile_desktop.moc" diff --git a/kfile-plugins/desktop/kfile_desktop.desktop b/kfile-plugins/desktop/kfile_desktop.desktop deleted file mode 100644 index f2dba8c..0000000 --- a/kfile-plugins/desktop/kfile_desktop.desktop +++ /dev/null @@ -1,68 +0,0 @@ -[Desktop Entry] -Type=Service -Name=Desktop Entry Info -Name[af]=Werkskerm Inskrywing Inligting -Name[ar]=معلومات مدخل سطح المكتب -Name[az]=Masa Üstü Girişi Mə'lumatı -Name[bg]=Информация за файл Desktop -Name[br]=Titouroù diwar-benn ar vouetadur burev -Name[bs]=Informacije o desktop stavci -Name[ca]=Informació de l'entrada a l'escriptori -Name[cs]=Info o položce pracovní plochy -Name[cy]=Gwybodaeth Cofnod Penbwrdd -Name[da]=Information om desktopindgang -Name[de]=Information zum Arbeitsflächeneintrag -Name[el]=Πληροφορίες καταχώρησης επιφάνειας εργασίας -Name[eo]=Tabula ero informo -Name[es]=Información de la entrada del escritorio -Name[et]=Töölaua kirje info -Name[eu]=Mahaigainaren sarreraren informazioa -Name[fa]=اطلاعات مدخل رومیزی -Name[fi]=Työpöytätietueen tiedot -Name[fo]=Upplýsingar um inngang á skriviborði -Name[fr]=Informations sur l'entrée du bureau -Name[fy]=Buroblêdyngong-ynformaasje -Name[gl]=Información do Campo Desktop -Name[he]=מידע רשומת שולחן עבודה -Name[hi]=डेस्कटॉप एन्ट्री जानकारी -Name[hr]=Podaci o stavki radne površine -Name[hu]=Információ a munkaasztali bejegyzésekről -Name[is]=Upplýsingar un skjáborðsfærslu -Name[it]=Informazioni sulle voci Desktop -Name[ja]=デスクトップエントリ情報 -Name[ka]=სამუშაო მაგიდის ჩანაწერის ინფორმაცია -Name[kk]=.desktop жазуының мәліметі -Name[km]=ព័ត៌មាន​ធាតុ​ផ្ទៃ​តុ -Name[lt]=Darbastalio įrašo informacija -Name[mk]=Информации за елемент од работната околина -Name[ms]=Maklumat Entri Desktop -Name[nb]=Informasjon om skrivebordsoppføring -Name[nds]=Schriefdischindrag-Informatschonen -Name[ne]=डेस्कटप प्रविष्टि सूचना -Name[nl]=Bureaubladingang-informatie -Name[nn]=Informasjon om skrivebordsoppføring -Name[nso]=Tshedimoso Tsenelo ya Desktop -Name[pa]=ਵੇਹੜਾ ਇੰਦਰਾਜ਼ ਜਾਣਕਾਰੀ -Name[pl]=Informacja o plikach Desktop -Name[pt]=Informação do Campo do 'Desktop' -Name[pt_BR]=Informações sobre a entrada desktop -Name[ro]=Informaţii înregistrare ecran -Name[ru]=Информация об элементе .desktop -Name[sk]=Informácie o položke pracovnej plochy -Name[sl]=Informacije o vnosu namizja -Name[sr]=Информације о уносу на радној површини -Name[sr@Latn]=Informacije o unosu na radnoj površini -Name[sv]=Information om skrivbordsfil -Name[ta]=மேல்மேசை உள்ளிடு தகவல் -Name[tg]=Ахборот дар бораи ҷузъи мизи корӣ -Name[th]=ข้อมูลรายการพื้นที่ทำงาน -Name[tr]=Masaüstü Girdi Bilgisi -Name[uk]=Інформація про елемент стільниці -Name[vi]=Thông tin mục nhập môi trường -Name[xh]=Ungeniso Lolwazi lwe Desktop -Name[zh_CN]=桌面项目信息 -Name[zh_TW]=桌面項目資訊 -ServiceTypes=KFilePlugin -X-TDE-Library=kfile_desktop -MimeType=application/x-desktop -PreferredItems=Name,Comment,Type,Service Type diff --git a/kfile-plugins/desktop/kfile_desktop.h b/kfile-plugins/desktop/kfile_desktop.h deleted file mode 100644 index 57db52b..0000000 --- a/kfile-plugins/desktop/kfile_desktop.h +++ /dev/null @@ -1,40 +0,0 @@ -/* This file is part of the KDE project - * Copyright (C) 2002 Rolf Magnus - * - * 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 version 2. - * - * 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; see the file COPYING. If not, write to - * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - * - */ - -#ifndef __KFILE_DESKTOP_H__ -#define __KFILE_DESKTOP_H__ - -#include -#include - -class TQStringList; - -class KDotDesktopPlugin: public KFilePlugin -{ - Q_OBJECT - - -public: - KDotDesktopPlugin( TQObject *parent, const char *name, - const TQStringList& args ); - - virtual bool readInfo ( KFileMetaInfo& info, uint what ); -}; - -#endif diff --git a/kfile-plugins/folder/Makefile.am b/kfile-plugins/folder/Makefile.am deleted file mode 100644 index 8c689dc..0000000 --- a/kfile-plugins/folder/Makefile.am +++ /dev/null @@ -1,21 +0,0 @@ -## Makefile.am for folder file meta info plugin - -INCLUDES = $(all_includes) - -# these are the headers for your project -noinst_HEADERS = kfile_folder.h - -kde_module_LTLIBRARIES = kfile_folder.la - -kfile_folder_la_SOURCES = kfile_folder.cpp -kfile_folder_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) -kfile_folder_la_LIBADD = $(LIB_KIO) - -# let automoc handle all of the meta source files (moc) -METASOURCES = AUTO - -services_DATA = kfile_folder.desktop -servicesdir = $(kde_servicesdir) - -messages: - $(XGETTEXT) *.cpp -o $(podir)/kfile_folder.pot diff --git a/kfile-plugins/folder/kfile_folder.cpp b/kfile-plugins/folder/kfile_folder.cpp deleted file mode 100644 index f4db1f3..0000000 --- a/kfile-plugins/folder/kfile_folder.cpp +++ /dev/null @@ -1,86 +0,0 @@ -/* This file is part of the KDE project - * Copyright (C) 2002 Simon MacMullen - * - * 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 version 2. - * - * 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; see the file COPYING. If not, write to - * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - * - */ - -#include -#include "kfile_folder.h" - -#include -#include - -#include -#include - -typedef KGenericFactory KFolderFactory; - -K_EXPORT_COMPONENT_FACTORY(kfile_folder, KFolderFactory( "kfile_folder" )) - -KFolderPlugin::KFolderPlugin(TQObject *parent, const char *name, - const TQStringList &args) - - : KFilePlugin(parent, name, args) -{ - KFileMimeTypeInfo* info = addMimeTypeInfo( "inode/directory" ); - - KFileMimeTypeInfo::GroupInfo* group = 0L; - - group = addGroupInfo(info, "FolderInfo", i18n("Folder Information")); - - KFileMimeTypeInfo::ItemInfo* item; - - item = addItemInfo(group, "Items", i18n("Items"), TQVariant::Int); - item = addItemInfo(group, "Size", i18n("Size"), TQVariant::Int); - setUnit(item, KFileMimeTypeInfo::Bytes); -} - -bool KFolderPlugin::readInfo( KFileMetaInfo& info, uint /*what*/) -{ - KFileMetaInfoGroup group = appendGroup(info, "FolderInfo"); - - if (info.path().isEmpty()) - return false; - - TQDir dir; - if ( !dir.cd(info.path()) ) - return false; - - const TQPtrList *fileList = dir.entryInfoList(); - if (!fileList) - return false; - - TQPtrListIterator list = TQPtrListIterator(*fileList); - - TQFileInfo* file; - int items = 0; - TDEIO::filesize_t bytes = 0; - - while ( (file = list.current()) != 0 ) { - ++list; - if (!file->fileName().startsWith(".")) { - items++; - bytes += file->size(); - } - } - - appendItem(group, "Items", items); - appendItem(group, "Size", bytes); - - return true; -} - -#include "kfile_folder.moc" diff --git a/kfile-plugins/folder/kfile_folder.desktop b/kfile-plugins/folder/kfile_folder.desktop deleted file mode 100644 index 4db8401..0000000 --- a/kfile-plugins/folder/kfile_folder.desktop +++ /dev/null @@ -1,70 +0,0 @@ -[Desktop Entry] -Type=Service -Name=Folder Info -Name[af]=Kabinet Inligting -Name[ar]=معلومات المجلد -Name[az]=Qovluq Mə'lumatı -Name[bg]=Информация за директория -Name[br]=Titouroù diwar-benn ar renkell -Name[bs]=Informacije o direktoriju -Name[ca]=Info. de la carpeta -Name[cs]=Info o adresáři -Name[cy]=Gwybodaeth Plygell -Name[da]=Mappeinformation -Name[de]=Ordnerinformation -Name[el]=Πληροφορίες φακέλου -Name[eo]=Dosieruja informo -Name[es]=Información de carpeta -Name[et]=Kataloogi info -Name[eu]=Karpetaren informazioa -Name[fa]=اطلاعات پوشه -Name[fi]=Kansion tiedot -Name[fo]=Upplýsingar um inngangar á skriviborði -Name[fr]=Informations sur le dossier -Name[fy]=Mappenynformaasje -Name[gl]=Información do Cartafol -Name[he]=מידע תיקייה -Name[hi]=फ़ोल्डर जानकारी -Name[hr]=Podaci mape -Name[hu]=Mappajellemzők -Name[is]=Möppuupplýsingar -Name[it]=Informazioni su directory -Name[ja]=フォルダ情報 -Name[ka]=საქაღალდის ინფორმაცია -Name[kk]=Қапшық мәліметі -Name[km]=ព័ត៌មាន​ថត -Name[lt]=Aplanko informacija -Name[mk]=Информации за папка -Name[ms]=Maklumat Folder -Name[nb]=Mappeinformasjon -Name[nds]=Orner-Informatschonen -Name[ne]=फोल्डर सूचना -Name[nl]=Mappeninformatie -Name[nn]=Kataloginformasjon -Name[pa]=ਫੋਲਡਰ ਜਾਣਕਾਰੀ -Name[pl]=Informacja o katalogach -Name[pt]=Informações de Pastas -Name[pt_BR]=Informações sobre a Pasta -Name[ro]=Informaţii folder -Name[ru]=Информация о папке -Name[sk]=Informácie o priečinku -Name[sl]=Informacije o mapi -Name[sr]=Информације о фасцикли -Name[sr@Latn]=Informacije o fascikli -Name[sv]=Kataloginformation -Name[ta]=அடைவுத்தகவல் -Name[tg]=Ахборот дар бораи каталог -Name[th]=ข้อมูลโฟลเดอร์ -Name[tr]=Dizin Bilgisi -Name[uk]=Інформація про теку -Name[uz]=Jild haqida maʼlumot -Name[uz@cyrillic]=Жилд ҳақида маълумот -Name[vi]=Thông tin thư mục -Name[xh]=Ulwazi lwencwadi enencukhacha -Name[zh_CN]=文件夹信息 -Name[zh_TW]=資料夾資訊 -ServiceTypes=KFilePlugin -X-TDE-Library=kfile_folder -MimeType=inode/directory -PreferredGroups=FolderInfo -PreferredItems=Items,Size diff --git a/kfile-plugins/folder/kfile_folder.h b/kfile-plugins/folder/kfile_folder.h deleted file mode 100644 index e3cd2e6..0000000 --- a/kfile-plugins/folder/kfile_folder.h +++ /dev/null @@ -1,38 +0,0 @@ -/* This file is part of the KDE project - * Copyright (C) 2002 Simon MacMullen - * - * 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 version 2. - * - * 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; see the file COPYING. If not, write to - * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - * - */ - -#ifndef __KFILE_KFOLDER_H__ -#define __KFILE_KFOLDER_H__ - -#include - -class TQStringList; - -class KFolderPlugin: public KFilePlugin -{ - Q_OBJECT - - -public: - KFolderPlugin( TQObject *parent, const char *name, const TQStringList& args ); - - virtual bool readInfo( KFileMetaInfo& info, uint what); -}; - -#endif diff --git a/kfile-plugins/html/Makefile.am b/kfile-plugins/html/Makefile.am deleted file mode 100644 index 610b74f..0000000 --- a/kfile-plugins/html/Makefile.am +++ /dev/null @@ -1,22 +0,0 @@ -## Makefile.am for html file meta info plugin - -# set the include path for X, qt and KDE -INCLUDES = $(all_includes) - -# these are the headers for your project -noinst_HEADERS = kfile_html.h - -kde_module_LTLIBRARIES = kfile_html.la - -kfile_html_la_SOURCES = kfile_html.cpp -kfile_html_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) -kfile_html_la_LIBADD = $(LIB_KSYCOCA) - -# let automoc handle all of the meta source files (moc) -METASOURCES = AUTO - -messages: rc.cpp - $(XGETTEXT) kfile_html.cpp -o $(podir)/kfile_html.pot - -services_DATA = kfile_html.desktop -servicesdir = $(kde_servicesdir) diff --git a/kfile-plugins/html/kfile_html.cpp b/kfile-plugins/html/kfile_html.cpp deleted file mode 100644 index 7ed2859..0000000 --- a/kfile-plugins/html/kfile_html.cpp +++ /dev/null @@ -1,158 +0,0 @@ -/* This file is part of the KDE project - * Copyright (C) 2001, 2002 Rolf Magnus - * - * 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 version 2. - * - * 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; see the file COPYING. If not, write to - * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - * - * $Id$ - */ - -#include "kfile_html.h" -#include "kfile_html.moc" -#include -#include -#include -#include -#include -#include -#include -#include -#include - -typedef KGenericFactory HtmlFactory; - -K_EXPORT_COMPONENT_FACTORY( kfile_html, HtmlFactory( "kfile_html" ) ) - -KHtmlPlugin::KHtmlPlugin( TQObject *parent, const char *name, - const TQStringList &args ) - : KFilePlugin( parent, name, args ) -{ - kdDebug(7034) << "html plugin\n"; - - KFileMimeTypeInfo* info = addMimeTypeInfo("text/html"); - - KFileMimeTypeInfo::GroupInfo* group; - KFileMimeTypeInfo::ItemInfo* item; - - group = addGroupInfo(info, "General", i18n("General")); - addItemInfo(group, "Doctype", i18n("Document Type"), TQVariant::String); - addItemInfo(group, "Javascript", i18n("JavaScript"), TQVariant::Bool); - item = addItemInfo(group, "Title", i18n("Title"), TQVariant::String); - setHint(item, KFileMimeTypeInfo::Name); - - group = addGroupInfo(info, "Metatags", i18n("Meta Tags")); - addVariableInfo(group, TQVariant::String, 0); -} - - -bool KHtmlPlugin::readInfo( KFileMetaInfo& info, uint ) -{ - if ( info.path().isEmpty() ) // remote file - return false; - - TQFile f(info.path()); - if (!f.open(IO_ReadOnly)) - return false; - - // we're only interested in the header, so just read until before - // or until if the author forgot it - // In this case, it's better to limit the size of the buffer to something - // sensible. Think a 0-filled 3GB file with an .html extension. - int maxBufSize = TQMIN(f.size(), 32768); - TQByteArray data(maxBufSize + 1); - f.readBlock(data.data(), maxBufSize); - data[maxBufSize]='\0'; - - TQString s(data); - - int start=0, last=0; - TQRegExp exp; - exp.setCaseSensitive(false); - exp.setMinimal(true); - - KFileMetaInfoGroup group = appendGroup(info, "General"); - - exp.setPattern("\\s*<\\s*!doctype\\s*([^>]*)\\s*>"); - if (exp.search(s, last) != -1) - { - kdDebug(7034) << "DocType: " << TQString(exp.capturedTexts().join("-")) << endl; - appendItem(group, "Doctype", exp.cap(1)); - last += exp.matchedLength(); - } - - TQString title; - exp.setPattern("<\\s*title\\s*>\\s*(.*)\\s*<\\s*/\\s*title\\s*>"); - if (exp.search(s, last) != -1) - { - title = exp.cap(1); - last += exp.matchedLength(); - } - - KFileMetaInfoGroup metatags = appendGroup(info, "Metatags"); - - TQString meta, name, content; - exp.setPattern("<\\s*meta\\s*([^>]*)\\s*>"); - TQRegExp rxName("(?:name|http-equiv)\\s*=\\s*\"([^\"]+)\"", false); - TQRegExp rxContent("content\\s*=\\s*\"([^\"]+)\"", false); - TQRegExp rxCharset("charset\\s*=\\s*(.*)", false); - TQTextCodec *codec = 0; - - // find the meta tags - last = 0; - while (1) - { - if ((start=exp.search(s, last)) == -1) - break; - meta = exp.cap(1); - last = start+exp.matchedLength(); - - kdDebug(7034) << "Found Meta: " << meta << endl; - - if (rxName.search(meta) == -1) - continue; - name = rxName.cap(1); - - if (rxContent.search(meta) == -1) - continue; - content = rxContent.cap(1); - - appendItem(metatags, name, content.left(50)); - - // check if it has a charset defined - if ( rxCharset.search(content) != -1 ) - { - kdDebug(7034) << "CodecForName : " << rxCharset.cap(1) << endl; - codec = TQTextCodec::codecForName(rxCharset.cap(1).ascii()); - } - } - - if ( ! title.isEmpty() ) - { - if ( codec ) - { - title = codec->toUnicode(title.ascii()); - kdDebug(7034) << "Codec : " << codec->name() << endl; - } - - appendItem(group, "Title", title); - } - - // find out if it contains javascript - exp.setPattern("