1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* camel-nntp-folder.h : NNTP group (folder) support. */
6 * Author : Chris Toshok <toshok@ximian.com>
8 * Copyright (C) 2000 Ximian .
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of version 2 of the GNU Lesser General Public
12 * License as published by the Free Software Foundation.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
26 #ifndef CAMEL_NNTP_FOLDER_H
27 #define CAMEL_NNTP_FOLDER_H 1
29 #include "camel/camel-folder.h"
30 #include "camel/camel-disco-folder.h"
32 /* #include "camel-store.h" */
34 #define CAMEL_NNTP_FOLDER_TYPE (camel_nntp_folder_get_type ())
35 #define CAMEL_NNTP_FOLDER(obj) (CAMEL_CHECK_CAST((obj), CAMEL_NNTP_FOLDER_TYPE, CamelNNTPFolder))
36 #define CAMEL_NNTP_FOLDER_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_NNTP_FOLDER_TYPE, CamelNNTPFolderClass))
37 #define CAMEL_IS_NNTP_FOLDER(o) (CAMEL_CHECK_TYPE((o), CAMEL_NNTP_FOLDER_TYPE))
41 typedef struct _CamelNNTPFolder {
42 CamelDiscoFolder parent;
44 struct _CamelNNTPFolderPrivate *priv;
46 struct _CamelFolderChangeInfo *changes;
48 CamelFolderSearch *search;
51 typedef struct _CamelNNTPFolderClass {
52 CamelDiscoFolderClass parent;
56 } CamelNNTPFolderClass;
60 /* Standard Camel function */
61 CamelType camel_nntp_folder_get_type (void);
63 CamelFolder *camel_nntp_folder_new (CamelStore *parent, const char *folder_name, CamelException *ex);
65 void camel_nntp_folder_selected(CamelNNTPFolder *folder, char *line, CamelException *ex);
69 #endif /* CAMEL_NNTP_FOLDER_H */