Fix a bunch of warnings.
This commit is contained in:
parent
856ac1bd1a
commit
9b49f04239
4 changed files with 13 additions and 6 deletions
|
@ -360,6 +360,7 @@
|
|||
- (void)setLanguage: (OFString*)language;
|
||||
- (OFString*)language;
|
||||
- (BOOL)supportsRosterVersioning;
|
||||
- (BOOL)supportsStreamManagement;
|
||||
|
||||
/// \cond internal
|
||||
- (void)XMPP_startStream;
|
||||
|
@ -384,3 +385,6 @@
|
|||
- (XMPPMulticastDelegate*)XMPP_delegates;
|
||||
/// \endcond
|
||||
@end
|
||||
|
||||
@interface OFObject (XMPPConnectionDelegate) <XMPPConnectionDelegate>
|
||||
@end
|
||||
|
|
|
@ -58,12 +58,12 @@
|
|||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void)addDelegate: (id <XMPPConnectionDelegate>)delegate
|
||||
- (void)addDelegate: (id <XMPPContactManagerDelegate>)delegate
|
||||
{
|
||||
[_delegates addDelegate: delegate];
|
||||
}
|
||||
|
||||
- (void)removeDelegate: (id <XMPPConnectionDelegate>)delegate
|
||||
- (void)removeDelegate: (id <XMPPContactManagerDelegate>)delegate
|
||||
{
|
||||
[_delegates removeDelegate: delegate];
|
||||
}
|
||||
|
|
|
@ -160,3 +160,6 @@
|
|||
- (XMPPRosterItem*)XMPP_rosterItemWithXMLElement: (OFXMLElement*)element;
|
||||
/// \endcond
|
||||
@end
|
||||
|
||||
@interface OFObject (XMPPRosterDelegate) <XMPPRosterDelegate>
|
||||
@end
|
||||
|
|
|
@ -90,11 +90,11 @@
|
|||
}
|
||||
*/
|
||||
|
||||
- (void)connection: (XMPPConnection*)connection_
|
||||
wasBoundToJID: (XMPPJID*)jid
|
||||
- (void)connection: (XMPPConnection*)connection
|
||||
wasBoundToJID: (XMPPJID*)JID
|
||||
{
|
||||
if ([connection_ supportsStreamManagement])
|
||||
[connection_ sendStanza:
|
||||
if ([connection supportsStreamManagement])
|
||||
[connection sendStanza:
|
||||
[OFXMLElement elementWithName: @"enable"
|
||||
namespace: XMPP_NS_SM]];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue