/* $Id: compose.h,v 1.7 2007/06/13 18:02:22 khorben Exp $ */ /* Copyright (c) 2007 Pierre Pronchery */ /* This file is part of DeforaOS Desktop Mailer */ /* Mailer is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License version 2 as published by the Free * Software Foundation. * * Mailer is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR * A PARTICULAR PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with * Mailer; if not, write to the Free Software Foundation, Inc., 59 Temple Place, * Suite 330, Boston, MA 02111-1307 USA */ #ifndef MAILER_COMPOSE_H # define MAILER_COMPOSE_H # include # include "mailer.h" /* types */ typedef struct _Compose { Mailer * mailer; /* sending mail */ pid_t pid; int fd; char * buf; size_t buf_len; size_t buf_pos; GIOChannel * channel; GtkWidget * snd_window; GtkWidget * snd_progress; /* widgets */ GtkWidget * window; GtkWidget * from; GtkWidget * to; GtkWidget * tb_cc; GtkWidget * cc; GtkWidget * tb_bcc; GtkWidget * bcc; GtkWidget * subject; GtkWidget * view; GtkWidget * statusbar; gint statusbar_id; } Compose; /* methods */ Compose * compose_new(Mailer * mailer); void compose_delete(Compose * compose); /* useful */ void compose_save(Compose * compose); void compose_send(Compose * compose); #endif /* !MAILER_COMPOSE_H */