|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
From 955dfc25d92798b9c088ae92133533afa9590cdb Mon Sep 17 00:00:00 2001
|
|
|
|
|
From 18f4f0763dc134a05ac4e2e36a1590ce6917ff33 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From: Alexey Berezhok <alexey.berezhok@softline.com>
|
|
|
|
|
Date: Tue, 2 May 2023 15:51:50 +0300
|
|
|
|
|
Subject: [PATCH] Added yandex provider (prebuild version)
|
|
|
|
@ -352,7 +352,7 @@ index 9e5bd45..c4858b7 100644
|
|
|
|
|
#endif
|
|
|
|
|
diff --git a/src/goabackend/goayandexprovider.c b/src/goabackend/goayandexprovider.c
|
|
|
|
|
new file mode 100644
|
|
|
|
|
index 0000000..c64973d
|
|
|
|
|
index 0000000..ab74283
|
|
|
|
|
--- /dev/null
|
|
|
|
|
+++ b/src/goabackend/goayandexprovider.c
|
|
|
|
|
@@ -0,0 +1,369 @@
|
|
|
|
@ -426,7 +426,7 @@ index 0000000..c64973d
|
|
|
|
|
+ return GOA_PROVIDER_FEATURE_BRANDED |
|
|
|
|
|
+ GOA_PROVIDER_FEATURE_MAIL |
|
|
|
|
|
+ GOA_PROVIDER_FEATURE_CALENDAR |
|
|
|
|
|
+ GOA_PROVIDER_FEATURE_CONTACTS |
|
|
|
|
|
+// GOA_PROVIDER_FEATURE_CONTACTS |
|
|
|
|
|
+ GOA_PROVIDER_FEATURE_FILES;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
@ -457,7 +457,7 @@ index 0000000..c64973d
|
|
|
|
|
+static guint
|
|
|
|
|
+get_credentials_generation (GoaProvider *provider)
|
|
|
|
|
+{
|
|
|
|
|
+ return 22;
|
|
|
|
|
+ return 24;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+static const gchar *
|
|
|
|
@ -635,10 +635,10 @@ index 0000000..c64973d
|
|
|
|
|
+ g_free (uri_caldav);
|
|
|
|
|
+
|
|
|
|
|
+ /* Contacts */
|
|
|
|
|
+ contacts_enabled = g_key_file_get_boolean (key_file, group, "ContactsEnabled", NULL);
|
|
|
|
|
+ uri_carddav = g_strconcat ("https://carddav.yandex.ru/", NULL);
|
|
|
|
|
+ goa_object_skeleton_attach_contacts (object, uri_carddav, contacts_enabled, FALSE);
|
|
|
|
|
+ g_free (uri_carddav);
|
|
|
|
|
+ // contacts_enabled = g_key_file_get_boolean (key_file, group, "ContactsEnabled", NULL);
|
|
|
|
|
+ // uri_carddav = g_strconcat ("https://carddav.yandex.ru/", NULL);
|
|
|
|
|
+ // goa_object_skeleton_attach_contacts (object, uri_carddav, contacts_enabled, FALSE);
|
|
|
|
|
+ // g_free (uri_carddav);
|
|
|
|
|
+
|
|
|
|
|
+ /* Files */
|
|
|
|
|
+ files_enabled = g_key_file_get_boolean (key_file, group, "FilesEnabled", NULL);
|
|
|
|
@ -662,10 +662,10 @@ index 0000000..c64973d
|
|
|
|
|
+ "notify::calendar-disabled",
|
|
|
|
|
+ G_CALLBACK (goa_util_account_notify_property_cb),
|
|
|
|
|
+ (gpointer) "CalendarEnabled");
|
|
|
|
|
+ g_signal_connect (account,
|
|
|
|
|
+ "notify::contacts-disabled",
|
|
|
|
|
+ G_CALLBACK (goa_util_account_notify_property_cb),
|
|
|
|
|
+ (gpointer) "ContactsEnabled");
|
|
|
|
|
+ // g_signal_connect (account,
|
|
|
|
|
+ // "notify::contacts-disabled",
|
|
|
|
|
+ // G_CALLBACK (goa_util_account_notify_property_cb),
|
|
|
|
|
+ // (gpointer) "ContactsEnabled");
|
|
|
|
|
+ g_signal_connect (account,
|
|
|
|
|
+ "notify::files-disabled",
|
|
|
|
|
+ G_CALLBACK (goa_util_account_notify_property_cb),
|
|
|
|
@ -688,7 +688,7 @@ index 0000000..c64973d
|
|
|
|
|
+{
|
|
|
|
|
+ g_variant_builder_add (builder, "{ss}", "MailEnabled", "true");
|
|
|
|
|
+ g_variant_builder_add (builder, "{ss}", "CalendarEnabled", "true");
|
|
|
|
|
+ g_variant_builder_add (builder, "{ss}", "ContactsEnabled", "true");
|
|
|
|
|
+ // g_variant_builder_add (builder, "{ss}", "ContactsEnabled", "true");
|
|
|
|
|
+ g_variant_builder_add (builder, "{ss}", "FilesEnabled", "true");
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|