Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / camel / camel-sasl-anonymous.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  *  Authors: Jeffrey Stedfast <fejj@ximian.com>
4  *
5  *  Copyright 2001 Ximian, Inc. (www.ximian.com)
6  *
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.
10  *
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.
15  *
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.
20  *
21  */
22
23 #ifndef CAMEL_SASL_ANONYMOUS_H
24 #define CAMEL_SASL_ANONYMOUS_H
25
26 #include <camel/camel-sasl.h>
27
28 #define CAMEL_SASL_ANONYMOUS_TYPE     (camel_sasl_anonymous_get_type ())
29 #define CAMEL_SASL_ANONYMOUS(obj)     (CAMEL_CHECK_CAST((obj), CAMEL_SASL_ANONYMOUS_TYPE, CamelSaslAnonymous))
30 #define CAMEL_SASL_ANONYMOUS_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_SASL_ANONYMOUS_TYPE, CamelSaslAnonymousClass))
31 #define CAMEL_IS_SASL_ANONYMOUS(o)    (CAMEL_CHECK_TYPE((o), CAMEL_SASL_ANONYMOUS_TYPE))
32
33 G_BEGIN_DECLS
34
35 typedef enum {
36         CAMEL_SASL_ANON_TRACE_EMAIL,
37         CAMEL_SASL_ANON_TRACE_OPAQUE,
38         CAMEL_SASL_ANON_TRACE_EMPTY
39 } CamelSaslAnonTraceType;
40
41 typedef struct _CamelSaslAnonymous {
42         CamelSasl parent_object;
43         
44         char *trace_info;
45         CamelSaslAnonTraceType type;
46 } CamelSaslAnonymous;
47
48
49 typedef struct _CamelSaslAnonymousClass {
50         CamelSaslClass parent_class;
51         
52 } CamelSaslAnonymousClass;
53
54
55 /* Standard Camel function */
56 CamelType camel_sasl_anonymous_get_type (void);
57
58 /* public methods */
59 CamelSasl *camel_sasl_anonymous_new (CamelSaslAnonTraceType type, const char *trace_info);
60
61 extern CamelServiceAuthType camel_sasl_anonymous_authtype;
62
63 G_END_DECLS
64
65 #endif /* CAMEL_SASL_ANONYMOUS_H */