Authors
- Generated by builder
-
- Declared in:
- XMPPPerson.h
- Conforms to:
- PresenceHandler
- XMPPInfoQueryStanzaHandler
A XMPPPerson 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)
personWithIdentity: (
XMPPIdentity*)_identity
forRoster: (id)_roster;
Instantiate a new person from an identity and
associate them with a roster. Note that the
XMPPIdentity class is used to parse roster
items, and so it will duplicate the name and group
for the person.
- (void)
addIdentity: (
XMPPIdentity*)anIdentity;
Add a new identity to an existing person.
- (
NSImage*)
avatar;
Returns the user's avatar.
- (
XMPPIdentity*)
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.
- (
NSUInteger)
identities;
Returns the number of identities. Deprecated (use
the array directly).
- (
XMPPIdentity*)
identityForJID: (
JID*)jid;
Returns the identity for a specified Jabber ID.
- (
NSArray*)
identityList;
Returns all identities associated with this person.
- (id)
initWithIdentity: (
XMPPIdentity*)_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: (
XMPPIdentity*)_identity;
Remove an identity from an existing person.
Instance Variables for XMPPPerson Class
@protected NSImage* avatar;
Description forthcoming.
@protected NSString* currentHash;
Description forthcoming.
@protected NSString* group;
Description forthcoming.
@protected NSUInteger hash;
Description forthcoming.
@protected NSMutableDictionary* identities;
Description forthcoming.
@protected NSUInteger identityCount;
Description forthcoming.
@protected NSMutableArray* identityList;
Description forthcoming.
@protected NSString* name;
Description forthcoming.
@protected NSMutableDictionary* photoHashes;
Description forthcoming.
@protected id roster;
Description forthcoming.
@protected ABPerson* vCard;
Description forthcoming.