udapted vi.po
[rhythmbox.git] / lib / rb-proxy-config.h
blob5e95819c1781badb2e4255caddc465f7f153f1b9
1 /*
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
17 * 02110-1301 USA
20 #ifndef RB_PROXY_CONFIG_H
21 #define RB_PROXY_CONFIG_H
23 #include <glib.h>
24 #include <glib-object.h>
26 #if defined(HAVE_LIBSOUP)
27 #include <libsoup/soup.h>
28 #include <libsoup/soup-uri.h>
29 #endif
31 G_BEGIN_DECLS
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;
42 typedef struct
44 GObject parent;
45 gboolean enabled;
46 char *host;
47 guint port;
49 gboolean auth_enabled;
50 char *username;
51 char *password;
53 RBProxyConfigPrivate *priv;
54 } RBProxyConfig;
56 typedef struct
58 GObjectClass parent_class;
60 void (*config_changed) (RBProxyConfig *config);
61 } RBProxyConfigClass;
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);
70 #endif
72 #endif /* RB_PROXY_CONFIG_H */