2
* Copyright (C) 2006 Jonathan Matthew <jonathan@kaolin.wh9.net>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20
#ifndef RB_PROXY_CONFIG_H
21
#define RB_PROXY_CONFIG_H
24
#include <glib-object.h>
26
#if defined(HAVE_LIBSOUP)
27
#include <libsoup/soup.h>
28
#include <libsoup/soup-uri.h>
33
#define RB_TYPE_PROXY_CONFIG (rb_proxy_config_get_type ())
34
#define RB_PROXY_CONFIG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_PROXY_CONFIG, RBProxyConfig))
35
#define RB_PROXY_CONFIG_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_PROXY_CONFIG, RBProxyConfigClass))
36
#define RB_IS_PROXY_CONFIG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_PROXY_CONFIG))
37
#define RB_IS_PROXY_CONFIG_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_PROXY_CONFIG))
38
#define RB_PROXY_CONFIG_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_PROXY_CONFIG, RBProxyConfigClass))
40
typedef struct _RBProxyConfigPrivate RBProxyConfigPrivate;
49
gboolean auth_enabled;
53
RBProxyConfigPrivate *priv;
58
GObjectClass parent_class;
60
void (*config_changed) (RBProxyConfig *config);
64
GType rb_proxy_config_get_type (void);
66
RBProxyConfig * rb_proxy_config_new (void);
68
#if defined(HAVE_LIBSOUP)
69
SoupUri * rb_proxy_config_get_libsoup_uri (RBProxyConfig *config);
72
#endif /* RB_PROXY_CONFIG_H */