Commit graph

454 commits

Author SHA1 Message Date
Ivailo Monev
c311f7032f kutils: new KPasswdStore::stores() method to get all current stores
to be used by the KCM

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-20 00:14:23 +03:00
Ivailo Monev
dc208c52fd generic: update references to shared data directory
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-18 00:20:22 +03:00
Ivailo Monev
ed79c859b2 generic: merge KDELibs4ToolsTargets and KDELibs4LibraryTargets
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-17 23:57:38 +03:00
Ivailo Monev
5613e5483c generic: remove redundant build varibles
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-17 20:25:52 +03:00
Ivailo Monev
36c910c653 generic: move stuff from KDE4Internal module to KDELibs4Config
large-scale changes to the build system, nothing a user sees tho - it is
all under the hood

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-17 19:01:40 +03:00
Ivailo Monev
ff34ec1167 kutils: ensure there is interface in KPasswdStore::setCacheOnly()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-15 19:41:34 +03:00
Ivailo Monev
81aed7d9ce kutils: fix regression since c38afd7556
oops

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-15 03:43:59 +03:00
Ivailo Monev
c38afd7556 kutils: replace KConfig with KSettings in KPasswdStoreImpl
KConfig uses internal lock for synchronization, KSettings does not and
since the password stores are giant-locked now it is faster to not lock in
the underlaying implementation

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-14 16:40:32 +03:00
Ivailo Monev
5b5f24078e kutils: giant-lock KPasswdStore
because multiple KIO slaves may use the same password store (e.g. sftp and
thumbnail)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-14 03:03:31 +03:00
Ivailo Monev
7a66e3e9f7 kutils: remove unused KPowerManagerImpl and KPowerManagerInhibitImpl slots
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-13 01:34:53 +03:00
Ivailo Monev
19df721868 generic: ODR fixes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-11 19:58:06 +03:00
Ivailo Monev
74dc8adc62 kutils: include fixx11h header in xsyncbasedpoller header
partially fixes build when CMAKE_UNITY_BUILD is set to ON

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-11 18:42:25 +03:00
Ivailo Monev
78933232a2 generic: remove build variable used to specify library type
only shared builds are supported now

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-10 23:19:17 +03:00
Ivailo Monev
10796df474 kutils: build fix for the case when build with Exiv2 v0.28.0+
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-09 21:34:19 +03:00
Ivailo Monev
7f7eb09b35 kdeui: spelling classes reimplementation
not leaking enchant dictionaries, simpler implementation and its not
spread across 2 libraries (kdecore and kdeui)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-09 20:45:52 +03:00
Ivailo Monev
0d50d69dbb generic: remove irrelevant TODO files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-05 02:50:54 +03:00
Ivailo Monev
21f81958f2 kutils: remove karchive TODO
archive_match_include_pattern() does not work on archive open for reading

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-05-23 18:33:20 +03:00
Ivailo Monev
e4c8f00e14 kutils: plug KArchive memory leaks
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-05-21 07:00:06 +03:00
Ivailo Monev
f852199986 kutils: KArchive remove and extraction operations optimizations
a bit hach-ish but reduced the time it takes to extract archives with a lot
of small files for example

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-05-20 07:48:16 +03:00
Ivailo Monev
631ae6a32a kutils: remove unused constants
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-05-19 06:20:35 +03:00
Ivailo Monev
ea98009a53 kutils: build fix for the case when OPENSSL_VERSION_PREREQ() macro is not defined
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-01-01 06:08:43 +02:00
Ivailo Monev
d298d73a50 kutils: deprecation warning fix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-01-01 04:57:07 +02:00
Ivailo Monev
55432743c0 kutils: assume that KArchive::list() filtered the entries when recursing
the conditionals were there to maybe match with and without trailing slash
but KArchive::list() works correctly for the fomats that do not add
trailing slash to directories aswell

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-25 23:33:12 +02:00
Ivailo Monev
1f60123bd7 kutils: check if the entry is directory as fallback when recursing in KArchive::remove() and KArchive::extract()
for some formats (such as ISO 9660 images) the directories do not end with
trailing slash

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-25 06:44:59 +02:00
Ivailo Monev
969ddd830f kutils: rewrite KHTTP and move it to kio library
same functionality but without extra dependencies and better throughput

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-25 04:59:18 +02:00
Ivailo Monev
0c2fa57bdd kutils: group structs and typedefs documentation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-24 13:24:47 +02:00
Ivailo Monev
efa445c361 kutils: mark some KArchivePrivate methods as const
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-24 13:15:45 +02:00
Ivailo Monev
0bc98740e0 kutils: error string correction
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-24 13:13:14 +02:00
Ivailo Monev
5e4e0c83e2 kutils: minor KArchive documentation correction
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-24 13:03:20 +02:00
Ivailo Monev
c29fc4dca1 kutils: test KCompressor and KDecompressor with empty data
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-24 12:59:19 +02:00
Ivailo Monev
4c16e7c0d5 kutils: recursively remove/extract when paths contain directory
this also makes it match the behaviour of KArchive::add() which recurses
into directories and adds the files that the specified directory holds

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-24 01:56:21 +02:00
Ivailo Monev
02c945a3ca kutils: plug file descriptor leak in case the output filepath is not a regular file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-23 19:42:47 +02:00
Ivailo Monev
d5e9d695df kutils: do not stop the player from KMediaWidget destructor
the state is saved before terminating MPV and that may require the player
to be playing (not paused or stopped)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-23 17:46:55 +02:00
Ivailo Monev
d19d80431b kutils: stop the volume effect from KMediaWidget::setVolume()
the effect duration is 3sec but the user may change the volume meanwhile
via the volume widget

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-23 17:21:44 +02:00
Ivailo Monev
81ac307c68 kutils: move some KArchive MIME types from the writable to the readable list
side note: `bsdtar` creates archives with the MIME type extension as
application/x-tar even if the extension is not recognized by libarchive
(i.e. autodetection fails but it proccedes anyway)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-22 01:57:19 +02:00
Ivailo Monev
ece9331d4b kutils: KArchive documentation correction
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-21 00:49:54 +02:00
Ivailo Monev
45110ac273 kutils: remove the temporary archive if error occurs in KArchive::add() and KArchive::remove()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-20 10:56:10 +02:00
Ivailo Monev
3298200d40 kutils: new getter and setter for the temporary KArchive prefix
to be used by ark

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-19 18:01:51 +02:00
Ivailo Monev
60c0b58b3a kutils: add reference for the CPU governors
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-18 21:29:52 +02:00
Ivailo Monev
feae165d4f kutils: warn when power management is not supported
if it is not supported then one (or more) CPU governors required by
KPowerManager are not enabled or the host is not Linux

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-18 20:07:52 +02:00
Ivailo Monev
b778766af2 kutils: map some CPU governors for the KPowerManager PowerSave profile
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-18 16:19:25 +00:00
Ivailo Monev
4dbb501d25 generic: drop text-to-speech support
Katana (or any interface designed around key and mouse events) is not
for blind people, trying to slap text-to-speech on top of it was the
wrong thing to do to begin with

side note: speech-dispatcher tends to hang if the output device is not
configured properly (i.e. editing /etc/speech-dispatcher/speechd.conf
manually)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-18 15:56:59 +02:00
Ivailo Monev
b8d4eacdfd kutils: enable the KMediaWidget position slider and play button on loaded() signal
the seekable property of MPV is not be valid until load, also a path may be
loaded via KMediaWidget::player()->load()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-16 21:17:47 +02:00
Ivailo Monev
589c3ca009 kutils: change the slider position before load() in KMediaWidget::open()
fixes rare runtime warning about seek command failure. the proper thing
to do is close, wait for close to happen, set slider position, load and
continue the event cycle but that's too complicated when buffering is not
expected to happen on seek (i.e. when a file from the hard-disk is
currently loaded)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-14 22:09:23 +02:00
Ivailo Monev
b38a3f8b41 kutils: fake seek to start when re-opening path from KMediaWidget::open()
the event for the position update may be in queue and received after
load()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-14 21:46:41 +02:00
Ivailo Monev
6ab1b28de5 Merge branch 'master' of https://scm.osdn.net/gitroot/kde/kdelibs 2022-12-14 19:42:34 +02:00
Ivailo Monev
06c1b9dda8 kutils: correct disconnection in KAudioPlayerModule::_removeFinished()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-14 19:42:18 +02:00
Ivailo Monev
de4c9f1d6a kioslave: add disabled curl_easy_setopt() to http KIO slave
for debugging connection issues

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-14 14:26:50 +02:00
Ivailo Monev
6adc4fcaea kutils: increase the KDecompressor buffer size increment to 1MB
speeds up loading of large gzip-compressed files for example

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-14 09:54:10 +02:00
Ivailo Monev
a9c334844d kutils: reserve space for the metadata items from KExiv2::metadata()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-14 01:11:33 +02:00