2001-04-19 14:21:46 +02:00
|
|
|
/*
|
|
|
|
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
|
2003-03-27 14:26:07 +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 __NEWS_H__
|
|
|
|
#define __NEWS_H__
|
|
|
|
|
|
|
|
#include <glib.h>
|
2002-10-04 17:35:49 +02:00
|
|
|
#include <stdio.h>
|
2001-04-19 14:21:46 +02:00
|
|
|
|
|
|
|
#include "folder.h"
|
|
|
|
|
2002-01-16 12:48:36 +01:00
|
|
|
typedef struct _NewsFolder NewsFolder;
|
2001-11-16 11:44:43 +01:00
|
|
|
typedef struct _NewsGroupInfo NewsGroupInfo;
|
2001-04-19 14:21:46 +02:00
|
|
|
|
2002-01-16 12:48:36 +01:00
|
|
|
#define NEWS_FOLDER(obj) ((NewsFolder *)obj)
|
2001-04-19 14:21:46 +02:00
|
|
|
|
2002-01-16 12:48:36 +01:00
|
|
|
struct _NewsFolder
|
|
|
|
{
|
|
|
|
RemoteFolder rfolder;
|
|
|
|
|
|
|
|
gboolean use_auth;
|
|
|
|
};
|
|
|
|
|
2001-11-16 11:44:43 +01:00
|
|
|
struct _NewsGroupInfo
|
|
|
|
{
|
|
|
|
gchar *name;
|
2003-02-06 14:33:57 +01:00
|
|
|
guint first;
|
|
|
|
guint last;
|
2001-10-18 20:51:14 +02:00
|
|
|
gchar type;
|
|
|
|
};
|
|
|
|
|
2003-05-13 13:54:19 +02:00
|
|
|
FolderClass *news_get_class (void);
|
2003-04-02 17:33:25 +02:00
|
|
|
gint news_post (Folder * folder,
|
|
|
|
const gchar * file);
|
2002-01-16 12:48:36 +01:00
|
|
|
|
2003-04-02 17:33:25 +02:00
|
|
|
GSList *news_get_group_list (Folder * folder);
|
|
|
|
void news_group_list_free (GSList * group_list);
|
|
|
|
void news_remove_group_list_cache (Folder * folder);
|
2001-04-19 14:21:46 +02:00
|
|
|
|
2003-04-02 17:33:25 +02:00
|
|
|
gint news_cancel_article (Folder * folder,
|
|
|
|
MsgInfo * msginfo);
|
2002-03-01 21:27:37 +01:00
|
|
|
|
2001-04-19 14:21:46 +02:00
|
|
|
#endif /* __NEWS_H__ */
|