Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

gtk-composewindow.h

Go to the documentation of this file.
00001 /*
00002  * XetPan: a libEtPan! based Mail User Agent
00003  * Copyright (C) 2002-2003 Melvin Hadasht
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00018  */
00019 
00020 #ifndef GTK_COMPOSEWINDOW_H
00021 #define GTK_COMPOSEWINDOW_H
00022 
00023 #include <gtk/gtkwidget.h>
00024 #include <gtk/gtkitemfactory.h>
00025 
00026 #include "xetpan-types.h" /* XetPan */
00027 #include "message-types.h" /* XePMessage */
00028 #include "ui-types.h"     /* XePUIType, XePUIMain */
00029 #include "gtk-types.h"
00030 #include "mta.h"
00031 
00032 /* Defined here because ui.h needs it to create an union */
00033 struct XePGTKComposeWindow_s
00034 {
00038   XePUIType type;                  
00039   XetPan *xetpan;                  
00040   XePUIMain *uimain;               
00041   XePMTA *mta;                     
00042   XePGTKMessageView *messageview;  
00043   char *sent_folder;               
00045   GtkWidget *toplevel; 
00046   GtkWidget *menubar;
00047   GtkItemFactory *menu_factory;
00048   XePGTKToolbar *toolbar;
00049   GtkWidget *header_table;
00050   GtkWidget *from_combo;
00051   GtkWidget *subject_entry;
00052   GList *headers;
00053   int header_pane_position;
00054 };
00055 
00056 XePGTKComposeWindow *
00057 a_GtkComposewindow_create(XetPan *xetpan, char *terminal);
00058 
00059 void
00060 a_GtkComposewindow_free(XePGTKComposeWindow *uicompose);
00061 
00062 void
00063 a_GtkComposewindow_add_header(XePGTKComposeWindow *uicompose, 
00064                               XePMessageHeaderType header_type,
00065                               const char *header_name,
00066                               const char *header_value);
00067 
00068 void
00069 a_GtkComposewindow_add_to_header(XePGTKComposeWindow *uicompose,
00070                                  const char *value);
00071 
00072 void
00073 a_GtkComposewindow_add_cc_header(XePGTKComposeWindow *uicompose,
00074                                  const char *value);
00075 
00076 void
00077 a_GtkComposewindow_add_bcc_header(XePGTKComposeWindow *uicompose,
00078                                   const char *value);
00079 
00080 void
00081 a_GtkComposewindow_add_other_header(XePGTKComposeWindow *uicompose,
00082                                     const char *other_header,
00083                                     const char *value);
00084 
00085 void
00086 a_GtkComposewindow_set_message(XePGTKComposeWindow *uicompose, 
00087                                XePMessage *message);
00094 void
00095 a_GtkComposewindow_set_body_text(XePGTKComposeWindow *uicompose,
00096                                  const char *text,
00097                                  size_t text_size,
00098                                  const char *text_charset);
00099 
00104 void
00105 a_GtkComposewindow_list_headers(XePGTKComposeWindow *uicompose);
00106 
00110 void
00111 a_GtkComposewindow_send(XePGTKComposeWindow *uicompose);
00112 
00113 #endif

Generated on Wed Oct 22 15:50:23 2003 for XetPan by doxygen 1.3.2