summaryrefslogtreecommitdiff
path: root/lib/notifd/signals.md
diff options
context:
space:
mode:
Diffstat (limited to 'lib/notifd/signals.md')
-rw-r--r--lib/notifd/signals.md35
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/notifd/signals.md b/lib/notifd/signals.md
new file mode 100644
index 0000000..cdc6688
--- /dev/null
+++ b/lib/notifd/signals.md
@@ -0,0 +1,35 @@
+# 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, replaced) - 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, replaced)
+* 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