Commit graph

92 commits

Author SHA1 Message Date
Ivailo Monev
825763d73f kio: drop the feature to delay MIME type determination
it shall be delayed without the feature (which it was anyway)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-27 17:10:04 +03:00
Ivailo Monev
c31499dd07 generic: drop messages handler support
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-20 20:17:56 +03:00
Ivailo Monev
2f485d5376 generic: replace QThreadPool and QRunnable with custom class
on a side note it does not solve any thread-safety issues, such are out
of the scope of the class

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-18 03:05:03 +03:00
Ivailo Monev
625373ffa8 kdecore: drop KDateTime
with the rewrite (see f452e2e50b),
KDateTime is just glue-code for compatibility now. the exception is
KDateTime::isNightTime() (written by me) which is used only in one place
(kde-workspace/plasma/dataengines/weather/ions/wetter.com/ion_wettercom.cpp)
and can be moved there

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-14 22:35:08 +03:00
Ivailo Monev
899f789b07 kdecore: move KToolInvocation to kdeui
to get rid of the KApplication signal which is a hack really

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-31 08:09:02 +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
de31c50479 kdecore: drop support for all but gregorian and julian calendars
additional calendar systems can be supported via ICU in the future but
for now that will be more than enough considering other things such as
QDateTime and QCalendarWidget, the gregorian and julian calendars being
common, etc.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-23 22:58:43 +03:00
Ivailo Monev
714b6f2021 kdecore: remove unused KLocalizedDate class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-23 06:54:53 +03:00
Ivailo Monev
6a738b1bbe kdecore: merge KFolderMimeType into KMimeType
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-30 00:09:28 +03:00
Ivailo Monev
8ea7f6080b kdecore: remove redundant Q_WS_X11 and Q_WS_QWS checks
Q_WS_X11 is essentially always set by KatieConfig.cmake

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-18 06:20:07 +03:00
Ivailo Monev
53c8804c1a kdecore: remove unused build variables
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-18 06:18:08 +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
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
e978590acd generic: define KDE_DEFAULT_DEBUG_AREA in the main build file for each library
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-09 23:43:20 +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
4fb8a1d674 generic: call klauncher methods asynchronously from KToolInvocation
so that application event processing is not blocked by any
KToolInvocation method, the D-Bus service name and PID return arguments
are not used anyway so removing them

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-19 12:44:44 +02:00
Ivailo Monev
82e165acc0 kdecore: include kdeui library includes
fixes bootstrap build

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-02 02:38:03 +02:00
Ivailo Monev
169e338449 kdecore: convert KuitFormats functions to static
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-03 02:37:11 +02:00
Ivailo Monev
881b47b8ea kdecore: use the Katie translations format
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-02 05:42:59 +02:00
Ivailo Monev
8fc029197a kdecore: do not include KDE4_KDEUI_INCLUDES
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-30 05:12:13 +02:00
Ivailo Monev
21630cdbdf generic: update KDE4_KDECORE_INCLUDES variable
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-30 05:08:16 +02:00
Ivailo Monev
60e94313ef kdecore: move KCompressor and KDecompressor to karchive library
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-18 04:40:28 +03:00
Ivailo Monev
860b2d098d kdecore: new KCompressor and KDecompressor classes replacing KFilterDev
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-17 18:07:24 +03:00
Ivailo Monev
4ff227e336 kdecore: emulate cross-filesystem move in KDE::rename()
if the temporary directory is of tmpfs type (which is the case on
Debian) then moving temporary files will fail thus thumbnails will not be
cached for example because they are stored as temporary file first and
then moved to ~/.thumbnails

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-07 22:38:57 +03:00
Ivailo Monev
3ab3f3b47f kutils: new karchive library to replace KZip and KTar
it has to solve a few problems like:
1. blocking the current thread while listing, extracting or adding to
   archive
2. lack of support for some archive formats such as 7-zip in the
   previously available classes for dealing with archive
3. progress and error reporting

a KArchiveJob class may have to be implemented to solve the above
issues. the API is just as frustrating to use as KTar and KZip right now
tho and I am not happy with that but the class itself is a 3-rd rewrite
of what was once Python module, plugin for another project and now used
as base in library.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-06 16:53:55 +03:00
Ivailo Monev
6f0b3eda3b kdecore: merge KTzfileTimeZone and other tzdata related classes into the base classes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-01 16:08:05 +03:00
Ivailo Monev
718ccc145f kdecore: remove redundant KEncodingDetector class
use QTextCodec::codecForUtfText() or QTextCodec::codecForText() instead

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-30 20:47:46 +03:00
Ivailo Monev
7dc5187778 kdecore: replace most of KRandomSequence with new KRandom::randomMax() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-26 12:58:37 +03:00
Ivailo Monev
a692d6026e kdecore: remove unused KAutoSaveFile class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-26 09:54:51 +03:00
Ivailo Monev
e88c621aa2 generic: authorization reimplementation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-25 19:27:41 +03:00
Ivailo Monev
6287f9c468 kdecore: drop KAuth backend plugin support
D-Bus backend already builtin into kdecore and the headers for the
backend are private

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-25 09:17:33 +03:00
Ivailo Monev
9ea95e5e2e kdecore: reuse ENABLE_TESTING config definition
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-24 18:21:20 +03:00
Ivailo Monev
fbd4a17ac2 kdecore: drop currency and monetary support
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-24 14:43: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
e8f2c262e2 kdecore: extend the upstream PCI and USB databases
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-29 18:16:11 +03:00
Ivailo Monev
eef792f6ff kdecore: KDeviceDatabase rewrite and test for it
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-29 14:39:38 +03:00
Ivailo Monev
3028881628 kdecore: new KDeviceDatabase class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-26 21:47:58 +03:00
Ivailo Monev
11ea54d213 generic: drop SSL configuration support
SSL socket is used only in the ftp slave and in the dictionary
data engine for plasma which should use QSslConfiguration to
apply any prefernces - they do not

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-02-20 01:28:17 +02:00
Ivailo Monev
fcd045a95e kioslave: replace KSocketFactory with QSslSocket/QTcpServer
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-08-26 05:01:06 +03:00
Ivailo Monev
1414a4f05f kdecore: new class for temperature conversion
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-07-15 22:39:03 +03:00
Ivailo Monev
d4fb9c2bb2 generic: remove KService profile feature
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-06-15 15:26:19 +03:00
Ivailo Monev
50dd0cd82c kdecore: merge KLocaleUnixPrivate into KLocalePrivate
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-03-26 13:58:44 +02:00
Ivailo Monev
825449e174 kdecore: rely solely on Katie's locale codec detection
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-03-24 00:18:15 +02:00
Ivailo Monev
31ee051ff4 generic: remove some compatibility bits
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-02-27 08:58:02 +02:00
Ivailo Monev
ddfc92dc1e generic: use file strategy for ksycoca by default
fixes thread-safety issues such as KRunner crashes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-01-22 20:48:03 +02:00
Ivailo Monev
b5303a651e generic: review configuration checks
despite the gettimeofday() check for an example, the function is used
unconditionally thus checks for errno header are removed aswell rather then
making them required from configuration checks and error-ing out if not
found.

other cases such as trunc() are used in kexiv2 unconditionally, not in
kdecore.

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-24 21:04:54 +00:00
Ivailo Monev
359ff5b861 kdecore: remove unused configuration checks
netsupp was provided for KDE3 compatibility and the header is not even
installed. the only place where getnameinfo() is used is in KIO kpac DHCP helper
but it does not include the netsupp header.

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-18 22:09:53 +00:00
Ivailo Monev
4d6fb007e7 generic: fix most of the overlinking issues
TODO from https://github.com/fluxer/katana/issues/7. I've decided to
keep KDE4 and Katie libraries as PUBLIC, all other libraries as PRIVATE
for that and not use INTERFACE at all since that will not require a lot
of changes to all other sub-projects (kde-baseapps, kde-workspace and
kde-extraapps) build systems.

MusicBrainz5 CMake module was also rewritten as the actual library that
should be linked to is libmusicbrainz5cc, libmusicbrainz5 is the C
version of it.

common checks for X11 extensions where move to main config header,
eventually to be moved to separate config-x11 header.

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-09 21:58:11 +00:00