Improve documentation.

This commit is contained in:
Jonathan Schleifer 2013-02-15 15:32:44 +01:00
parent 7aa05c48bc
commit f186c4f302
16 changed files with 47 additions and 72 deletions

View file

@ -5,5 +5,16 @@ FILE_PATTERNS = *.h *.m
HTML_OUTPUT = . HTML_OUTPUT = .
GENERATE_LATEX = NO GENERATE_LATEX = NO
HIDE_UNDOC_CLASSES = YES HIDE_UNDOC_CLASSES = YES
PREDEFINED = OF_HAVE_PROPERTIES HIDE_UNDOC_MEMBERS = YES
PREDEFINED = OF_HAVE_PROPERTIES \
OF_HAVE_BLOCKS \
OF_HAVE_THREADS \
OF_SENTINEL \
OF_RETURNS_RETAINED \
OF_RETURNS_NOT_RETAINED \
OF_RETURNS_INNER_POINTER \
OF_CONSUMED \
OF_WEAK_UNAVAILABLE
MACRO_EXPANSION = YES
EXPAND_ONLY_PREDEF = YES
IGNORE_PREFIX = XMPP IGNORE_PREFIX = XMPP

View file

@ -27,11 +27,9 @@
*/ */
@interface XMPPAuthenticator: OFObject @interface XMPPAuthenticator: OFObject
{ {
/// \cond internal
OFString *_authzid; OFString *_authzid;
OFString *_authcid; OFString *_authcid;
OFString *_password; OFString *_password;
/// \endcond
} }
#ifdef OF_HAVE_PROPERTIES #ifdef OF_HAVE_PROPERTIES

View file

@ -116,14 +116,14 @@
*/ */
- (void)connectionWasClosed: (XMPPConnection*)connection; - (void)connectionWasClosed: (XMPPConnection*)connection;
/** /*!
* \brief This callback is called when the connection threw an exception. * @brief This callback is called when the connection threw an exception.
* *
* This is only called for connections on which \ref handleConnection: has been * This is only called for connections on which
* called. * @ref XMPPConnection::handleConnection has been called.
* *
* \param connection The connection which threw an exception * @param connection The connection which threw an exception
* \param exception The exception the connection threw * @param exception The exception the connection threw
*/ */
- (void)connection: (XMPPConnection*)connection - (void)connection: (XMPPConnection*)connection
didThrowException: (OFException*)exception; didThrowException: (OFException*)exception;
@ -152,7 +152,6 @@
<OFXMLParserDelegate, OFXMLElementBuilderDelegate> <OFXMLParserDelegate, OFXMLElementBuilderDelegate>
#endif #endif
{ {
/// \cond internal
id _socket; id _socket;
OFXMLParser *_parser, *_oldParser; OFXMLParser *_parser, *_oldParser;
OFXMLElementBuilder *_elementBuilder, *_oldElementBuilder; OFXMLElementBuilder *_elementBuilder, *_oldElementBuilder;
@ -172,7 +171,6 @@
BOOL _supportsRosterVersioning; BOOL _supportsRosterVersioning;
BOOL _supportsStreamManagement; BOOL _supportsStreamManagement;
unsigned int _lastID; unsigned int _lastID;
/// \endcond
} }
#ifdef OF_HAVE_PROPERTIES #ifdef OF_HAVE_PROPERTIES
@ -314,24 +312,26 @@
*/ */
- (void)sendStanza: (OFXMLElement*)element; - (void)sendStanza: (OFXMLElement*)element;
/** /*!
* \brief Sends an XMPPIQ, registering a callback method. * @brief Sends an XMPPIQ, registering a callback method.
* *
* \param target The object that contains the callback method * @param IQ The IQ to send
* \param selector The selector of the callback method, * @param target The object that contains the callback method
* @param selector The selector of the callback method,
* must take exactly one parameter of type XMPPIQ* * must take exactly one parameter of type XMPPIQ*
*/ */
- (void)sendIQ: (XMPPIQ*)iq - (void)sendIQ: (XMPPIQ*)IQ
callbackTarget: (id)target callbackTarget: (id)target
selector: (SEL)selector; selector: (SEL)selector;
#ifdef OF_HAVE_BLOCKS #ifdef OF_HAVE_BLOCKS
/** /*!
* \brief Sends an XMPPIQ, registering a callback block. * @brief Sends an XMPPIQ, registering a callback block.
* *
* \param block The callback block * @param IQ The IQ to send
* @param block The callback block
*/ */
- (void)sendIQ: (XMPPIQ*)iq - (void)sendIQ: (XMPPIQ*)IQ
callbackBlock: (xmpp_callback_block_t)block; callbackBlock: (xmpp_callback_block_t)block;
#endif #endif
@ -362,7 +362,6 @@
- (BOOL)supportsRosterVersioning; - (BOOL)supportsRosterVersioning;
- (BOOL)supportsStreamManagement; - (BOOL)supportsStreamManagement;
/// \cond internal
- (void)XMPP_startStream; - (void)XMPP_startStream;
- (void)XMPP_handleStream: (OFXMLElement*)element; - (void)XMPP_handleStream: (OFXMLElement*)element;
- (void)XMPP_handleTLS: (OFXMLElement*)element; - (void)XMPP_handleTLS: (OFXMLElement*)element;
@ -383,7 +382,6 @@
IQ: (XMPPIQ*)iq; IQ: (XMPPIQ*)iq;
- (OFString*)XMPP_IDNAToASCII: (OFString*)domain; - (OFString*)XMPP_IDNAToASCII: (OFString*)domain;
- (XMPPMulticastDelegate*)XMPP_delegates; - (XMPPMulticastDelegate*)XMPP_delegates;
/// \endcond
@end @end
@interface OFObject (XMPPConnectionDelegate) <XMPPConnectionDelegate> @interface OFObject (XMPPConnectionDelegate) <XMPPConnectionDelegate>

View file

@ -564,43 +564,43 @@
[_socket writeString: [element XMLString]]; [_socket writeString: [element XMLString]];
} }
- (void)sendIQ: (XMPPIQ*)iq - (void)sendIQ: (XMPPIQ*)IQ
callbackTarget: (id)target callbackTarget: (id)target
selector: (SEL)selector selector: (SEL)selector
{ {
OFAutoreleasePool *pool; OFAutoreleasePool *pool;
XMPPCallback *callback; XMPPCallback *callback;
if (![iq ID]) if (![IQ ID])
[iq setID: [self generateStanzaID]]; [IQ setID: [self generateStanzaID]];
pool = [[OFAutoreleasePool alloc] init]; pool = [[OFAutoreleasePool alloc] init];
callback = [XMPPCallback callbackWithTarget: target callback = [XMPPCallback callbackWithTarget: target
selector: selector]; selector: selector];
[_callbacks setObject: callback [_callbacks setObject: callback
forKey: [iq ID]]; forKey: [IQ ID]];
[pool release]; [pool release];
[self sendStanza: iq]; [self sendStanza: IQ];
} }
#ifdef OF_HAVE_BLOCKS #ifdef OF_HAVE_BLOCKS
- (void)sendIQ: (XMPPIQ*)iq - (void)sendIQ: (XMPPIQ*)IQ
callbackBlock: (xmpp_callback_block_t)block callbackBlock: (xmpp_callback_block_t)block
{ {
OFAutoreleasePool *pool; OFAutoreleasePool *pool;
XMPPCallback *callback; XMPPCallback *callback;
if (![iq ID]) if (![IQ ID])
[iq setID: [self generateStanzaID]]; [IQ setID: [self generateStanzaID]];
pool = [[OFAutoreleasePool alloc] init]; pool = [[OFAutoreleasePool alloc] init];
callback = [XMPPCallback callbackWithBlock: block]; callback = [XMPPCallback callbackWithBlock: block];
[_callbacks setObject: callback [_callbacks setObject: callback
forKey: [iq ID]]; forKey: [IQ ID]];
[pool release]; [pool release];
[self sendStanza: iq]; [self sendStanza: IQ];
} }
#endif #endif

View file

@ -33,12 +33,11 @@
*/ */
@interface XMPPContact: OFObject @interface XMPPContact: OFObject
{ {
/// \cond internal
XMPPRosterItem *_rosterItem; XMPPRosterItem *_rosterItem;
OFMutableDictionary *_presences; OFMutableDictionary *_presences;
XMPPJID *_lockedOnJID; XMPPJID *_lockedOnJID;
/// \endcond
} }
#ifdef OF_HAVE_PROPERTIES #ifdef OF_HAVE_PROPERTIES
/// \brief The XMPPRosterItem corresponding to this contact /// \brief The XMPPRosterItem corresponding to this contact
@property (readonly) XMPPRosterItem *rosterItem; @property (readonly) XMPPRosterItem *rosterItem;
@ -55,11 +54,9 @@
- (void)sendMessage: (XMPPMessage*)message - (void)sendMessage: (XMPPMessage*)message
connection: (XMPPConnection*)connection; connection: (XMPPConnection*)connection;
/// \cond internal
- (void)XMPP_setRosterItem: (XMPPRosterItem*)rosterItem; - (void)XMPP_setRosterItem: (XMPPRosterItem*)rosterItem;
- (void)XMPP_setPresence: (XMPPPresence*)presence - (void)XMPP_setPresence: (XMPPPresence*)presence
resource: (OFString*)resource; resource: (OFString*)resource;
- (void)XMPP_removePresenceForResource: (OFString*)resource; - (void)XMPP_removePresenceForResource: (OFString*)resource;
- (void)XMPP_setLockedOnJID: (XMPPJID*)JID; - (void)XMPP_setLockedOnJID: (XMPPJID*)JID;
/// \endcond
@end @end

View file

@ -97,23 +97,23 @@
<XMPPConnectionDelegate, XMPPRosterDelegate> <XMPPConnectionDelegate, XMPPRosterDelegate>
#endif #endif
{ {
/// \cond internal
OFMutableDictionary *_contacts; OFMutableDictionary *_contacts;
XMPPConnection *_connection; XMPPConnection *_connection;
XMPPRoster *_roster; XMPPRoster *_roster;
XMPPMulticastDelegate *_delegates; XMPPMulticastDelegate *_delegates;
/// \endcond
} }
#ifdef OF_HAVE_PROPERTIES #ifdef OF_HAVE_PROPERTIES
/// \brief The tracked contacts, with their bare JID as key /// \brief The tracked contacts, with their bare JID as key
@property (readonly) OFDictionary *contacts; @property (readonly) OFDictionary *contacts;
#endif #endif
/** /*!
* \brief Initializes an already allocated XMPPContactManager. * @brief Initializes an already allocated XMPPContactManager.
* *
* \param connection The connection to be used to track contacts * @param connection The connection to be used to track contacts
* \return An initialized XMPPContactManager * @param roster The roster used by the contact manager
* @return An initialized XMPPContactManager
*/ */
- initWithConnection: (XMPPConnection*)connection - initWithConnection: (XMPPConnection*)connection
roster: (XMPPRoster*)roster; roster: (XMPPRoster*)roster;

View file

@ -30,9 +30,7 @@
*/ */
@interface XMPPException: OFException @interface XMPPException: OFException
{ {
/// \cond internal
XMPPConnection *_connection; XMPPConnection *_connection;
/// \endcond
} }
#ifdef OF_HAVE_PROPERTIES #ifdef OF_HAVE_PROPERTIES
@ -70,10 +68,8 @@
*/ */
@interface XMPPStreamErrorException: XMPPException @interface XMPPStreamErrorException: XMPPException
{ {
/// \cond internal
OFString *_condition; OFString *_condition;
OFString *_reason; OFString *_reason;
/// \endcond
} }
#ifdef OF_HAVE_PROPERTIES #ifdef OF_HAVE_PROPERTIES
@ -121,10 +117,8 @@
*/ */
@interface XMPPStringPrepFailedException: XMPPException @interface XMPPStringPrepFailedException: XMPPException
{ {
/// \cond internal
OFString *_profile; OFString *_profile;
OFString *_string; OFString *_string;
/// \endcond
} }
#ifdef OF_HAVE_PROPERTIES #ifdef OF_HAVE_PROPERTIES
@ -171,10 +165,8 @@
*/ */
@interface XMPPIDNATranslationFailedException: XMPPException @interface XMPPIDNATranslationFailedException: XMPPException
{ {
/// \cond internal
OFString *_operation; OFString *_operation;
OFString *_string; OFString *_string;
/// \endcond
} }
#ifdef OF_HAVE_PROPERTIES #ifdef OF_HAVE_PROPERTIES
@ -221,9 +213,7 @@
*/ */
@interface XMPPAuthFailedException: XMPPException @interface XMPPAuthFailedException: XMPPException
{ {
/// \cond internal
OFString *_reason; OFString *_reason;
/// \endcond
} }
#ifdef OF_HAVE_PROPERTIES #ifdef OF_HAVE_PROPERTIES

View file

@ -28,11 +28,9 @@
*/ */
@interface XMPPJID: OFObject <OFCopying> @interface XMPPJID: OFObject <OFCopying>
{ {
/// \cond internal
OFString *_node; OFString *_node;
OFString *_domain; OFString *_domain;
OFString *_resource; OFString *_resource;
/// \endcond
} }
#ifdef OF_HAVE_PROPERTIES #ifdef OF_HAVE_PROPERTIES

View file

@ -29,9 +29,7 @@
*/ */
@interface XMPPMulticastDelegate: OFObject @interface XMPPMulticastDelegate: OFObject
{ {
/// \cond internal
OFDataArray *_delegates; OFDataArray *_delegates;
/// \endcond
} }
/** /**

View file

@ -28,11 +28,9 @@
*/ */
@interface XMPPPresence: XMPPStanza <OFComparing> @interface XMPPPresence: XMPPStanza <OFComparing>
{ {
/// \cond internal
OFString *_status; OFString *_status;
OFString *_show; OFString *_show;
OFNumber *_priority; OFNumber *_priority;
/// \endcond
} }
#ifdef OF_HAVE_PROPERTIES #ifdef OF_HAVE_PROPERTIES
@property (copy) OFString *status; @property (copy) OFString *status;

View file

@ -68,13 +68,11 @@
<XMPPConnectionDelegate> <XMPPConnectionDelegate>
#endif #endif
{ {
/// \cond internal
XMPPConnection *_connection; XMPPConnection *_connection;
OFMutableDictionary *_rosterItems; OFMutableDictionary *_rosterItems;
XMPPMulticastDelegate *_delegates; XMPPMulticastDelegate *_delegates;
id <XMPPStorage> _dataStorage; id <XMPPStorage> _dataStorage;
BOOL _rosterRequested; BOOL _rosterRequested;
/// \endcond
} }
#ifdef OF_HAVE_PROPERTIES #ifdef OF_HAVE_PROPERTIES
@ -153,12 +151,10 @@
- (void)setDataStorage: (id <XMPPStorage>)dataStorage; - (void)setDataStorage: (id <XMPPStorage>)dataStorage;
- (id <XMPPStorage>)dataStorage; - (id <XMPPStorage>)dataStorage;
/// \cond internal
- (void)XMPP_updateRosterItem: (XMPPRosterItem*)rosterItem; - (void)XMPP_updateRosterItem: (XMPPRosterItem*)rosterItem;
- (void)XMPP_handleInitialRosterForConnection: (XMPPConnection*)connection - (void)XMPP_handleInitialRosterForConnection: (XMPPConnection*)connection
IQ: (XMPPIQ*)iq; IQ: (XMPPIQ*)iq;
- (XMPPRosterItem*)XMPP_rosterItemWithXMLElement: (OFXMLElement*)element; - (XMPPRosterItem*)XMPP_rosterItemWithXMLElement: (OFXMLElement*)element;
/// \endcond
@end @end
@interface OFObject (XMPPRosterDelegate) <XMPPRosterDelegate> @interface OFObject (XMPPRosterDelegate) <XMPPRosterDelegate>

View file

@ -29,12 +29,10 @@
*/ */
@interface XMPPRosterItem: OFObject @interface XMPPRosterItem: OFObject
{ {
/// \cond internal
XMPPJID *_JID; XMPPJID *_JID;
OFString *_name; OFString *_name;
OFString *_subscription; OFString *_subscription;
OFArray *_groups; OFArray *_groups;
/// \endcond
} }
#ifdef OF_HAVE_PROPERTIES #ifdef OF_HAVE_PROPERTIES

View file

@ -29,7 +29,6 @@
*/ */
@interface XMPPSCRAMAuth: XMPPAuthenticator @interface XMPPSCRAMAuth: XMPPAuthenticator
{ {
/// \cond internal
Class _hashType; Class _hashType;
OFString *_cNonce; OFString *_cNonce;
OFString *_GS2Header; OFString *_GS2Header;
@ -38,7 +37,6 @@
XMPPConnection *_connection; XMPPConnection *_connection;
BOOL _plusAvailable; BOOL _plusAvailable;
BOOL _authenticated; BOOL _authenticated;
/// \endcond
} }
/** /**

View file

@ -76,10 +76,9 @@
+ lookupWithDomain: (OFString*)domain; + lookupWithDomain: (OFString*)domain;
- initWithDomain: (OFString*)domain; - initWithDomain: (OFString*)domain;
/// \cond internal
- (void)XMPP_lookup; - (void)XMPP_lookup;
- (void)XMPP_addEntry: (XMPPSRVEntry*)item; - (void)XMPP_addEntry: (XMPPSRVEntry*)item;
/// \endcond
@end @end
@interface XMPPSRVEnumerator: OFEnumerator @interface XMPPSRVEnumerator: OFEnumerator

View file

@ -30,13 +30,11 @@
*/ */
@interface XMPPStanza: OFXMLElement @interface XMPPStanza: OFXMLElement
{ {
/// \cond internal
XMPPJID *_from; XMPPJID *_from;
XMPPJID *_to; XMPPJID *_to;
OFString *_type; OFString *_type;
OFString *_ID; OFString *_ID;
OFString *_language; OFString *_language;
/// \endcond
} }
#ifdef OF_HAVE_PROPERTIES #ifdef OF_HAVE_PROPERTIES

View file

@ -27,10 +27,8 @@
<XMPPConnectionDelegate> <XMPPConnectionDelegate>
#endif #endif
{ {
/// \cond internal
XMPPConnection *_connection; XMPPConnection *_connection;
uint32_t receivedCount; uint32_t receivedCount;
/// \endcond
} }
- initWithConnection: (XMPPConnection*)connection; - initWithConnection: (XMPPConnection*)connection;