Details
CAMEL_IS_IMAPX_COMMAND()
#define CAMEL_IS_IMAPX_COMMAND(command)
enum CamelIMAPXCommandPartType
typedef enum {
CAMEL_IMAPX_COMMAND_SIMPLE = 0,
CAMEL_IMAPX_COMMAND_DATAWRAPPER,
CAMEL_IMAPX_COMMAND_STREAM,
CAMEL_IMAPX_COMMAND_AUTH,
CAMEL_IMAPX_COMMAND_FILE,
CAMEL_IMAPX_COMMAND_STRING,
CAMEL_IMAPX_COMMAND_MASK = 0xff,
/* Continuation with LITERAL+ */
CAMEL_IMAPX_COMMAND_LITERAL_PLUS = 1 << 14,
/* Does this command expect continuation? */
CAMEL_IMAPX_COMMAND_CONTINUATION = 1 << 15
} CamelIMAPXCommandPartType;
CAMEL_IMAPX_COMMAND_SIMPLE
|
|
CAMEL_IMAPX_COMMAND_DATAWRAPPER
|
|
CAMEL_IMAPX_COMMAND_STREAM
|
|
CAMEL_IMAPX_COMMAND_AUTH
|
|
CAMEL_IMAPX_COMMAND_FILE
|
|
CAMEL_IMAPX_COMMAND_STRING
|
|
CAMEL_IMAPX_COMMAND_MASK
|
|
CAMEL_IMAPX_COMMAND_LITERAL_PLUS
|
|
CAMEL_IMAPX_COMMAND_CONTINUATION
|
|
CamelIMAPXCommandFunc ()
gboolean (*CamelIMAPXCommandFunc) (struct _CamelIMAPXServer *is
,
CamelIMAPXCommand *ic
,
GCancellable *cancellable
,
GError **error
);
struct CamelIMAPXCommand
struct CamelIMAPXCommand {
struct _CamelIMAPXServer *is;
gint pri;
/* Command name/type (e.g. FETCH) */
const gchar *name;
/* Folder to select */
CamelFolder *select;
/* Status for command, indicates it is complete if != NULL. */
struct _status_info *status;
guint32 tag;
GQueue parts;
GList *current_part;
/* Responsible for free'ing the command. */
CamelIMAPXCommandFunc complete;
};
struct CamelIMAPXCommandPart
struct CamelIMAPXCommandPart {
gint data_size;
gchar *data;
CamelIMAPXCommandPartType type;
gint ob_size;
gpointer ob;
};
camel_imapx_command_new ()
CamelIMAPXCommand * camel_imapx_command_new (struct _CamelIMAPXServer *is
,
const gchar *name
,
CamelFolder *select
,
const gchar *format
,
...
);
camel_imapx_command_check ()
gboolean camel_imapx_command_check (CamelIMAPXCommand *ic
);
camel_imapx_command_set_job ()
void camel_imapx_command_set_job (CamelIMAPXCommand *ic
,
struct _CamelIMAPXJob *job
);
camel_imapx_command_add ()
void camel_imapx_command_add (CamelIMAPXCommand *ic
,
const gchar *format
,
...
);
camel_imapx_command_addv ()
void camel_imapx_command_addv (CamelIMAPXCommand *ic
,
const gchar *format
,
va_list ap
);
camel_imapx_command_set_error_if_failed ()
gboolean camel_imapx_command_set_error_if_failed
(CamelIMAPXCommand *ic
,
GCancellable *cancellable
,
GError **error
);
CamelIMAPXCommandQueue
typedef struct _CamelIMAPXCommandQueue CamelIMAPXCommandQueue;
camel_imapx_command_queue_is_empty ()
gboolean camel_imapx_command_queue_is_empty (CamelIMAPXCommandQueue *queue
);
camel_imapx_command_queue_get_length ()
guint camel_imapx_command_queue_get_length
(CamelIMAPXCommandQueue *queue
);
camel_imapx_command_queue_peek_head_link ()
GList * camel_imapx_command_queue_peek_head_link
(CamelIMAPXCommandQueue *queue
);
camel_imapx_command_queue_delete_link ()
void camel_imapx_command_queue_delete_link
(CamelIMAPXCommandQueue *queue
,
GList *link
);