/* ====================================================================
 * FTD4Linux Software License, Version 1.0
 *
 * Copyright (c) 2000-2004 The FTD4Linux Development Team.  All rights
 * reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The end-user documentation included with the redistribution,
 *    if any, must include the following acknowledgment:
 *       "This product includes software developed by the
 *        FTD4Linux Development Team (http://www.ftd4linux.2y.net/)."
 *    Alternately, this acknowledgment may appear in the software itself,
 *    if and wherever such third-party acknowledgments normally appear.
 *
 * 4. The names "FTD" and "FTD4Linux" must
 *    not be used to endorse or promote products derived from this
 *    software without prior written permission. For written
 *    permission, please contact alguno@ftd4linux.2y.net.
 *
 * 5. Products derived from this software may not be called "FTD4Linux",
 *    nor may "FTD4Linux" appear in their name, without prior written
 *    permission of the FTD4Linux Development Team.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL THE FTD4LINUX DEVELOPMENT TEAM OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */

#ifndef _FTD_GUI_MAIL_H_
#define _FTD_GUI_MAIL_H_

///#ifndef NO_EXTERNAL_BROWSER
#include "ftd_gui_browser.h"
///#endif

struct _ftd_gui_mail {
///#ifndef NO_EXTERNAL_BROWSER
    FtdGuiBrowserData   *browser_data;
///#endif
    GtkWidget           *window;
    GtkWidget           *treeOntvangen;
    GtkWidget           *treeVerzonden;
    GtkTreeStore        *treestoreOntvangen;
    GtkTreeStore        *treestoreVerzonden;
    GtkTreeSelection    *selection;
    GtkWidget           *statusbar;
    GtkWidget           *cmdControleer;
    GtkWidget           *cmdNieuw;
    GtkWidget           *cmdReageer;
    GtkWidget           *cmdDeleten;
    GtkWidget           *notebook;
};

void             ftd_gui_mail_new(void);
gboolean         ftd_gui_mail_callback_treeOntvangen_changed(GtkTreeSelection *, gpointer);
gboolean         ftd_gui_mail_callback_treeVerzonden_changed(GtkTreeSelection *, gpointer);
gboolean         ftd_gui_mail_treeOntvangen_update(gpointer);
gboolean         ftd_gui_mail_treeVerzonden_update(gpointer);
gboolean         ftd_gui_mail_callback_controleer_clicked(GtkWidget *, gpointer);
gboolean         ftd_gui_mail_callback_nieuw_clicked(GtkWidget *, gpointer);
gboolean         ftd_gui_mail_callback_reageer_clicked(GtkWidget *, gpointer);
gboolean         ftd_gui_mail_callback_deleten_clicked(GtkWidget *, gpointer);
gboolean         ftd_gui_mail_callback_load_url(gpointer);
gboolean         ftd_gui_mail_switch_page(GtkWidget *, GtkNotebookPage *, guint, gpointer);

#endif /* _FTD_GUI_MAIL_H_ */
