claws-mail/src/inc.h

97 lines
2.1 KiB
C
Raw Normal View History

2001-04-19 14:21:46 +02:00
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
2003-03-25 09:29:02 +01:00
* Copyright (C) 1999-2003 Hiroyuki Yamamoto
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
* the Free Software Foundation; either version 2 of the License, or
* (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
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __INC_H__
#define __INC_H__
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <glib.h>
2002-06-17 12:02:21 +02:00
#include <time.h>
2001-04-19 14:21:46 +02:00
#include "mainwindow.h"
#include "progressdialog.h"
#include "prefs_account.h"
2003-03-25 09:29:02 +01:00
#include "session.h"
2001-04-19 14:21:46 +02:00
#include "pop.h"
typedef struct _IncProgressDialog IncProgressDialog;
typedef struct _IncSession IncSession;
2003-07-03 08:57:01 +02:00
2001-04-19 14:21:46 +02:00
typedef enum
{
INC_SUCCESS,
2001-08-16 13:28:10 +02:00
INC_CONNECT_ERROR,
INC_AUTH_FAILED,
2002-08-31 11:41:45 +02:00
INC_LOCKED,
2001-04-19 14:21:46 +02:00
INC_ERROR,
2002-11-11 09:38:54 +01:00
INC_NO_SPACE,
INC_IO_ERROR,
INC_SOCKET_ERROR,
2003-07-22 13:38:24 +02:00
INC_EOF,
2001-04-19 14:21:46 +02:00
INC_CANCEL
} IncState;
struct _IncProgressDialog
{
ProgressDialog *dialog;
MainWindow *mainwin;
2001-08-22 12:58:38 +02:00
gboolean show_dialog;
2001-04-19 14:21:46 +02:00
GList *queue_list; /* list of IncSession */
2003-07-03 08:57:01 +02:00
gint cur_row;
2001-04-19 14:21:46 +02:00
};
struct _IncSession
{
2003-03-25 09:29:02 +01:00
Session *session;
2001-04-19 14:21:46 +02:00
IncState inc_state;
2002-08-31 11:41:45 +02:00
gpointer data;
2001-04-19 14:21:46 +02:00
};
#define TIMEOUT_ITV 200
void inc_mail (MainWindow *mainwin,
gboolean notify);
void inc_all_account_mail (MainWindow *mainwin,
gboolean notify);
2003-03-25 09:29:02 +01:00
void inc_progress_update (Pop3Session *session);
2001-04-19 14:21:46 +02:00
gint inc_drop_message (const gchar *file,
2003-03-25 09:29:02 +01:00
Pop3Session *session);
2001-09-02 17:07:05 +02:00
2002-09-15 12:48:35 +02:00
void inc_pop_before_smtp (PrefsAccount *acc);
2002-03-07 14:22:39 +01:00
gboolean inc_is_active (void);
void inc_cancel_all (void);
2001-09-02 17:07:05 +02:00
void inc_lock (void);
void inc_unlock (void);
2001-05-06 22:06:56 +02:00
void inc_autocheck_timer_init (MainWindow *mainwin);
void inc_autocheck_timer_set (void);
void inc_autocheck_timer_remove (void);
2001-04-19 14:21:46 +02:00
#endif /* __INC_H__ */