[Bug 32979] New: Add extensions to allow accounts to be hidden from the main AccountManager interface
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Jan 10 20:50:10 CET 2011
https://bugs.freedesktop.org/show_bug.cgi?id=32979
Summary: Add extensions to allow accounts to be hidden from the
main AccountManager interface
Product: Telepathy
Version: git master
Platform: Other
OS/Version: All
Status: NEW
Keywords: patch
Severity: normal
Priority: medium
Component: mission-control
AssignedTo: telepathy-bugs at lists.freedesktop.org
ReportedBy: will.thompson at collabora.co.uk
QAContact: telepathy-bugs at lists.freedesktop.org
I have been working on an extension for Mission Control to allow certain
accounts to be hidden from the main AccountManager interface. The use-case is
building services on top of IM protocols, using accounts which are not actually
intended for human consumption. Rather than requiring every UI to do special
work to avoid showing the account to the user, we simply do not list the
account in AM.ValidAccounts, shunting it off to
AM.Interface.Hidden.ValidHiddenAccounts. In all other respects the account
behaves normally. See
http://people.freedesktop.org/~wjt/telepathy-spec-hidden/spec/Account_Manager_Interface_Hidden.html
and
http://people.freedesktop.org/~wjt/telepathy-spec-hidden/spec/Account_Interface_Hidden.html
for the proposed D-Bus API. (I haven't polished these very far, hence my not
proposing them for merge to the Telepathy spec just yet.
Anyway! I have an implementation of this in Mission Control. The branch is
actually rather big, so I've split it into four and a half distinct chunks, all
built atop one another.
'miscellaneous-cleanup'
<http://git.collabora.co.uk/?p=user/wjt/telepathy-mission-control-wjt.git;a=shortlog;h=refs/heads/miscellaneous-cleanup>
does some preliminary cleanup on the test suite and a couple of debug messages.
'hidden-for-keyfiles'
<http://git.collabora.co.uk/?p=user/wjt/telepathy-mission-control-wjt.git;a=shortlog;h=refs/heads/hidden-for-keyfiles>
implements the above interfaces, with no special handling in the storage
backends. So they'll work fine for accounts backed by a keyfile, but they don't
work for accounts-glib-backed accounts.
'accounts-glib-cleanup'
<http://git.collabora.co.uk/?p=user/wjt/telepathy-mission-control-wjt.git;a=shortlog;h=refs/heads/accounts-glib-cleanup>
does some preliminary refactoring of the accounts-glib backend, fixes a couple
of bugs and does a little clean-up.
'hidden-for-accounts-glib'
<http://git.collabora.co.uk/?p=user/wjt/telepathy-mission-control-wjt.git;a=shortlog;h=refs/heads/hidden-for-accounts-glib>
adds a subclass of the standard accounts-glib backend which looks for accounts
of the 'HiddenIM' service type and marks them as hidden.
I am somewhat sceptical of the merits of including the latter in stock MC.
Currently it has to be in-tree due to bug 32914, which I have begun to fix
(hence the half-branch I mentioned above).
24 files changed, 1033 insertions(+), 374 deletions(-)
I'm in danger of losing all the good karma I earned by deleting
MinimumPresence. :'(
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the telepathy-bugs
mailing list