2001-04-19 14:21:46 +02:00
|
|
|
/*
|
|
|
|
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
|
2007-01-03 06:42:43 +01:00
|
|
|
* Copyright (C) 1999-2007 Hiroyuki Yamamoto and the Claws Mail team
|
2001-04-19 14:21:46 +02:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
2007-07-11 18:38:12 +02:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2001-04-19 14:21:46 +02:00
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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
|
2007-07-11 18:38:12 +02:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
2001-04-19 14:21:46 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MAIN_H__
|
|
|
|
#define __MAIN_H__
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
#include <gtk/gtkwidget.h>
|
2007-10-13 07:31:36 +02:00
|
|
|
#ifdef MAEMO
|
2007-11-10 13:42:23 +01:00
|
|
|
#ifdef CHINOOK
|
|
|
|
#include <hildon/hildon-program.h>
|
|
|
|
#else
|
2007-10-13 07:31:36 +02:00
|
|
|
#include <hildon-widgets/hildon-program.h>
|
|
|
|
#include <hildon-widgets/hildon-window.h>
|
|
|
|
#endif
|
2007-11-10 13:42:23 +01:00
|
|
|
#endif
|
2007-10-13 07:31:36 +02:00
|
|
|
|
2007-10-13 10:28:20 +02:00
|
|
|
extern gchar *prog_version;
|
|
|
|
extern gboolean debug_mode;
|
|
|
|
|
|
|
|
#ifdef MAEMO
|
|
|
|
extern HildonProgram *hildon_program;
|
|
|
|
#endif
|
2001-04-19 14:21:46 +02:00
|
|
|
|
|
|
|
void app_will_exit (GtkWidget *widget, gpointer data);
|
2004-01-12 22:28:31 +01:00
|
|
|
gboolean clean_quit (gpointer data);
|
2006-11-27 09:07:23 +01:00
|
|
|
gboolean claws_is_exiting(void);
|
2006-12-13 08:44:00 +01:00
|
|
|
gboolean claws_is_starting(void);
|
2007-01-21 13:16:52 +01:00
|
|
|
gchar *claws_get_socket_name(void);
|
2007-02-23 19:09:54 +01:00
|
|
|
void main_set_show_at_startup(gboolean show);
|
2007-05-15 20:45:52 +02:00
|
|
|
gboolean claws_crashed(void);
|
2007-02-23 19:09:54 +01:00
|
|
|
|
2008-01-14 10:14:07 +01:00
|
|
|
#ifdef HAVE_NETWORKMANAGER_SUPPORT
|
|
|
|
gboolean networkmanager_is_online(GError **error);
|
|
|
|
#endif
|
|
|
|
|
2001-04-19 14:21:46 +02:00
|
|
|
#endif /* __MAIN_H__ */
|