2 * arch-tag: Header file for Rhythmbox Audioscrobbler support
4 * Copyright (C) 2005 Alex Revo <xiphoiadappendix@gmail.com>
5 * Ruben Vermeersch <ruben@Lambda1.be>
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.
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.
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.
23 #ifndef __RB_AUDIOSCROBBLER_H
24 #define __RB_AUDIOSCROBBLER_H
29 #include "rb-shell-player.h"
30 #include "rb-proxy-config.h"
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))
40 typedef struct _RBAudioscrobblerPrivate RBAudioscrobblerPrivate
;
46 RBAudioscrobblerPrivate
*priv
;
51 GObjectClass parent_class
;
52 } RBAudioscrobblerClass
;
55 GType
rb_audioscrobbler_get_type (void);
57 RBAudioscrobbler
* rb_audioscrobbler_new (RBShellPlayer
*shell_player
,
58 RBProxyConfig
*proxy_config
);
60 GtkWidget
* rb_audioscrobbler_get_config_widget (RBAudioscrobbler
*audioscrobbler
);
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
);
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
);
72 void rb_audioscrobbler_enabled_check_changed_cb (GtkCheckButton
*button
,
73 RBAudioscrobbler
*audioscrobbler
);