Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / camel / providers / nntp / camel-nntp-folder.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* camel-nntp-folder.h : NNTP group (folder) support. */
3
4 /* 
5  *
6  * Author : Chris Toshok <toshok@ximian.com> 
7  *
8  * Copyright (C) 2000 Ximian .
9  *
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.
13  *
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.
18  *
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
22  * USA
23  */
24
25
26 #ifndef CAMEL_NNTP_FOLDER_H
27 #define CAMEL_NNTP_FOLDER_H 1
28
29 #include "camel/camel-folder.h"
30 #include "camel/camel-disco-folder.h"
31
32 /*  #include "camel-store.h" */
33
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))
38
39 G_BEGIN_DECLS
40
41 typedef struct _CamelNNTPFolder {
42         CamelDiscoFolder parent;
43
44         struct _CamelNNTPFolderPrivate *priv;
45
46         struct _CamelFolderChangeInfo *changes;
47         char *storage_path;
48         CamelFolderSearch *search;
49 } CamelNNTPFolder;
50
51 typedef struct _CamelNNTPFolderClass {
52         CamelDiscoFolderClass parent;
53
54         /* Virtual methods */   
55         
56 } CamelNNTPFolderClass;
57
58 /* public methods */
59
60 /* Standard Camel function */
61 CamelType camel_nntp_folder_get_type (void);
62
63 CamelFolder *camel_nntp_folder_new (CamelStore *parent, const char *folder_name, CamelException *ex);
64
65 void camel_nntp_folder_selected(CamelNNTPFolder *folder, char *line, CamelException *ex);
66
67 G_END_DECLS
68
69 #endif /* CAMEL_NNTP_FOLDER_H */