1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2005 Novell Inc.
5 * Authors: Michael Zucchi <notzed@ximian.com>
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of version 2 of the GNU Lesser General Public
9 * License as published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this program; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
22 #ifndef _CAMEL_NNTP_ADDRESS_H
23 #define _CAMEL_NNTP_ADDRESS_H
25 #include <camel/camel-address.h>
27 #define CAMEL_NNTP_ADDRESS(obj) CAMEL_CHECK_CAST (obj, camel_nntp_address_get_type (), CamelNNTPAddress)
28 #define CAMEL_NNTP_ADDRESS_CLASS(klass) CAMEL_CHECK_CLASS_CAST (klass, camel_nntp_address_get_type (), CamelNNTPAddressClass)
29 #define CAMEL_IS_NNTP_ADDRESS(obj) CAMEL_CHECK_TYPE (obj, camel_nntp_address_get_type ())
33 typedef struct _CamelNNTPAddress CamelNNTPAddress;
34 typedef struct _CamelNNTPAddressClass CamelNNTPAddressClass;
36 struct _CamelNNTPAddress {
39 struct _CamelNNTPAddressPrivate *priv;
42 struct _CamelNNTPAddressClass {
43 CamelAddressClass parent_class;
46 CamelType camel_nntp_address_get_type (void);
47 CamelNNTPAddress *camel_nntp_address_new (void);
49 int camel_nntp_address_add (CamelNNTPAddress *, const char *);
50 gboolean camel_nntp_address_get (const CamelNNTPAddress *, int, const char **);
54 #endif /* ! _CAMEL_NNTP_ADDRESS_H */