Forgot to adjust default window size
[claws.git] / src / inc.h
blob9073f9000ddb7dc9cad9fcad9227e5bd0eef6a00
1 /*
2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef __INC_H__
21 #define __INC_H__
23 #ifdef HAVE_CONFIG_H
24 #include "claws-features.h"
25 #endif
27 #include <glib.h>
29 #include "mainwindow.h"
30 #include "progressdialog.h"
31 #include "prefs_account.h"
32 #include "session.h"
33 #include "pop.h"
35 typedef struct _IncProgressDialog IncProgressDialog;
36 typedef struct _IncSession IncSession;
38 typedef enum
40 INC_SUCCESS,
41 INC_CONNECT_ERROR,
42 INC_AUTH_FAILED,
43 INC_LOCKED,
44 INC_ERROR,
45 INC_NO_SPACE,
46 INC_IO_ERROR,
47 INC_SOCKET_ERROR,
48 INC_EOF,
49 INC_TIMEOUT,
50 INC_CANCEL
51 } IncState;
53 struct _IncProgressDialog
55 ProgressDialog *dialog;
57 MainWindow *mainwin;
59 gboolean show_dialog;
61 GTimeVal progress_tv;
62 GTimeVal folder_tv;
64 GList *queue_list; /* list of IncSession */
65 gint cur_row;
68 struct _IncSession
70 Session *session;
71 IncState inc_state;
73 gint cur_total_bytes;
75 gpointer data;
78 #define TIMEOUT_ITV 200
80 void inc_mail (MainWindow *mainwin,
81 gboolean notify);
82 gint inc_account_mail (MainWindow *mainwin,
83 PrefsAccount *account);
84 void inc_all_account_mail (MainWindow *mainwin,
85 gboolean autocheck,
86 gboolean notify);
87 void inc_progress_update (Pop3Session *session);
89 void inc_pop_before_smtp (PrefsAccount *acc);
91 gboolean inc_is_active (void);
93 void inc_cancel_all (void);
95 extern guint inc_lock_count;
96 #define inc_lock() { \
97 inc_lock_real(); \
98 debug_print("called inc_lock (lock count %d)\n", inc_lock_count); \
101 #define inc_unlock() { \
102 inc_unlock_real(); \
103 debug_print("called inc_unlock (lock count %d)\n", inc_lock_count); \
106 void inc_lock_real (void);
107 void inc_unlock_real (void);
109 void inc_autocheck_timer_init (MainWindow *mainwin);
110 void inc_autocheck_timer_set (void);
111 void inc_autocheck_timer_remove (void);
112 gboolean inc_offline_should_override(gboolean force_ask, const gchar *msg);
114 #endif /* __INC_H__ */