27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
@class XMPPConnection;
@class XMPPJID;
@class XMPPRosterItem;
@class XMPPMessage;
@class XMPPPresence;
/**
* \brief A class describing a contact tracked by a XMPPContactManager
*/
@interface XMPPContact: OFObject
{
XMPPRosterItem *_rosterItem;
OFMutableDictionary *_presences;
XMPPJID *_lockedOnJID;
}
/// \brief The XMPPRosterItem corresponding to this contact
@property (readonly, nonatomic) XMPPRosterItem *rosterItem;
/// \brief The XMPPPresences of this contact with the resources as keys
@property (readonly, nonatomic) OFDictionary *presences;
/**
* \brief Sends a message to the contact honoring resource locking
*
* \param message The message to send
* \param connection The connection to use for sending the message
*/
- (void)sendMessage: (XMPPMessage *)message
connection: (XMPPConnection *)connection;
@end
OF_ASSUME_NONNULL_END
|
|
|
>
|
>
>
>
|
>
|
|
|
|
|
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
@class XMPPConnection;
@class XMPPJID;
@class XMPPRosterItem;
@class XMPPMessage;
@class XMPPPresence;
/*!
* @brief A class describing a contact tracked by a XMPPContactManager
*/
@interface XMPPContact: OFObject
{
XMPPRosterItem *_rosterItem;
OFMutableDictionary *_presences;
XMPPJID *_lockedOnJID;
}
/*!
* The XMPPRosterItem corresponding to this contact.
*/
@property (readonly, nonatomic) XMPPRosterItem *rosterItem;
/*!
* The XMPPPresences of this contact with the resources as keys.
*/
@property (readonly, nonatomic) OFDictionary *presences;
/*!
* @brief Sends a message to the contact honoring resource locking
*
* @param message The message to send
* @param connection The connection to use for sending the message
*/
- (void)sendMessage: (XMPPMessage *)message
connection: (XMPPConnection *)connection;
@end
OF_ASSUME_NONNULL_END
|