1 /* 2 | Copyright (C) 2007 P.G. Richardson <phantom_sf at users.sourceforge.net> 3 | Part of the gtkpod project. 4 | 5 | URL: http://www.gtkpod.org/ 6 | URL: http://gtkpod.sourceforge.net/ 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | 13 | This program is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with this program; if not, write to the Free Software 20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 | 22 | iTunes and iPod are trademarks of Apple 23 | 24 | This product is not supported/written/published by Apple! 25 | 26 | $Id$ 27 */ 28 29 #ifndef __FETCHCOVER_H__ 30 #define __FETCHCOVER_H__ 31 32 #include <string.h> 33 #include <gtk/gtk.h> 34 #include <libxml/parser.h> 35 #include <libxml/tree.h> 36 #include "display.h" 37 #include "display_private.h" 38 #include "details.h" 39 #include "itdb.h" 40 #include "display_coverart.h" 41 #include "prefs.h" 42 43 typedef struct 44 { 45 GdkPixbuf *image; 46 GString *url; 47 gchar *dir; 48 gchar *filename; 49 GList *tracks; 50 gchar *err_msg; 51 GtkWindow *parent_window; 52 } Fetch_Cover; 53 54 Fetch_Cover *fetchcover_new (gchar *url_path, GList *trks); 55 gboolean fetchcover_net_retrieve_image (Fetch_Cover *fetch_cover); 56 gboolean fetchcover_select_filename (Fetch_Cover *fetch_cover); 57 void free_fetchcover (Fetch_Cover *fcover); 58 59 #endif 60