Commit graph

18 commits

Author SHA1 Message Date
Ivailo Monev
75b9cfddd3 generic: const-ify private data pointers where copying is disabled
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-23 06:49:59 +02:00
Ivailo Monev
e482da9067 kded: rework phases logic to take any desktop session into account
much like XDG autostart except for KDED modules, requires adjustments to
modules that are automatically loaded in phase-1

in the future the logic may apply not only to modules during startup but
also when attempting to load a module in general

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 23:01:34 +03:00
Ivailo Monev
6f03a3127c kutils: typo
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-27 03:09:25 +03:00
Ivailo Monev
450120097d kdeui: reimplement KNotification
cleaning up the mess, everything but KNotificationConfigWidget is
implemented.

not only does it not require additional D-Bus service (knotify) to
function but also does not transmit pixmaps over D-Bus, the features
to execute command or log to file are dropped and will not be
implemented.

also about markup support in notifications - if the server does not
support markup then it is supposed to strip it, see the spec:
https://specifications.freedesktop.org/notification-spec/notification-spec-latest.html#backwards-compat
meaning nothing should be done by KNotification itself because it is not
a server, it is just a proxy.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-25 09:01:39 +03:00
Ivailo Monev
f6e2452250 kutils: remove unused QMap header inclusion in kded_knetworkmanager header
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-10 00:08:14 +03:00
Ivailo Monev
5b9fcbf444 kutils: mark KNetworkManager as stable
works like a charm, tested with all backends

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-09 04:32:02 +03:00
Ivailo Monev
0e4eaac7f3 kutils: new knetworkmanager KDED module method
here is how to use it:
```
qdbus-katie org.kde.kded /modules/knetworkmanager enable false
qdbus-katie org.kde.kded /modules/knetworkmanager enable true
```

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-09 03:39:44 +03:00
Ivailo Monev
40e0c3f167 kutils: rework KNetworkManager connections management to enable/disable all
use case? what will happen if network status changes while plasma
folderview applet is showing a folder

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-09 03:36:13 +03:00
Ivailo Monev
91368392ee kutils: experimental connection management via KNetworkManager
working but the internal service path has to be stored in
KNetworkConnection for reverse lookup by name, hmm..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-09 02:55:17 +03:00
Ivailo Monev
0b35c75a91 kutils: remove unused KNetworkManagerPrivate::n1StateChanged() slot
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-09 00:37:46 +03:00
Ivailo Monev
fb9ec68452 kutils: new KNetworkManager::IntermediateStatus enum
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-09 00:31:01 +03:00
Ivailo Monev
0b49e1f718 kutils: one more way to get network status changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-09 00:23:07 +03:00
Ivailo Monev
95e1e05f5d kutils: sync the disconnected status notification text
to match the one used in kutils/knetworkmanager/kded/knetworkmanager.notifyrc

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-08 23:16:27 +03:00
Ivailo Monev
6341016129 kutils: KNetworkManager review
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-08 21:42:22 +03:00
Ivailo Monev
3fdb845769 kutils: multi-backend knetworkmanager implementation
essentially moving my code from the old networkstatus module, see the
following commits in the kde-workspace repo:
809b90a113bb559a94266464e03cba6f0ed197ae
c46a5297cc49bf4f19f81ee109833fb0abab9a99
3e01d82f44bf587251455368f7502e9e4e204176

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-08 21:10:54 +03:00
Ivailo Monev
52cfa776cc kutils: prefix the enum in KNetworkManager signal
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-08 08:41:27 +03:00
Ivailo Monev
d3674c0e45 kutils: check the status upon constructing KNetworkManager
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-08 08:05:16 +03:00
Ivailo Monev
355bca1289 kutils: new knetworkmanager library
to replace the status notifier (in the kde-workspace repo) and
eventually manage network connections aswell as move network status
notifier out of solid

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-08 07:48:38 +03:00