core cleanup: the big status/activity revamp
commit85948079432688deffb94086bef51479a03c6612
authorStefan Becker <chemobejk@gmail.com>
Wed, 7 Dec 2011 21:28:16 +0000 (7 23:28 +0200)
committerStefan Becker <chemobejk@gmail.com>
Wed, 7 Dec 2011 21:28:16 +0000 (7 23:28 +0200)
tree53fc9368938162855f30d9b02bcc1f1ea8b2cbac
parent7069b38e164569152a731f064d36685b572c0cab
core cleanup: the big status/activity revamp

Core only has a mapping table activity -> translation.
Backend only has a mapping table activity <-> token

Replaced all SIPE_STATUS_ID_xxx with access to the backend mapping
function. That freed up all the status functions in sipe.c and they
could be moved out.

@TODO: look into replacing all "const gchar *status_id" in the core &
backend APIs with guint activity...

There are only two status functions left in sipe.c that need to be split
between core & backend. After that only the buddy menu functionality is
left in sipe.c.
15 files changed:
po/POTFILES.in
src/api/sipe-backend.h
src/api/sipe-core.h
src/core/sipe-buddy.c
src/core/sipe-core.c
src/core/sipe-notify.c
src/core/sipe-ocs2005.c
src/core/sipe-ocs2005.h
src/core/sipe-ocs2007.c
src/core/sipe-ocs2007.h
src/core/sipe-status.c
src/core/sipe-status.h
src/core/sipe.c
src/core/sipe.h
src/purple/purple-plugin.c