1 /* 2 * Copyright (C) 2005 Marc Pavot <marc.pavot@gmail.com> 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, or (at your option) 7 * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 * 18 */ 19 20 #include <gtk/gtk.h> 21 22 #ifndef __ARIO_SHELL_SIMILARARTISTS_H 23 #define __ARIO_SHELL_SIMILARARTISTS_H 24 25 G_BEGIN_DECLS 26 27 #define TYPE_ARIO_SHELL_SIMILARARTISTS (ario_shell_similarartists_get_type ()) 28 #define ARIO_SHELL_SIMILARARTISTS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ARIO_SHELL_SIMILARARTISTS, ArioShellSimilarartists)) 29 #define ARIO_SHELL_SIMILARARTISTS_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), TYPE_ARIO_SHELL_SIMILARARTISTS, ArioShellSimilarartistsClass)) 30 #define IS_ARIO_SHELL_SIMILARARTISTS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ARIO_SHELL_SIMILARARTISTS)) 31 #define IS_ARIO_SHELL_SIMILARARTISTS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ARIO_SHELL_SIMILARARTISTS)) 32 #define ARIO_SHELL_SIMILARARTISTS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ARIO_SHELL_SIMILARARTISTS, ArioShellSimilarartistsClass)) 33 34 typedef struct ArioShellSimilarartistsPrivate ArioShellSimilarartistsPrivate; 35 36 typedef struct 37 { 38 GtkWindow parent; 39 40 ArioShellSimilarartistsPrivate *priv; 41 } ArioShellSimilarartists; 42 43 typedef struct 44 { 45 GtkWindowClass parent_class; 46 } ArioShellSimilarartistsClass; 47 48 typedef struct 49 { 50 guchar *name; 51 guchar *image; 52 guchar *url; 53 } ArioSimilarArtist; 54 55 GType ario_shell_similarartists_get_type (void) G_GNUC_CONST; 56 57 GtkWidget * ario_shell_similarartists_new (void); 58 59 GSList * ario_shell_similarartists_get_similar_artists (const gchar *artist); 60 61 void ario_shell_similarartists_add_similar_to_playlist (const gchar *artist, 62 const int nb_entries); 63 void ario_shell_similarartists_free_similarartist (ArioSimilarArtist *similar_artist); 64 65 G_END_DECLS 66 67 #endif /* __ARIO_SHELL_SIMILARARTISTS_H */ 68