If I understand what you’'re trying to do, there are two ways to accomplish this:
Set the “status” value of the presence to whatever value you’'d like. This could be a binary mask as you describe, or a textual value. Then, customize your client to look for these custom “show” values. To see how the status element works, view the examples at:
Attach your own XML child stanza to the user’'s presence packets. For example:
Your custom child stanza must simply use a custom element name and namespace. Jive Messenger will include any custom child stanzas in the presence packets that are broadcast to roster item members (as required by the XMPP spec).