Sync Spanish manual
[claws.git] / src / etpan / nntp-thread.h
blobb179cc35ae0810da66e45e461980769d34b47c48
1 /*
2 * Claws Mail -- a GTK based, lightweight, and fast e-mail client
3 * Copyright (C) 2005-2012 DINH Viet Hoa 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 NNTP_THREAD_H
22 #define NNTP_THREAD_H
24 #include <libetpan/libetpan.h>
25 #include "folder.h"
26 #include "proxy.h"
28 void nntp_main_set_timeout(int sec);
29 void nntp_main_init(gboolean skip_ssl_cert_check);
30 void nntp_main_done(gboolean have_connectivity);
32 void nntp_init(Folder * folder);
33 void nntp_done(Folder * folder);
35 int nntp_threaded_connect(Folder * folder, const char * server, int port, ProxyInfo *proxy_info);
36 int nntp_threaded_connect_ssl(Folder * folder, const char * server, int port, ProxyInfo *proxy_info);
38 void nntp_threaded_disconnect(Folder * folder);
40 void nntp_threaded_cancel(Folder * folder);
42 int nntp_threaded_login(Folder * folder, const char * login, const char * password);
43 int nntp_threaded_date(Folder * folder, struct tm *lt);
44 int nntp_threaded_list(Folder * folder, clist **grouplist);
45 int nntp_threaded_post(Folder * folder, char *contents, size_t len);
46 int nntp_threaded_article(Folder * folder, guint32 num, char **contents, size_t *len);
47 int nntp_threaded_group(Folder * folder, const char *group, struct newsnntp_group_info **info);
48 int nntp_threaded_mode_reader(Folder * folder);
49 int nntp_threaded_xover(Folder * folder, guint32 beg, guint32 end, struct newsnntp_xover_resp_item **single_result, clist **multiple_result);
50 int nntp_threaded_xhdr(Folder * folder, const char *header, guint32 beg, guint32 end, clist **hdrlist);
52 #endif