Commit graph

15 commits

Author SHA1 Message Date
Ivailo Monev
010a2f9054 kio: check only the major poppler version in poppler metadata plugin
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-17 04:19:08 +02:00
Ivailo Monev
998d57874d kio: use QString instead of KUrl as argument for KFileMetaDataPlugin::metaData()
for performance reasons (to not convert KUrl to QString from each plugin)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-21 00:34:54 +03:00
Ivailo Monev
410d0cdd30 kio: handle compressed PDF documents in kfilemetadata_poppler plugin
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-01 04:08:36 +00:00
Ivailo Monev
58145187d6 kio: return empty QString from getTime() function for invalid poppler time
QDateTime::fromTime_t() should probably check for such

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-01 03:46:52 +00:00
Ivailo Monev
1a45508306 kdecore: reimplement KLocale
by using QLocale in KLocale and separating the date, time and numbers
conversion from translation KLocale actually gets extended locale
support from QLocale (which uses CLDR data v43 currently). translation
remains unaffected. for comparison here is the result of two function
calls the result of which should explain the whole change:
KLocale::allLanguagesList().size() = 669
KLocale::installedLanguages().size() = 68

the first number is locales Katie supports, the second being the
number of languages Katana is translated into

KSwitchLanguageDialog needs a rewrite but that is on the TODO

also copyrighting KCatalog to me because I rewrote it, for reference:
881b47b8ea

KCalendarSystem gets the middle finger - batteries not included for date
and time. extra calendar systems can, but are unlikely to be, supported
in the future

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-26 23:50:18 +03:00
Ivailo Monev
4e1fc45705 kio: remove unused KFileMetaInfo flags
when it comes to KFileMetaInfo its bottleneck is determening what plugin to
use for the given URL/path - determening MIME type, matching globs, etc.
and it still is quite fast to the point where the flags are simply
redundant

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-18 03:36:06 +03:00
Ivailo Monev
219bea5656 kio: deprecation warning fix
next time just change the poppler::time_type typedef (less ifdef spaghetti)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-01-01 21:51:17 +02:00
Ivailo Monev
7b6f2c92d8 kio: poppler metadata extractor optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-21 19:10:17 +02:00
Ivailo Monev
2b2ac283e8 kio: move metadata plugin keys to the .desktop files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-04 14:40:57 +02:00
Ivailo Monev
1e982a7e2d kio: move metadata plugin MIME types to the .desktop files
ideally, the keys would also be stored in the .desktop files so that
plugin instances would not have to be created from
KFileMetaInfo::supportedKeys() too

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-04 13:59:00 +02:00
Ivailo Monev
4a4c85431e kdecore: move K_EXPORT_PLUGIN() macro to kpluginfactory header [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-31 09:06:11 +03:00
Ivailo Monev
e4c7b66490 kdecore: move K_EXPORT_PLUGIN() macro to kpluginloader header
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-30 22:01:35 +03:00
Ivailo Monev
f875fea2ef kio: extract page count via Poppler metadata plugin
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-13 02:40:36 +03:00
Ivailo Monev
69f4e8b329 kio: extract FPS via FFmpeg metadata plugin
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-17 12:15:36 +03:00
Ivailo Monev
05b34e20b5 kio: implement PDF meta information extractor via Poppler
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-17 04:09:12 +03:00