1 /*
2  * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
3  *
4  * This library is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation.
7  *
8  * This library is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
11  * for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this library. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authors: Jeffrey Stedfast <fejj@ximian.com>
17  *          Veerapuram Varadhan <vvaradhan@novell.com>
18  */
19 
20 #if !defined (__LIBEDATASERVER_H_INSIDE__) && !defined (LIBEDATASERVER_COMPILATION)
21 #error "Only <libedataserver/libedataserver.h> should be included directly."
22 #endif
23 
24 #ifndef EDS_DISABLE_DEPRECATED
25 
26 /* Do not generate bindings. */
27 #ifndef __GI_SCANNER__
28 
29 #ifndef E_PROXY_H
30 #define E_PROXY_H
31 
32 #include <libsoup/soup-uri.h>
33 
34 /* Standard GObject macros */
35 #define E_TYPE_PROXY \
36 	(e_proxy_get_type ())
37 #define E_PROXY(obj) \
38 	(G_TYPE_CHECK_INSTANCE_CAST \
39 	((obj), E_TYPE_PROXY, EProxy))
40 #define E_PROXY_CLASS(cls) \
41 	(G_TYPE_CHECK_CLASS_CAST \
42 	((cls), E_TYPE_PROXY, EProxyClass))
43 #define E_IS_PROXY(obj) \
44 	(G_TYPE_CHECK_INSTANCE_TYPE \
45 	((obj), E_TYPE_PROXY))
46 #define E_IS_PROXY_CLASS(cls) \
47 	(G_TYPE_CHECK_CLASS_TYPE \
48 	((cls), E_TYPE_PROXY))
49 #define E_PROXY_GET_CLASS(obj) \
50 	(G_TYPE_INSTANCE_GET_CLASS \
51 	((obj), E_TYPE_PROXY, EProxyClass))
52 
53 G_BEGIN_DECLS
54 
55 typedef struct _EProxy EProxy;
56 typedef struct _EProxyClass EProxyClass;
57 typedef struct _EProxyPrivate EProxyPrivate;
58 
59 /**
60  * EProxy:
61  *
62  * Contains only private data that should be read and manipulated using the
63  * function below.
64  *
65  * Since: 2.24
66  **/
67 struct _EProxy {
68 	/*< private >*/
69 	GObject parent;
70 	EProxyPrivate *priv;
71 };
72 
73 struct _EProxyClass {
74 	GObjectClass parent_class;
75 
76 	/* Signals  */
77 	void (*changed) (EProxy *proxy);
78 };
79 
80 GType		e_proxy_get_type		(void) G_GNUC_CONST;
81 EProxy *	e_proxy_new			(void);
82 void		e_proxy_setup_proxy		(EProxy *proxy);
83 SoupURI *	e_proxy_peek_uri_for		(EProxy *proxy,
84 						 const gchar *uri);
85 gboolean	e_proxy_require_proxy_for_uri	(EProxy *proxy,
86 						 const gchar *uri);
87 
88 G_END_DECLS
89 
90 #endif /* E_PROXY_H */
91 
92 #endif /* __GI_SCANNER__ */
93 
94 #endif /* EDS_DISABLE_DEPRECATED */
95