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

« back to all changes in this revision

Viewing changes to plugins/audioscrobbler/rb-audioscrobbler.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
 *  arch-tag: Header file for Rhythmbox Audioscrobbler support
 
3
 *
 
4
 *  Copyright (C) 2005 Alex Revo <xiphoiadappendix@gmail.com>
 
5
 *                                         Ruben Vermeersch <ruben@Lambda1.be>
 
6
 *
 
7
 *  This program is free software; you can redistribute it and/or modify
 
8
 *  it under the terms of the GNU General Public License as published by
 
9
 *  the Free Software Foundation; either version 2 of the License, or
 
10
 *  (at your option) any later version.
 
11
 *
 
12
 *  This program is distributed in the hope that it will be useful,
 
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 *  GNU General Public License for more details.
 
16
 *
 
17
 *  You should have received a copy of the GNU General Public License
 
18
 *  along with this program; if not, write to the Free Software
 
19
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA.
 
20
 *
 
21
 */
 
22
 
 
23
#ifndef __RB_AUDIOSCROBBLER_H
 
24
#define __RB_AUDIOSCROBBLER_H
 
25
 
 
26
G_BEGIN_DECLS
 
27
 
 
28
#include <glib.h>
 
29
#include "rb-shell-player.h"
 
30
#include "rb-proxy-config.h"
 
31
 
 
32
#define RB_TYPE_AUDIOSCROBBLER                  (rb_audioscrobbler_get_type ())
 
33
#define RB_AUDIOSCROBBLER(o)                    (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_AUDIOSCROBBLER, RBAudioscrobbler))
 
34
#define RB_AUDIOSCROBBLER_CLASS(k)              (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_AUDIOSCROBBLER, RBAudioscrobblerClass))
 
35
#define RB_IS_AUDIOSCROBBLER(o)                 (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_AUDIOSCROBBLER))
 
36
#define RB_IS_AUDIOSCROBBLER_CLASS(k)           (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_AUDIOSCROBBLER))
 
37
#define RB_AUDIOSCROBBLER_GET_CLASS(o)          (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_AUDIOSCROBBLER, RBAudioscrobblerClass))
 
38
 
 
39
 
 
40
typedef struct _RBAudioscrobblerPrivate RBAudioscrobblerPrivate;
 
41
 
 
42
typedef struct
 
43
{
 
44
        GObject parent;
 
45
 
 
46
        RBAudioscrobblerPrivate *priv;
 
47
} RBAudioscrobbler;
 
48
 
 
49
typedef struct
 
50
{
 
51
        GObjectClass parent_class;
 
52
} RBAudioscrobblerClass;
 
53
 
 
54
 
 
55
GType                   rb_audioscrobbler_get_type (void);
 
56
 
 
57
RBAudioscrobbler *      rb_audioscrobbler_new (RBShellPlayer *shell_player,
 
58
                                               RBProxyConfig *proxy_config);
 
59
 
 
60
GtkWidget *             rb_audioscrobbler_get_config_widget (RBAudioscrobbler *audioscrobbler);
 
61
 
 
62
void                    rb_audioscrobbler_username_entry_changed_cb (GtkEntry *entry,
 
63
                                                                     RBAudioscrobbler *audioscrobbler);
 
64
void                    rb_audioscrobbler_username_entry_activate_cb (GtkEntry *entry,
 
65
                                                                      RBAudioscrobbler *audioscrobbler);
 
66
 
 
67
void                    rb_audioscrobbler_password_entry_changed_cb (GtkEntry *entry,
 
68
                                                                     RBAudioscrobbler *audioscrobbler);
 
69
void                    rb_audioscrobbler_password_entry_activate_cb (GtkEntry *entry,
 
70
                                                                      RBAudioscrobbler *audioscrobbler);
 
71
 
 
72
void                    rb_audioscrobbler_enabled_check_changed_cb (GtkCheckButton *button,
 
73
                                                                    RBAudioscrobbler *audioscrobbler);
 
74
 
 
75
 
 
76
G_END_DECLS
 
77
 
 
78
#endif