After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 680448 - Generate UOA plugins
Generate UOA plugins
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: General
2.33.x
Other Linux
: Normal enhancement
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks: 680449
 
 
Reported: 2012-07-23 13:35 UTC by Guillaume Desmottes
Modified: 2012-07-24 14:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
add account-plugin-widget (7.81 KB, patch)
2012-07-23 13:44 UTC, Guillaume Desmottes
committed Details | Review
add empathy-account-plugin (5.33 KB, patch)
2012-07-23 13:44 UTC, Guillaume Desmottes
committed Details | Review
Hook cc-plugins to the build system (2.91 KB, patch)
2012-07-23 13:44 UTC, Guillaume Desmottes
committed Details | Review
account-plugin-widget: display the top bar and account widget (8.78 KB, patch)
2012-07-23 13:44 UTC, Guillaume Desmottes
committed Details | Review
Add jabber provider, service and plugin (3.38 KB, patch)
2012-07-23 13:44 UTC, Guillaume Desmottes
committed Details | Review
add generate-plugins.py (7.57 KB, patch)
2012-07-23 13:44 UTC, Guillaume Desmottes
committed Details | Review
Generate plugins for most protocols (28.15 KB, patch)
2012-07-23 13:44 UTC, Guillaume Desmottes
committed Details | Review
account-plugins: implement delete (1.01 KB, patch)
2012-07-23 13:44 UTC, Guillaume Desmottes
committed Details | Review
add empathy.application (2.13 KB, patch)
2012-07-23 13:44 UTC, Guillaume Desmottes
none Details | Review

Description Guillaume Desmottes 2012-07-23 13:35:47 UTC
With these plugins any Empathy account can be created using Ubuntu Online Accounts.
Comment 1 Guillaume Desmottes 2012-07-23 13:44:24 UTC
Created attachment 219486 [details] [review]
add account-plugin-widget
Comment 2 Guillaume Desmottes 2012-07-23 13:44:26 UTC
Created attachment 219487 [details] [review]
add empathy-account-plugin
Comment 3 Guillaume Desmottes 2012-07-23 13:44:29 UTC
Created attachment 219488 [details] [review]
Hook cc-plugins to the build system
Comment 4 Guillaume Desmottes 2012-07-23 13:44:31 UTC
Created attachment 219489 [details] [review]
account-plugin-widget: display the top bar and account widget
Comment 5 Guillaume Desmottes 2012-07-23 13:44:34 UTC
Created attachment 219490 [details] [review]
Add jabber provider, service and plugin
Comment 6 Guillaume Desmottes 2012-07-23 13:44:36 UTC
Created attachment 219491 [details] [review]
add generate-plugins.py

Handy script to generate all the boilerplates for each protocol we are
supporting.
Comment 7 Guillaume Desmottes 2012-07-23 13:44:39 UTC
Created attachment 219492 [details] [review]
Generate plugins for most protocols
Comment 8 Guillaume Desmottes 2012-07-23 13:44:42 UTC
Created attachment 219493 [details] [review]
account-plugins: implement delete
Comment 9 Guillaume Desmottes 2012-07-23 13:44:45 UTC
Created attachment 219494 [details] [review]
add empathy.application
Comment 11 Xavier Claessens 2012-07-23 14:10:47 UTC
Review of attachment 219493 [details] [review]:

::: ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.c
@@ +57,3 @@
+
+  ag_account_delete (account);
+  ag_account_store (account, NULL, NULL);

You should create a GSimpleAsyncResult for this.
Comment 12 Xavier Claessens 2012-07-23 14:13:16 UTC
Review of attachment 219494 [details] [review]:

::: ubuntu-online-accounts/cc-plugins/empathy.application
@@ +10,3 @@
+  </service-types>
+
+</application>

tab indentation, really?
Comment 13 Xavier Claessens 2012-07-23 14:18:45 UTC
Review of attachment 219494 [details] [review]:

::: ubuntu-online-accounts/cc-plugins/generate-plugins.py
@@ +65,3 @@
+
+app_DATA =\\
+       empathy.application

the rest of the Makefile.am uses 1tab indentation, here you have spaces
Comment 14 Xavier Claessens 2012-07-23 14:24:10 UTC
empathy-accounts-plugin-widget.c:128:12: error: 'protocol' may be used uninitialized in this function [-Werror=maybe-uninitialized]
empathy-accounts-plugin-widget.c:104:20: note: 'protocol' was declared here
empathy-accounts-plugin-widget.c:128:12: error: 'manager' may be used uninitialized in this function [-Werror=maybe-uninitialized]
empathy-accounts-plugin-widget.c:104:10: note: 'manager' was declared here
Comment 15 Xavier Claessens 2012-07-23 14:38:55 UTC
If I understand correctly, you can't modify settings of an existing account yet, right? For info, you can get the setting key "telepathy/mc-account-name" on an AgAccountService. That's the account's object-path without the TP_ACCOUNT_OBJECT_PATH_BASE prefix.
Comment 16 Xavier Claessens 2012-07-23 14:40:49 UTC
Voilà that's all :)
Comment 17 Xavier Claessens 2012-07-23 21:13:08 UTC
I've tested this, and I've seen 2 issues:

1) account is not enabled once created
2) TpAccount has the empathy icon instead of ubuntu's
Comment 18 Guillaume Desmottes 2012-07-24 09:54:42 UTC
Review of attachment 219493 [details] [review]:

::: ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.c
@@ +57,3 @@
+
+  ag_account_delete (account);
+  ag_account_store (account, NULL, NULL);

It's a custom callback, but yeah; done.
Comment 19 Guillaume Desmottes 2012-07-24 09:56:55 UTC
Review of attachment 219494 [details] [review]:

::: ubuntu-online-accounts/cc-plugins/empathy.application
@@ +10,3 @@
+  </service-types>
+
+</application>

I copied Shotwell's application file and just changed some keys. Probably best to stay coherent.

::: ubuntu-online-accounts/cc-plugins/generate-plugins.py
@@ +65,3 @@
+
+app_DATA =\\
+       empathy.application

Good point; fixed.
Comment 20 Guillaume Desmottes 2012-07-24 12:19:39 UTC
(In reply to comment #14)
> empathy-accounts-plugin-widget.c:128:12: error: 'protocol' may be used
> uninitialized in this function [-Werror=maybe-uninitialized]
> empathy-accounts-plugin-widget.c:104:20: note: 'protocol' was declared here
> empathy-accounts-plugin-widget.c:128:12: error: 'manager' may be used
> uninitialized in this function [-Werror=maybe-uninitialized]
> empathy-accounts-plugin-widget.c:104:10: note: 'manager' was declared here

fixed.

(In reply to comment #15)
> If I understand correctly, you can't modify settings of an existing account
> yet, right? For info, you can get the setting key "telepathy/mc-account-name"
> on an AgAccountService. That's the account's object-path without the
> TP_ACCOUNT_OBJECT_PATH_BASE prefix.

Yeah that's not implemented yet.

(In reply to comment #17)
> I've tested this, and I've seen 2 issues:

> 1) account is not enabled once created

It is here according to mc-tool  and it does try to connect.

> 2) TpAccount has the empathy icon instead of ubuntu's

Fixed.


The git branch has been updated.
Comment 21 Guillaume Desmottes 2012-07-24 14:37:48 UTC
Attachment 219486 [details] pushed as e0edcdd - add account-plugin-widget
Attachment 219487 [details] pushed as bc95356 - add empathy-account-plugin
Attachment 219488 [details] pushed as 70ea840 - Hook cc-plugins to the build system
Attachment 219489 [details] pushed as ef6264b - account-plugin-widget: display the top bar and account widget
Attachment 219490 [details] pushed as 32cbd28 - Add jabber provider, service and plugin
Attachment 219491 [details] pushed as e296ad8 - add generate-plugins.py
Attachment 219492 [details] pushed as 3d004d7 - Generate plugins for most protocols
Attachment 219493 [details] pushed as 0566139 - account-plugins: implement delete