~ubuntu-branches/ubuntu/precise/rhythmbox/precise-201203091205

« back to all changes in this revision

Viewing changes to lib/rb-proxy-config.h

Tags: upstream-0.9.5
ImportĀ upstreamĀ versionĀ 0.9.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Copyright (C) 2006  Jonathan Matthew  <jonathan@kaolin.wh9.net>
 
3
 *
 
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.
 
8
 *
 
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.
 
13
 *
 
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
 
18
 */
 
19
 
 
20
#ifndef RB_PROXY_CONFIG_H
 
21
#define RB_PROXY_CONFIG_H
 
22
 
 
23
#include <glib.h>
 
24
#include <glib-object.h>
 
25
 
 
26
#if defined(HAVE_LIBSOUP)
 
27
#include <libsoup/soup.h>
 
28
#include <libsoup/soup-uri.h>
 
29
#endif
 
30
 
 
31
G_BEGIN_DECLS
 
32
 
 
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))
 
39
 
 
40
typedef struct _RBProxyConfigPrivate RBProxyConfigPrivate;
 
41
 
 
42
typedef struct
 
43
{
 
44
        GObject parent;
 
45
        gboolean enabled;
 
46
        char *host;
 
47
        guint port;
 
48
 
 
49
        gboolean auth_enabled;
 
50
        char *username;
 
51
        char *password;
 
52
 
 
53
        RBProxyConfigPrivate *priv;
 
54
} RBProxyConfig;
 
55
 
 
56
typedef struct
 
57
{
 
58
        GObjectClass parent_class;
 
59
 
 
60
        void (*config_changed) (RBProxyConfig *config);
 
61
} RBProxyConfigClass;
 
62
 
 
63
 
 
64
GType           rb_proxy_config_get_type (void);
 
65
 
 
66
RBProxyConfig * rb_proxy_config_new (void);
 
67
 
 
68
#if defined(HAVE_LIBSOUP)
 
69
SoupUri *       rb_proxy_config_get_libsoup_uri (RBProxyConfig *config);
 
70
#endif
 
71
 
 
72
#endif  /* RB_PROXY_CONFIG_H */
 
73