Desktop
/* $Id: mailer.h,v 1.6 2006/10/27 17:40:09 khorben Exp $ */
/* Copyright (c) 2006 The DeforaOS Project */
#ifndef MAILER_MAILER_H
# define MAILER_MAILER_H
# include <gtk/gtk.h>
# include "account/account.h"
/* Mailer */
/* types */
typedef struct _Mailer
{
Account * available;
int available_cnt;
Account ** account;
int account_cnt;
Account * account_cur;
/* widgets */
GtkWidget * window;
GtkIconTheme * theme;
GtkWidget * view_folders;
GtkWidget * view_headers;
GtkWidget * hdr_vbox;
GtkWidget * hdr_subject;
GtkWidget * hdr_from;
GtkWidget * hdr_to;
GtkWidget * hdr_date;
GtkWidget * view_body;
GtkWidget * statusbar;
gint statusbar_id;
/* preferences */
GtkWidget * pr_window;
GtkWidget * pr_accounts;
} Mailer;
/* functions */
Mailer * mailer_new(void);
void mailer_delete(Mailer * mailer);
/* useful */
int mailer_error(Mailer * mailer, char const * message, int ret);
#endif