Statistics
| Revision:

root / libsylph / news.h @ 2259

History | View | Annotate | Download (1.5 kB)

1 1 hiro
/*
2 578 hiro
 * LibSylph -- E-Mail client library
3 1491 hiro
 * Copyright (C) 1999-2007 Hiroyuki Yamamoto
4 1 hiro
 *
5 578 hiro
 * This library is free software; you can redistribute it and/or
6 578 hiro
 * modify it under the terms of the GNU Lesser General Public
7 578 hiro
 * License as published by the Free Software Foundation; either
8 578 hiro
 * version 2.1 of the License, or (at your option) any later version.
9 1 hiro
 *
10 578 hiro
 * This library is distributed in the hope that it will be useful,
11 1 hiro
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 578 hiro
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 578 hiro
 * Lesser General Public License for more details.
14 1 hiro
 *
15 578 hiro
 * You should have received a copy of the GNU Lesser General Public
16 578 hiro
 * License along with this library; if not, write to the Free Software
17 578 hiro
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18 1 hiro
 */
19 1 hiro
20 1 hiro
#ifndef __NEWS_H__
21 1 hiro
#define __NEWS_H__
22 1 hiro
23 1 hiro
#include <glib.h>
24 1 hiro
#include <stdio.h>
25 1 hiro
26 1 hiro
#include "folder.h"
27 1 hiro
28 1 hiro
typedef struct _NewsFolder        NewsFolder;
29 1 hiro
typedef struct _NewsGroupInfo        NewsGroupInfo;
30 1 hiro
31 1 hiro
#define NEWS_FOLDER(obj)        ((NewsFolder *)obj)
32 1 hiro
33 1 hiro
struct _NewsFolder
34 1 hiro
{
35 1 hiro
        RemoteFolder rfolder;
36 1 hiro
37 1 hiro
        gboolean use_auth;
38 1 hiro
};
39 1 hiro
40 1 hiro
struct _NewsGroupInfo
41 1 hiro
{
42 1 hiro
        gchar *name;
43 1 hiro
        guint first;
44 1 hiro
        guint last;
45 1 hiro
        gchar type;
46 593 hiro
        gboolean subscribed;
47 1 hiro
};
48 1 hiro
49 1 hiro
FolderClass *news_get_class                (void);
50 1 hiro
51 1 hiro
GSList *news_get_group_list                (Folder                *folder);
52 1 hiro
void news_group_list_free                (GSList                *group_list);
53 1 hiro
void news_remove_group_list_cache        (Folder                *folder);
54 1 hiro
55 1 hiro
gint news_post                                (Folder                *folder,
56 1 hiro
                                         const gchar        *file);
57 1 hiro
gint news_post_stream                        (Folder                *folder,
58 1 hiro
                                         FILE                *fp);
59 1 hiro
60 1 hiro
#endif /* __NEWS_H__ */