allow gpgme in non-standard locations
[claws.git] / src / inc.h
blob7c7210a401584182a7a05ea063904af165cac05e
1 /*
2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2001 Hiroyuki Yamamoto
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 2 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, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #ifndef __INC_H__
21 #define __INC_H__
23 #ifdef HAVE_CONFIG_H
24 # include "config.h"
25 #endif
27 #include <glib.h>
29 #include "mainwindow.h"
30 #include "progressdialog.h"
31 #include "prefs_account.h"
32 #include "pop.h"
33 #include "automaton.h"
34 #include "socket.h"
36 typedef struct _IncProgressDialog IncProgressDialog;
37 typedef struct _IncSession IncSession;
38 typedef struct _Pop3State Pop3State;
40 typedef enum
42 INC_SUCCESS,
43 INC_CONNECT_ERROR,
44 INC_AUTH_FAILED,
45 INC_ERROR,
46 INC_NOSPACE,
47 INC_CANCEL
48 } IncState;
50 struct _IncProgressDialog
52 ProgressDialog *dialog;
54 MainWindow *mainwin;
56 gboolean show_dialog;
58 GList *queue_list; /* list of IncSession */
61 struct _IncSession
63 Pop3State *pop3_state;
64 Automaton *atm;
66 gpointer data;
69 struct _Pop3State
71 gboolean cancelled;
72 PrefsAccount *ac_prefs;
73 GHashTable *folder_table;
75 gchar *prev_folder;
77 SockInfo *sockinfo;
79 gchar *greeting;
80 gchar *user;
81 gchar *pass;
82 gint count;
83 gint new;
84 gint total_bytes;
85 gint cur_msg;
86 gint cur_total_num;
87 gint cur_total_bytes;
88 gint *sizes;
90 /* UIDL */
91 GHashTable *id_table;
92 GSList *id_list;
93 GSList *new_id_list;
95 gint error_val;
96 IncState inc_state;
98 IncSession *session;
101 #define TIMEOUT_ITV 200
103 void inc_mail (MainWindow *mainwin);
104 void inc_all_account_mail (MainWindow *mainwin);
105 void inc_progress_update (Pop3State *state,
106 Pop3Phase phase);
107 gint inc_drop_message (const gchar *file,
108 Pop3State *state);
110 void inc_lock (void);
111 void inc_unlock (void);
113 void inc_autocheck_timer_init (MainWindow *mainwin);
114 void inc_autocheck_timer_set (void);
115 void inc_autocheck_timer_remove (void);
117 #endif /* __INC_H__ */