[calls] dummy: provider: Fake being a modem



commit 69c530dda81dab980b35a478e309b416792f6158
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Wed Jan 26 14:46:01 2022 +0100

    dummy: provider: Fake being a modem
    
    This is useful to avoid the "No modem" warning in the UI and helps us avoiding
    to special case the dummy provider/origins.

 plugins/dummy/calls-dummy-provider.c | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/plugins/dummy/calls-dummy-provider.c b/plugins/dummy/calls-dummy-provider.c
index 01094e8f..869d14e2 100644
--- a/plugins/dummy/calls-dummy-provider.c
+++ b/plugins/dummy/calls-dummy-provider.c
@@ -107,6 +107,12 @@ calls_dummy_provider_get_protocols (CallsProvider *provider)
   return supported_protocols;
 }
 
+static gboolean
+calls_dummy_provider_is_modem (CallsProvider *provider)
+{
+  return TRUE;
+}
+
 static void
 constructed (GObject *object)
 {
@@ -147,6 +153,7 @@ calls_dummy_provider_class_init (CallsDummyProviderClass *klass)
   provider_class->get_status = calls_dummy_provider_get_status;
   provider_class->get_origins = calls_dummy_provider_get_origins;
   provider_class->get_protocols = calls_dummy_provider_get_protocols;
+  provider_class->is_modem = calls_dummy_provider_is_modem;
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]