rb-audioscrobbler.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. * The Rhythmbox authors hereby grant permission for non-GPL compatible
  13. * GStreamer plugins to be used and distributed together with GStreamer
  14. * and Rhythmbox. This permission is above and beyond the permissions granted
  15. * by the GPL license by which Rhythmbox is covered. If you modify this code
  16. * you may extend this exception to your version of the code, but you are not
  17. * obligated to do so. If you do not wish to do so, delete this exception
  18. * statement from your version.
  19. *
  20. * This program is distributed in the hope that it will be useful,
  21. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. * GNU General Public License for more details.
  24. *
  25. * You should have received a copy of the GNU General Public License
  26. * along with this program; if not, write to the Free Software
  27. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  28. *
  29. */
  30. #ifndef __RB_AUDIOSCROBBLER_H
  31. #define __RB_AUDIOSCROBBLER_H
  32. G_BEGIN_DECLS
  33. #include <glib.h>
  34. #include "rb-shell-player.h"
  35. #include "rb-proxy-config.h"
  36. #include "rb-plugin.h"
  37. #define RB_TYPE_AUDIOSCROBBLER (rb_audioscrobbler_get_type ())
  38. #define RB_AUDIOSCROBBLER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_AUDIOSCROBBLER, RBAudioscrobbler))
  39. #define RB_AUDIOSCROBBLER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_AUDIOSCROBBLER, RBAudioscrobblerClass))
  40. #define RB_IS_AUDIOSCROBBLER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_AUDIOSCROBBLER))
  41. #define RB_IS_AUDIOSCROBBLER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_AUDIOSCROBBLER))
  42. #define RB_AUDIOSCROBBLER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_AUDIOSCROBBLER, RBAudioscrobblerClass))
  43. typedef struct _RBAudioscrobblerPrivate RBAudioscrobblerPrivate;
  44. typedef struct
  45. {
  46. GObject parent;
  47. RBAudioscrobblerPrivate *priv;
  48. } RBAudioscrobbler;
  49. typedef struct
  50. {
  51. GObjectClass parent_class;
  52. } RBAudioscrobblerClass;
  53. GType rb_audioscrobbler_get_type (void);
  54. RBAudioscrobbler * rb_audioscrobbler_new (RBShellPlayer *shell_player,
  55. RBProxyConfig *proxy_config);
  56. GtkWidget * rb_audioscrobbler_get_config_widget (RBAudioscrobbler *audioscrobbler,
  57. RBPlugin *plugin);
  58. void rb_audioscrobbler_username_entry_focus_out_event_cb (GtkWidget *widget,
  59. RBAudioscrobbler *audioscrobbler);
  60. void rb_audioscrobbler_username_entry_activate_cb (GtkEntry *entry,
  61. RBAudioscrobbler *audioscrobbler);
  62. void rb_audioscrobbler_password_entry_focus_out_event_cb (GtkWidget *widget,
  63. RBAudioscrobbler *audioscrobbler);
  64. void rb_audioscrobbler_password_entry_activate_cb (GtkEntry *entry,
  65. RBAudioscrobbler *audioscrobbler);
  66. void rb_audioscrobbler_enabled_check_changed_cb (GtkCheckButton *button,
  67. RBAudioscrobbler *audioscrobbler);
  68. G_END_DECLS
  69. #endif