1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* camel-nntp-grouplist.h : getting/updating the list of newsgroups on the server. */
5 * Author : Chris Toshok <toshok@ximian.com>
7 * Copyright (C) 2000 Ximian .
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of version 2 of the GNU Lesser General Public
11 * License as published by the Free Software Foundation.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
24 #ifndef CAMEL_NNTP_GROUPLIST_H
25 #define CAMEL_NNTP_GROUPLIST_H 1
28 #include "camel-nntp-store.h"
32 struct CamelNNTPGroupListEntry {
39 struct CamelNNTPGroupList {
40 CamelNNTPStore *store;
45 typedef struct CamelNNTPGroupList _CamelNNTPGroupList;
46 typedef struct CamelNNTPGroupListEntry _CamelNNTPGroupListEntry;
48 struct CamelNNTPGroupList* camel_nntp_grouplist_fetch (CamelNNTPStore *store, CamelException *ex);
49 gint camel_nntp_grouplist_update (struct CamelNNTPGroupList *group_list, CamelException *ex);
50 void camel_nntp_grouplist_save (struct CamelNNTPGroupList *group_list, CamelException *ex);
51 void camel_nntp_grouplist_free (struct CamelNNTPGroupList *group_list);
55 #endif /* CAMEL_NNTP_GROUPLIST_H */