Commit graph

164 commits

Author SHA1 Message Date
Ivailo Monev
1cad595824 generic: drop scripting support
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-21 08:14:30 +03:00
Ivailo Monev
4eb64ca003 plasma: use taskmanager library directly in switchwindow containment actions
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-27 22:58:00 +03:00
Ivailo Monev
cfecf4def5 plasma: remove reference to non-existing TaskManager::TaskManager::activityChanged() signal
activities feature was ripped out long ago

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-27 22:24:36 +03:00
Ivailo Monev
5aa9259429 plasma: weather applet reimplementation
moved from kde-extraapps (the desktop file was salvaged for the
translations), shows icons for both night and day unlike the old
applet:
https://ibb.co/0VsNKjV

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-23 14:42:37 +03:00
Ivailo Monev
771aa0ae06 plasma: remove redundant virtual NotificationsEngine::init() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-19 20:52:40 +03:00
Ivailo Monev
f4d40c28e9 plasma: semi-working notifications applet reimplementation
the application notifications works and is nearly complete, the jobs
notification is yet to be done. so far it looks like this:
https://ibb.co/GTGMKtQ

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-17 07:50:27 +03:00
Ivailo Monev
66c5da585f plasma: remove now unused mpris2 data engine
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-16 12:00:38 +03:00
Ivailo Monev
566830cdc6 plasma: remove unused places data engine
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-09 08:03:51 +03:00
Ivailo Monev
0373b489c4 plasma: remove unused favicons and filebrowser data engines
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-08 10:11:20 +03:00
Ivailo Monev
d477598c1d generic: device notification reimplementation
how does it look? something like this:
https://ibb.co/1zbDVpk

and because all the SolidUiServer bits are written by me now - copyright
it to me. the actions dialog was not operational btw (not for hotplug
events anyway).

the solidautoeject thing does not even make sense - when the eject
button is pressed it was calling Solid::OpticalDrive::eject() but if the
button is pressed the tray will eject anyway so what was it doing
actually?

solid-device-automounter can be replaced with solid actions but the
devices are mounted for solid actions anyway so dropping it

as for KCM for the solid actions - there can be none but to add features
such as non-interactive actions (e.g. launch the keyboard KCM when a
keyboard is plugged without poping dialog) or actions that do something
on device removal it has to be done anew

note that the action file for opening a file manager was named
"test-predicate-openinwindow" meaning it was a testing thing rather than
a finished thing

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-07 05:47:54 +03:00
Ivailo Monev
620a7a1136 generic: handle the new Solid::Input interface
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-03 20:26:24 +03:00
Ivailo Monev
689e15e40b plasma: reimplement battery applet
now with separate options for screen and sleep power management
suppression as well as being able to select which battery to show
information (including icon) for in the tray:
https://ibb.co/DDC01rh

the battery icon is questionably bigger than it should be, have to test
it with battery that is recognizable still (PS3 controller battery
provides only capacity and status info)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-02 22:18:05 +03:00
Ivailo Monev
671d3667d4 plasma: disconnect the powerSupplyStateChanged() and capacityChanged() signals on battery unmap in soliddevice data engine
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-02 16:39:10 +03:00
Ivailo Monev
1b6e45e3e0 plasma: sync soliddevice data engine battery charge state map
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-02 16:23:27 +03:00
Ivailo Monev
b2e2da7b08 plasma: map powerSupplyStateChanged() and capacityChanged() signals in soliddevice data engine
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-02 16:19:52 +03:00
Ivailo Monev
2e93ffd6a8 plasma: sync and update soliddevice data engine maps
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-02 04:59:17 +03:00
Ivailo Monev
cc1e651c49 plasma: implement battery capacity and power supply data
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-02 04:38:17 +03:00
Ivailo Monev
de914115ac plasma: correct and update soliddevice content type checks
incorrect since before the fork

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-02 04:21:20 +03:00
Ivailo Monev
ff06818144 plasma: set the hotplug data engine watcher poll interval to 5 seconds
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-02 04:09:14 +03:00
Ivailo Monev
f47177f876 generic: adjust to KNotification changes
some notification files, such as the style KCM one, were not even used

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-25 08:07:58 +03:00
Ivailo Monev
789d354b81 kcontrol: use BorderlessMaximizedWindows config key to decide the workspace form factor
disabling plasma-desktop should never be done for Katana session even tho
it can be done because it is started from XDG autostart file

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-16 14:21:07 +03:00
Ivailo Monev
340eaa77ef plasma: do not translate the wind directions from IonInterface::getWindDirectionIcon()
fixes weatherstation plasma applet not showing the wind image (wind_arrows)
when the locale is set to be one other than the default (C/en_US). note
that "N/A" is matched as untranslated string (e.g. in
kdeplasma-addons/applets/weather/weatherapplet.cpp) meaning more changes
may be required to fix other minor issues because "N/A" is translated in
several places

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-15 19:22:04 +03:00
Ivailo Monev
09744d81a3 generic: adjust to KDateTime removal
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-14 22:55:43 +03:00
Ivailo Monev
75c054d307 plasma: sync status notifier image serialization bits
with:
kdelibs/kdeui/notifications/kstatusnotifieritem.cpp

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-12 01:36:15 +03:00
Ivailo Monev
4cd80db371 plasma: remove unused variable in PlacesEngine::sendData()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-11 19:44:41 +03:00
Ivailo Monev
cf6a2620c6 generic: remove dead and irrelevant links references
consider the mail references just as dead

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-10 15:44:43 +03:00
Ivailo Monev
c380602abf generic: adjust to KLocale changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-26 23:35:19 +03:00
Ivailo Monev
e7f77354da plasma: replace use of KLocalizedDate with more direct calls
KLocalizedDate is wrapper around KCalendarSystem and does the same
essentially, also the plasma clock applets do it the way it is done now

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-23 03:33:20 +03:00
Ivailo Monev
9d72cc17c1 plasma: adjust to time zone classes changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-22 04:37:43 +03:00
Ivailo Monev
b80a0be5a8 generic: adjust to KDateTime changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-21 06:19:28 +03:00
Ivailo Monev
fb66ed693f generic: adjust to KFileMetaInfo changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-18 03:37:45 +03:00
Ivailo Monev
66ad0076b1 plasma: do not attempt actions that require network when the KNetworkManager status is unknown
the previous network status implementation was lacking backends and
fallback thus the unknown status was used as as if the status is connected

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-15 23:26:53 +03:00
Ivailo Monev
cbe10de639 plasma: do not reset the source data on source update event for gelocation data engine
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-15 23:10:54 +03:00
Ivailo Monev
e68f55058e plasma: implement local timezone provider for geolocation data engine
wild guess thus the 60000 accuracy, for reference:
https://github.com/fluxer/katana/issues/26

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-15 10:40:38 +03:00
Ivailo Monev
d28608da5b plasma: rework geolocation data engine to emit data for all providers
so that the weather location (see kde-extraapps/kdeplasma-addons/libs/plasmaweather/weatherlocation.h)
can check all providers from a single data update and try to match any of
the cities from the providers essentially extending the matching

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-15 09:30:24 +03:00
Ivailo Monev
c24ce1f082 plasma: set the geolocation plugin accuracy to the value of geoplugin_locationAccuracyRadius
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-15 03:18:35 +03:00
Ivailo Monev
18573aa82d plasma: use KIO::StoredTransferJob for the geolocation data engine jobs
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-15 03:04:05 +03:00
Ivailo Monev
8de9bcefd9 plasma: remove redundant dit data engine destructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-11 06:00:43 +03:00
Ivailo Monev
d6e19c715e plasma: run the get() job of dict data engine asynchronously
same result however no extra QEventLoop, the only overhead is from the
property that has to be set for each source (converting QString to QVariant
and then back to QString)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-11 05:58:55 +03:00
Ivailo Monev
6cfe505af4 plasma: set definition and example data from the dict data engine
to avoid stripping the HTML out of the text in the dictionary runner for
example

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-11 04:50:40 +03:00
Ivailo Monev
cb37a5683f generic: adjust to Solid::PowerManagement changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-09 18:11:38 +03:00
Ivailo Monev
1ffb4b1eb0 generic: port to the new knetworkmanager library and remove slid-networkstatus
also corrected folderview applet condition in olderView::setUrl()
(incorrect since before the fork, was displaying message that the
network is not reachable when the status is connected)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-08 08:42:27 +03:00
Ivailo Monev
85bc20d347 plasma: use KIO::StoredTransferJob in the dict data engine
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-08 02:16:18 +03:00
Ivailo Monev
268376e08b generic: adjust to solid changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-05 07:15:01 +03:00
Ivailo Monev
42bd88d0d2 kuiserver: announce destination URL changes to job clients
to fix the plasma job notification actions (see the previous commit), also
changing the destination URL type to QString because it is such (see
kdelibs/kio/kio/copyjob.cpp and kdelibs/kio/kio/job.cpp) and the
QVariant/QDBusVariant conversion is redundant

requires changes to the job tracker interface in kdelibs aswell.. see
kdelibs/kdeui/jobs/kuiserverjobtracker.cpp

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-27 03:26:20 +03:00
Ivailo Monev
6f1c138b12 generic: simplify KDE4WorkspaceConfig
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-18 04:01:26 +03:00
Ivailo Monev
ce48bc0997 generic: preperations for kdelibs changes
automatically replaced via:
find -name CMakeLists.txt -exec sed -e 's|${KDE4_PLASMA_LIBS}|KDE4::plasma|g' -e 's|${KDE4_KIO_LIBS}|KDE4::kio|g' -e 's|${KDE4_SOLID_LIBS}|KDE4::solid|g' -e 's|${KDE4_KFILE_LIBS}|KDE4::kfile|g' -e 's|${KDE4_KDECORE_LIBS}|KDE4::kdecore|g' -e 's|${KDE4_KDEUI_LIBS}|KDE4::kdeui|g' -e 's|${KDE4_KCMUTILS_LIBS}|KDE4::kcmutils|g' -e 's|${KDE4_KDECLARATIVE_LIBS}|KDE4::kdeclarative|g' -e 's|${KDE4_KPTY_LIBS}|KDE4::kpty|g' -e 's|${KDE4_KEMAIL_LIBS}|KDE4::kemail|g' -e 's|${KDE4_KMEDIAPLAYER_LIBS}|KDE4::kmediaplayer|g' -e 's|${KDE4_KPARTS_LIBS}|KDE4::kparts|g' -e 's|${KDE4_KIDLETIME_LIBS}|KDE4::kidletime|g' -e 's|${KDE4_KTEXTEDITOR_LIBS}|KDE4::ktexteditor|g' -e 's|${KDE4_KPASSWDSTORE_LIBS}|KDE4::kpasswdstore|g' -e 's|${KDE4_KARCHIVE_LIBS}|KDE4::karchive|g' -e 's|${KDE4_KDNSSD_LIBS}|KDE4::kdnssd|g' -e 's|${KDE4_KNOTIFYCONFIG_LIBS}|KDE4::knotifyconfig|g' -e 's|${KDE4_KEXIV2_LIBS}|KDE4::kexiv2|g' -i {} +

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-17 23:27:11 +03:00
Ivailo Monev
472f24878b generic: adjust to kdelibs changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-17 18:38:55 +03:00
Ivailo Monev
a9f687908c plasma: use the KDE_VERSION_STRING definition as server version for the org.freedesktop.Notifications interface
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-16 06:34:26 +03:00
Ivailo Monev
c121cc167f plasma: implement required features of org.freedesktop.Notifications v1.2
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-16 06:28:51 +03:00