* mu-msg-iter: improve code documentation

This commit is contained in:
Dirk-Jan C. Binnema 2011-05-01 15:00:28 +03:00
parent a633475e1b
commit f02cdf1f00
2 changed files with 18 additions and 11 deletions

View File

@ -145,9 +145,9 @@ mu_msg_iter_next (MuMsgIter *iter)
* because of the database not being fully up to
* date. in that case, we ignore the message. it
* might be nice to auto-delete these messages from
* the db, but that would might screw up the
* search; also, we only have read-only access to
* the db here */
* the db, but that might screw up the search;
* also, we only have read-only access to the db
* here */
if (!message_is_readable (iter))
return mu_msg_iter_next (iter);

View File

@ -26,6 +26,14 @@
G_BEGIN_DECLS
/**
* MuMsgIter is a structure to iterate over the results of a
* query. You can iterate only in one-direction, and you can do it
* only once.
*
*/
struct _MuMsgIter;
typedef struct _MuMsgIter MuMsgIter;
@ -61,12 +69,11 @@ void mu_msg_iter_destroy (MuMsgIter *iter);
/**
* get the corresponding MuMsg for this iter; this requires the
* corresponding message file to be present at the expected place in
* the maildir in the file system. Note, it's faster to use the
* database fields (the various mu_msg_iter_get_... functions), so
* MuMsg should use only when information is needed that is not
* provided from the iter).
* get the corresponding MuMsg for this iter; this requires the actual
* message file to be present at the expected place in the maildir in
* the file system. Note, it's faster to use the database fields (the
* various mu_msg_iter_get_... functions), so MuMsg should use only
* when information is needed that is not provided from the iter).
*
* @param iter a valid MuMsgIter instance
* @param err which receives error info or NULL. err is only filled
@ -79,7 +86,7 @@ MuMsg* mu_msg_iter_get_msg (MuMsgIter *iter, GError **err)
G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;
/**
/**
* get a structure with information about this iter; this struct is
* newly allocated, can be used to keep an in-memory record of a
* message
@ -105,7 +112,7 @@ unsigned int mu_msg_iter_get_docid (MuMsgIter *iter);
/**
/**
* get the index for this iterator (ie. somewhere between [0..n-1],
* with being the number of matches, and increasing 1 for each
* iter_next)