summaryrefslogtreecommitdiff
path: root/src/signals.md
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-05-21 22:08:41 +0200
committerAylur <[email protected]>2024-05-21 22:08:41 +0200
commit81c4e3a12d05a3550f1d8c942f0d919b4688c3bc (patch)
treedd108b8fe2c569ce9208fe9c24bab9ffde768460 /src/signals.md
parent5929e35962914331704f88dc45e8b96b30d1448b (diff)
fix proxy, add remaining cli functionality
Diffstat (limited to 'src/signals.md')
-rw-r--r--src/signals.md32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/signals.md b/src/signals.md
new file mode 100644
index 0000000..0111596
--- /dev/null
+++ b/src/signals.md
@@ -0,0 +1,32 @@
+# Signals
+
+ignore this, I'm just dumb and can't follow where signals go or get emitted from
+
+## Notification
+
+* resolved(reason) - by daemon/proxy
+* dismissed() - by user with `.dismiss()`
+* invoked(action) - by user with `.invoke()`
+
+## Deamon
+
+non-spec, used by user
+* notified(id) - by outside through dbus with `.Notify()`
+* resolved(id, reason) - by `Notification.dismiss()` or outside with `.CloseNotification`
+
+spec, not used by user
+* notification_closed(id, reason) - sideeffect of `resolved`
+* action_invoked(id, action) - by `Notification.invoke()`
+
+## Proxy
+
+mirrors Daemon
+* notified(id)
+* resolved(id, reason)
+
+creates `Notification` objects through daemon's json strings
+and hooks them up to call daemon's signals and vice versa
+
+## Notifd
+
+acts as a bridge between Proxy/Daemon, everything else is internal only