Authors
- Generated by root
-
- Declared in:
- JabberPerson.h
- Conforms to:
- PresenceHandler
A JabberPerson is an abstract interface to a person on the
Jabber network. A Jabber person has at least one
client (JID) associated with them, in the form of an
identity. The concept of a person is fairly fuzzy,
but should roughly correspond to real-world people. Other
unique actors in the Jabber network might also be
modeled as people, for example a groupchat room could
be a person and all members of it identities of that
person.
Instance Variables
Method summary
+ (id)
jabberPersonWithIdentity: (
JabberIdentity*)_identity
forRoster: (id)_roster;
Instantiate a new person from an identity and
associate them with a roster. Note that the
JabberIdentity class is used to parse roster
items, and so it will duplicate the name and group
for the person.
- (void)
addIdentity: (
JabberIdentity*)_identity;
Add a new identity to an existing person.
- (NSComparisonResult)
compare: (
JabberPerson*)otherPerson;
Compares two people by their name.
- (
JabberIdentity*)
defaultIdentity;
Returns the most identity that should be used to
communicate with this person when none is
specified by the user.
- (NSString*)
group;
Returns the name of the roster group containing the
person.
- (void)
group: (NSString*)_group;
Set the name of the roster group containing the person.
- (unsigned int)
identities;
Returns the number of identities. Deprecated (use
the array directly).
- (
JabberIdentity*)
identityForJID: (
JID*)jid;
Returns the identity for a specified Jabber ID.
- (NSArray*)
identityList;
Returns all identities associated with this person.
- (id)
initWithIdentity: (
JabberIdentity*)_identity
forRoster: (id)_roster;
Initialise a new person with a specified
identity and roster.
- (NSString*)
name;
Returns the name of the person.
- (void)
name: (NSString*)_name;
Sets the name of the person.
- (void)
removeIdentity: (
JabberIdentity*)_identity;
Remove an identity from an existing person.
Instance Variables for JabberPerson Class
@protected NSString* group;
Description forthcoming.
@protected unsigned int hash;
Description forthcoming.
@protected NSMutableDictionary* identities;
Description forthcoming.
@protected unsigned int identityCount;
Description forthcoming.
@protected NSMutableArray* identityList;
Description forthcoming.
@protected NSString* name;
Description forthcoming.
@protected id roster;
Description forthcoming.