Add a CallsManager and move Provider handling to it

The manager is a central place for handling data e.g. calls history and
provider managment.

This introduces only the base for feature work. Therefore it manages
only the provider for now, but the manager isn't yet used anywhere.

The propagets events from the provider and origins. It also adds a new
signal called `error`. The `error` signal should be emited only when
something went wrong and we need to inform the user about it, containing
the message to be displayed to the user. Windows should connect to the
event and display a in-app-notification on error. This event isn't
emitted, because the plugins don't give us a usable error.
This commit is contained in:
Julian Sparber
2020-03-17 16:29:43 +01:00
parent ed0da2a3ab
commit 9055724f33
4 changed files with 607 additions and 115 deletions

View File

@@ -89,6 +89,7 @@ calls_sources = files(['calls-message-source.c', 'calls-message-source.h',
'calls-contacts.c', 'calls-contacts.h',
'calls-best-match.c', 'calls-best-match.h',
'calls-in-app-notification.c', 'calls-in-app-notification.h',
'calls-manager.c', 'calls-manager.h',
])
calls_config_data = config_data
@@ -106,7 +107,7 @@ config_h = vcs_tag(
output: 'config.h',
)
calls_enum_headers = files(['calls-call.h'])
calls_enum_headers = files(['calls-call.h', 'calls-manager.h'])
calls_enum_sources = gnome.mkenums_simple('enum-types',
sources : calls_enum_headers)