Commit graph

28 commits

Author SHA1 Message Date
Ivailo Monev
75cf57aac5 kio: drop support for "most local URL"
was used by some slaves (e.g. the archive slave which is no more).

lets see if you can find it jira:
https://ivailo-monev.atlassian.net/browse/KDE-12

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-24 20:46:17 +03:00
Ivailo Monev
7e3698a667 kparts: move variable to the scope it is used in
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-17 07:45:32 +03:00
Ivailo Monev
71704a410d kparts: query the part to close from KParts::MainWindow
because KParts::ReadWritePart::closeUrl() is not called from the
KParts::ReadWritePart destructor (and even if it is bad stuff may happen)
for most rw parts (exception being okular which does its own query, maybe
some other parts too) saving was not actually done (e.g. for ark). now the
part will be queried to close, if the upload job fails (e.g. because of
insufficient access) the application/part will not close (intentionally)
tho and no error is reported via message box which is something that needs
to be looked into

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-16 06:31:19 +03:00
Ivailo Monev
7f261aca95 kdecore: new KTemporaryFile::urlPath() method
based on the bits in kparts/part.cpp

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-13 22:52:30 +03:00
Ivailo Monev
817b7a4aab kdecore: rework KMimeType
more accurate probing then before, notably by probing the file content
from the file slave (only the name was checked before because the
filepath was not a full path in some cases and the file could not be
open)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-04 20:14:53 +03:00
Ivailo Monev
e273741fdb kio: drop MIME type feature of slaves
the specialized one, stat() does it now because emitting MIME type while
also emitting data (in or out) interrupts the data flow

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-03 05:26:56 +03:00
Ivailo Monev
d4fb98cc28 generic: KIO protocols classification optimization
unfortunate as it is the class for getting protocol information is not
part of kio library so generic..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-14 09:54:36 +03:00
Ivailo Monev
7f3ecd0f64 kparts: remove unused stream-related API
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 15:56:16 +03:00
Ivailo Monev
0a4a0aa423 kparts: format and indent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 15:39:46 +03:00
Ivailo Monev
ab09380d5b kparts: drop browser extension support
requires new KParts::ReadOnlyPart::urlAboutToChange() signal for
filelight, moving the KParts::BrowserExtension::PopupFlag and
KParts::BrowserExtension::ActionGroupMap to KonqPopupMenu (in the
kde-workspace repo, where the flags and typedef should be) and ofcourse
removing the unused bits in programs (kate, okular, etc.)

on a side note the extension, even if wrapped and created, is unused now
(was used by konqueror which is no longer supported)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 05:04:59 +03:00
Ivailo Monev
9916fcdce9 kparts: remove unused PartActivateEvent, PartManager and PartSelectEvent classes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-03 12:21:25 +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
945f411733 kparts: disconnect the slotWidgetDestroyed() slot from KParts::Part::setAutoDeleteWidget() conditionally
fixes possible crash

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 01:46:17 +02:00
Ivailo Monev
9b41127ecb generic: prepare for Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-13 00:40:18 +02:00
Ivailo Monev
cf6a3fdb91 kparts: make use of KTemporaryFile::filePath()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-07 16:00:58 +03:00
Ivailo Monev
7d5ec84ab1 generic: compiler warnings fixes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-23 17:19:33 +03:00
Ivailo Monev
4494f07680 kparts: remove unused and internal methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-21 15:58:54 +03:00
Ivailo Monev
83a1f8f089 kparts: drop Plugin class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-21 14:41:05 +03:00
Ivailo Monev
8696681c5c generic: process all events and use KJob::exec() instead of QEventLoop
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-26 15:56:30 +03:00
Ivailo Monev
5d6db58b4d generic: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-17 01:08:55 +00:00
Ivailo Monev
aca5093ce8 kparts: move members initialization, fix build
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-01-21 16:21:45 +02:00
Ivailo Monev
9c73e2257d kparts: initialize all members to prevent crashes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-01-21 16:00:49 +02:00
Ivailo Monev
f116c2dbb7 kparts: remove compat method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-01-21 16:00:11 +02:00
Ivailo Monev
43289ee0fb generic: fix some compiler warnings due to 9ff99942
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-01-08 04:42:26 +02:00
Ivailo Monev
99a9337e9d kparts: merge overload method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-01-08 04:17:55 +02:00
Ivailo Monev
5333e9917d generic: remove deprecated API 2015-02-28 03:27:54 +00:00
Ivailo Monev
82fc15f54b generic: use CMake moc instead of automoc4 by default
for compatibilty reasons automoc4 support is not removed but it
shall be in the future. automoc4 has not been maintained for a
while (last commit is from 2011) and the stable release is from
2009.

CMake version >= 2.8.6 provides the functionality for mocking so
I see no reason to not make use of it.
2015-02-27 07:40:26 +00:00
Ivailo Monev
814163a8dc initial import 2014-11-13 01:04:59 +02:00