* many: fix unit tests, add synonyms (WIP -- not working yet)

This commit is contained in:
Dirk-Jan C. Binnema
2010-11-20 16:37:23 +02:00
parent 208322527b
commit 20e39933e5
4 changed files with 167 additions and 63 deletions

View File

@ -112,7 +112,35 @@ const char* mu_msg_flags_to_str_s (MuMsgFlags flags) G_GNUC_CONST;
*
* @return the char for this flag, or 0 if not found
*/
char mu_msg_flags_char (MuMsgFlags flag);
char mu_msg_flag_char (MuMsgFlags flag) G_GNUC_CONST;
/**
* get a string describing this flag
*
* @param flag a single flag (not OR'ed)
*
* @return a string describing this flag, e.g.,
* MU_MSG_FLAG_ATTACH=>"attach"
*/
const char* mu_msg_flag_to_name (MuMsgFlags flag) G_GNUC_CONST;
typedef void (*MuMsgFlagsForeachFunc)
(MuMsgFlags flag, gpointer user_data);
/**
* call a function for each available message flag
*
* @param func a function to call (callback)
* @param user_data user pointer passed to the callback
*/
void mu_msg_flags_foreach (MuMsgFlagsForeachFunc func, gpointer user_data);
/**
* get the Maildir flags from a mailfile. The flags are as specified
@ -128,6 +156,7 @@ char mu_msg_flags_char (MuMsgFlags flag);
*/
MuMsgFlags mu_msg_flags_from_file (const char* pathname) G_GNUC_PURE;
/**
* is the message flag a file flag? ie. encoded in the filename
*