Bug 657905 - Add API to enable/disable Mail, Calendar, Contacts, Chat & Documents on an account
Add API to enable/disable Mail, Calendar, Contacts, Chat & Documents on an ac...
Status: RESOLVED FIXED
Product: gnome-online-accounts
Classification: Core
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME Online Accounts maintainer(s)
GNOME Online Accounts maintainer(s)
:
Depends on:
Blocks: 673263
  Show dependency tree
 
Reported: 2011-09-01 08:57 UTC by Guillaume Desmottes
Modified: 2012-04-02 13:09 UTC (History)
2 users (show)

See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add API to enable/disable Mail, Calendar, Contacts, Chat & Documents (35.86 KB, patch)
2012-03-31 15:12 UTC, Debarshi Ray
none Details | Diff | Review
Add API to enable/disable Mail, Calendar, Contacts, Chat & Documents (35.86 KB, patch)
2012-03-31 22:06 UTC, Debarshi Ray
none Details | Diff | Review

Description Guillaume Desmottes 2011-09-01 08:57:42 UTC
In Empathy we have a GtkSwitch to quickly enable or disable an IM account. I think it would be good to be able to use it with GOA accounts so user won't have to open GOA to do enable/disable accounts (I'll certainly do that with my test accounts). That means we need API to enable/disable the Chat API on a GOA account and the control center widget should watch for changes and update its UI accordingly.
Comment 1 Debarshi Ray 2012-03-31 15:12:48 UTC
Created attachment 211033 [details] [review]
Add API to enable/disable Mail, Calendar, Contacts, Chat & Documents

You have to use these methods on the GoaAccount instance to enable or disable Mail, Chat, etc., which basically will add or remove the org.gnome.OnlineAccounts.{Mail, Chat, etc.} as the case maybe:
  * goa_account_{get,set}_mail_disabled
  * goa_account_{get,set}_chat_disabled
  * ...

I think this should address your requirements. Right?
Comment 2 Debarshi Ray 2012-03-31 22:06:34 UTC
Created attachment 211048 [details] [review]
Add API to enable/disable Mail, Calendar, Contacts, Chat & Documents

Updated the documentation to mention that the interfaces are added or removed asynchronously.
Comment 3 Debarshi Ray 2012-04-02 13:09:56 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.

Note You need to log in before you can comment on or make changes to this bug.