updated changelog
[platform/upstream/evolution-data-server.git] / camel / camel-nntp-address.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
4  *
5  * Authors: Michael Zucchi <notzed@ximian.com>
6  *
7  * This library is free software you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License as published by
9  * the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14  * for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this library; if not, see <http://www.gnu.org/licenses/>.
18  */
19
20 #if !defined (__CAMEL_H_INSIDE__) && !defined (CAMEL_COMPILATION)
21 #error "Only <camel/camel.h> can be included directly."
22 #endif
23
24 #ifndef CAMEL_NNTP_ADDRESS_H
25 #define CAMEL_NNTP_ADDRESS_H
26
27 #include <camel/camel-address.h>
28
29 /* Standard GObject macros */
30 #define CAMEL_TYPE_NNTP_ADDRESS \
31         (camel_nntp_address_get_type ())
32 #define CAMEL_NNTP_ADDRESS(obj) \
33         (G_TYPE_CHECK_INSTANCE_CAST \
34         ((obj), CAMEL_TYPE_NNTP_ADDRESS, CamelNNTPAddress))
35 #define CAMEL_NNTP_ADDRESS_CLASS(cls) \
36         (G_TYPE_CHECK_CLASS_CAST \
37         ((cls), CAMEL_TYPE_NNTP_ADDRESS, CamelNNTPAddressClass))
38 #define CAMEL_IS_NNTP_ADDRESS(obj) \
39         (G_TYPE_CHECK_INSTANCE_TYPE \
40         ((obj), CAMEL_TYPE_NNTP_ADDRESS))
41 #define CAMEL_IS_NNTP_ADDRESS_CLASS(cls) \
42         (G_TYPE_CHECK_CLASS_TYPE \
43         ((cls), CAMEL_TYPE_NNTP_ADDRESS))
44 #define CAMEL_NNTP_ADDRESS_GET_CLASS(obj) \
45         (G_TYPE_INSTANCE_GET_CLASS \
46         ((obj), CAMEL_TYPE_NTTP_ADDRESS, CamelNNTPAddressClass))
47
48 G_BEGIN_DECLS
49
50 typedef struct _CamelNNTPAddress CamelNNTPAddress;
51 typedef struct _CamelNNTPAddressClass CamelNNTPAddressClass;
52 typedef struct _CamelNNTPAddressPrivate CamelNNTPAddressPrivate;
53
54 struct _CamelNNTPAddress {
55         CamelAddress parent;
56         CamelNNTPAddressPrivate *priv;
57 };
58
59 struct _CamelNNTPAddressClass {
60         CamelAddressClass parent_class;
61 };
62
63 GType           camel_nntp_address_get_type     (void);
64 CamelNNTPAddress *
65                 camel_nntp_address_new          (void);
66 gint            camel_nntp_address_add          (CamelNNTPAddress *a,
67                                                  const gchar *name);
68 gboolean        camel_nntp_address_get          (CamelNNTPAddress *a,
69                                                  gint index,
70                                                  const gchar **namep);
71
72 G_END_DECLS
73
74 #endif /* CAMEL_NNTP_ADDRESS_H */