Guido Günther
e49cd86035
emergency-calls-manager: Use network code to get emergency numbers
...
By far not all sims have emergency numbers and we want to respect the
users current location anyway.
We use a hash to avoid duplicates.
2024-02-10 17:10:10 +01:00
Guido Günther
678a41bade
emergency-calls-manager: Move contact adding to separate function
...
Improves readability and will be get another call site soon.
2024-02-10 17:09:59 +01:00
Guido Günther
9c0acdd560
emergency-calls-manager: Fix object name
2024-02-10 17:09:57 +01:00
Evangelos Ribeiro Tzaras
36fdbc28e6
emergency-calls-manager: Don't leak origin
...
g_list_model_get_item is transfer full
2023-04-09 16:08:22 +02:00
Evangelos Ribeiro Tzaras
0de7599567
emergency-calls-manager: Add missing argument for on_origins_changed handler
...
The "removed" argument of the models "items-changed" signal was
forgotten making it misbehave when origins do get removed:
GLib-GObject[1287799]: WARNING: invalid (NULL) pointer instance
GLib-GObject[1287799]:CRITICAL: g_signal_connect_object: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
2023-04-09 16:08:00 +02:00
Evangelos Ribeiro Tzaras
9a52c57ffe
emergency-calls-manager: Fix indentation
...
By running uncrustify
2023-04-09 12:18:55 +02:00
Guido Günther
e5a4d899f8
emergency-calls-manager: Add support for dialing emergency numbers
...
We just pick the first matching provider.
2023-04-09 09:48:36 +00:00
Guido Günther
b58be993a6
emergency-calls-manager: Don't leak origin
...
g_list_model_get_item is transfer full
2023-04-09 09:48:36 +00:00
Guido Günther
b087bea16b
Resolve emergency number types
...
We add a small hardcoded table for now. Future versions
will improve this to parse this out of ASOPs eccdata.
If we can't determine the type of a number we add it verbatim.
2023-04-06 16:37:59 +00:00
Guido Günther
a8cb3dd7c7
emergency-calls: Notify on DBus when emergency numbers change
...
This is needed if an origin changes it's emergency numbers on the fly
(e.g. when initializing them late).
2023-04-06 16:37:59 +00:00
Guido Günther
d5cba4db7f
emergency-calls-manager: Query origins for numbers
...
When the origins change we notify that emergency numbers
might have changed.
2023-02-12 08:00:56 +00:00
Guido Günther
4bdb6945bd
Add emergency-call manager to interface with DBus
2023-02-12 08:00:56 +00:00